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
708 am__fastdepCC_FOR_BUILD_TRUE
709 am__fastdepCC_FOR_BUILD_FALSE
727 am__fastdepOBJC_FALSE
819 ac_precious_vars='build_alias
858 # Initialize some variables set by options.
860 ac_init_version=false
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
870 program_transform_name=s,x,x,
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE}'
895 infodir='${datarootdir}/info'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
916 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
962 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
963 { (exit 1); exit 1; }; }
964 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
965 eval enable_$ac_feature=no ;;
967 -docdir | --docdir | --docdi | --doc | --do)
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 -enable-* | --enable-*)
978 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
981 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
982 { (exit 1); exit 1; }; }
983 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
984 eval enable_$ac_feature=\$ac_optarg ;;
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 htmldir=$ac_optarg ;;
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1029 -libdir | --libdir | --libdi | --libd)
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1120 -psdir | --psdir | --psdi | --psd | --ps)
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 sbindir=$ac_optarg ;;
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 sharedstatedir=$ac_optarg ;;
1146 -site | --site | --sit)
1148 -site=* | --site=* | --sit=*)
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1175 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid package name: $ac_package" >&2
1179 { (exit 1); exit 1; }; }
1180 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1181 eval with_$ac_package=\$ac_optarg ;;
1183 -without-* | --without-*)
1184 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 { echo "$as_me: error: invalid package name: $ac_package" >&2
1188 { (exit 1); exit 1; }; }
1189 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1190 eval with_$ac_package=no ;;
1193 # Obsolete; use --with-x.
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201 x_includes=$ac_optarg ;;
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208 x_libraries=$ac_optarg ;;
1210 -*) { echo "$as_me: error: unrecognized option: $ac_option
1211 Try \`$0 --help' for more information." >&2
1212 { (exit 1); exit 1; }; }
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1219 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1220 { (exit 1); exit 1; }; }
1221 eval $ac_envvar=\$ac_optarg
1222 export $ac_envvar ;;
1225 # FIXME: should be removed in autoconf 3.0.
1226 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235 if test -n "$ac_prev"; then
1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237 { echo "$as_me: error: missing argument to $ac_option" >&2
1238 { (exit 1); exit 1; }; }
1241 # Be sure to have absolute directory names.
1242 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
1247 eval ac_val=\$$ac_var
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1253 { (exit 1); exit 1; }; }
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1261 target=$target_alias
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1268 If a cross compiler is detected then cross compile mode will be used." >&2
1269 elif test "x$build_alias" != "x$host_alias"; then
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277 test "$silent" = yes && exec 6>/dev/null
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 { echo "$as_me: error: Working directory cannot be determined" >&2
1284 { (exit 1); exit 1; }; }
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 { echo "$as_me: error: pwd does not report name of working directory" >&2
1287 { (exit 1); exit 1; }; }
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$0" ||
1295 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$0" : 'X\(//\)[^/]' \| \
1297 X"$0" : 'X\(//\)$' \| \
1298 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1322 ac_srcdir_defaulted=no
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1327 { (exit 1); exit 1; }; }
1329 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1332 { (exit 1); exit 1; }; }
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 # Report the --help message.
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1358 \`configure' configures this package to adapt to many kinds of systems.
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1365 Defaults for the options are specified in brackets.
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1389 For better control, use the options below.
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 if test -n "$ac_init_help"; then
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --enable-maintainer-mode enable make rules and dependencies not useful
1434 (and sometimes confusing) to the casual installer
1435 --disable-dependency-tracking speeds up one-time build
1436 --enable-dependency-tracking do not reject slow dependency extractors
1437 --enable-strict-warn Enable strict compilation warnings
1438 --disable-translator Disable the SH4 translator (Enabled by default)
1439 --disable-optimized Disable compile-time optimizations (Enabled by
1441 --enable-shared Build drivers as shared libraries (Enabled if
1443 --enable-profiled Enable profiling build
1444 --enable-trace Enable generation of IO traces (warning: hurts
1446 --enable-watch Enable watchpoints in the debugger (warning: hurts
1448 --enable-sh4stats Enable statistics on executed sh4 instructions
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-osmesa Build with the osmesa GL library (software
1455 --with-gtk Build with the GTK UI. Default on X11 systems
1456 --with-esd Build with support for the ESounD audio system
1457 --with-pulse Build with support for the PulseAudio audio system
1458 --with-sdl Build with support for SDL audio
1460 Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 LIBS libraries to pass to the linker, e.g. -l<library>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1469 OBJC Objective C compiler command
1470 OBJCFLAGS Objective C compiler flags
1471 CCAS assembler compiler command (defaults to CC)
1472 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1473 PKG_CONFIG path to pkg-config utility
1475 C compiler flags for LIBPNG, overriding pkg-config
1476 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1477 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1478 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1479 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1480 GTK_LIBS linker flags for GTK, overriding pkg-config
1482 C compiler flags for LIBISOFS, overriding pkg-config
1484 linker flags for LIBISOFS, overriding pkg-config
1486 C compiler flags for LIBGL, overriding pkg-config
1487 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1488 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1489 SDL_LIBS linker flags for SDL, overriding pkg-config
1491 C compiler flags for PULSE, overriding pkg-config
1492 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1494 C compiler flags for ESOUND, overriding pkg-config
1495 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1496 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1497 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" || continue
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1529 .) # We are building in place.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1553 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1563 generated by GNU Autoconf 2.61
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1572 cat >config.log <<_ACEOF
1573 This file contains any messages produced by compilers while
1574 running configure, to aid debugging if configure makes a mistake.
1576 It was created by $as_me, which was
1577 generated by GNU Autoconf 2.61. Invocation command line was
1589 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1590 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1591 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1592 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1593 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1595 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1596 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1598 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1599 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1600 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1601 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1602 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1603 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1604 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 echo "PATH: $as_dir"
1629 # Keep a trace of the command line.
1630 # Strip out --no-create and --no-recursion so they do not pile up.
1631 # Strip out --silent because we don't want to record it for future runs.
1632 # Also quote any args containing shell meta-characters.
1633 # Make two passes to allow for proper duplicate-argument suppression.
1637 ac_must_keep_next=false
1643 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1645 | -silent | --silent | --silen | --sile | --sil)
1648 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1653 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1654 if test $ac_must_keep_next = true; then
1655 ac_must_keep_next=false # Got value, back to normal.
1658 *=* | --config-cache | -C | -disable-* | --disable-* \
1659 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1660 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1661 | -with-* | --with-* | -without-* | --without-* | --x)
1662 case "$ac_configure_args0 " in
1663 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666 -* ) ac_must_keep_next=true ;;
1669 ac_configure_args="$ac_configure_args '$ac_arg'"
1674 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1675 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1677 # When interrupted or exit'd, cleanup temporary files, and complete
1678 # config.log. We remove comments because anyway the quotes in there
1679 # would cause problems or look ugly.
1680 # WARNING: Use '\'' to represent an apostrophe within the trap.
1681 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1682 trap 'exit_status=$?
1683 # Save into config.log some information that might help in debugging.
1688 ## ---------------- ##
1689 ## Cache variables. ##
1690 ## ---------------- ##
1693 # The following way of writing the cache mishandles newlines in values,
1695 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1696 eval ac_val=\$$ac_var
1700 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1701 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704 _ | IFS | as_nl) ;; #(
1705 *) $as_unset $ac_var ;;
1710 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1711 *${as_nl}ac_space=\ *)
1713 "s/'\''/'\''\\\\'\'''\''/g;
1714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725 ## ----------------- ##
1726 ## Output variables. ##
1727 ## ----------------- ##
1730 for ac_var in $ac_subst_vars
1732 eval ac_val=\$$ac_var
1734 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1736 echo "$ac_var='\''$ac_val'\''"
1740 if test -n "$ac_subst_files"; then
1742 ## ------------------- ##
1743 ## File substitutions. ##
1744 ## ------------------- ##
1747 for ac_var in $ac_subst_files
1749 eval ac_val=\$$ac_var
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753 echo "$ac_var='\''$ac_val'\''"
1758 if test -s confdefs.h; then
1768 test "$ac_signal" != 0 &&
1769 echo "$as_me: caught signal $ac_signal"
1770 echo "$as_me: exit $exit_status"
1772 rm -f core *.core core.conftest.* &&
1773 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776 for ac_signal in 1 2 13 15; do
1777 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1781 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1782 rm -f -r conftest* confdefs.h
1784 # Predefined preprocessor variables.
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_NAME "$PACKAGE_NAME"
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_STRING "$PACKAGE_STRING"
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1811 # Let the site file select an alternate cache file if it wants to.
1812 # Prefer explicitly selected file to automatically selected ones.
1813 if test -n "$CONFIG_SITE"; then
1814 set x "$CONFIG_SITE"
1815 elif test "x$prefix" != xNONE; then
1816 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1818 set x "$ac_default_prefix/share/config.site" \
1819 "$ac_default_prefix/etc/config.site"
1824 if test -r "$ac_site_file"; then
1825 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1826 echo "$as_me: loading site script $ac_site_file" >&6;}
1827 sed 's/^/| /' "$ac_site_file" >&5
1832 if test -r "$cache_file"; then
1833 # Some versions of bash will fail to source /dev/null (special
1834 # files actually), so we avoid doing that.
1835 if test -f "$cache_file"; then
1836 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1837 echo "$as_me: loading cache $cache_file" >&6;}
1839 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1840 *) . "./$cache_file";;
1844 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1845 echo "$as_me: creating cache $cache_file" >&6;}
1849 # Check that the precious variables saved in the cache have kept the same
1851 ac_cache_corrupted=false
1852 for ac_var in $ac_precious_vars; do
1853 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1854 eval ac_new_set=\$ac_env_${ac_var}_set
1855 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1856 eval ac_new_val=\$ac_env_${ac_var}_value
1857 case $ac_old_set,$ac_new_set in
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1868 if test "x$ac_old_val" != "x$ac_new_val"; then
1869 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1870 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1871 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1872 echo "$as_me: former value: $ac_old_val" >&2;}
1873 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1874 echo "$as_me: current value: $ac_new_val" >&2;}
1875 ac_cache_corrupted=:
1878 # Pass precious variables to config.status.
1879 if test "$ac_new_set" = set; then
1881 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1882 *) ac_arg=$ac_var=$ac_new_val ;;
1884 case " $ac_configure_args " in
1885 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1886 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1890 if $ac_cache_corrupted; then
1891 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1892 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1893 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1894 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1895 { (exit 1); exit 1; }; }
1915 ac_cpp='$CPP $CPPFLAGS'
1916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921 am__api_version="1.9"
1923 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1924 if test -f "$ac_dir/install-sh"; then
1926 ac_install_sh="$ac_aux_dir/install-sh -c"
1928 elif test -f "$ac_dir/install.sh"; then
1930 ac_install_sh="$ac_aux_dir/install.sh -c"
1932 elif test -f "$ac_dir/shtool"; then
1934 ac_install_sh="$ac_aux_dir/shtool install -c"
1938 if test -z "$ac_aux_dir"; then
1939 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1940 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1941 { (exit 1); exit 1; }; }
1944 # These three variables are undocumented and unsupported,
1945 # and are intended to be withdrawn in a future Autoconf release.
1946 # They can cause serious problems if a builder's source tree is in a directory
1947 # whose full name contains unusual characters.
1948 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1949 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1950 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1953 # Find a good install program. We prefer a C program (faster),
1954 # so one script is as good as another. But avoid the broken or
1955 # incompatible versions:
1956 # SysV /etc/install, /usr/sbin/install
1957 # SunOS /usr/etc/install
1958 # IRIX /sbin/install
1960 # AmigaOS /C/install, which installs bootblocks on floppy discs
1961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1964 # OS/2's system install, which has a completely different semantic
1965 # ./install, which can be erroneously created by make from ./install.sh.
1966 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1968 if test -z "$INSTALL"; then
1969 if test "${ac_cv_path_install+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir=.
1977 # Account for people who put trailing slashes in PATH elements.
1979 ./ | .// | /cC/* | \
1980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1984 # OSF1 and SCO ODT 3.0 have their own names for install.
1985 # Don't use installbsd from OSF since it installs stuff as root
1987 for ac_prog in ginstall scoinst install; do
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1990 if test $ac_prog = install &&
1991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1992 # AIX install. It has an incompatible calling convention.
1994 elif test $ac_prog = install &&
1995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1996 # program-specific install script used by HP pwplus--don't use.
1999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2012 if test "${ac_cv_path_install+set}" = set; then
2013 INSTALL=$ac_cv_path_install
2015 # As a last resort, use the slow shell script. Don't cache a
2016 # value for INSTALL within a source directory, because that will
2017 # break other packages using the cache if that directory is
2018 # removed, or if the value is a relative name.
2019 INSTALL=$ac_install_sh
2022 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2023 echo "${ECHO_T}$INSTALL" >&6; }
2025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2026 # It thinks the first close brace ends the variable substitution.
2027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2033 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2034 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2037 echo timestamp > conftest.file
2038 # Do `set' in a subshell so we don't clobber the current shell's
2039 # arguments. Must try -L first in case configure is actually a
2040 # symlink; some systems play weird games with the mod time of symlinks
2041 # (eg FreeBSD returns the mod time of the symlink's containing
2044 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2045 if test "$*" = "X"; then
2047 set X `ls -t $srcdir/configure conftest.file`
2050 if test "$*" != "X $srcdir/configure conftest.file" \
2051 && test "$*" != "X conftest.file $srcdir/configure"; then
2053 # If neither matched, then we have a broken ls. This can happen
2054 # if, for instance, CONFIG_SHELL is bash and it inherits a
2055 # broken ls alias from the environment. This has actually
2056 # happened. Such a system could not be considered "sane".
2057 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2058 alias in your environment" >&5
2059 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2060 alias in your environment" >&2;}
2061 { (exit 1); exit 1; }; }
2064 test "$2" = conftest.file
2070 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2071 Check your system clock" >&5
2072 echo "$as_me: error: newly created file is older than distributed files!
2073 Check your system clock" >&2;}
2074 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: yes" >&5
2077 echo "${ECHO_T}yes" >&6; }
2078 test "$program_prefix" != NONE &&
2079 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2080 # Use a double $ so make ignores it.
2081 test "$program_suffix" != NONE &&
2082 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2083 # Double any \ or $. echo might interpret backslashes.
2084 # By default was `s,x,x', remove it if useless.
2085 cat <<\_ACEOF >conftest.sed
2086 s/[\\$]/&&/g;s/;s,x,x,$//
2088 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2091 # expand $ac_aux_dir to an absolute path
2092 am_aux_dir=`cd $ac_aux_dir && pwd`
2094 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2095 # Use eval to expand $SHELL
2096 if eval "$MISSING --run true"; then
2097 am_missing_run="$MISSING --run "
2100 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2101 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2104 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2105 # We used to keeping the `.' as first argument, in order to
2106 # allow $(mkdir_p) to be used without argument. As in
2107 # $(mkdir_p) $(somedir)
2108 # where $(somedir) is conditionally defined. However this is wrong
2110 # 1. if the package is installed by a user who cannot write `.'
2111 # make install will fail,
2112 # 2. the above comment should most certainly read
2113 # $(mkdir_p) $(DESTDIR)$(somedir)
2114 # so it does not work when $(somedir) is undefined and
2115 # $(DESTDIR) is not.
2116 # To support the latter case, we have to write
2117 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2118 # so the `.' trick is pointless.
2119 mkdir_p='mkdir -p --'
2121 # On NextStep and OpenStep, the `mkdir' command does not
2122 # recognize any option. It will interpret all options as
2123 # directories to create, and then abort because `.' already
2125 for d in ./-p ./--version;
2127 test -d $d && rmdir $d
2129 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2130 if test -f "$ac_aux_dir/mkinstalldirs"; then
2131 mkdir_p='$(mkinstalldirs)'
2133 mkdir_p='$(install_sh) -d'
2137 for ac_prog in gawk mawk nawk awk
2139 # Extract the first word of "$ac_prog", so it can be a program name with args.
2140 set dummy $ac_prog; ac_word=$2
2141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2143 if test "${ac_cv_prog_AWK+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 if test -n "$AWK"; then
2147 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2156 ac_cv_prog_AWK="$ac_prog"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 if test -n "$AWK"; then
2168 { echo "$as_me:$LINENO: result: $AWK" >&5
2169 echo "${ECHO_T}$AWK" >&6; }
2171 { echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6; }
2176 test -n "$AWK" && break
2179 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2180 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2181 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2182 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 cat >conftest.make <<\_ACEOF
2188 @echo '@@@%%%=$(MAKE)=@@@%%%'
2190 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2191 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2193 eval ac_cv_prog_make_${ac_make}_set=yes;;
2195 eval ac_cv_prog_make_${ac_make}_set=no;;
2199 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2200 { echo "$as_me:$LINENO: result: yes" >&5
2201 echo "${ECHO_T}yes" >&6; }
2204 { echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6; }
2206 SET_MAKE="MAKE=${MAKE-make}"
2209 rm -rf .tst 2>/dev/null
2210 mkdir .tst 2>/dev/null
2211 if test -d .tst; then
2216 rmdir .tst 2>/dev/null
2218 # test to see if srcdir already configured
2219 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2220 test -f $srcdir/config.status; then
2221 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2222 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2223 { (exit 1); exit 1; }; }
2226 # test whether we have cygpath
2227 if test -z "$CYGPATH_W"; then
2228 if (cygpath --version) >/dev/null 2>/dev/null; then
2229 CYGPATH_W='cygpath -w'
2236 # Define the identity of the package.
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE "$PACKAGE"
2246 cat >>confdefs.h <<_ACEOF
2247 #define VERSION "$VERSION"
2250 # Some tools Automake needs.
2252 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2255 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2258 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2261 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2264 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2266 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2268 # Installed binaries are usually stripped using `strip' when the user
2269 # run `make install-strip'. However `strip' might not be the right
2270 # tool to use in cross-compilation environments, therefore Automake
2271 # will honor the `STRIP' environment variable to overrule this program.
2272 if test "$cross_compiling" != no; then
2273 if test -n "$ac_tool_prefix"; then
2274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2275 set dummy ${ac_tool_prefix}strip; ac_word=$2
2276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2278 if test "${ac_cv_prog_STRIP+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 if test -n "$STRIP"; then
2282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 STRIP=$ac_cv_prog_STRIP
2302 if test -n "$STRIP"; then
2303 { echo "$as_me:$LINENO: result: $STRIP" >&5
2304 echo "${ECHO_T}$STRIP" >&6; }
2306 { echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6; }
2312 if test -z "$ac_cv_prog_STRIP"; then
2314 # Extract the first word of "strip", so it can be a program name with args.
2315 set dummy strip; ac_word=$2
2316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2318 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 if test -n "$ac_ct_STRIP"; then
2322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_prog_ac_ct_STRIP="strip"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2342 if test -n "$ac_ct_STRIP"; then
2343 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2344 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2346 { echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6; }
2350 if test "x$ac_ct_STRIP" = x; then
2353 case $cross_compiling:$ac_tool_warned in
2355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2356 whose name does not start with the host triplet. If you think this
2357 configuration is useful to you, please write to autoconf@gnu.org." >&5
2358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2359 whose name does not start with the host triplet. If you think this
2360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2361 ac_tool_warned=yes ;;
2366 STRIP="$ac_cv_prog_STRIP"
2370 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2372 # We need awk for the "check" target. The system "awk" is bad on
2374 # Always define AMTAR for backward compatibility.
2376 AMTAR=${AMTAR-"${am_missing_run}tar"}
2378 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2384 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2385 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2386 # Check whether --enable-maintainer-mode was given.
2387 if test "${enable_maintainer_mode+set}" = set; then
2388 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2390 USE_MAINTAINER_MODE=no
2393 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2394 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2397 if test $USE_MAINTAINER_MODE = yes; then
2398 MAINTAINER_MODE_TRUE=
2399 MAINTAINER_MODE_FALSE='#'
2401 MAINTAINER_MODE_TRUE='#'
2402 MAINTAINER_MODE_FALSE=
2405 MAINT=$MAINTAINER_MODE_TRUE
2408 ac_config_headers="$ac_config_headers config.h"
2411 DEPDIR="${am__leading_dot}deps"
2413 ac_config_commands="$ac_config_commands depfiles"
2416 am_make=${MAKE-make}
2417 cat > confinc << 'END'
2422 # If we don't find an include directive, just comment out the code.
2423 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2424 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2428 # First try GNU make style include.
2429 echo "include confinc" > confmf
2430 # We grep out `Entering directory' and `Leaving directory'
2431 # messages which can occur if `w' ends up in MAKEFLAGS.
2432 # In particular we don't look at `^make:' because GNU make might
2433 # be invoked under some other name (usually "gmake"), in which
2434 # case it prints its new name instead of `make'.
2435 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2440 # Now try BSD make style include.
2441 if test "$am__include" = "#"; then
2442 echo '.include "confinc"' > confmf
2443 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2444 am__include=.include
2451 { echo "$as_me:$LINENO: result: $_am_result" >&5
2452 echo "${ECHO_T}$_am_result" >&6; }
2453 rm -f confinc confmf
2455 # Check whether --enable-dependency-tracking was given.
2456 if test "${enable_dependency_tracking+set}" = set; then
2457 enableval=$enable_dependency_tracking;
2460 if test "x$enable_dependency_tracking" != xno; then
2461 am_depcomp="$ac_aux_dir/depcomp"
2466 if test "x$enable_dependency_tracking" != xno; then
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 if test -n "$CC"; then
2511 { echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6; }
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2520 if test -z "$ac_cv_prog_CC"; then
2522 # Extract the first word of "gcc", so it can be a program name with args.
2523 set dummy gcc; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -n "$ac_ct_CC"; then
2530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 ac_cv_prog_ac_ct_CC="gcc"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2550 if test -n "$ac_ct_CC"; then
2551 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2552 echo "${ECHO_T}$ac_ct_CC" >&6; }
2554 { echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6; }
2558 if test "x$ac_ct_CC" = x; then
2561 case $cross_compiling:$ac_tool_warned in
2563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2564 whose name does not start with the host triplet. If you think this
2565 configuration is useful to you, please write to autoconf@gnu.org." >&5
2566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2567 whose name does not start with the host triplet. If you think this
2568 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2569 ac_tool_warned=yes ;;
2577 if test -z "$CC"; then
2578 if test -n "$ac_tool_prefix"; then
2579 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2580 set dummy ${ac_tool_prefix}cc; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_CC="${ac_tool_prefix}cc"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 if test -n "$CC"; then
2608 { echo "$as_me:$LINENO: result: $CC" >&5
2609 echo "${ECHO_T}$CC" >&6; }
2611 { echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6; }
2618 if test -z "$CC"; then
2619 # Extract the first word of "cc", so it can be a program name with args.
2620 set dummy cc; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2638 ac_prog_rejected=yes
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 if test $ac_prog_rejected = yes; then
2650 # We found a bogon in the path, so make sure we never use it.
2651 set dummy $ac_cv_prog_CC
2653 if test $# != 0; then
2654 # We chose a different compiler from the bogus one.
2655 # However, it has the same basename, so the bogon will be chosen
2656 # first if we set CC to just the basename; use the full file name.
2658 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2664 if test -n "$CC"; then
2665 { echo "$as_me:$LINENO: result: $CC" >&5
2666 echo "${ECHO_T}$CC" >&6; }
2668 { echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6; }
2674 if test -z "$CC"; then
2675 if test -n "$ac_tool_prefix"; then
2676 for ac_prog in cl.exe
2678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_CC+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 if test -n "$CC"; then
2686 ac_cv_prog_CC="$CC" # Let the user override the test.
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 if test -n "$CC"; then
2707 { echo "$as_me:$LINENO: result: $CC" >&5
2708 echo "${ECHO_T}$CC" >&6; }
2710 { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2715 test -n "$CC" && break
2718 if test -z "$CC"; then
2720 for ac_prog in cl.exe
2722 # Extract the first word of "$ac_prog", so it can be a program name with args.
2723 set dummy $ac_prog; ac_word=$2
2724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 if test -n "$ac_ct_CC"; then
2730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_ac_ct_CC="$ac_prog"
2740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2750 if test -n "$ac_ct_CC"; then
2751 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2752 echo "${ECHO_T}$ac_ct_CC" >&6; }
2754 { echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6; }
2759 test -n "$ac_ct_CC" && break
2762 if test "x$ac_ct_CC" = x; then
2765 case $cross_compiling:$ac_tool_warned in
2767 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2768 whose name does not start with the host triplet. If you think this
2769 configuration is useful to you, please write to autoconf@gnu.org." >&5
2770 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2771 whose name does not start with the host triplet. If you think this
2772 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2773 ac_tool_warned=yes ;;
2782 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: no acceptable C compiler found in \$PATH
2785 See \`config.log' for more details." >&2;}
2786 { (exit 1); exit 1; }; }
2788 # Provide some information about the compiler.
2789 echo "$as_me:$LINENO: checking for C compiler version" >&5
2790 ac_compiler=`set X $ac_compile; echo $2`
2791 { (ac_try="$ac_compiler --version >&5"
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_compiler --version >&5") 2>&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }
2801 { (ac_try="$ac_compiler -v >&5"
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807 (eval "$ac_compiler -v >&5") 2>&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }
2811 { (ac_try="$ac_compiler -V >&5"
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_compiler -V >&5") 2>&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }
2822 cat >conftest.$ac_ext <<_ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2837 ac_clean_files_save=$ac_clean_files
2838 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2839 # Try to create an executable without -o first, disregard a.out.
2840 # It will help us diagnose broken compilers, and finding out an intuition
2842 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2843 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2844 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2846 # List of possible output files, starting from the most likely.
2847 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2848 # only as a last resort. b.out is created by i960 compilers.
2849 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2851 # The IRIX 6 linker writes into existing files which may not be
2852 # executable, retaining their permissions. Remove them first so a
2853 # subsequent execution test works.
2855 for ac_file in $ac_files
2858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2859 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2864 if { (ac_try="$ac_link_default"
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_link_default") 2>&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; then
2874 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2875 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2876 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2877 # so that the user can short-circuit this test for compilers unknown to
2879 for ac_file in $ac_files ''
2881 test -f "$ac_file" || continue
2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2886 # We found the default executable, but exeext='' is most
2890 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2892 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2894 # We set ac_cv_exeext here because the later test for it is not
2895 # safe: cross compilers may not add the suffix if given an `-o'
2896 # argument, so we may need to know it at that point already.
2897 # Even if this section looks crufty: it has the advantage of
2904 test "$ac_cv_exeext" = no && ac_cv_exeext=
2910 { echo "$as_me:$LINENO: result: $ac_file" >&5
2911 echo "${ECHO_T}$ac_file" >&6; }
2912 if test -z "$ac_file"; then
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2916 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: C compiler cannot create executables
2919 See \`config.log' for more details." >&2;}
2920 { (exit 77); exit 77; }; }
2923 ac_exeext=$ac_cv_exeext
2925 # Check that the compiler produces executables we can run. If not, either
2926 # the compiler is broken, or we cross compile.
2927 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2928 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2929 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2930 # If not cross compiling, check that we can run a simple program.
2931 if test "$cross_compiling" != yes; then
2932 if { ac_try='./$ac_file'
2933 { (case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_try") 2>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2944 if test "$cross_compiling" = maybe; then
2947 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2948 If you meant to cross compile, use \`--host'.
2949 See \`config.log' for more details." >&5
2950 echo "$as_me: error: cannot run C compiled programs.
2951 If you meant to cross compile, use \`--host'.
2952 See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
2957 { echo "$as_me:$LINENO: result: yes" >&5
2958 echo "${ECHO_T}yes" >&6; }
2960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2961 ac_clean_files=$ac_clean_files_save
2962 # Check that the compiler produces executables we can run. If not, either
2963 # the compiler is broken, or we cross compile.
2964 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2966 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2967 echo "${ECHO_T}$cross_compiling" >&6; }
2969 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2971 if { (ac_try="$ac_link"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_link") 2>&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; then
2981 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2982 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2983 # work properly (i.e., refer to `conftest.exe'), while it won't with
2985 for ac_file in conftest.exe conftest conftest.*; do
2986 test -f "$ac_file" || continue
2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2996 See \`config.log' for more details." >&5
2997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2998 See \`config.log' for more details." >&2;}
2999 { (exit 1); exit 1; }; }
3002 rm -f conftest$ac_cv_exeext
3003 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3004 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3006 rm -f conftest.$ac_ext
3007 EXEEXT=$ac_cv_exeext
3009 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3011 if test "${ac_cv_objext+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 cat >conftest.$ac_ext <<_ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3029 rm -f conftest.o conftest.obj
3030 if { (ac_try="$ac_compile"
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compile") 2>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; then
3040 for ac_file in conftest.o conftest.obj conftest.*; do
3041 test -f "$ac_file" || continue;
3043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3044 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3052 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3053 See \`config.log' for more details." >&5
3054 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3055 See \`config.log' for more details." >&2;}
3056 { (exit 1); exit 1; }; }
3059 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3061 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3062 echo "${ECHO_T}$ac_cv_objext" >&6; }
3063 OBJEXT=$ac_cv_objext
3065 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3066 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3067 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 cat >conftest.$ac_ext <<_ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3088 rm -f conftest.$ac_objext
3089 if { (ac_try="$ac_compile"
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_compile") 2>conftest.er1
3097 grep -v '^ *+' conftest.er1 >conftest.err
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } && {
3102 test -z "$ac_c_werror_flag" ||
3103 test ! -s conftest.err
3104 } && test -s conftest.$ac_objext; then
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3117 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3118 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3119 GCC=`test $ac_compiler_gnu = yes && echo yes`
3120 ac_test_CFLAGS=${CFLAGS+set}
3121 ac_save_CFLAGS=$CFLAGS
3122 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3123 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3124 if test "${ac_cv_prog_cc_g+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 ac_save_c_werror_flag=$ac_c_werror_flag
3128 ac_c_werror_flag=yes
3131 cat >conftest.$ac_ext <<_ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } && {
3160 test -z "$ac_c_werror_flag" ||
3161 test ! -s conftest.err
3162 } && test -s conftest.$ac_objext; then
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3169 cat >conftest.$ac_ext <<_ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3184 rm -f conftest.$ac_objext
3185 if { (ac_try="$ac_compile"
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_compile") 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } && {
3198 test -z "$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 } && test -s conftest.$ac_objext; then
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3208 cat >conftest.$ac_ext <<_ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3223 rm -f conftest.$ac_objext
3224 if { (ac_try="$ac_compile"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3232 grep -v '^ *+' conftest.er1 >conftest.err
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } && {
3237 test -z "$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 } && test -s conftest.$ac_objext; then
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 ac_c_werror_flag=$ac_save_c_werror_flag
3257 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3258 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3259 if test "$ac_test_CFLAGS" = set; then
3260 CFLAGS=$ac_save_CFLAGS
3261 elif test $ac_cv_prog_cc_g = yes; then
3262 if test "$GCC" = yes; then
3268 if test "$GCC" = yes; then
3274 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3275 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3276 if test "${ac_cv_prog_cc_c89+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 ac_cv_prog_cc_c89=no
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3289 #include <sys/types.h>
3290 #include <sys/stat.h>
3291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3292 struct buf { int x; };
3293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3294 static char *e (p, i)
3300 static char *f (char * (*g) (char **, int), char **p, ...)
3305 s = g (p, va_arg (v,int));
3310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3311 function prototypes and stuff, but not '\xHH' hex character constants.
3312 These don't provoke an error unfortunately, instead are silently treated
3313 as 'x'. The following induces an error, until -std is added to get
3314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3315 array size at least. It's necessary to write '\x00'==0 to get something
3316 that's true only with -std. */
3317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3320 inside strings and character constants. */
3322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3324 int test (int i, double x);
3325 struct s1 {int (*f) (int a);};
3326 struct s2 {int (*f) (double a);};
3327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3341 CC="$ac_save_CC $ac_arg"
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_compile") 2>conftest.er1
3351 grep -v '^ *+' conftest.er1 >conftest.err
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } && {
3356 test -z "$ac_c_werror_flag" ||
3357 test ! -s conftest.err
3358 } && test -s conftest.$ac_objext; then
3359 ac_cv_prog_cc_c89=$ac_arg
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3367 rm -f core conftest.err conftest.$ac_objext
3368 test "x$ac_cv_prog_cc_c89" != "xno" && break
3370 rm -f conftest.$ac_ext
3375 case "x$ac_cv_prog_cc_c89" in
3377 { echo "$as_me:$LINENO: result: none needed" >&5
3378 echo "${ECHO_T}none needed" >&6; } ;;
3380 { echo "$as_me:$LINENO: result: unsupported" >&5
3381 echo "${ECHO_T}unsupported" >&6; } ;;
3383 CC="$CC $ac_cv_prog_cc_c89"
3384 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3385 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 depcc="$CC" am_compiler_list=
3397 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3398 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3399 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3403 # We make a subdir and do the tests there. Otherwise we can end up
3404 # making bogus files that we don't know about and never remove. For
3405 # instance it was reported that on HP-UX the gcc test will end up
3406 # making a dummy file named `D' -- because `-MD' means `put the output
3409 # Copy depcomp to subdir because otherwise we won't find it if we're
3410 # using a relative directory.
3411 cp "$am_depcomp" conftest.dir
3413 # We will build objects and dependencies in a subdirectory because
3414 # it helps to detect inapplicable dependency modes. For instance
3415 # both Tru64's cc and ICC support -MD to output dependencies as a
3416 # side effect of compilation, but ICC will put the dependencies in
3417 # the current directory while Tru64 will put them in the object
3421 am_cv_CC_dependencies_compiler_type=none
3422 if test "$am_compiler_list" = ""; then
3423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3425 for depmode in $am_compiler_list; do
3426 # Setup a source with many dependencies, because some compilers
3427 # like to wrap large dependency lists on column 80 (with \), and
3428 # we should not choose a depcomp mode which is confused by this.
3430 # We need to recreate these files for each test, as the compiler may
3431 # overwrite some of them when testing with obscure command lines.
3432 # This happens at least with the AIX C compiler.
3434 for i in 1 2 3 4 5 6; do
3435 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3436 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3437 # Solaris 8's {/usr,}/bin/sh.
3438 touch sub/conftst$i.h
3440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3444 # after this tag, mechanisms are not by side-effect, so they'll
3445 # only be used when explicitly requested
3446 if test "x$enable_dependency_tracking" = xyes; then
3454 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3455 # mode. It turns out that the SunPro C++ compiler does not properly
3456 # handle `-M -o', and we need to detect this.
3457 if depmode=$depmode \
3458 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3459 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3460 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3461 >/dev/null 2>conftest.err &&
3462 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3463 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3464 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3465 # icc doesn't choke on unknown options, it will just issue warnings
3466 # or remarks (even with -Werror). So we grep stderr for any message
3467 # that says an option was ignored or not supported.
3468 # When given -MP, icc 7.0 and 7.1 complain thusly:
3469 # icc: Command line warning: ignoring option '-M'; no argument required
3470 # The diagnosis changed in icc 8.0:
3471 # icc: Command line remark: option '-MP' not supported
3472 if (grep 'ignoring option' conftest.err ||
3473 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3474 am_cv_CC_dependencies_compiler_type=$depmode
3483 am_cv_CC_dependencies_compiler_type=none
3487 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3488 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3489 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3494 test "x$enable_dependency_tracking" != xno \
3495 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3497 am__fastdepCC_FALSE='#'
3499 am__fastdepCC_TRUE='#'
3500 am__fastdepCC_FALSE=
3506 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3507 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3508 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 ac_check_lib_save_LIBS=$LIBS
3512 LIBS="-lcposix $LIBS"
3513 cat >conftest.$ac_ext <<_ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3520 /* Override any GCC internal prototype to avoid an error.
3521 Use char because int might match the return type of a GCC
3522 builtin and then its argument prototype would still apply. */
3535 rm -f conftest.$ac_objext conftest$ac_exeext
3536 if { (ac_try="$ac_link"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_link") 2>conftest.er1
3544 grep -v '^ *+' conftest.er1 >conftest.err
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } && {
3549 test -z "$ac_c_werror_flag" ||
3550 test ! -s conftest.err
3551 } && test -s conftest$ac_exeext &&
3552 $as_test_x conftest$ac_exeext; then
3553 ac_cv_lib_cposix_strerror=yes
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 ac_cv_lib_cposix_strerror=no
3561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3562 conftest$ac_exeext conftest.$ac_ext
3563 LIBS=$ac_check_lib_save_LIBS
3565 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3566 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3567 if test $ac_cv_lib_cposix_strerror = yes; then
3568 LIBS="$LIBS -lcposix"
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578 if test -n "$ac_tool_prefix"; then
3579 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3580 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3583 if test "${ac_cv_prog_CC+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 if test -n "$CC"; then
3587 ac_cv_prog_CC="$CC" # Let the user override the test.
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 if test -n "$CC"; then
3608 { echo "$as_me:$LINENO: result: $CC" >&5
3609 echo "${ECHO_T}$CC" >&6; }
3611 { echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6; }
3617 if test -z "$ac_cv_prog_CC"; then
3619 # Extract the first word of "gcc", so it can be a program name with args.
3620 set dummy gcc; ac_word=$2
3621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3623 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 if test -n "$ac_ct_CC"; then
3627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 test -z "$as_dir" && as_dir=.
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3636 ac_cv_prog_ac_ct_CC="gcc"
3637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3647 if test -n "$ac_ct_CC"; then
3648 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3649 echo "${ECHO_T}$ac_ct_CC" >&6; }
3651 { echo "$as_me:$LINENO: result: no" >&5
3652 echo "${ECHO_T}no" >&6; }
3655 if test "x$ac_ct_CC" = x; then
3658 case $cross_compiling:$ac_tool_warned in
3660 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3661 whose name does not start with the host triplet. If you think this
3662 configuration is useful to you, please write to autoconf@gnu.org." >&5
3663 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3664 whose name does not start with the host triplet. If you think this
3665 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3666 ac_tool_warned=yes ;;
3674 if test -z "$CC"; then
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}cc; ac_word=$2
3678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3680 if test "${ac_cv_prog_CC+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 if test -n "$CC"; then
3684 ac_cv_prog_CC="$CC" # Let the user override the test.
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_prog_CC="${ac_tool_prefix}cc"
3694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 if test -n "$CC"; then
3705 { echo "$as_me:$LINENO: result: $CC" >&5
3706 echo "${ECHO_T}$CC" >&6; }
3708 { echo "$as_me:$LINENO: result: no" >&5
3709 echo "${ECHO_T}no" >&6; }
3715 if test -z "$CC"; then
3716 # Extract the first word of "cc", so it can be a program name with args.
3717 set dummy cc; ac_word=$2
3718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3720 if test "${ac_cv_prog_CC+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 if test -n "$CC"; then
3724 ac_cv_prog_CC="$CC" # Let the user override the test.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3735 ac_prog_rejected=yes
3739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 if test $ac_prog_rejected = yes; then
3747 # We found a bogon in the path, so make sure we never use it.
3748 set dummy $ac_cv_prog_CC
3750 if test $# != 0; then
3751 # We chose a different compiler from the bogus one.
3752 # However, it has the same basename, so the bogon will be chosen
3753 # first if we set CC to just the basename; use the full file name.
3755 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3761 if test -n "$CC"; then
3762 { echo "$as_me:$LINENO: result: $CC" >&5
3763 echo "${ECHO_T}$CC" >&6; }
3765 { echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; }
3771 if test -z "$CC"; then
3772 if test -n "$ac_tool_prefix"; then
3773 for ac_prog in cl.exe
3775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3779 if test "${ac_cv_prog_CC+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 if test -n "$CC"; then
3783 ac_cv_prog_CC="$CC" # Let the user override the test.
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3792 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 if test -n "$CC"; then
3804 { echo "$as_me:$LINENO: result: $CC" >&5
3805 echo "${ECHO_T}$CC" >&6; }
3807 { echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6; }
3812 test -n "$CC" && break
3815 if test -z "$CC"; then
3817 for ac_prog in cl.exe
3819 # Extract the first word of "$ac_prog", so it can be a program name with args.
3820 set dummy $ac_prog; ac_word=$2
3821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3823 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 if test -n "$ac_ct_CC"; then
3827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 test -z "$as_dir" && as_dir=.
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3836 ac_cv_prog_ac_ct_CC="$ac_prog"
3837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3847 if test -n "$ac_ct_CC"; then
3848 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3849 echo "${ECHO_T}$ac_ct_CC" >&6; }
3851 { echo "$as_me:$LINENO: result: no" >&5
3852 echo "${ECHO_T}no" >&6; }
3856 test -n "$ac_ct_CC" && break
3859 if test "x$ac_ct_CC" = x; then
3862 case $cross_compiling:$ac_tool_warned in
3864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3865 whose name does not start with the host triplet. If you think this
3866 configuration is useful to you, please write to autoconf@gnu.org." >&5
3867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3868 whose name does not start with the host triplet. If you think this
3869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3870 ac_tool_warned=yes ;;
3879 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3880 See \`config.log' for more details." >&5
3881 echo "$as_me: error: no acceptable C compiler found in \$PATH
3882 See \`config.log' for more details." >&2;}
3883 { (exit 1); exit 1; }; }
3885 # Provide some information about the compiler.
3886 echo "$as_me:$LINENO: checking for C compiler version" >&5
3887 ac_compiler=`set X $ac_compile; echo $2`
3888 { (ac_try="$ac_compiler --version >&5"
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894 (eval "$ac_compiler --version >&5") 2>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }
3898 { (ac_try="$ac_compiler -v >&5"
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904 (eval "$ac_compiler -v >&5") 2>&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }
3908 { (ac_try="$ac_compiler -V >&5"
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_compiler -V >&5") 2>&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }
3919 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3920 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3921 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 cat >conftest.$ac_ext <<_ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3942 rm -f conftest.$ac_objext
3943 if { (ac_try="$ac_compile"
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_compile") 2>conftest.er1
3951 grep -v '^ *+' conftest.er1 >conftest.err
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } && {
3956 test -z "$ac_c_werror_flag" ||
3957 test ! -s conftest.err
3958 } && test -s conftest.$ac_objext; then
3961 echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3971 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3972 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3973 GCC=`test $ac_compiler_gnu = yes && echo yes`
3974 ac_test_CFLAGS=${CFLAGS+set}
3975 ac_save_CFLAGS=$CFLAGS
3976 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3977 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3978 if test "${ac_cv_prog_cc_g+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 ac_save_c_werror_flag=$ac_c_werror_flag
3982 ac_c_werror_flag=yes
3985 cat >conftest.$ac_ext <<_ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
4000 rm -f conftest.$ac_objext
4001 if { (ac_try="$ac_compile"
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_compile") 2>conftest.er1
4009 grep -v '^ *+' conftest.er1 >conftest.err
4011 cat conftest.err >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } && {
4014 test -z "$ac_c_werror_flag" ||
4015 test ! -s conftest.err
4016 } && test -s conftest.$ac_objext; then
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4023 cat >conftest.$ac_ext <<_ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4038 rm -f conftest.$ac_objext
4039 if { (ac_try="$ac_compile"
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045 (eval "$ac_compile") 2>conftest.er1
4047 grep -v '^ *+' conftest.er1 >conftest.err
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } && {
4052 test -z "$ac_c_werror_flag" ||
4053 test ! -s conftest.err
4054 } && test -s conftest.$ac_objext; then
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 ac_c_werror_flag=$ac_save_c_werror_flag
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4077 rm -f conftest.$ac_objext
4078 if { (ac_try="$ac_compile"
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_compile") 2>conftest.er1
4086 grep -v '^ *+' conftest.er1 >conftest.err
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } && {
4091 test -z "$ac_c_werror_flag" ||
4092 test ! -s conftest.err
4093 } && test -s conftest.$ac_objext; then
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_c_werror_flag=$ac_save_c_werror_flag
4111 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4112 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4113 if test "$ac_test_CFLAGS" = set; then
4114 CFLAGS=$ac_save_CFLAGS
4115 elif test $ac_cv_prog_cc_g = yes; then
4116 if test "$GCC" = yes; then
4122 if test "$GCC" = yes; then
4128 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4129 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4130 if test "${ac_cv_prog_cc_c89+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 ac_cv_prog_cc_c89=no
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4143 #include <sys/types.h>
4144 #include <sys/stat.h>
4145 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4146 struct buf { int x; };
4147 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4148 static char *e (p, i)
4154 static char *f (char * (*g) (char **, int), char **p, ...)
4159 s = g (p, va_arg (v,int));
4164 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4165 function prototypes and stuff, but not '\xHH' hex character constants.
4166 These don't provoke an error unfortunately, instead are silently treated
4167 as 'x'. The following induces an error, until -std is added to get
4168 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4169 array size at least. It's necessary to write '\x00'==0 to get something
4170 that's true only with -std. */
4171 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4173 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4174 inside strings and character constants. */
4176 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4178 int test (int i, double x);
4179 struct s1 {int (*f) (int a);};
4180 struct s2 {int (*f) (double a);};
4181 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4187 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4192 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4193 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4195 CC="$ac_save_CC $ac_arg"
4196 rm -f conftest.$ac_objext
4197 if { (ac_try="$ac_compile"
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_compile") 2>conftest.er1
4205 grep -v '^ *+' conftest.er1 >conftest.err
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } && {
4210 test -z "$ac_c_werror_flag" ||
4211 test ! -s conftest.err
4212 } && test -s conftest.$ac_objext; then
4213 ac_cv_prog_cc_c89=$ac_arg
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4221 rm -f core conftest.err conftest.$ac_objext
4222 test "x$ac_cv_prog_cc_c89" != "xno" && break
4224 rm -f conftest.$ac_ext
4229 case "x$ac_cv_prog_cc_c89" in
4231 { echo "$as_me:$LINENO: result: none needed" >&5
4232 echo "${ECHO_T}none needed" >&6; } ;;
4234 { echo "$as_me:$LINENO: result: unsupported" >&5
4235 echo "${ECHO_T}unsupported" >&6; } ;;
4237 CC="$CC $ac_cv_prog_cc_c89"
4238 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4239 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4244 ac_cpp='$CPP $CPPFLAGS'
4245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 depcc="$CC" am_compiler_list=
4251 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4252 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4253 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4257 # We make a subdir and do the tests there. Otherwise we can end up
4258 # making bogus files that we don't know about and never remove. For
4259 # instance it was reported that on HP-UX the gcc test will end up
4260 # making a dummy file named `D' -- because `-MD' means `put the output
4263 # Copy depcomp to subdir because otherwise we won't find it if we're
4264 # using a relative directory.
4265 cp "$am_depcomp" conftest.dir
4267 # We will build objects and dependencies in a subdirectory because
4268 # it helps to detect inapplicable dependency modes. For instance
4269 # both Tru64's cc and ICC support -MD to output dependencies as a
4270 # side effect of compilation, but ICC will put the dependencies in
4271 # the current directory while Tru64 will put them in the object
4275 am_cv_CC_dependencies_compiler_type=none
4276 if test "$am_compiler_list" = ""; then
4277 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4279 for depmode in $am_compiler_list; do
4280 # Setup a source with many dependencies, because some compilers
4281 # like to wrap large dependency lists on column 80 (with \), and
4282 # we should not choose a depcomp mode which is confused by this.
4284 # We need to recreate these files for each test, as the compiler may
4285 # overwrite some of them when testing with obscure command lines.
4286 # This happens at least with the AIX C compiler.
4288 for i in 1 2 3 4 5 6; do
4289 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4290 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4291 # Solaris 8's {/usr,}/bin/sh.
4292 touch sub/conftst$i.h
4294 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4298 # after this tag, mechanisms are not by side-effect, so they'll
4299 # only be used when explicitly requested
4300 if test "x$enable_dependency_tracking" = xyes; then
4308 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4309 # mode. It turns out that the SunPro C++ compiler does not properly
4310 # handle `-M -o', and we need to detect this.
4311 if depmode=$depmode \
4312 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4313 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4314 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4315 >/dev/null 2>conftest.err &&
4316 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4317 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4318 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4319 # icc doesn't choke on unknown options, it will just issue warnings
4320 # or remarks (even with -Werror). So we grep stderr for any message
4321 # that says an option was ignored or not supported.
4322 # When given -MP, icc 7.0 and 7.1 complain thusly:
4323 # icc: Command line warning: ignoring option '-M'; no argument required
4324 # The diagnosis changed in icc 8.0:
4325 # icc: Command line remark: option '-MP' not supported
4326 if (grep 'ignoring option' conftest.err ||
4327 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4328 am_cv_CC_dependencies_compiler_type=$depmode
4337 am_cv_CC_dependencies_compiler_type=none
4341 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4342 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4343 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4348 test "x$enable_dependency_tracking" != xno \
4349 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4351 am__fastdepCC_FALSE='#'
4353 am__fastdepCC_TRUE='#'
4354 am__fastdepCC_FALSE=
4359 ac_cpp='$CPP $CPPFLAGS'
4360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4364 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4365 # On Suns, sometimes $CPP names a directory.
4366 if test -n "$CPP" && test -d "$CPP"; then
4369 if test -z "$CPP"; then
4370 if test "${ac_cv_prog_CPP+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 # Double quotes because CPP needs to be expanded
4374 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4377 for ac_c_preproc_warn_flag in '' yes
4379 # Use a header file that comes with gcc, so configuring glibc
4380 # with a fresh cross-compiler works.
4381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4382 # <limits.h> exists even on freestanding compilers.
4383 # On the NeXT, cc -E runs the code through the compiler's parser,
4384 # not just through cpp. "Syntax error" is here to catch this case.
4385 cat >conftest.$ac_ext <<_ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4392 # include <limits.h>
4394 # include <assert.h>
4398 if { (ac_try="$ac_cpp conftest.$ac_ext"
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4406 grep -v '^ *+' conftest.er1 >conftest.err
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } >/dev/null && {
4411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4412 test ! -s conftest.err
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 # Broken: fails on valid input.
4423 rm -f conftest.err conftest.$ac_ext
4425 # OK, works on sane cases. Now check whether nonexistent headers
4426 # can be detected and how.
4427 cat >conftest.$ac_ext <<_ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #include <ac_nonexistent.h>
4435 if { (ac_try="$ac_cpp conftest.$ac_ext"
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4443 grep -v '^ *+' conftest.er1 >conftest.err
4445 cat conftest.err >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } >/dev/null && {
4448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4449 test ! -s conftest.err
4451 # Broken: success on invalid input.
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4457 # Passes both tests.
4462 rm -f conftest.err conftest.$ac_ext
4465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4466 rm -f conftest.err conftest.$ac_ext
4467 if $ac_preproc_ok; then
4479 { echo "$as_me:$LINENO: result: $CPP" >&5
4480 echo "${ECHO_T}$CPP" >&6; }
4482 for ac_c_preproc_warn_flag in '' yes
4484 # Use a header file that comes with gcc, so configuring glibc
4485 # with a fresh cross-compiler works.
4486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4487 # <limits.h> exists even on freestanding compilers.
4488 # On the NeXT, cc -E runs the code through the compiler's parser,
4489 # not just through cpp. "Syntax error" is here to catch this case.
4490 cat >conftest.$ac_ext <<_ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4497 # include <limits.h>
4499 # include <assert.h>
4503 if { (ac_try="$ac_cpp conftest.$ac_ext"
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4511 grep -v '^ *+' conftest.er1 >conftest.err
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } >/dev/null && {
4516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4517 test ! -s conftest.err
4521 echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4524 # Broken: fails on valid input.
4528 rm -f conftest.err conftest.$ac_ext
4530 # OK, works on sane cases. Now check whether nonexistent headers
4531 # can be detected and how.
4532 cat >conftest.$ac_ext <<_ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 #include <ac_nonexistent.h>
4540 if { (ac_try="$ac_cpp conftest.$ac_ext"
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4548 grep -v '^ *+' conftest.er1 >conftest.err
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } >/dev/null && {
4553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4554 test ! -s conftest.err
4556 # Broken: success on invalid input.
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 # Passes both tests.
4567 rm -f conftest.err conftest.$ac_ext
4570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4571 rm -f conftest.err conftest.$ac_ext
4572 if $ac_preproc_ok; then
4575 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4576 See \`config.log' for more details." >&5
4577 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4578 See \`config.log' for more details." >&2;}
4579 { (exit 1); exit 1; }; }
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589 # Make sure we can run config.sub.
4590 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4591 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4592 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4593 { (exit 1); exit 1; }; }
4595 { echo "$as_me:$LINENO: checking build system type" >&5
4596 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4597 if test "${ac_cv_build+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 ac_build_alias=$build_alias
4601 test "x$ac_build_alias" = x &&
4602 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4603 test "x$ac_build_alias" = x &&
4604 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4605 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4606 { (exit 1); exit 1; }; }
4607 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4608 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4609 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4610 { (exit 1); exit 1; }; }
4613 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4614 echo "${ECHO_T}$ac_cv_build" >&6; }
4615 case $ac_cv_build in
4617 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4618 echo "$as_me: error: invalid value of canonical build" >&2;}
4619 { (exit 1); exit 1; }; };;
4622 ac_save_IFS=$IFS; IFS='-'
4628 # Remember, the first character of IFS is used to create $*,
4629 # except with old shells:
4632 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4635 { echo "$as_me:$LINENO: checking host system type" >&5
4636 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4637 if test "${ac_cv_host+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 if test "x$host_alias" = x; then
4641 ac_cv_host=$ac_cv_build
4643 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4644 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4645 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4646 { (exit 1); exit 1; }; }
4650 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4651 echo "${ECHO_T}$ac_cv_host" >&6; }
4654 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4655 echo "$as_me: error: invalid value of canonical host" >&2;}
4656 { (exit 1); exit 1; }; };;
4659 ac_save_IFS=$IFS; IFS='-'
4665 # Remember, the first character of IFS is used to create $*,
4666 # except with old shells:
4669 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4673 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
4675 if test -z "$CC_FOR_BUILD"; then
4676 if test "$#" = yes; then
4677 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4678 See \`config.log' for more details." >&5
4679 echo "$as_me: error: cannot run test program while cross compiling
4680 See \`config.log' for more details." >&2;}
4681 { (exit 1); exit 1; }; }
4683 cat >conftest.$ac_ext <<_ACEOF
4684 int main(){return 0;}
4686 rm -f conftest$ac_exeext
4687 if { (ac_try="$ac_link"
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693 (eval "$ac_link") 2>&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4697 { (case "(($ac_try" in
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4702 (eval "$ac_try") 2>&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4708 echo "$as_me: program exited with status $ac_status" >&5
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4720 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4721 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4722 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
4723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4724 if test -n "$ac_build_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4726 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 if test -n "$CC_FOR_BUILD"; then
4733 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4753 if test -n "$CC_FOR_BUILD"; then
4754 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
4755 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4763 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
4764 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4765 # Extract the first word of "gcc", so it can be a program name with args.
4766 set dummy gcc; ac_word=$2
4767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4769 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 if test -n "$ac_ct_CC_FOR_BUILD"; then
4773 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
4783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4793 if test -n "$ac_ct_CC_FOR_BUILD"; then
4794 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
4795 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
4797 { echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6; }
4801 if test "x$ac_ct_CC_FOR_BUILD" = x; then
4804 case $#:$ac_tool_warned in
4806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4807 whose name does not start with the build triplet. If you think this
4808 configuration is useful to you, please write to autoconf@gnu.org." >&5
4809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4810 whose name does not start with the build triplet. If you think this
4811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4812 ac_tool_warned=yes ;;
4814 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4817 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
4820 if test -z "$CC_FOR_BUILD"; then
4821 if test -n "$ac_build_tool_prefix"; then
4822 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4823 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 if test -n "$CC_FOR_BUILD"; then
4830 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4850 if test -n "$CC_FOR_BUILD"; then
4851 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
4852 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
4854 { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4861 if test -z "$CC_FOR_BUILD"; then
4862 # Extract the first word of "cc", so it can be a program name with args.
4863 set dummy cc; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 if test -n "$CC_FOR_BUILD"; then
4870 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4881 ac_prog_rejected=yes
4884 ac_cv_prog_CC_FOR_BUILD="cc"
4885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 if test $ac_prog_rejected = yes; then
4893 # We found a bogon in the path, so make sure we never use it.
4894 set dummy $ac_cv_prog_CC_FOR_BUILD
4896 if test $# != 0; then
4897 # We chose a different compiler from the bogus one.
4898 # However, it has the same basename, so the bogon will be chosen
4899 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
4901 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
4906 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4907 if test -n "$CC_FOR_BUILD"; then
4908 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
4909 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
4911 { echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6; }
4917 if test -z "$CC_FOR_BUILD"; then
4918 if test -n "$ac_build_tool_prefix"; then
4919 for ac_prog in cl.exe
4921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4922 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
4923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4925 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 if test -n "$CC_FOR_BUILD"; then
4929 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
4939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4949 if test -n "$CC_FOR_BUILD"; then
4950 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
4951 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
4953 { echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6; }
4958 test -n "$CC_FOR_BUILD" && break
4961 if test -z "$CC_FOR_BUILD"; then
4962 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4963 for ac_prog in cl.exe
4965 # Extract the first word of "$ac_prog", so it can be a program name with args.
4966 set dummy $ac_prog; ac_word=$2
4967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4969 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 if test -n "$ac_ct_CC_FOR_BUILD"; then
4973 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4993 if test -n "$ac_ct_CC_FOR_BUILD"; then
4994 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
4995 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
4997 { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
5002 test -n "$ac_ct_CC_FOR_BUILD" && break
5005 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5008 case $#:$ac_tool_warned in
5010 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5011 whose name does not start with the build triplet. If you think this
5012 configuration is useful to you, please write to autoconf@gnu.org." >&5
5013 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5014 whose name does not start with the build triplet. If you think this
5015 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5016 ac_tool_warned=yes ;;
5018 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5025 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5026 See \`config.log' for more details." >&5
5027 echo "$as_me: error: no acceptable C compiler found in \$PATH
5028 See \`config.log' for more details." >&2;}
5029 { (exit 1); exit 1; }; }
5031 # Provide some information about the compiler.
5032 echo "$as_me:$LINENO: checking for C compiler version" >&5
5033 ac_compiler=`set X $ac_build_compile; echo $2`
5034 { (ac_try="$ac_compiler --version >&5"
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_compiler --version >&5") 2>&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }
5044 { (ac_try="$ac_compiler -v >&5"
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_compiler -v >&5") 2>&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }
5054 { (ac_try="$ac_compiler -V >&5"
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5060 (eval "$ac_compiler -V >&5") 2>&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }
5065 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5066 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5067 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 cat >conftest.$ac_ext <<_ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5088 rm -f conftest.$ac_build_objext
5089 if { (ac_try="$ac_build_compile"
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095 (eval "$ac_build_compile") 2>conftest.er1
5097 grep -v '^ *+' conftest.er1 >conftest.err
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } && {
5102 test -z "$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5104 } && test -s conftest.$ac_build_objext; then
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5113 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5114 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5117 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5118 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5119 GCC=`test $ac_compiler_gnu = yes && echo yes`
5120 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5121 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5122 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
5123 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
5124 if test "${ac_cv_build_prog_cc_g+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 ac_save_c_werror_flag=$ac_c_werror_flag
5128 ac_c_werror_flag=yes
5129 ac_cv_build_prog_cc_g=no
5130 CFLAGS_FOR_BUILD="-g"
5131 cat >conftest.$ac_ext <<_ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5146 rm -f conftest.$ac_build_objext
5147 if { (ac_try="$ac_build_compile"
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_build_compile") 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.$ac_build_objext; then
5163 ac_cv_build_prog_cc_g=yes
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5169 cat >conftest.$ac_ext <<_ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5184 rm -f conftest.$ac_build_objext
5185 if { (ac_try="$ac_build_compile"
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_build_compile") 2>conftest.er1
5193 grep -v '^ *+' conftest.er1 >conftest.err
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest.$ac_build_objext; then
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 ac_c_werror_flag=$ac_save_c_werror_flag
5207 CFLAGS_FOR_BUILD="-g"
5208 cat >conftest.$ac_ext <<_ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5223 rm -f conftest.$ac_build_objext
5224 if { (ac_try="$ac_build_compile"
5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227 *) ac_try_echo=$ac_try;;
5229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230 (eval "$ac_build_compile") 2>conftest.er1
5232 grep -v '^ *+' conftest.er1 >conftest.err
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } && {
5237 test -z "$ac_c_werror_flag" ||
5238 test ! -s conftest.err
5239 } && test -s conftest.$ac_build_objext; then
5240 ac_cv_build_prog_cc_g=yes
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5248 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5251 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5254 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5255 ac_c_werror_flag=$ac_save_c_werror_flag
5257 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
5258 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
5259 if test "$ac_test_CFLAGS" = set; then
5260 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5261 elif test $ac_cv_build_prog_cc_g = yes; then
5262 if test "$GCC" = yes; then
5263 CFLAGS_FOR_BUILD="-g -O2"
5265 CFLAGS_FOR_BUILD="-g"
5268 if test "$GCC" = yes; then
5269 CFLAGS_FOR_BUILD="-O2"
5274 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5275 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
5276 if test "${ac_cv_prog_cc_c89+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 ac_cv_prog_cc_c89=no
5280 ac_save_CC=$CC_FOR_BUILD
5281 cat >conftest.$ac_ext <<_ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5289 #include <sys/types.h>
5290 #include <sys/stat.h>
5291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5292 struct buf { int x; };
5293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5294 static char *e (p, i)
5300 static char *f (char * (*g) (char **, int), char **p, ...)
5305 s = g (p, va_arg (v,int));
5310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5311 function prototypes and stuff, but not '\xHH' hex character constants.
5312 These don't provoke an error unfortunately, instead are silently treated
5313 as 'x'. The following induces an error, until -std is added to get
5314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5315 array size at least. It's necessary to write '\x00'==0 to get something
5316 that's true only with -std. */
5317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5320 inside strings and character constants. */
5322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5324 int test (int i, double x);
5325 struct s1 {int (*f) (int a);};
5326 struct s2 {int (*f) (double a);};
5327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5341 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5342 rm -f conftest.$ac_build_objext
5343 if { (ac_try="$ac_build_compile"
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_build_compile") 2>conftest.er1
5351 grep -v '^ *+' conftest.er1 >conftest.err
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest.$ac_build_objext; then
5359 ac_cv_prog_cc_c89=$ac_arg
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5367 rm -f core conftest.err conftest.$ac_build_objext
5368 test "x$ac_cv_prog_cc_c89" != "xno" && break
5370 rm -f conftest.$ac_ext
5371 CC_FOR_BUILD=$ac_save_CC
5375 case "x$ac_cv_prog_cc_c89" in
5377 { echo "$as_me:$LINENO: result: none needed" >&5
5378 echo "${ECHO_T}none needed" >&6; } ;;
5380 { echo "$as_me:$LINENO: result: unsupported" >&5
5381 echo "${ECHO_T}unsupported" >&6; } ;;
5383 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5384 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5385 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5390 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5391 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5392 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5395 depcc="$CC_FOR_BUILD" am_compiler_list=
5397 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5398 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5399 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5403 # We make a subdir and do the tests there. Otherwise we can end up
5404 # making bogus files that we don't know about and never remove. For
5405 # instance it was reported that on HP-UX the gcc test will end up
5406 # making a dummy file named `D' -- because `-MD' means `put the output
5409 # Copy depcomp to subdir because otherwise we won't find it if we're
5410 # using a relative directory.
5411 cp "$am_depcomp" conftest.dir
5413 # We will build objects and dependencies in a subdirectory because
5414 # it helps to detect inapplicable dependency modes. For instance
5415 # both Tru64's cc and ICC support -MD to output dependencies as a
5416 # side effect of compilation, but ICC will put the dependencies in
5417 # the current directory while Tru64 will put them in the object
5421 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
5422 if test "$am_compiler_list" = ""; then
5423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5425 for depmode in $am_compiler_list; do
5426 # Setup a source with many dependencies, because some compilers
5427 # like to wrap large dependency lists on column 80 (with \), and
5428 # we should not choose a depcomp mode which is confused by this.
5430 # We need to recreate these files for each test, as the compiler may
5431 # overwrite some of them when testing with obscure command lines.
5432 # This happens at least with the AIX C compiler.
5434 for i in 1 2 3 4 5 6; do
5435 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5436 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5437 # Solaris 8's {/usr,}/bin/sh.
5438 touch sub/conftst$i.h
5440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5444 # after this tag, mechanisms are not by side-effect, so they'll
5445 # only be used when explicitly requested
5446 if test "x$enable_dependency_tracking" = xyes; then
5454 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5455 # mode. It turns out that the SunPro C++ compiler does not properly
5456 # handle `-M -o', and we need to detect this.
5457 if depmode=$depmode \
5458 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5459 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5460 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5461 >/dev/null 2>conftest.err &&
5462 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5463 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5464 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5465 # icc doesn't choke on unknown options, it will just issue warnings
5466 # or remarks (even with -Werror). So we grep stderr for any message
5467 # that says an option was ignored or not supported.
5468 # When given -MP, icc 7.0 and 7.1 complain thusly:
5469 # icc: Command line warning: ignoring option '-M'; no argument required
5470 # The diagnosis changed in icc 8.0:
5471 # icc: Command line remark: option '-MP' not supported
5472 if (grep 'ignoring option' conftest.err ||
5473 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5474 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
5483 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
5487 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
5488 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
5489 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
5494 test "x$enable_dependency_tracking" != xno \
5495 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
5496 am__fastdepCC_FOR_BUILD_TRUE=
5497 am__fastdepCC_FOR_BUILD_FALSE='#'
5499 am__fastdepCC_FOR_BUILD_TRUE='#'
5500 am__fastdepCC_FOR_BUILD_FALSE=
5505 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5506 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5507 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5509 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5510 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5511 # On Suns, sometimes $CPP names a directory.
5512 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
5515 if test -z "$CPP_FOR_BUILD"; then
5516 if test "${ac_cv_build_prog_CPP+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 # Double quotes because CPP needs to be expanded
5520 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
5523 for ac_c_preproc_warn_flag in '' yes
5525 # Use a header file that comes with gcc, so configuring glibc
5526 # with a fresh cross-compiler works.
5527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5528 # <limits.h> exists even on freestanding compilers.
5529 # On the NeXT, cc -E runs the code through the compiler's parser,
5530 # not just through cpp. "Syntax error" is here to catch this case.
5531 cat >conftest.$ac_ext <<_ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5538 # include <limits.h>
5540 # include <assert.h>
5544 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
5552 grep -v '^ *+' conftest.er1 >conftest.err
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } >/dev/null && {
5557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5558 test ! -s conftest.err
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5565 # Broken: fails on valid input.
5569 rm -f conftest.err conftest.$ac_ext
5571 # OK, works on sane cases. Now check whether nonexistent headers
5572 # can be detected and how.
5573 cat >conftest.$ac_ext <<_ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 #include <ac_nonexistent.h>
5581 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
5589 grep -v '^ *+' conftest.er1 >conftest.err
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } >/dev/null && {
5594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5597 # Broken: success on invalid input.
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5603 # Passes both tests.
5608 rm -f conftest.err conftest.$ac_ext
5611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5612 rm -f conftest.err conftest.$ac_ext
5613 if $ac_preproc_ok; then
5618 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5621 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
5623 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5625 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
5626 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
5628 for ac_c_preproc_warn_flag in '' yes
5630 # Use a header file that comes with gcc, so configuring glibc
5631 # with a fresh cross-compiler works.
5632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5633 # <limits.h> exists even on freestanding compilers.
5634 # On the NeXT, cc -E runs the code through the compiler's parser,
5635 # not just through cpp. "Syntax error" is here to catch this case.
5636 cat >conftest.$ac_ext <<_ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5643 # include <limits.h>
5645 # include <assert.h>
5649 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
5657 grep -v '^ *+' conftest.er1 >conftest.err
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } >/dev/null && {
5662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5670 # Broken: fails on valid input.
5674 rm -f conftest.err conftest.$ac_ext
5676 # OK, works on sane cases. Now check whether nonexistent headers
5677 # can be detected and how.
5678 cat >conftest.$ac_ext <<_ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 #include <ac_nonexistent.h>
5686 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
5694 grep -v '^ *+' conftest.er1 >conftest.err
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } >/dev/null && {
5699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5700 test ! -s conftest.err
5702 # Broken: success on invalid input.
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5708 # Passes both tests.
5713 rm -f conftest.err conftest.$ac_ext
5716 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5717 rm -f conftest.err conftest.$ac_ext
5718 if $ac_preproc_ok; then
5721 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
5722 See \`config.log' for more details." >&5
5723 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
5724 See \`config.log' for more details." >&2;}
5725 { (exit 1); exit 1; }; }
5729 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5730 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5731 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5737 BUILD_EXEEXT=$ac_build_exeext
5738 BUILD_OBJEXT=$ac_build_objext
5741 ac_cpp='$CPP $CPPFLAGS'
5742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5745 if test -n "$ac_tool_prefix"; then
5746 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5747 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750 if test "${ac_cv_prog_CC+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 if test -n "$CC"; then
5754 ac_cv_prog_CC="$CC" # Let the user override the test.
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 if test -n "$CC"; then
5775 { echo "$as_me:$LINENO: result: $CC" >&5
5776 echo "${ECHO_T}$CC" >&6; }
5778 { echo "$as_me:$LINENO: result: no" >&5
5779 echo "${ECHO_T}no" >&6; }
5784 if test -z "$ac_cv_prog_CC"; then
5786 # Extract the first word of "gcc", so it can be a program name with args.
5787 set dummy gcc; ac_word=$2
5788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 if test -n "$ac_ct_CC"; then
5794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_prog_ac_ct_CC="gcc"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5814 if test -n "$ac_ct_CC"; then
5815 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5816 echo "${ECHO_T}$ac_ct_CC" >&6; }
5818 { echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6; }
5822 if test "x$ac_ct_CC" = x; then
5825 case $cross_compiling:$ac_tool_warned in
5827 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5828 whose name does not start with the host triplet. If you think this
5829 configuration is useful to you, please write to autoconf@gnu.org." >&5
5830 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5831 whose name does not start with the host triplet. If you think this
5832 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5833 ac_tool_warned=yes ;;
5841 if test -z "$CC"; then
5842 if test -n "$ac_tool_prefix"; then
5843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5844 set dummy ${ac_tool_prefix}cc; ac_word=$2
5845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5847 if test "${ac_cv_prog_CC+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 if test -n "$CC"; then
5851 ac_cv_prog_CC="$CC" # Let the user override the test.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_prog_CC="${ac_tool_prefix}cc"
5861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 if test -n "$CC"; then
5872 { echo "$as_me:$LINENO: result: $CC" >&5
5873 echo "${ECHO_T}$CC" >&6; }
5875 { echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6; }
5882 if test -z "$CC"; then
5883 # Extract the first word of "cc", so it can be a program name with args.
5884 set dummy cc; ac_word=$2
5885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5887 if test "${ac_cv_prog_CC+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 if test -n "$CC"; then
5891 ac_cv_prog_CC="$CC" # Let the user override the test.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5902 ac_prog_rejected=yes
5906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 if test $ac_prog_rejected = yes; then
5914 # We found a bogon in the path, so make sure we never use it.
5915 set dummy $ac_cv_prog_CC
5917 if test $# != 0; then
5918 # We chose a different compiler from the bogus one.
5919 # However, it has the same basename, so the bogon will be chosen
5920 # first if we set CC to just the basename; use the full file name.
5922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5928 if test -n "$CC"; then
5929 { echo "$as_me:$LINENO: result: $CC" >&5
5930 echo "${ECHO_T}$CC" >&6; }
5932 { echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6; }
5938 if test -z "$CC"; then
5939 if test -n "$ac_tool_prefix"; then
5940 for ac_prog in cl.exe
5942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946 if test "${ac_cv_prog_CC+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 if test -n "$CC"; then
5950 ac_cv_prog_CC="$CC" # Let the user override the test.
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 if test -n "$CC"; then
5971 { echo "$as_me:$LINENO: result: $CC" >&5
5972 echo "${ECHO_T}$CC" >&6; }
5974 { echo "$as_me:$LINENO: result: no" >&5
5975 echo "${ECHO_T}no" >&6; }
5979 test -n "$CC" && break
5982 if test -z "$CC"; then
5984 for ac_prog in cl.exe
5986 # Extract the first word of "$ac_prog", so it can be a program name with args.
5987 set dummy $ac_prog; ac_word=$2
5988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5990 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 if test -n "$ac_ct_CC"; then
5994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003 ac_cv_prog_ac_ct_CC="$ac_prog"
6004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6014 if test -n "$ac_ct_CC"; then
6015 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6016 echo "${ECHO_T}$ac_ct_CC" >&6; }
6018 { echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6; }
6023 test -n "$ac_ct_CC" && break
6026 if test "x$ac_ct_CC" = x; then
6029 case $cross_compiling:$ac_tool_warned in
6031 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6032 whose name does not start with the host triplet. If you think this
6033 configuration is useful to you, please write to autoconf@gnu.org." >&5
6034 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6035 whose name does not start with the host triplet. If you think this
6036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6037 ac_tool_warned=yes ;;
6046 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6047 See \`config.log' for more details." >&5
6048 echo "$as_me: error: no acceptable C compiler found in \$PATH
6049 See \`config.log' for more details." >&2;}
6050 { (exit 1); exit 1; }; }
6052 # Provide some information about the compiler.
6053 echo "$as_me:$LINENO: checking for C compiler version" >&5
6054 ac_compiler=`set X $ac_compile; echo $2`
6055 { (ac_try="$ac_compiler --version >&5"
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_compiler --version >&5") 2>&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }
6065 { (ac_try="$ac_compiler -v >&5"
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_compiler -v >&5") 2>&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }
6075 { (ac_try="$ac_compiler -V >&5"
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compiler -V >&5") 2>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }
6086 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6087 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
6088 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 cat >conftest.$ac_ext <<_ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6109 rm -f conftest.$ac_objext
6110 if { (ac_try="$ac_compile"
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compile") 2>conftest.er1
6118 grep -v '^ *+' conftest.er1 >conftest.err
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } && {
6123 test -z "$ac_c_werror_flag" ||
6124 test ! -s conftest.err
6125 } && test -s conftest.$ac_objext; then
6128 echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6138 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6139 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6140 GCC=`test $ac_compiler_gnu = yes && echo yes`
6141 ac_test_CFLAGS=${CFLAGS+set}
6142 ac_save_CFLAGS=$CFLAGS
6143 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6144 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_cc_g+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 ac_save_c_werror_flag=$ac_c_werror_flag
6149 ac_c_werror_flag=yes
6152 cat >conftest.$ac_ext <<_ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && {
6181 test -z "$ac_c_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_objext; then
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
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_objext
6206 if { (ac_try="$ac_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_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_objext; then
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 ac_c_werror_flag=$ac_save_c_werror_flag
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6244 rm -f conftest.$ac_objext
6245 if { (ac_try="$ac_compile"
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compile") 2>conftest.er1
6253 grep -v '^ *+' conftest.er1 >conftest.err
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } && {
6258 test -z "$ac_c_werror_flag" ||
6259 test ! -s conftest.err
6260 } && test -s conftest.$ac_objext; then
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 ac_c_werror_flag=$ac_save_c_werror_flag
6278 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6279 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6280 if test "$ac_test_CFLAGS" = set; then
6281 CFLAGS=$ac_save_CFLAGS
6282 elif test $ac_cv_prog_cc_g = yes; then
6283 if test "$GCC" = yes; then
6289 if test "$GCC" = yes; then
6295 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6296 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6297 if test "${ac_cv_prog_cc_c89+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 ac_cv_prog_cc_c89=no
6302 cat >conftest.$ac_ext <<_ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6310 #include <sys/types.h>
6311 #include <sys/stat.h>
6312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6313 struct buf { int x; };
6314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6315 static char *e (p, i)
6321 static char *f (char * (*g) (char **, int), char **p, ...)
6326 s = g (p, va_arg (v,int));
6331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6332 function prototypes and stuff, but not '\xHH' hex character constants.
6333 These don't provoke an error unfortunately, instead are silently treated
6334 as 'x'. The following induces an error, until -std is added to get
6335 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6336 array size at least. It's necessary to write '\x00'==0 to get something
6337 that's true only with -std. */
6338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6340 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6341 inside strings and character constants. */
6343 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6345 int test (int i, double x);
6346 struct s1 {int (*f) (int a);};
6347 struct s2 {int (*f) (double a);};
6348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6354 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6359 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6360 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6362 CC="$ac_save_CC $ac_arg"
6363 rm -f conftest.$ac_objext
6364 if { (ac_try="$ac_compile"
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_compile") 2>conftest.er1
6372 grep -v '^ *+' conftest.er1 >conftest.err
6374 cat conftest.err >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } && {
6377 test -z "$ac_c_werror_flag" ||
6378 test ! -s conftest.err
6379 } && test -s conftest.$ac_objext; then
6380 ac_cv_prog_cc_c89=$ac_arg
6382 echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6388 rm -f core conftest.err conftest.$ac_objext
6389 test "x$ac_cv_prog_cc_c89" != "xno" && break
6391 rm -f conftest.$ac_ext
6396 case "x$ac_cv_prog_cc_c89" in
6398 { echo "$as_me:$LINENO: result: none needed" >&5
6399 echo "${ECHO_T}none needed" >&6; } ;;
6401 { echo "$as_me:$LINENO: result: unsupported" >&5
6402 echo "${ECHO_T}unsupported" >&6; } ;;
6404 CC="$CC $ac_cv_prog_cc_c89"
6405 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6406 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6411 ac_cpp='$CPP $CPPFLAGS'
6412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6416 depcc="$CC" am_compiler_list=
6418 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6419 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6420 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6424 # We make a subdir and do the tests there. Otherwise we can end up
6425 # making bogus files that we don't know about and never remove. For
6426 # instance it was reported that on HP-UX the gcc test will end up
6427 # making a dummy file named `D' -- because `-MD' means `put the output
6430 # Copy depcomp to subdir because otherwise we won't find it if we're
6431 # using a relative directory.
6432 cp "$am_depcomp" conftest.dir
6434 # We will build objects and dependencies in a subdirectory because
6435 # it helps to detect inapplicable dependency modes. For instance
6436 # both Tru64's cc and ICC support -MD to output dependencies as a
6437 # side effect of compilation, but ICC will put the dependencies in
6438 # the current directory while Tru64 will put them in the object
6442 am_cv_CC_dependencies_compiler_type=none
6443 if test "$am_compiler_list" = ""; then
6444 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6446 for depmode in $am_compiler_list; do
6447 # Setup a source with many dependencies, because some compilers
6448 # like to wrap large dependency lists on column 80 (with \), and
6449 # we should not choose a depcomp mode which is confused by this.
6451 # We need to recreate these files for each test, as the compiler may
6452 # overwrite some of them when testing with obscure command lines.
6453 # This happens at least with the AIX C compiler.
6455 for i in 1 2 3 4 5 6; do
6456 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6457 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6458 # Solaris 8's {/usr,}/bin/sh.
6459 touch sub/conftst$i.h
6461 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6465 # after this tag, mechanisms are not by side-effect, so they'll
6466 # only be used when explicitly requested
6467 if test "x$enable_dependency_tracking" = xyes; then
6475 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6476 # mode. It turns out that the SunPro C++ compiler does not properly
6477 # handle `-M -o', and we need to detect this.
6478 if depmode=$depmode \
6479 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6480 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6481 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6482 >/dev/null 2>conftest.err &&
6483 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6484 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6485 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6486 # icc doesn't choke on unknown options, it will just issue warnings
6487 # or remarks (even with -Werror). So we grep stderr for any message
6488 # that says an option was ignored or not supported.
6489 # When given -MP, icc 7.0 and 7.1 complain thusly:
6490 # icc: Command line warning: ignoring option '-M'; no argument required
6491 # The diagnosis changed in icc 8.0:
6492 # icc: Command line remark: option '-MP' not supported
6493 if (grep 'ignoring option' conftest.err ||
6494 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6495 am_cv_CC_dependencies_compiler_type=$depmode
6504 am_cv_CC_dependencies_compiler_type=none
6508 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6509 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
6510 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6515 test "x$enable_dependency_tracking" != xno \
6516 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6518 am__fastdepCC_FALSE='#'
6520 am__fastdepCC_TRUE='#'
6521 am__fastdepCC_FALSE=
6526 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6529 ac_cpp='$OBJCPP $CPPFLAGS'
6530 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6531 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6532 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
6533 if test -n "$ac_tool_prefix"; then
6534 for ac_prog in gcc objcc objc cc CC
6536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540 if test "${ac_cv_prog_OBJC+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 if test -n "$OBJC"; then
6544 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
6554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 OBJC=$ac_cv_prog_OBJC
6564 if test -n "$OBJC"; then
6565 { echo "$as_me:$LINENO: result: $OBJC" >&5
6566 echo "${ECHO_T}$OBJC" >&6; }
6568 { echo "$as_me:$LINENO: result: no" >&5
6569 echo "${ECHO_T}no" >&6; }
6573 test -n "$OBJC" && break
6576 if test -z "$OBJC"; then
6578 for ac_prog in gcc objcc objc cc CC
6580 # Extract the first word of "$ac_prog", so it can be a program name with args.
6581 set dummy $ac_prog; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 if test -n "$ac_ct_OBJC"; then
6588 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_prog_ac_ct_OBJC="$ac_prog"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
6608 if test -n "$ac_ct_OBJC"; then
6609 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
6610 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
6612 { echo "$as_me:$LINENO: result: no" >&5
6613 echo "${ECHO_T}no" >&6; }
6617 test -n "$ac_ct_OBJC" && break
6620 if test "x$ac_ct_OBJC" = x; then
6623 case $cross_compiling:$ac_tool_warned in
6625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6626 whose name does not start with the host triplet. If you think this
6627 configuration is useful to you, please write to autoconf@gnu.org." >&5
6628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6629 whose name does not start with the host triplet. If you think this
6630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6631 ac_tool_warned=yes ;;
6637 # Provide some information about the compiler.
6638 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
6639 ac_compiler=`set X $ac_compile; echo $2`
6640 { (ac_try="$ac_compiler --version >&5"
6642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643 *) ac_try_echo=$ac_try;;
6645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6646 (eval "$ac_compiler --version >&5") 2>&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }
6650 { (ac_try="$ac_compiler -v >&5"
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656 (eval "$ac_compiler -v >&5") 2>&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }
6660 { (ac_try="$ac_compiler -V >&5"
6662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663 *) ac_try_echo=$ac_try;;
6665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6666 (eval "$ac_compiler -V >&5") 2>&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }
6671 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
6672 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
6673 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 cat >conftest.$ac_ext <<_ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6694 rm -f conftest.$ac_objext
6695 if { (ac_try="$ac_compile"
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_compile") 2>conftest.er1
6703 grep -v '^ *+' conftest.er1 >conftest.err
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && {
6708 test -z "$ac_objc_werror_flag" ||
6709 test ! -s conftest.err
6710 } && test -s conftest.$ac_objext; then
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
6723 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
6724 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
6725 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
6726 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
6727 ac_save_OBJCFLAGS=$OBJCFLAGS
6728 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
6729 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
6730 if test "${ac_cv_prog_objc_g+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 ac_save_objc_werror_flag=$ac_objc_werror_flag
6734 ac_objc_werror_flag=yes
6735 ac_cv_prog_objc_g=no
6737 cat >conftest.$ac_ext <<_ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6752 rm -f conftest.$ac_objext
6753 if { (ac_try="$ac_compile"
6755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756 *) ac_try_echo=$ac_try;;
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759 (eval "$ac_compile") 2>conftest.er1
6761 grep -v '^ *+' conftest.er1 >conftest.err
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } && {
6766 test -z "$ac_objc_werror_flag" ||
6767 test ! -s conftest.err
6768 } && test -s conftest.$ac_objext; then
6769 ac_cv_prog_objc_g=yes
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6775 cat >conftest.$ac_ext <<_ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6790 rm -f conftest.$ac_objext
6791 if { (ac_try="$ac_compile"
6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794 *) ac_try_echo=$ac_try;;
6796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6797 (eval "$ac_compile") 2>conftest.er1
6799 grep -v '^ *+' conftest.er1 >conftest.err
6801 cat conftest.err >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } && {
6804 test -z "$ac_objc_werror_flag" ||
6805 test ! -s conftest.err
6806 } && test -s conftest.$ac_objext; then
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6812 ac_objc_werror_flag=$ac_save_objc_werror_flag
6814 cat >conftest.$ac_ext <<_ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h. */
6829 rm -f conftest.$ac_objext
6830 if { (ac_try="$ac_compile"
6832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6833 *) ac_try_echo=$ac_try;;
6835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6836 (eval "$ac_compile") 2>conftest.er1
6838 grep -v '^ *+' conftest.er1 >conftest.err
6840 cat conftest.err >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && {
6843 test -z "$ac_objc_werror_flag" ||
6844 test ! -s conftest.err
6845 } && test -s conftest.$ac_objext; then
6846 ac_cv_prog_objc_g=yes
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 ac_objc_werror_flag=$ac_save_objc_werror_flag
6863 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
6864 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
6865 if test "$ac_test_OBJCFLAGS" = set; then
6866 OBJCFLAGS=$ac_save_OBJCFLAGS
6867 elif test $ac_cv_prog_objc_g = yes; then
6868 if test "$GOBJC" = yes; then
6874 if test "$GOBJC" = yes; then
6881 ac_cpp='$CPP $CPPFLAGS'
6882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6886 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6887 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6888 if test "${ac_cv_path_SED+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6892 for ac_i in 1 2 3 4 5 6 7; do
6893 ac_script="$ac_script$as_nl$ac_script"
6895 echo "$ac_script" | sed 99q >conftest.sed
6896 $as_unset ac_script || ac_script=
6897 # Extract the first word of "sed gsed" to use in msg output
6898 if test -z "$SED"; then
6899 set dummy sed gsed; ac_prog_name=$2
6900 if test "${ac_cv_path_SED+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 ac_path_SED_found=false
6904 # Loop through the user's path and test for each of PROGNAME-LIST
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_prog in sed gsed; do
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6913 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6914 # Check for GNU ac_path_SED and select it if it is found.
6915 # Check for GNU $ac_path_SED
6916 case `"$ac_path_SED" --version 2>&1` in
6918 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6921 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6924 cat "conftest.in" "conftest.in" >"conftest.tmp"
6925 mv "conftest.tmp" "conftest.in"
6926 cp "conftest.in" "conftest.nl"
6927 echo '' >> "conftest.nl"
6928 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6930 ac_count=`expr $ac_count + 1`
6931 if test $ac_count -gt ${ac_path_SED_max-0}; then
6932 # Best one so far, save it but keep looking for a better one
6933 ac_cv_path_SED="$ac_path_SED"
6934 ac_path_SED_max=$ac_count
6936 # 10*(2^10) chars as input seems more than enough
6937 test $ac_count -gt 10 && break
6939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6943 $ac_path_SED_found && break 3
6953 SED="$ac_cv_path_SED"
6954 if test -z "$SED"; then
6955 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6956 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6957 { (exit 1); exit 1; }; }
6965 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6966 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6967 SED="$ac_cv_path_SED"
6970 # By default we simply use the C compiler to build assembly code.
6972 test "${CCAS+set}" = set || CCAS=$CC
6973 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6978 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6979 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_GREP+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 # Extract the first word of "grep ggrep" to use in msg output
6984 if test -z "$GREP"; then
6985 set dummy grep ggrep; ac_prog_name=$2
6986 if test "${ac_cv_path_GREP+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 ac_path_GREP_found=false
6990 # Loop through the user's path and test for each of PROGNAME-LIST
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6995 test -z "$as_dir" && as_dir=.
6996 for ac_prog in grep ggrep; do
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6999 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7000 # Check for GNU ac_path_GREP and select it if it is found.
7001 # Check for GNU $ac_path_GREP
7002 case `"$ac_path_GREP" --version 2>&1` in
7004 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7007 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7010 cat "conftest.in" "conftest.in" >"conftest.tmp"
7011 mv "conftest.tmp" "conftest.in"
7012 cp "conftest.in" "conftest.nl"
7013 echo 'GREP' >> "conftest.nl"
7014 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7016 ac_count=`expr $ac_count + 1`
7017 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7018 # Best one so far, save it but keep looking for a better one
7019 ac_cv_path_GREP="$ac_path_GREP"
7020 ac_path_GREP_max=$ac_count
7022 # 10*(2^10) chars as input seems more than enough
7023 test $ac_count -gt 10 && break
7025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7029 $ac_path_GREP_found && break 3
7039 GREP="$ac_cv_path_GREP"
7040 if test -z "$GREP"; then
7041 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7042 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7043 { (exit 1); exit 1; }; }
7047 ac_cv_path_GREP=$GREP
7052 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7053 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7054 GREP="$ac_cv_path_GREP"
7057 { echo "$as_me:$LINENO: checking for egrep" >&5
7058 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7059 if test "${ac_cv_path_EGREP+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7063 then ac_cv_path_EGREP="$GREP -E"
7065 # Extract the first word of "egrep" to use in msg output
7066 if test -z "$EGREP"; then
7067 set dummy egrep; ac_prog_name=$2
7068 if test "${ac_cv_path_EGREP+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 ac_path_EGREP_found=false
7072 # Loop through the user's path and test for each of PROGNAME-LIST
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7077 test -z "$as_dir" && as_dir=.
7078 for ac_prog in egrep; do
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7081 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7082 # Check for GNU ac_path_EGREP and select it if it is found.
7083 # Check for GNU $ac_path_EGREP
7084 case `"$ac_path_EGREP" --version 2>&1` in
7086 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7089 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7092 cat "conftest.in" "conftest.in" >"conftest.tmp"
7093 mv "conftest.tmp" "conftest.in"
7094 cp "conftest.in" "conftest.nl"
7095 echo 'EGREP' >> "conftest.nl"
7096 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7098 ac_count=`expr $ac_count + 1`
7099 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7100 # Best one so far, save it but keep looking for a better one
7101 ac_cv_path_EGREP="$ac_path_EGREP"
7102 ac_path_EGREP_max=$ac_count
7104 # 10*(2^10) chars as input seems more than enough
7105 test $ac_count -gt 10 && break
7107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7111 $ac_path_EGREP_found && break 3
7121 EGREP="$ac_cv_path_EGREP"
7122 if test -z "$EGREP"; then
7123 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7124 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7125 { (exit 1); exit 1; }; }
7129 ac_cv_path_EGREP=$EGREP
7135 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7136 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7137 EGREP="$ac_cv_path_EGREP"
7140 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7142 if test "${ac_cv_header_stdc+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 cat >conftest.$ac_ext <<_ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_compile") 2>conftest.er1
7173 grep -v '^ *+' conftest.er1 >conftest.err
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest.$ac_objext; then
7181 ac_cv_header_stdc=yes
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7186 ac_cv_header_stdc=no
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 if test $ac_cv_header_stdc = yes; then
7192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7193 cat >conftest.$ac_ext <<_ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 $EGREP "memchr" >/dev/null 2>&1; then
7206 ac_cv_header_stdc=no
7212 if test $ac_cv_header_stdc = yes; then
7213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7214 cat >conftest.$ac_ext <<_ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7224 $EGREP "free" >/dev/null 2>&1; then
7227 ac_cv_header_stdc=no
7233 if test $ac_cv_header_stdc = yes; then
7234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7235 if test "$cross_compiling" = yes; then
7238 cat >conftest.$ac_ext <<_ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7246 #if ((' ' & 0x0FF) == 0x020)
7247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7250 # define ISLOWER(c) \
7251 (('a' <= (c) && (c) <= 'i') \
7252 || ('j' <= (c) && (c) <= 'r') \
7253 || ('s' <= (c) && (c) <= 'z'))
7254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7262 for (i = 0; i < 256; i++)
7263 if (XOR (islower (i), ISLOWER (i))
7264 || toupper (i) != TOUPPER (i))
7269 rm -f conftest$ac_exeext
7270 if { (ac_try="$ac_link"
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_link") 2>&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7280 { (case "(($ac_try" in
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_try") 2>&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; }; then
7291 echo "$as_me: program exited with status $ac_status" >&5
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7296 ac_cv_header_stdc=no
7298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7304 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7305 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7306 if test $ac_cv_header_stdc = yes; then
7308 cat >>confdefs.h <<\_ACEOF
7309 #define STDC_HEADERS 1
7314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7325 inttypes.h stdint.h unistd.h
7327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 cat >conftest.$ac_ext <<_ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 $ac_includes_default
7341 #include <$ac_header>
7343 rm -f conftest.$ac_objext
7344 if { (ac_try="$ac_compile"
7346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350 (eval "$ac_compile") 2>conftest.er1
7352 grep -v '^ *+' conftest.er1 >conftest.err
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest.$ac_objext; then
7360 eval "$as_ac_Header=yes"
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 eval "$as_ac_Header=no"
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370 ac_res=`eval echo '${'$as_ac_Header'}'`
7371 { echo "$as_me:$LINENO: result: $ac_res" >&5
7372 echo "${ECHO_T}$ac_res" >&6; }
7373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7374 cat >>confdefs.h <<_ACEOF
7375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7383 { echo "$as_me:$LINENO: checking for void *" >&5
7384 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7385 if test "${ac_cv_type_void_p+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 cat >conftest.$ac_ext <<_ACEOF
7391 cat confdefs.h >>conftest.$ac_ext
7392 cat >>conftest.$ac_ext <<_ACEOF
7393 /* end confdefs.h. */
7394 $ac_includes_default
7395 typedef void * ac__type_new_;
7399 if ((ac__type_new_ *) 0)
7401 if (sizeof (ac__type_new_))
7407 rm -f conftest.$ac_objext
7408 if { (ac_try="$ac_compile"
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7414 (eval "$ac_compile") 2>conftest.er1
7416 grep -v '^ *+' conftest.er1 >conftest.err
7418 cat conftest.err >&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_c_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest.$ac_objext; then
7424 ac_cv_type_void_p=yes
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 ac_cv_type_void_p=no
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7435 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7437 # The cast to long int works around a bug in the HP C Compiler
7438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7440 # This bug is HP SR number 8606223364.
7441 { echo "$as_me:$LINENO: checking size of void *" >&5
7442 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7443 if test "${ac_cv_sizeof_void_p+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 if test "$cross_compiling" = yes; then
7447 # Depending upon the size, compute the lo and hi bounds.
7448 cat >conftest.$ac_ext <<_ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 $ac_includes_default
7455 typedef void * ac__type_sizeof_;
7459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7466 rm -f conftest.$ac_objext
7467 if { (ac_try="$ac_compile"
7469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470 *) ac_try_echo=$ac_try;;
7472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7473 (eval "$ac_compile") 2>conftest.er1
7475 grep -v '^ *+' conftest.er1 >conftest.err
7477 cat conftest.err >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && {
7480 test -z "$ac_c_werror_flag" ||
7481 test ! -s conftest.err
7482 } && test -s conftest.$ac_objext; then
7485 cat >conftest.$ac_ext <<_ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7491 $ac_includes_default
7492 typedef void * ac__type_sizeof_;
7496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7503 rm -f conftest.$ac_objext
7504 if { (ac_try="$ac_compile"
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510 (eval "$ac_compile") 2>conftest.er1
7512 grep -v '^ *+' conftest.er1 >conftest.err
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } && {
7517 test -z "$ac_c_werror_flag" ||
7518 test ! -s conftest.err
7519 } && test -s conftest.$ac_objext; then
7520 ac_hi=$ac_mid; break
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7525 ac_lo=`expr $ac_mid + 1`
7526 if test $ac_lo -le $ac_mid; then
7530 ac_mid=`expr 2 '*' $ac_mid + 1`
7533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7539 cat >conftest.$ac_ext <<_ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 $ac_includes_default
7546 typedef void * ac__type_sizeof_;
7550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564 (eval "$ac_compile") 2>conftest.er1
7566 grep -v '^ *+' conftest.er1 >conftest.err
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } && {
7571 test -z "$ac_c_werror_flag" ||
7572 test ! -s conftest.err
7573 } && test -s conftest.$ac_objext; then
7576 cat >conftest.$ac_ext <<_ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 $ac_includes_default
7583 typedef void * ac__type_sizeof_;
7587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_compile") 2>conftest.er1
7603 grep -v '^ *+' conftest.er1 >conftest.err
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } && {
7608 test -z "$ac_c_werror_flag" ||
7609 test ! -s conftest.err
7610 } && test -s conftest.$ac_objext; then
7611 ac_lo=$ac_mid; break
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7616 ac_hi=`expr '(' $ac_mid ')' - 1`
7617 if test $ac_mid -le $ac_hi; then
7621 ac_mid=`expr 2 '*' $ac_mid`
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7637 # Binary search between lo and hi bounds.
7638 while test "x$ac_lo" != "x$ac_hi"; do
7639 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7640 cat >conftest.$ac_ext <<_ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 $ac_includes_default
7647 typedef void * ac__type_sizeof_;
7651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7658 rm -f conftest.$ac_objext
7659 if { (ac_try="$ac_compile"
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7665 (eval "$ac_compile") 2>conftest.er1
7667 grep -v '^ *+' conftest.er1 >conftest.err
7669 cat conftest.err >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } && {
7672 test -z "$ac_c_werror_flag" ||
7673 test ! -s conftest.err
7674 } && test -s conftest.$ac_objext; then
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7680 ac_lo=`expr '(' $ac_mid ')' + 1`
7683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7686 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7687 '') if test "$ac_cv_type_void_p" = yes; then
7688 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7689 See \`config.log' for more details." >&5
7690 echo "$as_me: error: cannot compute sizeof (void *)
7691 See \`config.log' for more details." >&2;}
7692 { (exit 77); exit 77; }; }
7694 ac_cv_sizeof_void_p=0
7698 cat >conftest.$ac_ext <<_ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704 $ac_includes_default
7705 typedef void * ac__type_sizeof_;
7706 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7707 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7714 FILE *f = fopen ("conftest.val", "w");
7717 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7719 long int i = longval ();
7720 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7722 fprintf (f, "%ld\n", i);
7726 unsigned long int i = ulongval ();
7727 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7729 fprintf (f, "%lu\n", i);
7731 return ferror (f) || fclose (f) != 0;
7737 rm -f conftest$ac_exeext
7738 if { (ac_try="$ac_link"
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_link") 2>&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7748 { (case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_try") 2>&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 ac_cv_sizeof_void_p=`cat conftest.val`
7759 echo "$as_me: program exited with status $ac_status" >&5
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7764 if test "$ac_cv_type_void_p" = yes; then
7765 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7766 See \`config.log' for more details." >&5
7767 echo "$as_me: error: cannot compute sizeof (void *)
7768 See \`config.log' for more details." >&2;}
7769 { (exit 77); exit 77; }; }
7771 ac_cv_sizeof_void_p=0
7774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7778 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7779 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
7783 cat >>confdefs.h <<_ACEOF
7784 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7788 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7789 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7790 if test "${ac_cv_header_stdc+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 cat >conftest.$ac_ext <<_ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7812 rm -f conftest.$ac_objext
7813 if { (ac_try="$ac_compile"
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819 (eval "$ac_compile") 2>conftest.er1
7821 grep -v '^ *+' conftest.er1 >conftest.err
7823 cat conftest.err >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } && {
7826 test -z "$ac_c_werror_flag" ||
7827 test ! -s conftest.err
7828 } && test -s conftest.$ac_objext; then
7829 ac_cv_header_stdc=yes
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7834 ac_cv_header_stdc=no
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 if test $ac_cv_header_stdc = yes; then
7840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7841 cat >conftest.$ac_ext <<_ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7851 $EGREP "memchr" >/dev/null 2>&1; then
7854 ac_cv_header_stdc=no
7860 if test $ac_cv_header_stdc = yes; then
7861 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7862 cat >conftest.$ac_ext <<_ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7872 $EGREP "free" >/dev/null 2>&1; then
7875 ac_cv_header_stdc=no
7881 if test $ac_cv_header_stdc = yes; then
7882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7883 if test "$cross_compiling" = yes; then
7886 cat >conftest.$ac_ext <<_ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7894 #if ((' ' & 0x0FF) == 0x020)
7895 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7896 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7898 # define ISLOWER(c) \
7899 (('a' <= (c) && (c) <= 'i') \
7900 || ('j' <= (c) && (c) <= 'r') \
7901 || ('s' <= (c) && (c) <= 'z'))
7902 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7905 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7910 for (i = 0; i < 256; i++)
7911 if (XOR (islower (i), ISLOWER (i))
7912 || toupper (i) != TOUPPER (i))
7917 rm -f conftest$ac_exeext
7918 if { (ac_try="$ac_link"
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924 (eval "$ac_link") 2>&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7928 { (case "(($ac_try" in
7929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930 *) ac_try_echo=$ac_try;;
7932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7933 (eval "$ac_try") 2>&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); }; }; then
7939 echo "$as_me: program exited with status $ac_status" >&5
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7944 ac_cv_header_stdc=no
7946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7952 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7953 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7954 if test $ac_cv_header_stdc = yes; then
7956 cat >>confdefs.h <<\_ACEOF
7957 #define STDC_HEADERS 1
7962 # Make sure we can run config.sub.
7963 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7964 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
7965 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
7966 { (exit 1); exit 1; }; }
7968 { echo "$as_me:$LINENO: checking build system type" >&5
7969 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
7970 if test "${ac_cv_build+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 ac_build_alias=$build_alias
7974 test "x$ac_build_alias" = x &&
7975 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7976 test "x$ac_build_alias" = x &&
7977 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7978 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7979 { (exit 1); exit 1; }; }
7980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
7982 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
7983 { (exit 1); exit 1; }; }
7986 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7987 echo "${ECHO_T}$ac_cv_build" >&6; }
7988 case $ac_cv_build in
7990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
7991 echo "$as_me: error: invalid value of canonical build" >&2;}
7992 { (exit 1); exit 1; }; };;
7995 ac_save_IFS=$IFS; IFS='-'
8001 # Remember, the first character of IFS is used to create $*,
8002 # except with old shells:
8005 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8008 { echo "$as_me:$LINENO: checking host system type" >&5
8009 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
8010 if test "${ac_cv_host+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 if test "x$host_alias" = x; then
8014 ac_cv_host=$ac_cv_build
8016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8017 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
8018 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
8019 { (exit 1); exit 1; }; }
8023 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8024 echo "${ECHO_T}$ac_cv_host" >&6; }
8027 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
8028 echo "$as_me: error: invalid value of canonical host" >&2;}
8029 { (exit 1); exit 1; }; };;
8032 ac_save_IFS=$IFS; IFS='-'
8038 # Remember, the first character of IFS is used to create $*,
8039 # except with old shells:
8042 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8047 depcc="$OBJC" am_compiler_list='gcc3 gcc'
8049 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8050 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8051 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8055 # We make a subdir and do the tests there. Otherwise we can end up
8056 # making bogus files that we don't know about and never remove. For
8057 # instance it was reported that on HP-UX the gcc test will end up
8058 # making a dummy file named `D' -- because `-MD' means `put the output
8061 # Copy depcomp to subdir because otherwise we won't find it if we're
8062 # using a relative directory.
8063 cp "$am_depcomp" conftest.dir
8065 # We will build objects and dependencies in a subdirectory because
8066 # it helps to detect inapplicable dependency modes. For instance
8067 # both Tru64's cc and ICC support -MD to output dependencies as a
8068 # side effect of compilation, but ICC will put the dependencies in
8069 # the current directory while Tru64 will put them in the object
8073 am_cv_OBJC_dependencies_compiler_type=none
8074 if test "$am_compiler_list" = ""; then
8075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8077 for depmode in $am_compiler_list; do
8078 # Setup a source with many dependencies, because some compilers
8079 # like to wrap large dependency lists on column 80 (with \), and
8080 # we should not choose a depcomp mode which is confused by this.
8082 # We need to recreate these files for each test, as the compiler may
8083 # overwrite some of them when testing with obscure command lines.
8084 # This happens at least with the AIX C compiler.
8086 for i in 1 2 3 4 5 6; do
8087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8089 # Solaris 8's {/usr,}/bin/sh.
8090 touch sub/conftst$i.h
8092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8096 # after this tag, mechanisms are not by side-effect, so they'll
8097 # only be used when explicitly requested
8098 if test "x$enable_dependency_tracking" = xyes; then
8106 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8107 # mode. It turns out that the SunPro C++ compiler does not properly
8108 # handle `-M -o', and we need to detect this.
8109 if depmode=$depmode \
8110 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8111 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8112 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8113 >/dev/null 2>conftest.err &&
8114 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8115 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8116 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8117 # icc doesn't choke on unknown options, it will just issue warnings
8118 # or remarks (even with -Werror). So we grep stderr for any message
8119 # that says an option was ignored or not supported.
8120 # When given -MP, icc 7.0 and 7.1 complain thusly:
8121 # icc: Command line warning: ignoring option '-M'; no argument required
8122 # The diagnosis changed in icc 8.0:
8123 # icc: Command line remark: option '-MP' not supported
8124 if (grep 'ignoring option' conftest.err ||
8125 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8126 am_cv_OBJC_dependencies_compiler_type=$depmode
8135 am_cv_OBJC_dependencies_compiler_type=none
8139 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
8140 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
8141 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
8146 test "x$enable_dependency_tracking" != xno \
8147 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
8148 am__fastdepOBJC_TRUE=
8149 am__fastdepOBJC_FALSE='#'
8151 am__fastdepOBJC_TRUE='#'
8152 am__fastdepOBJC_FALSE=
8157 # Extract the first word of "pod2man", so it can be a program name with args.
8158 set dummy pod2man; ac_word=$2
8159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8161 if test "${ac_cv_path_POD2MAN+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8176 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 POD2MAN=$ac_cv_path_POD2MAN
8188 if test -n "$POD2MAN"; then
8189 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8190 echo "${ECHO_T}$POD2MAN" >&6; }
8192 { echo "$as_me:$LINENO: result: no" >&5
8193 echo "${ECHO_T}no" >&6; }
8197 # Extract the first word of "pod2html", so it can be a program name with args.
8198 set dummy pod2html; ac_word=$2
8199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8201 if test "${ac_cv_path_POD2HTML+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 POD2HTML=$ac_cv_path_POD2HTML
8228 if test -n "$POD2HTML"; then
8229 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8230 echo "${ECHO_T}$POD2HTML" >&6; }
8232 { echo "$as_me:$LINENO: result: no" >&5
8233 echo "${ECHO_T}no" >&6; }
8239 # Check whether --enable-strict-warn was given.
8240 if test "${enable_strict_warn+set}" = set; then
8241 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
8242 enable_strictwarn=yes
8246 # Check whether --enable-translator was given.
8247 if test "${enable_translator+set}" = set; then
8248 enableval=$enable_translator; true
8250 enable_translator=yes
8253 # Check whether --enable-optimized was given.
8254 if test "${enable_optimized+set}" = set; then
8255 enableval=$enable_optimized; true
8257 enable_optimized=yes
8260 # Check whether --enable-shared was given.
8261 if test "${enable_shared+set}" = set; then
8262 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
8267 # Check whether --enable-profiled was given.
8268 if test "${enable_profiled+set}" = set; then
8269 enableval=$enable_profiled; if test "$enableval" == "yes"; then
8270 enable_profiled=yes;
8274 # Check whether --enable-trace was given.
8275 if test "${enable_trace+set}" = set; then
8276 enableval=$enable_trace; if test "$enableval" == "yes"; then
8278 cat >>confdefs.h <<\_ACEOF
8279 #define ENABLE_TRACE_IO 1
8285 # Check whether --enable-watch was given.
8286 if test "${enable_watch+set}" = set; then
8287 enableval=$enable_watch; if test "$enableval" == "yes"; then
8289 cat >>confdefs.h <<\_ACEOF
8290 #define ENABLE_WATCH 1
8296 # Check whether --enable-sh4stats was given.
8297 if test "${enable_sh4stats+set}" = set; then
8298 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
8300 cat >>confdefs.h <<\_ACEOF
8301 #define ENABLE_SH4STATS 1
8308 # Check whether --with-osmesa was given.
8309 if test "${with_osmesa+set}" = set; then
8310 withval=$with_osmesa;
8316 # Check whether --with-gtk was given.
8317 if test "${with_gtk+set}" = set; then
8318 withval=$with_gtk; with_gtk=yes
8324 # Check whether --with-esd was given.
8325 if test "${with_esd+set}" = set; then
8330 # Check whether --with-pulse was given.
8331 if test "${with_pulse+set}" = set; then
8332 withval=$with_pulse;
8336 # Check whether --with-sdl was given.
8337 if test "${with_sdl+set}" = set; then
8347 ac_cpp='$OBJCPP $CPPFLAGS'
8348 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8349 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8350 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8351 if test -n "$ac_tool_prefix"; then
8352 for ac_prog in gcc objcc objc cc CC
8354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358 if test "${ac_cv_prog_OBJC+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 if test -n "$OBJC"; then
8362 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
8372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 OBJC=$ac_cv_prog_OBJC
8382 if test -n "$OBJC"; then
8383 { echo "$as_me:$LINENO: result: $OBJC" >&5
8384 echo "${ECHO_T}$OBJC" >&6; }
8386 { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8391 test -n "$OBJC" && break
8394 if test -z "$OBJC"; then
8396 for ac_prog in gcc objcc objc cc CC
8398 # Extract the first word of "$ac_prog", so it can be a program name with args.
8399 set dummy $ac_prog; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 if test -n "$ac_ct_OBJC"; then
8406 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8415 ac_cv_prog_ac_ct_OBJC="$ac_prog"
8416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
8426 if test -n "$ac_ct_OBJC"; then
8427 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
8428 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
8430 { echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6; }
8435 test -n "$ac_ct_OBJC" && break
8438 if test "x$ac_ct_OBJC" = x; then
8441 case $cross_compiling:$ac_tool_warned in
8443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8444 whose name does not start with the host triplet. If you think this
8445 configuration is useful to you, please write to autoconf@gnu.org." >&5
8446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet. If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8449 ac_tool_warned=yes ;;
8455 # Provide some information about the compiler.
8456 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
8457 ac_compiler=`set X $ac_compile; echo $2`
8458 { (ac_try="$ac_compiler --version >&5"
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_compiler --version >&5") 2>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }
8468 { (ac_try="$ac_compiler -v >&5"
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_compiler -v >&5") 2>&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }
8478 { (ac_try="$ac_compiler -V >&5"
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_compiler -V >&5") 2>&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }
8489 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
8490 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
8491 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 cat >conftest.$ac_ext <<_ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8512 rm -f conftest.$ac_objext
8513 if { (ac_try="$ac_compile"
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_compile") 2>conftest.er1
8521 grep -v '^ *+' conftest.er1 >conftest.err
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } && {
8526 test -z "$ac_objc_werror_flag" ||
8527 test ! -s conftest.err
8528 } && test -s conftest.$ac_objext; then
8531 echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
8541 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
8542 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
8543 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
8544 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
8545 ac_save_OBJCFLAGS=$OBJCFLAGS
8546 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
8547 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
8548 if test "${ac_cv_prog_objc_g+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 ac_save_objc_werror_flag=$ac_objc_werror_flag
8552 ac_objc_werror_flag=yes
8553 ac_cv_prog_objc_g=no
8555 cat >conftest.$ac_ext <<_ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8570 rm -f conftest.$ac_objext
8571 if { (ac_try="$ac_compile"
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_compile") 2>conftest.er1
8579 grep -v '^ *+' conftest.er1 >conftest.err
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } && {
8584 test -z "$ac_objc_werror_flag" ||
8585 test ! -s conftest.err
8586 } && test -s conftest.$ac_objext; then
8587 ac_cv_prog_objc_g=yes
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8593 cat >conftest.$ac_ext <<_ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8608 rm -f conftest.$ac_objext
8609 if { (ac_try="$ac_compile"
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_compile") 2>conftest.er1
8617 grep -v '^ *+' conftest.er1 >conftest.err
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } && {
8622 test -z "$ac_objc_werror_flag" ||
8623 test ! -s conftest.err
8624 } && test -s conftest.$ac_objext; then
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8630 ac_objc_werror_flag=$ac_save_objc_werror_flag
8632 cat >conftest.$ac_ext <<_ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8647 rm -f conftest.$ac_objext
8648 if { (ac_try="$ac_compile"
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_compile") 2>conftest.er1
8656 grep -v '^ *+' conftest.er1 >conftest.err
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } && {
8661 test -z "$ac_objc_werror_flag" ||
8662 test ! -s conftest.err
8663 } && test -s conftest.$ac_objext; then
8664 ac_cv_prog_objc_g=yes
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 ac_objc_werror_flag=$ac_save_objc_werror_flag
8681 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
8682 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
8683 if test "$ac_test_OBJCFLAGS" = set; then
8684 OBJCFLAGS=$ac_save_OBJCFLAGS
8685 elif test $ac_cv_prog_objc_g = yes; then
8686 if test "$GOBJC" = yes; then
8692 if test "$GOBJC" = yes; then
8699 ac_cpp='$CPP $CPPFLAGS'
8700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8704 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
8705 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
8707 ac_cpp='$OBJCPP $CPPFLAGS'
8708 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8709 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8710 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8711 cat >conftest.$ac_ext <<_ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8726 rm -f conftest.$ac_objext
8727 if { (ac_try="$ac_compile"
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_compile") 2>conftest.er1
8735 grep -v '^ *+' conftest.er1 >conftest.err
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } && {
8740 test -z "$ac_objc_werror_flag" ||
8741 test ! -s conftest.err
8742 } && test -s conftest.$ac_objext; then
8743 { echo "$as_me:$LINENO: result: yes" >&5
8744 echo "${ECHO_T}yes" >&6; }
8746 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
8747 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
8748 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 cat >conftest.$ac_ext <<_ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h. */
8757 $ac_includes_default
8759 #include <Cocoa/Cocoa.h>
8761 rm -f conftest.$ac_objext
8762 if { (ac_try="$ac_compile"
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_compile") 2>conftest.er1
8770 grep -v '^ *+' conftest.er1 >conftest.err
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && {
8775 test -z "$ac_objc_werror_flag" ||
8776 test ! -s conftest.err
8777 } && test -s conftest.$ac_objext; then
8778 ac_cv_header_Cocoa_Cocoa_h=yes
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_cv_header_Cocoa_Cocoa_h=no
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8788 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
8789 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
8790 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
8794 LIBS="$LIBS -framework AppKit -framework Carbon"
8795 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"
8796 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
8797 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
8799 cat >>confdefs.h <<\_ACEOF
8800 #define HAVE_COCOA 1
8804 cat >>confdefs.h <<\_ACEOF
8805 #define APPLE_BUILD 1
8808 if test "x$with_gtk" = "xx11"; then
8817 { echo "$as_me:$LINENO: checking OBJC version" >&5
8818 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
8819 if test -n "$OBJC"; then
8820 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
8821 if test -n "$_GOBJC_VERSION"; then
8822 { echo "$as_me:$LINENO: result: GCC" >&5
8823 echo "${ECHO_T}GCC" >&6; }
8825 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
8827 { echo "$as_me:$LINENO: result: Unknown" >&5
8828 echo "${ECHO_T}Unknown" >&6; }
8832 { echo "$as_me:$LINENO: result: None" >&5
8833 echo "${ECHO_T}None" >&6; }
8839 ac_cpp='$OBJCPP $CPPFLAGS'
8840 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8841 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8842 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8844 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
8845 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
8846 save_OBJCFLAGS="$OBJCFLAGS"
8847 OBJCFLAGS="-msse2 $OBJCFLAGS"
8848 cat >conftest.$ac_ext <<_ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 int main() { return 0; }
8857 rm -f conftest.$ac_objext
8858 if { (ac_try="$ac_compile"
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864 (eval "$ac_compile") 2>conftest.er1
8866 grep -v '^ *+' conftest.er1 >conftest.err
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } && {
8871 test -z "$ac_objc_werror_flag" ||
8872 test ! -s conftest.err
8873 } && test -s conftest.$ac_objext; then
8875 { echo "$as_me:$LINENO: result: yes" >&5
8876 echo "${ECHO_T}yes" >&6; }
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8883 OBJCFLAGS="$save_OBJCFLAGS"
8884 { echo "$as_me:$LINENO: result: no" >&5
8885 echo "${ECHO_T}no" >&6; }
8889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8891 ac_cpp='$OBJCPP $CPPFLAGS'
8892 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8893 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8894 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8899 ac_cpp='$OBJCPP $CPPFLAGS'
8900 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8901 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8902 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8904 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
8905 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
8906 save_OBJCFLAGS="$OBJCFLAGS"
8907 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
8908 cat >conftest.$ac_ext <<_ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8915 int main() { return 0; }
8917 rm -f conftest.$ac_objext
8918 if { (ac_try="$ac_compile"
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_compile") 2>conftest.er1
8926 grep -v '^ *+' conftest.er1 >conftest.err
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && {
8931 test -z "$ac_objc_werror_flag" ||
8932 test ! -s conftest.err
8933 } && test -s conftest.$ac_objext; then
8935 { echo "$as_me:$LINENO: result: yes" >&5
8936 echo "${ECHO_T}yes" >&6; }
8939 echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8943 OBJCFLAGS="$save_OBJCFLAGS"
8944 { echo "$as_me:$LINENO: result: no" >&5
8945 echo "${ECHO_T}no" >&6; }
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8951 ac_cpp='$OBJCPP $CPPFLAGS'
8952 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8953 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8954 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8962 { echo "$as_me:$LINENO: result: No" >&5
8963 echo "${ECHO_T}No" >&6; }
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
8969 ac_cpp='$CPP $CPPFLAGS'
8970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8978 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
8986 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
8988 cat >>confdefs.h <<\_ACEOF
8989 #define OSX_BUNDLE 1
8994 CFLAGS="-g -fexceptions"
8995 OBJCFLAGS="-g -fexceptions"
8997 cat >>confdefs.h <<\_ACEOF
8998 #define HAVE_EXCEPTIONS 1
9004 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
9005 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
9006 { echo "$as_me:$LINENO: checking CC version" >&5
9007 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
9008 if test -n "$_ICC_VERSION"; then
9009 { echo "$as_me:$LINENO: result: ICC" >&5
9010 echo "${ECHO_T}ICC" >&6; }
9011 CCOPT="$CFLAGS -fast"
9012 CFLAGS="$CFLAGS -fno-strict-aliasing"
9013 elif test -n "$_GCC_VERSION"; then
9014 { echo "$as_me:$LINENO: result: GCC" >&5
9015 echo "${ECHO_T}GCC" >&6; }
9017 CFLAGS="$CFLAGS -fno-strict-aliasing"
9019 { echo "$as_me:$LINENO: result: Unknown" >&5
9020 echo "${ECHO_T}Unknown" >&6; }
9026 ac_cpp='$CPP $CPPFLAGS'
9027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9031 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
9032 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
9033 save_CFLAGS="$CFLAGS"
9034 CFLAGS="-msse2 $CFLAGS"
9035 cat >conftest.$ac_ext <<_ACEOF
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h. */
9042 int main() { return 0; }
9044 rm -f conftest.$ac_objext
9045 if { (ac_try="$ac_compile"
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_compile") 2>conftest.er1
9053 grep -v '^ *+' conftest.er1 >conftest.err
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } && {
9058 test -z "$ac_c_werror_flag" ||
9059 test ! -s conftest.err
9060 } && test -s conftest.$ac_objext; then
9062 { echo "$as_me:$LINENO: result: yes" >&5
9063 echo "${ECHO_T}yes" >&6; }
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9070 CFLAGS="$save_CFLAGS"
9071 { echo "$as_me:$LINENO: result: no" >&5
9072 echo "${ECHO_T}no" >&6; }
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9078 ac_cpp='$CPP $CPPFLAGS'
9079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9086 ac_cpp='$CPP $CPPFLAGS'
9087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9091 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
9092 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
9093 save_CFLAGS="$CFLAGS"
9094 CFLAGS="-mfpmath=sse $CFLAGS"
9095 cat >conftest.$ac_ext <<_ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 int main() { return 0; }
9104 rm -f conftest.$ac_objext
9105 if { (ac_try="$ac_compile"
9107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108 *) ac_try_echo=$ac_try;;
9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9111 (eval "$ac_compile") 2>conftest.er1
9113 grep -v '^ *+' conftest.er1 >conftest.err
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } && {
9118 test -z "$ac_c_werror_flag" ||
9119 test ! -s conftest.err
9120 } && test -s conftest.$ac_objext; then
9122 { echo "$as_me:$LINENO: result: yes" >&5
9123 echo "${ECHO_T}yes" >&6; }
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9130 CFLAGS="$save_CFLAGS"
9131 { echo "$as_me:$LINENO: result: no" >&5
9132 echo "${ECHO_T}no" >&6; }
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138 ac_cpp='$CPP $CPPFLAGS'
9139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9145 if test "x$enable_optimized" = "xyes"; then
9146 CFLAGS="$CFLAGS $CCOPT"
9147 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
9148 if test "x$enable_profiled" != "xyes"; then
9149 CFLAGS="$CFLAGS -fomit-frame-pointer"
9150 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
9153 CFLAGS="$CFLAGS -g3"
9154 OBJCFLAGS="$OBJCFLAGS -g3"
9157 if test "x$enable_profiled" = "xyes"; then
9158 CFLAGS="$CFLAGS -pg"
9159 LDFLAGS="$LDFLAGS -pg";
9160 OBJCFLAGS="$OBJCFLAGS -pg";
9163 if test "x$enable_strictwarn" = "xyes"; then
9164 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
9165 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
9168 if test "x$enable_shared" != "xno"; then
9170 cat >>confdefs.h <<\_ACEOF
9171 #define ENABLE_SHARED 1
9174 if test "x$APPLE_BUILD" = "xyes"; then
9176 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
9179 PLUGINLDFLAGS="-shared"
9181 PLUGINCFLAGS="-fPIC"
9183 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9184 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9185 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9186 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9190 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9192 # Is the header compilable?
9193 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9194 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
9195 cat >conftest.$ac_ext <<_ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9201 $ac_includes_default
9204 rm -f conftest.$ac_objext
9205 if { (ac_try="$ac_compile"
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211 (eval "$ac_compile") 2>conftest.er1
9213 grep -v '^ *+' conftest.er1 >conftest.err
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } && {
9218 test -z "$ac_c_werror_flag" ||
9219 test ! -s conftest.err
9220 } && test -s conftest.$ac_objext; then
9221 ac_header_compiler=yes
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 ac_header_compiler=no
9229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9231 echo "${ECHO_T}$ac_header_compiler" >&6; }
9233 # Is the header present?
9234 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9235 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
9236 cat >conftest.$ac_ext <<_ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h. */
9244 if { (ac_try="$ac_cpp conftest.$ac_ext"
9246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247 *) ac_try_echo=$ac_try;;
9249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9252 grep -v '^ *+' conftest.er1 >conftest.err
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } >/dev/null && {
9257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9258 test ! -s conftest.err
9260 ac_header_preproc=yes
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9265 ac_header_preproc=no
9268 rm -f conftest.err conftest.$ac_ext
9269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9270 echo "${ECHO_T}$ac_header_preproc" >&6; }
9272 # So? What about this header?
9273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9275 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9276 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9277 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9278 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9279 ac_header_preproc=yes
9282 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9283 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9285 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9286 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9287 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9288 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9289 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9290 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9291 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9293 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9297 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9298 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9299 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 ac_cv_header_dlfcn_h=$ac_header_preproc
9304 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9305 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9308 if test $ac_cv_header_dlfcn_h = yes; then
9310 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9311 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9312 if test "${ac_cv_search_dlopen+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 ac_func_search_save_LIBS=$LIBS
9316 cat >conftest.$ac_ext <<_ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9323 /* Override any GCC internal prototype to avoid an error.
9324 Use char because int might match the return type of a GCC
9325 builtin and then its argument prototype would still apply. */
9338 for ac_lib in '' dl; do
9339 if test -z "$ac_lib"; then
9340 ac_res="none required"
9343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (ac_try="$ac_link"
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_link") 2>conftest.er1
9354 grep -v '^ *+' conftest.er1 >conftest.err
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest$ac_exeext &&
9362 $as_test_x conftest$ac_exeext; then
9363 ac_cv_search_dlopen=$ac_res
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9373 if test "${ac_cv_search_dlopen+set}" = set; then
9377 if test "${ac_cv_search_dlopen+set}" = set; then
9380 ac_cv_search_dlopen=no
9383 LIBS=$ac_func_search_save_LIBS
9385 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9386 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9387 ac_res=$ac_cv_search_dlopen
9388 if test "$ac_res" != no; then
9389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9396 if test "x$have_dlopen" != "xyes"; then
9397 if test "x$enable_shared" == "xyes"; then
9398 { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
9399 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
9400 { (exit 1); exit 1; }; }
9402 { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
9403 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
9407 { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
9408 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
9409 old_LDFLAGS="$LDFLAGS"
9410 LDFLAGS="$LDFLAGS -rdynamic"
9411 cat >conftest.$ac_ext <<_ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9417 int main() { return 0; }
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (ac_try="$ac_link"
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_link") 2>conftest.er1
9428 grep -v '^ *+' conftest.er1 >conftest.err
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } && {
9433 test -z "$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 } && test -s conftest$ac_exeext &&
9436 $as_test_x conftest$ac_exeext; then
9438 LXDREAMLDFLAGS="-rdynamic"
9439 { echo "$as_me:$LINENO: result: yes" >&5
9440 echo "${ECHO_T}yes" >&6; }
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9448 { echo "$as_me:$LINENO: result: no" >&5
9449 echo "${ECHO_T}no" >&6; }
9452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9453 conftest$ac_exeext conftest.$ac_ext
9454 LDFLAGS="$old_LDFLAGS"
9463 if test "x$have_dlopen" = "xyes"; then
9465 BUILD_SHARED_FALSE='#'
9467 BUILD_SHARED_TRUE='#'
9473 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
9474 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
9475 if test "$cross_compiling" = yes; then
9477 { echo "$as_me:$LINENO: result: no" >&5
9478 echo "${ECHO_T}no" >&6; }
9481 cat >conftest.$ac_ext <<_ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9489 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
9491 int main(int argc, char *argv[])
9493 return foo( 1, 2 ) == 3 ? 0 : 1;
9496 rm -f conftest$ac_exeext
9497 if { (ac_try="$ac_link"
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503 (eval "$ac_link") 2>&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9507 { (case "(($ac_try" in
9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512 (eval "$ac_try") 2>&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; }; then
9517 { echo "$as_me:$LINENO: result: yes" >&5
9518 echo "${ECHO_T}yes" >&6; }
9521 cat >>confdefs.h <<\_ACEOF
9522 #define HAVE_FASTCALL 1
9527 echo "$as_me: program exited with status $ac_status" >&5
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9533 { echo "$as_me:$LINENO: result: no" >&5
9534 echo "${ECHO_T}no" >&6; }
9537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9543 { echo "$as_me:$LINENO: checking support for force inlining" >&5
9544 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
9545 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9553 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
9555 int main(int argc, char *argv[])
9557 return foo( 1, 2 ) == 3 ? 0 : 1;
9560 rm -f conftest.$ac_objext
9561 if { (ac_try="$ac_compile"
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_compile") 2>conftest.er1
9569 grep -v '^ *+' conftest.er1 >conftest.err
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest.$ac_objext; then
9578 FORCEINLINE="__attribute__((always_inline))"
9579 { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
9580 echo "${ECHO_T}$FORCEINLINE" >&6; }
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9588 { echo "$as_me:$LINENO: result: no" >&5
9589 echo "${ECHO_T}no" >&6; }
9593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596 cat >>confdefs.h <<_ACEOF
9597 #define FORCEINLINE $FORCEINLINE
9601 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
9602 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
9603 if test "$cross_compiling" = yes; then
9605 { echo "$as_me:$LINENO: result: no" >&5
9606 echo "${ECHO_T}no" >&6; }
9607 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
9608 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
9610 cat >conftest.$ac_ext <<_ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9618 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
9619 int __attribute__((noinline)) foo( int arg, void *exc )
9622 *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
9627 int main(int argc, char *argv[])
9629 goto *first_arg(&&start, &&except);
9632 return foo( argc, &&except ) + 1;
9638 rm -f conftest$ac_exeext
9639 if { (ac_try="$ac_link"
9641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642 *) ac_try_echo=$ac_try;;
9644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645 (eval "$ac_link") 2>&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9649 { (case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_try") 2>&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9659 { echo "$as_me:$LINENO: result: yes" >&5
9660 echo "${ECHO_T}yes" >&6; }
9663 cat >>confdefs.h <<\_ACEOF
9664 #define HAVE_FRAME_ADDRESS 1
9669 echo "$as_me: program exited with status $ac_status" >&5
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9675 { echo "$as_me:$LINENO: result: no" >&5
9676 echo "${ECHO_T}no" >&6; }
9677 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
9678 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
9680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9687 { echo "$as_me:$LINENO: checking for library containing listen" >&5
9688 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
9689 if test "${ac_cv_search_listen+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9692 ac_func_search_save_LIBS=$LIBS
9693 cat >conftest.$ac_ext <<_ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9700 /* Override any GCC internal prototype to avoid an error.
9701 Use char because int might match the return type of a GCC
9702 builtin and then its argument prototype would still apply. */
9715 for ac_lib in '' socket; do
9716 if test -z "$ac_lib"; then
9717 ac_res="none required"
9720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (ac_try="$ac_link"
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_link") 2>conftest.er1
9731 grep -v '^ *+' conftest.er1 >conftest.err
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } && {
9736 test -z "$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 } && test -s conftest$ac_exeext &&
9739 $as_test_x conftest$ac_exeext; then
9740 ac_cv_search_listen=$ac_res
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9750 if test "${ac_cv_search_listen+set}" = set; then
9754 if test "${ac_cv_search_listen+set}" = set; then
9757 ac_cv_search_listen=no
9760 LIBS=$ac_func_search_save_LIBS
9762 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
9763 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
9764 ac_res=$ac_cv_search_listen
9765 if test "$ac_res" != no; then
9766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9770 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
9771 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
9772 if test "${ac_cv_search_inet_ntoa+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 ac_func_search_save_LIBS=$LIBS
9776 cat >conftest.$ac_ext <<_ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9783 /* Override any GCC internal prototype to avoid an error.
9784 Use char because int might match the return type of a GCC
9785 builtin and then its argument prototype would still apply. */
9793 return inet_ntoa ();
9798 for ac_lib in '' nsl; do
9799 if test -z "$ac_lib"; then
9800 ac_res="none required"
9803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9805 rm -f conftest.$ac_objext conftest$ac_exeext
9806 if { (ac_try="$ac_link"
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_link") 2>conftest.er1
9814 grep -v '^ *+' conftest.er1 >conftest.err
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } && {
9819 test -z "$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9821 } && test -s conftest$ac_exeext &&
9822 $as_test_x conftest$ac_exeext; then
9823 ac_cv_search_inet_ntoa=$ac_res
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9833 if test "${ac_cv_search_inet_ntoa+set}" = set; then
9837 if test "${ac_cv_search_inet_ntoa+set}" = set; then
9840 ac_cv_search_inet_ntoa=no
9843 LIBS=$ac_func_search_save_LIBS
9845 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
9846 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
9847 ac_res=$ac_cv_search_inet_ntoa
9848 if test "$ac_res" != no; then
9849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9856 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9857 if test -n "$ac_tool_prefix"; then
9858 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9859 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9862 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9877 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9888 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9889 if test -n "$PKG_CONFIG"; then
9890 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9891 echo "${ECHO_T}$PKG_CONFIG" >&6; }
9893 { echo "$as_me:$LINENO: result: no" >&5
9894 echo "${ECHO_T}no" >&6; }
9899 if test -z "$ac_cv_path_PKG_CONFIG"; then
9900 ac_pt_PKG_CONFIG=$PKG_CONFIG
9901 # Extract the first word of "pkg-config", so it can be a program name with args.
9902 set dummy pkg-config; ac_word=$2
9903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9905 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 case $ac_pt_PKG_CONFIG in
9910 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917 test -z "$as_dir" && as_dir=.
9918 for ac_exec_ext in '' $ac_executable_extensions; do
9919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9920 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9932 if test -n "$ac_pt_PKG_CONFIG"; then
9933 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9934 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
9936 { echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6; }
9940 if test "x$ac_pt_PKG_CONFIG" = x; then
9943 case $cross_compiling:$ac_tool_warned in
9945 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9946 whose name does not start with the host triplet. If you think this
9947 configuration is useful to you, please write to autoconf@gnu.org." >&5
9948 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9949 whose name does not start with the host triplet. If you think this
9950 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9951 ac_tool_warned=yes ;;
9953 PKG_CONFIG=$ac_pt_PKG_CONFIG
9956 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9960 if test -n "$PKG_CONFIG"; then
9961 _pkg_min_version=0.9.0
9962 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9963 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
9964 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9965 { echo "$as_me:$LINENO: result: yes" >&5
9966 echo "${ECHO_T}yes" >&6; }
9968 { echo "$as_me:$LINENO: result: no" >&5
9969 echo "${ECHO_T}no" >&6; }
9976 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
9977 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
9979 if test -n "$LIBPNG_CFLAGS"; then
9980 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
9981 elif test -n "$PKG_CONFIG"; then
9982 if test -n "$PKG_CONFIG" && \
9983 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
9984 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; then
9988 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
9995 if test -n "$LIBPNG_LIBS"; then
9996 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
9997 elif test -n "$PKG_CONFIG"; then
9998 if test -n "$PKG_CONFIG" && \
9999 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10000 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; then
10004 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
10014 if test $pkg_failed = yes; then
10016 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10017 _pkg_short_errors_supported=yes
10019 _pkg_short_errors_supported=no
10021 if test $_pkg_short_errors_supported = yes; then
10022 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
10024 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
10026 # Put the nasty error message in config.log where it belongs
10027 echo "$LIBPNG_PKG_ERRORS" >&5
10029 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
10033 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10034 installed software in a non-standard prefix.
10036 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10037 and LIBPNG_LIBS to avoid the need to call pkg-config.
10038 See the pkg-config man page for more details.
10040 echo "$as_me: error: Package requirements (libpng ) were not met:
10044 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10045 installed software in a non-standard prefix.
10047 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10048 and LIBPNG_LIBS to avoid the need to call pkg-config.
10049 See the pkg-config man page for more details.
10051 { (exit 1); exit 1; }; }
10052 elif test $pkg_failed = untried; then
10053 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10054 is in your PATH or set the PKG_CONFIG environment variable to the full
10055 path to pkg-config.
10057 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10058 and LIBPNG_LIBS to avoid the need to call pkg-config.
10059 See the pkg-config man page for more details.
10061 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10062 See \`config.log' for more details." >&5
10063 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10064 is in your PATH or set the PKG_CONFIG environment variable to the full
10065 path to pkg-config.
10067 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10068 and LIBPNG_LIBS to avoid the need to call pkg-config.
10069 See the pkg-config man page for more details.
10071 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10072 See \`config.log' for more details." >&2;}
10073 { (exit 1); exit 1; }; }
10075 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
10076 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
10077 { echo "$as_me:$LINENO: result: yes" >&5
10078 echo "${ECHO_T}yes" >&6; }
10083 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
10084 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
10085 if test "${ac_cv_lib_z_uncompress+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 ac_check_lib_save_LIBS=$LIBS
10090 cat >conftest.$ac_ext <<_ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10097 /* Override any GCC internal prototype to avoid an error.
10098 Use char because int might match the return type of a GCC
10099 builtin and then its argument prototype would still apply. */
10103 char uncompress ();
10107 return uncompress ();
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (ac_try="$ac_link"
10114 case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_link") 2>conftest.er1
10121 grep -v '^ *+' conftest.er1 >conftest.err
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } && {
10126 test -z "$ac_c_werror_flag" ||
10127 test ! -s conftest.err
10128 } && test -s conftest$ac_exeext &&
10129 $as_test_x conftest$ac_exeext; then
10130 ac_cv_lib_z_uncompress=yes
10132 echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10135 ac_cv_lib_z_uncompress=no
10138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10139 conftest$ac_exeext conftest.$ac_ext
10140 LIBS=$ac_check_lib_save_LIBS
10142 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
10143 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
10144 if test $ac_cv_lib_z_uncompress = yes; then
10145 cat >>confdefs.h <<_ACEOF
10146 #define HAVE_LIBZ 1
10153 echo "Zlib (libz.so) could not be found, but is required."
10158 if test "x$with_gtk" = "xno"; then
10161 { echo "$as_me:$LINENO: checking for GLIB" >&5
10162 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10164 if test -n "$GLIB_CFLAGS"; then
10165 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10166 elif test -n "$PKG_CONFIG"; then
10167 if test -n "$PKG_CONFIG" && \
10168 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10169 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; then
10173 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10180 if test -n "$GLIB_LIBS"; then
10181 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10182 elif test -n "$PKG_CONFIG"; then
10183 if test -n "$PKG_CONFIG" && \
10184 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10185 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; then
10189 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10199 if test $pkg_failed = yes; then
10201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10202 _pkg_short_errors_supported=yes
10204 _pkg_short_errors_supported=no
10206 if test $_pkg_short_errors_supported = yes; then
10207 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
10209 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
10211 # Put the nasty error message in config.log where it belongs
10212 echo "$GLIB_PKG_ERRORS" >&5
10214 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
10218 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10219 installed software in a non-standard prefix.
10221 Alternatively, you may set the environment variables GLIB_CFLAGS
10222 and GLIB_LIBS to avoid the need to call pkg-config.
10223 See the pkg-config man page for more details.
10225 echo "$as_me: error: Package requirements (glib-2.0) were not met:
10229 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10230 installed software in a non-standard prefix.
10232 Alternatively, you may set the environment variables GLIB_CFLAGS
10233 and GLIB_LIBS to avoid the need to call pkg-config.
10234 See the pkg-config man page for more details.
10236 { (exit 1); exit 1; }; }
10237 elif test $pkg_failed = untried; then
10238 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10239 is in your PATH or set the PKG_CONFIG environment variable to the full
10240 path to pkg-config.
10242 Alternatively, you may set the environment variables GLIB_CFLAGS
10243 and GLIB_LIBS to avoid the need to call pkg-config.
10244 See the pkg-config man page for more details.
10246 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10247 See \`config.log' for more details." >&5
10248 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10249 is in your PATH or set the PKG_CONFIG environment variable to the full
10250 path to pkg-config.
10252 Alternatively, you may set the environment variables GLIB_CFLAGS
10253 and GLIB_LIBS to avoid the need to call pkg-config.
10254 See the pkg-config man page for more details.
10256 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10257 See \`config.log' for more details." >&2;}
10258 { (exit 1); exit 1; }; }
10260 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
10261 GLIB_LIBS=$pkg_cv_GLIB_LIBS
10262 { echo "$as_me:$LINENO: result: yes" >&5
10263 echo "${ECHO_T}yes" >&6; }
10269 { echo "$as_me:$LINENO: checking for GTK" >&5
10270 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
10272 if test -n "$GTK_CFLAGS"; then
10273 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
10274 elif test -n "$PKG_CONFIG"; then
10275 if test -n "$PKG_CONFIG" && \
10276 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10277 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; then
10281 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
10288 if test -n "$GTK_LIBS"; then
10289 pkg_cv_GTK_LIBS="$GTK_LIBS"
10290 elif test -n "$PKG_CONFIG"; then
10291 if test -n "$PKG_CONFIG" && \
10292 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10293 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; then
10297 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
10307 if test $pkg_failed = yes; then
10309 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10310 _pkg_short_errors_supported=yes
10312 _pkg_short_errors_supported=no
10314 if test $_pkg_short_errors_supported = yes; then
10315 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
10317 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
10319 # Put the nasty error message in config.log where it belongs
10320 echo "$GTK_PKG_ERRORS" >&5
10322 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
10326 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10327 installed software in a non-standard prefix.
10329 Alternatively, you may set the environment variables GTK_CFLAGS
10330 and GTK_LIBS to avoid the need to call pkg-config.
10331 See the pkg-config man page for more details.
10333 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
10337 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10338 installed software in a non-standard prefix.
10340 Alternatively, you may set the environment variables GTK_CFLAGS
10341 and GTK_LIBS to avoid the need to call pkg-config.
10342 See the pkg-config man page for more details.
10344 { (exit 1); exit 1; }; }
10345 elif test $pkg_failed = untried; then
10346 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10347 is in your PATH or set the PKG_CONFIG environment variable to the full
10348 path to pkg-config.
10350 Alternatively, you may set the environment variables GTK_CFLAGS
10351 and GTK_LIBS to avoid the need to call pkg-config.
10352 See the pkg-config man page for more details.
10354 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10355 See \`config.log' for more details." >&5
10356 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10357 is in your PATH or set the PKG_CONFIG environment variable to the full
10358 path to pkg-config.
10360 Alternatively, you may set the environment variables GTK_CFLAGS
10361 and GTK_LIBS to avoid the need to call pkg-config.
10362 See the pkg-config man page for more details.
10364 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10365 See \`config.log' for more details." >&2;}
10366 { (exit 1); exit 1; }; }
10368 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
10369 GTK_LIBS=$pkg_cv_GTK_LIBS
10370 { echo "$as_me:$LINENO: result: yes" >&5
10371 echo "${ECHO_T}yes" >&6; }
10375 cat >>confdefs.h <<\_ACEOF
10382 LIBS="$LIBS $GTK_LIBS"
10383 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
10384 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
10385 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 cat >conftest.$ac_ext <<_ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
10395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10396 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
10398 /* System header to define __stub macros and hopefully few prototypes,
10399 which can conflict with char gdk_x11_display_get_xdisplay (); below.
10400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10401 <limits.h> exists even on freestanding compilers. */
10404 # include <limits.h>
10406 # include <assert.h>
10409 #undef gdk_x11_display_get_xdisplay
10411 /* Override any GCC internal prototype to avoid an error.
10412 Use char because int might match the return type of a GCC
10413 builtin and then its argument prototype would still apply. */
10417 char gdk_x11_display_get_xdisplay ();
10418 /* The GNU C library defines this for functions which it implements
10419 to always fail with ENOSYS. Some functions are actually named
10420 something starting with __ and the normal name is an alias. */
10421 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
10428 return gdk_x11_display_get_xdisplay ();
10433 rm -f conftest.$ac_objext conftest$ac_exeext
10434 if { (ac_try="$ac_link"
10435 case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440 (eval "$ac_link") 2>conftest.er1
10442 grep -v '^ *+' conftest.er1 >conftest.err
10444 cat conftest.err >&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } && {
10447 test -z "$ac_c_werror_flag" ||
10448 test ! -s conftest.err
10449 } && test -s conftest$ac_exeext &&
10450 $as_test_x conftest$ac_exeext; then
10451 ac_cv_func_gdk_x11_display_get_xdisplay=yes
10453 echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10456 ac_cv_func_gdk_x11_display_get_xdisplay=no
10459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10460 conftest$ac_exeext conftest.$ac_ext
10462 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
10463 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
10464 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
10468 cat >>confdefs.h <<\_ACEOF
10469 #define HAVE_GTK_X11 1
10474 GTK_LIBS="$GTK_LIBS -lX11"
10476 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
10477 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
10478 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 cat >conftest.$ac_ext <<_ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
10488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10489 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
10491 /* System header to define __stub macros and hopefully few prototypes,
10492 which can conflict with char gdk_quartz_window_get_nsview (); below.
10493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10494 <limits.h> exists even on freestanding compilers. */
10497 # include <limits.h>
10499 # include <assert.h>
10502 #undef gdk_quartz_window_get_nsview
10504 /* Override any GCC internal prototype to avoid an error.
10505 Use char because int might match the return type of a GCC
10506 builtin and then its argument prototype would still apply. */
10510 char gdk_quartz_window_get_nsview ();
10511 /* The GNU C library defines this for functions which it implements
10512 to always fail with ENOSYS. Some functions are actually named
10513 something starting with __ and the normal name is an alias. */
10514 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
10521 return gdk_quartz_window_get_nsview ();
10526 rm -f conftest.$ac_objext conftest$ac_exeext
10527 if { (ac_try="$ac_link"
10528 case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_link") 2>conftest.er1
10535 grep -v '^ *+' conftest.er1 >conftest.err
10537 cat conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } && {
10540 test -z "$ac_c_werror_flag" ||
10541 test ! -s conftest.err
10542 } && test -s conftest$ac_exeext &&
10543 $as_test_x conftest$ac_exeext; then
10544 ac_cv_func_gdk_quartz_window_get_nsview=yes
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10549 ac_cv_func_gdk_quartz_window_get_nsview=no
10552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10553 conftest$ac_exeext conftest.$ac_ext
10555 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
10556 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
10557 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
10561 cat >>confdefs.h <<\_ACEOF
10562 #define HAVE_GTK_OSX 1
10567 if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
10568 { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
10569 See \`config.log' for more details." >&5
10570 echo "$as_me: error: Unable to identify GTK platform
10571 See \`config.log' for more details." >&2;}
10572 { (exit 1); exit 1; }; }
10578 if test "$HAVE_GTK" = 'yes'; then
10589 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
10590 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
10592 if test -n "$LIBISOFS_CFLAGS"; then
10593 pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
10594 elif test -n "$PKG_CONFIG"; then
10595 if test -n "$PKG_CONFIG" && \
10596 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
10597 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; then
10601 pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
10608 if test -n "$LIBISOFS_LIBS"; then
10609 pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
10610 elif test -n "$PKG_CONFIG"; then
10611 if test -n "$PKG_CONFIG" && \
10612 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
10613 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; then
10617 pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
10627 if test $pkg_failed = yes; then
10629 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10630 _pkg_short_errors_supported=yes
10632 _pkg_short_errors_supported=no
10634 if test $_pkg_short_errors_supported = yes; then
10635 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
10637 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
10639 # Put the nasty error message in config.log where it belongs
10640 echo "$LIBISOFS_PKG_ERRORS" >&5
10642 { { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
10644 $LIBISOFS_PKG_ERRORS
10646 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10647 installed software in a non-standard prefix.
10649 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
10650 and LIBISOFS_LIBS to avoid the need to call pkg-config.
10651 See the pkg-config man page for more details.
10653 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
10655 $LIBISOFS_PKG_ERRORS
10657 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10658 installed software in a non-standard prefix.
10660 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
10661 and LIBISOFS_LIBS to avoid the need to call pkg-config.
10662 See the pkg-config man page for more details.
10664 { (exit 1); exit 1; }; }
10665 elif test $pkg_failed = untried; then
10666 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10667 is in your PATH or set the PKG_CONFIG environment variable to the full
10668 path to pkg-config.
10670 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
10671 and LIBISOFS_LIBS to avoid the need to call pkg-config.
10672 See the pkg-config man page for more details.
10674 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10675 See \`config.log' for more details." >&5
10676 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10677 is in your PATH or set the PKG_CONFIG environment variable to the full
10678 path to pkg-config.
10680 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
10681 and LIBISOFS_LIBS to avoid the need to call pkg-config.
10682 See the pkg-config man page for more details.
10684 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10685 See \`config.log' for more details." >&2;}
10686 { (exit 1); exit 1; }; }
10688 LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
10689 LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
10690 { echo "$as_me:$LINENO: result: yes" >&5
10691 echo "${ECHO_T}yes" >&6; }
10695 if test "x$with_osmesa" != xno; then
10699 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
10700 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
10701 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 ac_check_lib_save_LIBS=$LIBS
10705 LIBS="-lOSMesa $LIBS"
10706 cat >conftest.$ac_ext <<_ACEOF
10709 cat confdefs.h >>conftest.$ac_ext
10710 cat >>conftest.$ac_ext <<_ACEOF
10711 /* end confdefs.h. */
10713 /* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
10719 char OSMesaCreateContext ();
10723 return OSMesaCreateContext ();
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest$ac_exeext &&
10745 $as_test_x conftest$ac_exeext; then
10746 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_lib_OSMesa_OSMesaCreateContext=no
10754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LIBS=$ac_check_lib_save_LIBS
10758 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
10759 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
10760 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
10761 cat >>confdefs.h <<_ACEOF
10762 #define HAVE_LIBOSMESA 1
10765 LIBS="-lOSMesa $LIBS"
10768 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
10769 See \`config.log' for more details." >&5
10770 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
10771 See \`config.log' for more details." >&2;}
10772 { (exit 1); exit 1; }; }
10775 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
10776 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
10777 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
10778 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
10782 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
10784 # Is the header compilable?
10785 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
10786 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
10787 cat >conftest.$ac_ext <<_ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h. */
10793 $ac_includes_default
10794 #include <GL/osmesa.h>
10796 rm -f conftest.$ac_objext
10797 if { (ac_try="$ac_compile"
10798 case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_compile") 2>conftest.er1
10805 grep -v '^ *+' conftest.er1 >conftest.err
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } && {
10810 test -z "$ac_c_werror_flag" ||
10811 test ! -s conftest.err
10812 } && test -s conftest.$ac_objext; then
10813 ac_header_compiler=yes
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10818 ac_header_compiler=no
10821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10823 echo "${ECHO_T}$ac_header_compiler" >&6; }
10825 # Is the header present?
10826 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
10827 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
10828 cat >conftest.$ac_ext <<_ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10834 #include <GL/osmesa.h>
10836 if { (ac_try="$ac_cpp conftest.$ac_ext"
10837 case "(($ac_try" in
10838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10844 grep -v '^ *+' conftest.er1 >conftest.err
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } >/dev/null && {
10849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10850 test ! -s conftest.err
10852 ac_header_preproc=yes
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10857 ac_header_preproc=no
10860 rm -f conftest.err conftest.$ac_ext
10861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10862 echo "${ECHO_T}$ac_header_preproc" >&6; }
10864 # So? What about this header?
10865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10867 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
10868 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
10870 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
10871 ac_header_preproc=yes
10874 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
10875 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
10877 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
10879 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
10881 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
10883 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
10885 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
10889 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
10890 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
10891 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 ac_cv_header_GL_osmesa_h=$ac_header_preproc
10896 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
10897 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
10900 if test $ac_cv_header_GL_osmesa_h = yes; then
10903 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
10904 See \`config.log' for more details." >&5
10905 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
10906 See \`config.log' for more details." >&2;}
10907 { (exit 1); exit 1; }; }
10912 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
10914 cat >>confdefs.h <<\_ACEOF
10915 #define HAVE_OSMESA 1
10921 if test "x$APPLE_BUILD" != 'xyes'; then
10924 { echo "$as_me:$LINENO: checking for LIBGL" >&5
10925 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
10927 if test -n "$LIBGL_CFLAGS"; then
10928 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
10929 elif test -n "$PKG_CONFIG"; then
10930 if test -n "$PKG_CONFIG" && \
10931 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
10932 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; then
10936 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
10943 if test -n "$LIBGL_LIBS"; then
10944 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
10945 elif test -n "$PKG_CONFIG"; then
10946 if test -n "$PKG_CONFIG" && \
10947 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
10948 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; then
10952 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
10962 if test $pkg_failed = yes; then
10964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10965 _pkg_short_errors_supported=yes
10967 _pkg_short_errors_supported=no
10969 if test $_pkg_short_errors_supported = yes; then
10970 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
10972 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
10974 # Put the nasty error message in config.log where it belongs
10975 echo "$LIBGL_PKG_ERRORS" >&5
10977 { { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
10981 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10982 installed software in a non-standard prefix.
10984 Alternatively, you may set the environment variables LIBGL_CFLAGS
10985 and LIBGL_LIBS to avoid the need to call pkg-config.
10986 See the pkg-config man page for more details.
10988 echo "$as_me: error: Package requirements (gl ) were not met:
10992 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10993 installed software in a non-standard prefix.
10995 Alternatively, you may set the environment variables LIBGL_CFLAGS
10996 and LIBGL_LIBS to avoid the need to call pkg-config.
10997 See the pkg-config man page for more details.
10999 { (exit 1); exit 1; }; }
11000 elif test $pkg_failed = untried; then
11001 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11002 is in your PATH or set the PKG_CONFIG environment variable to the full
11003 path to pkg-config.
11005 Alternatively, you may set the environment variables LIBGL_CFLAGS
11006 and LIBGL_LIBS to avoid the need to call pkg-config.
11007 See the pkg-config man page for more details.
11009 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11010 See \`config.log' for more details." >&5
11011 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11012 is in your PATH or set the PKG_CONFIG environment variable to the full
11013 path to pkg-config.
11015 Alternatively, you may set the environment variables LIBGL_CFLAGS
11016 and LIBGL_LIBS to avoid the need to call pkg-config.
11017 See the pkg-config man page for more details.
11019 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11020 See \`config.log' for more details." >&2;}
11021 { (exit 1); exit 1; }; }
11023 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
11024 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
11025 { echo "$as_me:$LINENO: result: yes" >&5
11026 echo "${ECHO_T}yes" >&6; }
11029 LIBS="$LIBS $LIBGL_LIBS";
11030 CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
11032 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
11033 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
11034 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 cat >conftest.$ac_ext <<_ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h. */
11043 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
11044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11045 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
11047 /* System header to define __stub macros and hopefully few prototypes,
11048 which can conflict with char NSOpenGLGetVersion (); below.
11049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11050 <limits.h> exists even on freestanding compilers. */
11053 # include <limits.h>
11055 # include <assert.h>
11058 #undef NSOpenGLGetVersion
11060 /* Override any GCC internal prototype to avoid an error.
11061 Use char because int might match the return type of a GCC
11062 builtin and then its argument prototype would still apply. */
11066 char NSOpenGLGetVersion ();
11067 /* The GNU C library defines this for functions which it implements
11068 to always fail with ENOSYS. Some functions are actually named
11069 something starting with __ and the normal name is an alias. */
11070 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
11077 return NSOpenGLGetVersion ();
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (ac_try="$ac_link"
11084 case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089 (eval "$ac_link") 2>conftest.er1
11091 grep -v '^ *+' conftest.er1 >conftest.err
11093 cat conftest.err >&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } && {
11096 test -z "$ac_c_werror_flag" ||
11097 test ! -s conftest.err
11098 } && test -s conftest$ac_exeext &&
11099 $as_test_x conftest$ac_exeext; then
11100 ac_cv_func_NSOpenGLGetVersion=yes
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 ac_cv_func_NSOpenGLGetVersion=no
11108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11109 conftest$ac_exeext conftest.$ac_ext
11111 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
11112 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
11113 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
11116 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
11118 cat >>confdefs.h <<\_ACEOF
11119 #define HAVE_NSGL 1
11126 if test "x$HAVE_GTK_X11" = "xyes"; then
11127 if test "x$APPLE_BUILD" = "xyes"; then
11128 LIBS="$LIBS -L/usr/X11/lib -lGL"
11130 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
11131 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
11132 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11135 cat >conftest.$ac_ext <<_ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h. */
11141 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
11142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11143 #define glXQueryVersion innocuous_glXQueryVersion
11145 /* System header to define __stub macros and hopefully few prototypes,
11146 which can conflict with char glXQueryVersion (); below.
11147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11148 <limits.h> exists even on freestanding compilers. */
11151 # include <limits.h>
11153 # include <assert.h>
11156 #undef glXQueryVersion
11158 /* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
11164 char glXQueryVersion ();
11165 /* The GNU C library defines this for functions which it implements
11166 to always fail with ENOSYS. Some functions are actually named
11167 something starting with __ and the normal name is an alias. */
11168 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
11175 return glXQueryVersion ();
11180 rm -f conftest.$ac_objext conftest$ac_exeext
11181 if { (ac_try="$ac_link"
11182 case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_link") 2>conftest.er1
11189 grep -v '^ *+' conftest.er1 >conftest.err
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } && {
11194 test -z "$ac_c_werror_flag" ||
11195 test ! -s conftest.err
11196 } && test -s conftest$ac_exeext &&
11197 $as_test_x conftest$ac_exeext; then
11198 ac_cv_func_glXQueryVersion=yes
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_cv_func_glXQueryVersion=no
11206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11207 conftest$ac_exeext conftest.$ac_ext
11209 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
11210 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
11211 if test $ac_cv_func_glXQueryVersion = yes; then
11214 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
11216 cat >>confdefs.h <<\_ACEOF
11232 if test "x$HAVE_OSMESA" = "xyes"; then
11234 VIDEO_OSMESA_FALSE='#'
11236 VIDEO_OSMESA_TRUE='#'
11237 VIDEO_OSMESA_FALSE=
11242 if test "x$HAVE_GLX" = "xyes"; then
11244 VIDEO_GLX_FALSE='#'
11252 if test "x$HAVE_NSGL" = "xyes"; then
11254 VIDEO_NSGL_FALSE='#'
11256 VIDEO_NSGL_TRUE='#'
11261 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
11262 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
11263 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 cat >conftest.$ac_ext <<_ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
11273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11274 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
11276 /* System header to define __stub macros and hopefully few prototypes,
11277 which can conflict with char glGenFramebuffersEXT (); below.
11278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11279 <limits.h> exists even on freestanding compilers. */
11282 # include <limits.h>
11284 # include <assert.h>
11287 #undef glGenFramebuffersEXT
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11295 char glGenFramebuffersEXT ();
11296 /* The GNU C library defines this for functions which it implements
11297 to always fail with ENOSYS. Some functions are actually named
11298 something starting with __ and the normal name is an alias. */
11299 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
11306 return glGenFramebuffersEXT ();
11311 rm -f conftest.$ac_objext conftest$ac_exeext
11312 if { (ac_try="$ac_link"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_link") 2>conftest.er1
11320 grep -v '^ *+' conftest.er1 >conftest.err
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } && {
11325 test -z "$ac_c_werror_flag" ||
11326 test ! -s conftest.err
11327 } && test -s conftest$ac_exeext &&
11328 $as_test_x conftest$ac_exeext; then
11329 ac_cv_func_glGenFramebuffersEXT=yes
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11334 ac_cv_func_glGenFramebuffersEXT=no
11337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11338 conftest$ac_exeext conftest.$ac_ext
11340 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
11341 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
11342 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
11344 cat >>confdefs.h <<\_ACEOF
11345 #define HAVE_OPENGL_FBO 1
11350 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
11351 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
11352 if test "${ac_cv_func_glCreateShader+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 cat >conftest.$ac_ext <<_ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
11362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11363 #define glCreateShader innocuous_glCreateShader
11365 /* System header to define __stub macros and hopefully few prototypes,
11366 which can conflict with char glCreateShader (); below.
11367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11368 <limits.h> exists even on freestanding compilers. */
11371 # include <limits.h>
11373 # include <assert.h>
11376 #undef glCreateShader
11378 /* Override any GCC internal prototype to avoid an error.
11379 Use char because int might match the return type of a GCC
11380 builtin and then its argument prototype would still apply. */
11384 char glCreateShader ();
11385 /* The GNU C library defines this for functions which it implements
11386 to always fail with ENOSYS. Some functions are actually named
11387 something starting with __ and the normal name is an alias. */
11388 #if defined __stub_glCreateShader || defined __stub___glCreateShader
11395 return glCreateShader ();
11400 rm -f conftest.$ac_objext conftest$ac_exeext
11401 if { (ac_try="$ac_link"
11402 case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_link") 2>conftest.er1
11409 grep -v '^ *+' conftest.er1 >conftest.err
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } && {
11414 test -z "$ac_c_werror_flag" ||
11415 test ! -s conftest.err
11416 } && test -s conftest$ac_exeext &&
11417 $as_test_x conftest$ac_exeext; then
11418 ac_cv_func_glCreateShader=yes
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11423 ac_cv_func_glCreateShader=no
11426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11427 conftest$ac_exeext conftest.$ac_ext
11429 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
11430 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
11431 if test $ac_cv_func_glCreateShader = yes; then
11433 cat >>confdefs.h <<\_ACEOF
11434 #define HAVE_OPENGL_SHADER 1
11439 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
11440 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
11441 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 cat >conftest.$ac_ext <<_ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
11451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11452 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
11454 /* System header to define __stub macros and hopefully few prototypes,
11455 which can conflict with char glCreateShaderObjectARB (); below.
11456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11457 <limits.h> exists even on freestanding compilers. */
11460 # include <limits.h>
11462 # include <assert.h>
11465 #undef glCreateShaderObjectARB
11467 /* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11473 char glCreateShaderObjectARB ();
11474 /* The GNU C library defines this for functions which it implements
11475 to always fail with ENOSYS. Some functions are actually named
11476 something starting with __ and the normal name is an alias. */
11477 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
11484 return glCreateShaderObjectARB ();
11489 rm -f conftest.$ac_objext conftest$ac_exeext
11490 if { (ac_try="$ac_link"
11491 case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496 (eval "$ac_link") 2>conftest.er1
11498 grep -v '^ *+' conftest.er1 >conftest.err
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } && {
11503 test -z "$ac_c_werror_flag" ||
11504 test ! -s conftest.err
11505 } && test -s conftest$ac_exeext &&
11506 $as_test_x conftest$ac_exeext; then
11507 ac_cv_func_glCreateShaderObjectARB=yes
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11512 ac_cv_func_glCreateShaderObjectARB=no
11515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11516 conftest$ac_exeext conftest.$ac_ext
11518 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
11519 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
11520 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
11522 cat >>confdefs.h <<\_ACEOF
11523 #define HAVE_OPENGL_SHADER_ARB 1
11528 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
11529 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
11530 if test "${ac_cv_func_glClampColorARB+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 cat >conftest.$ac_ext <<_ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
11540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11541 #define glClampColorARB innocuous_glClampColorARB
11543 /* System header to define __stub macros and hopefully few prototypes,
11544 which can conflict with char glClampColorARB (); below.
11545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11546 <limits.h> exists even on freestanding compilers. */
11549 # include <limits.h>
11551 # include <assert.h>
11554 #undef glClampColorARB
11556 /* Override any GCC internal prototype to avoid an error.
11557 Use char because int might match the return type of a GCC
11558 builtin and then its argument prototype would still apply. */
11562 char glClampColorARB ();
11563 /* The GNU C library defines this for functions which it implements
11564 to always fail with ENOSYS. Some functions are actually named
11565 something starting with __ and the normal name is an alias. */
11566 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
11573 return glClampColorARB ();
11578 rm -f conftest.$ac_objext conftest$ac_exeext
11579 if { (ac_try="$ac_link"
11580 case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_link") 2>conftest.er1
11587 grep -v '^ *+' conftest.er1 >conftest.err
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } && {
11592 test -z "$ac_c_werror_flag" ||
11593 test ! -s conftest.err
11594 } && test -s conftest$ac_exeext &&
11595 $as_test_x conftest$ac_exeext; then
11596 ac_cv_func_glClampColorARB=yes
11598 echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11601 ac_cv_func_glClampColorARB=no
11604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11605 conftest$ac_exeext conftest.$ac_ext
11607 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
11608 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
11609 if test $ac_cv_func_glClampColorARB = yes; then
11611 cat >>confdefs.h <<\_ACEOF
11612 #define HAVE_OPENGL_CLAMP_COLOR 1
11620 if test "x$enable_translator" != "xno"; then
11622 i386|i486|i586|i686|x86_64)
11623 SH4_TRANSLATOR="x86"
11625 cat >>confdefs.h <<_ACEOF
11626 #define SH4_TRANSLATOR TARGET_X86
11633 if test "$SH4_TRANSLATOR" = "x86"; then
11635 BUILD_SH4X86_FALSE='#'
11637 BUILD_SH4X86_TRUE='#'
11638 BUILD_SH4X86_FALSE=
11642 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
11643 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
11644 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
11645 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
11649 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
11651 # Is the header compilable?
11652 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
11653 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
11654 cat >conftest.$ac_ext <<_ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660 $ac_includes_default
11661 #include <CoreAudio/CoreAudio.h>
11663 rm -f conftest.$ac_objext
11664 if { (ac_try="$ac_compile"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_compile") 2>conftest.er1
11672 grep -v '^ *+' conftest.er1 >conftest.err
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } && {
11677 test -z "$ac_c_werror_flag" ||
11678 test ! -s conftest.err
11679 } && test -s conftest.$ac_objext; then
11680 ac_header_compiler=yes
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 ac_header_compiler=no
11688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11690 echo "${ECHO_T}$ac_header_compiler" >&6; }
11692 # Is the header present?
11693 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
11694 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #include <CoreAudio/CoreAudio.h>
11703 if { (ac_try="$ac_cpp conftest.$ac_ext"
11704 case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11711 grep -v '^ *+' conftest.er1 >conftest.err
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } >/dev/null && {
11716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11719 ac_header_preproc=yes
11721 echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11724 ac_header_preproc=no
11727 rm -f conftest.err conftest.$ac_ext
11728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11729 echo "${ECHO_T}$ac_header_preproc" >&6; }
11731 # So? What about this header?
11732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11734 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11735 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
11737 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
11738 ac_header_preproc=yes
11741 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
11742 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
11743 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
11744 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
11745 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
11746 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
11748 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
11750 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
11752 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
11756 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
11757 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
11758 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
11763 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
11764 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
11767 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
11769 HAVE_CORE_AUDIO=yes
11770 LIBS="$LIBS -framework CoreAudio"
11771 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
11773 cat >>confdefs.h <<\_ACEOF
11774 #define HAVE_CORE_AUDIO 1
11784 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
11786 AUDIO_OSX_FALSE='#'
11793 if test "x$with_sdl" != "xno"; then
11796 { echo "$as_me:$LINENO: checking for SDL" >&5
11797 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
11799 if test -n "$SDL_CFLAGS"; then
11800 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
11801 elif test -n "$PKG_CONFIG"; then
11802 if test -n "$PKG_CONFIG" && \
11803 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
11804 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; then
11808 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
11815 if test -n "$SDL_LIBS"; then
11816 pkg_cv_SDL_LIBS="$SDL_LIBS"
11817 elif test -n "$PKG_CONFIG"; then
11818 if test -n "$PKG_CONFIG" && \
11819 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
11820 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; then
11824 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
11834 if test $pkg_failed = yes; then
11836 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11837 _pkg_short_errors_supported=yes
11839 _pkg_short_errors_supported=no
11841 if test $_pkg_short_errors_supported = yes; then
11842 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
11844 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
11846 # Put the nasty error message in config.log where it belongs
11847 echo "$SDL_PKG_ERRORS" >&5
11849 { echo "$as_me:$LINENO: result: no" >&5
11850 echo "${ECHO_T}no" >&6; }
11852 if test "x$with_sdl" = "xyes"; then
11853 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
11854 See \`config.log' for more details." >&5
11855 echo "$as_me: error: \"SDL libraries could not be found (but were required)
11856 See \`config.log' for more details." >&2;}
11857 { (exit 1); exit 1; }; }
11860 elif test $pkg_failed = untried; then
11862 if test "x$with_sdl" = "xyes"; then
11863 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
11864 See \`config.log' for more details." >&5
11865 echo "$as_me: error: \"SDL libraries could not be found (but were required)
11866 See \`config.log' for more details." >&2;}
11867 { (exit 1); exit 1; }; }
11871 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
11872 SDL_LIBS=$pkg_cv_SDL_LIBS
11873 { echo "$as_me:$LINENO: result: yes" >&5
11874 echo "${ECHO_T}yes" >&6; }
11877 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
11879 cat >>confdefs.h <<\_ACEOF
11888 if test "$HAVE_SDL" = 'yes' ; then
11890 AUDIO_SDL_FALSE='#'
11897 if test "x$with_pulse" != "xno"; then
11900 { echo "$as_me:$LINENO: checking for PULSE" >&5
11901 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
11903 if test -n "$PULSE_CFLAGS"; then
11904 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
11905 elif test -n "$PKG_CONFIG"; then
11906 if test -n "$PKG_CONFIG" && \
11907 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
11908 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; then
11912 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
11919 if test -n "$PULSE_LIBS"; then
11920 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
11921 elif test -n "$PKG_CONFIG"; then
11922 if test -n "$PKG_CONFIG" && \
11923 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
11924 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; then
11928 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
11938 if test $pkg_failed = yes; then
11940 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11941 _pkg_short_errors_supported=yes
11943 _pkg_short_errors_supported=no
11945 if test $_pkg_short_errors_supported = yes; then
11946 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
11948 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
11950 # Put the nasty error message in config.log where it belongs
11951 echo "$PULSE_PKG_ERRORS" >&5
11953 { echo "$as_me:$LINENO: result: no" >&5
11954 echo "${ECHO_T}no" >&6; }
11956 if test "x$with_pulse" = "xyes"; then
11957 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
11958 See \`config.log' for more details." >&5
11959 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
11960 See \`config.log' for more details." >&2;}
11961 { (exit 1); exit 1; }; }
11964 elif test $pkg_failed = untried; then
11966 if test "x$with_pulse" = "xyes"; then
11967 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
11968 See \`config.log' for more details." >&5
11969 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
11970 See \`config.log' for more details." >&2;}
11971 { (exit 1); exit 1; }; }
11975 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
11976 PULSE_LIBS=$pkg_cv_PULSE_LIBS
11977 { echo "$as_me:$LINENO: result: yes" >&5
11978 echo "${ECHO_T}yes" >&6; }
11981 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
11983 cat >>confdefs.h <<\_ACEOF
11984 #define HAVE_PULSE 1
11992 if test "$HAVE_PULSE" = 'yes' ; then
11994 AUDIO_PULSE_FALSE='#'
11996 AUDIO_PULSE_TRUE='#'
12001 if test "x$with_esd" != "xno"; then
12004 { echo "$as_me:$LINENO: checking for ESOUND" >&5
12005 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
12007 if test -n "$ESOUND_CFLAGS"; then
12008 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
12009 elif test -n "$PKG_CONFIG"; then
12010 if test -n "$PKG_CONFIG" && \
12011 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
12012 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; then
12016 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
12023 if test -n "$ESOUND_LIBS"; then
12024 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
12025 elif test -n "$PKG_CONFIG"; then
12026 if test -n "$PKG_CONFIG" && \
12027 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
12028 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; then
12032 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
12042 if test $pkg_failed = yes; then
12044 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12045 _pkg_short_errors_supported=yes
12047 _pkg_short_errors_supported=no
12049 if test $_pkg_short_errors_supported = yes; then
12050 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
12052 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
12054 # Put the nasty error message in config.log where it belongs
12055 echo "$ESOUND_PKG_ERRORS" >&5
12057 { echo "$as_me:$LINENO: result: no" >&5
12058 echo "${ECHO_T}no" >&6; }
12060 if test "x$with_esd" = "xyes"; then
12061 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
12062 See \`config.log' for more details." >&5
12063 echo "$as_me: error: ESounD audio package could not be found (but was required)
12064 See \`config.log' for more details." >&2;}
12065 { (exit 1); exit 1; }; }
12068 elif test $pkg_failed = untried; then
12070 if test "x$with_esd" = "xyes"; then
12071 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
12072 See \`config.log' for more details." >&5
12073 echo "$as_me: error: ESounD audio package could not be found (but was required)
12074 See \`config.log' for more details." >&2;}
12075 { (exit 1); exit 1; }; }
12079 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
12080 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
12081 { echo "$as_me:$LINENO: result: yes" >&5
12082 echo "${ECHO_T}yes" >&6; }
12085 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
12087 cat >>confdefs.h <<\_ACEOF
12088 #define HAVE_ESOUND 1
12096 if test "$HAVE_ESOUND" = 'yes' ; then
12098 AUDIO_ESOUND_FALSE='#'
12100 AUDIO_ESOUND_TRUE='#'
12101 AUDIO_ESOUND_FALSE=
12107 { echo "$as_me:$LINENO: checking for ALSA" >&5
12108 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
12110 if test -n "$ALSA_CFLAGS"; then
12111 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
12112 elif test -n "$PKG_CONFIG"; then
12113 if test -n "$PKG_CONFIG" && \
12114 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
12115 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; then
12119 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
12126 if test -n "$ALSA_LIBS"; then
12127 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
12128 elif test -n "$PKG_CONFIG"; then
12129 if test -n "$PKG_CONFIG" && \
12130 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
12131 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; then
12135 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
12145 if test $pkg_failed = yes; then
12147 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12148 _pkg_short_errors_supported=yes
12150 _pkg_short_errors_supported=no
12152 if test $_pkg_short_errors_supported = yes; then
12153 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
12155 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
12157 # Put the nasty error message in config.log where it belongs
12158 echo "$ALSA_PKG_ERRORS" >&5
12160 { echo "$as_me:$LINENO: result: no" >&5
12161 echo "${ECHO_T}no" >&6; }
12163 elif test $pkg_failed = untried; then
12166 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
12167 ALSA_LIBS=$pkg_cv_ALSA_LIBS
12168 { echo "$as_me:$LINENO: result: yes" >&5
12169 echo "${ECHO_T}yes" >&6; }
12172 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
12174 cat >>confdefs.h <<\_ACEOF
12175 #define HAVE_ALSA 1
12181 if test "$HAVE_ALSA" = 'yes' ; then
12183 AUDIO_ALSA_FALSE='#'
12185 AUDIO_ALSA_TRUE='#'
12191 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
12192 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
12193 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
12194 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
12198 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
12200 # Is the header compilable?
12201 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
12202 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
12203 cat >conftest.$ac_ext <<_ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12209 $ac_includes_default
12210 #include <linux/cdrom.h>
12212 rm -f conftest.$ac_objext
12213 if { (ac_try="$ac_compile"
12214 case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_compile") 2>conftest.er1
12221 grep -v '^ *+' conftest.er1 >conftest.err
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } && {
12226 test -z "$ac_c_werror_flag" ||
12227 test ! -s conftest.err
12228 } && test -s conftest.$ac_objext; then
12229 ac_header_compiler=yes
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 ac_header_compiler=no
12237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12239 echo "${ECHO_T}$ac_header_compiler" >&6; }
12241 # Is the header present?
12242 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
12243 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 #include <linux/cdrom.h>
12252 if { (ac_try="$ac_cpp conftest.$ac_ext"
12253 case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12260 grep -v '^ *+' conftest.er1 >conftest.err
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } >/dev/null && {
12265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12266 test ! -s conftest.err
12268 ac_header_preproc=yes
12270 echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12273 ac_header_preproc=no
12276 rm -f conftest.err conftest.$ac_ext
12277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12278 echo "${ECHO_T}$ac_header_preproc" >&6; }
12280 # So? What about this header?
12281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12283 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
12284 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
12286 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
12287 ac_header_preproc=yes
12290 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
12291 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
12293 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
12295 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
12297 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
12298 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
12299 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
12300 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
12301 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
12305 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
12306 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
12307 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 ac_cv_header_linux_cdrom_h=$ac_header_preproc
12312 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
12313 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
12316 if test $ac_cv_header_linux_cdrom_h = yes; then
12319 { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
12320 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
12321 old_CFLAGS="$CFLAGS"
12322 CFLAGS="$CFLAGS $STDCFLAG"
12323 cat >conftest.$ac_ext <<_ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 #include <linux/cdrom.h>
12338 rm -f conftest.$ac_objext
12339 if { (ac_try="$ac_compile"
12340 case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_compile") 2>conftest.er1
12347 grep -v '^ *+' conftest.er1 >conftest.err
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } && {
12352 test -z "$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12354 } && test -s conftest.$ac_objext; then
12355 { echo "$as_me:$LINENO: result: Yes" >&5
12356 echo "${ECHO_T}Yes" >&6; }
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12362 { echo "$as_me:$LINENO: result: No" >&5
12363 echo "${ECHO_T}No" >&6; }
12364 STDCFLAG="-std=gnu99"
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368 CFLAGS="$old_CFLAGS"
12375 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
12376 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
12377 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
12378 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
12382 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
12384 # Is the header compilable?
12385 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
12386 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
12387 cat >conftest.$ac_ext <<_ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 $ac_includes_default
12394 #include <IOKit/IOKitLib.h>
12396 rm -f conftest.$ac_objext
12397 if { (ac_try="$ac_compile"
12398 case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_compile") 2>conftest.er1
12405 grep -v '^ *+' conftest.er1 >conftest.err
12407 cat conftest.err >&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } && {
12410 test -z "$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12412 } && test -s conftest.$ac_objext; then
12413 ac_header_compiler=yes
12415 echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12418 ac_header_compiler=no
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12423 echo "${ECHO_T}$ac_header_compiler" >&6; }
12425 # Is the header present?
12426 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
12427 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
12428 cat >conftest.$ac_ext <<_ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434 #include <IOKit/IOKitLib.h>
12436 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
12449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12450 test ! -s conftest.err
12452 ac_header_preproc=yes
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12457 ac_header_preproc=no
12460 rm -f conftest.err conftest.$ac_ext
12461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12462 echo "${ECHO_T}$ac_header_preproc" >&6; }
12464 # So? What about this header?
12465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12467 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12468 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12469 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
12470 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
12471 ac_header_preproc=yes
12474 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
12475 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
12476 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
12477 echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
12478 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
12479 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
12480 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
12481 echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12482 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
12483 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
12484 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
12485 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
12489 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
12490 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
12491 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
12496 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
12497 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
12500 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
12503 LIBS="$LIBS -framework IOKit"
12511 if test "x$CDROM_DRIVER" = "xlinux"; then
12513 CDROM_LINUX_FALSE='#'
12515 CDROM_LINUX_TRUE='#'
12521 if test "x$CDROM_DRIVER" = "xosx"; then
12523 CDROM_OSX_FALSE='#'
12531 if test "x$CDROM_DRIVER" = "x"; then
12533 CDROM_NONE_FALSE='#'
12535 CDROM_NONE_TRUE='#'
12539 if test "x$CDROM_DRIVER" = "xlinux"; then
12541 cat >>confdefs.h <<\_ACEOF
12542 #define HAVE_LINUX_CDROM 1
12547 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
12548 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
12549 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
12550 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
12554 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
12556 # Is the header compilable?
12557 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
12558 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
12559 cat >conftest.$ac_ext <<_ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565 $ac_includes_default
12566 #include <linux/joystick.h>
12568 rm -f conftest.$ac_objext
12569 if { (ac_try="$ac_compile"
12570 case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_compile") 2>conftest.er1
12577 grep -v '^ *+' conftest.er1 >conftest.err
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } && {
12582 test -z "$ac_c_werror_flag" ||
12583 test ! -s conftest.err
12584 } && test -s conftest.$ac_objext; then
12585 ac_header_compiler=yes
12587 echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12590 ac_header_compiler=no
12593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12595 echo "${ECHO_T}$ac_header_compiler" >&6; }
12597 # Is the header present?
12598 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
12599 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
12600 cat >conftest.$ac_ext <<_ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12606 #include <linux/joystick.h>
12608 if { (ac_try="$ac_cpp conftest.$ac_ext"
12609 case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12616 grep -v '^ *+' conftest.er1 >conftest.err
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } >/dev/null && {
12621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12624 ac_header_preproc=yes
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ac_header_preproc=no
12632 rm -f conftest.err conftest.$ac_ext
12633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12634 echo "${ECHO_T}$ac_header_preproc" >&6; }
12636 # So? What about this header?
12637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12639 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
12640 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12641 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
12642 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
12643 ac_header_preproc=yes
12646 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
12647 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
12649 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
12651 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
12652 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
12653 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
12654 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
12655 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
12656 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
12657 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
12661 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
12662 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
12663 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
12664 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 ac_cv_header_linux_joystick_h=$ac_header_preproc
12668 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
12669 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
12672 if test $ac_cv_header_linux_joystick_h = yes; then
12674 HAVE_LINUX_JOYSTICK_H=yes
12676 cat >>confdefs.h <<\_ACEOF
12677 #define HAVE_LINUX_JOYSTICK 1
12680 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
12682 echo "Linux Joystick support not found, building without it."
12688 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
12690 JOY_LINUX_FALSE='#'
12697 if test "x$with_lirc" != "xno"; then
12698 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
12699 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
12700 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
12701 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
12705 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
12707 # Is the header compilable?
12708 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
12709 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
12710 cat >conftest.$ac_ext <<_ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12716 $ac_includes_default
12717 #include <lirc/lirc_client.h>
12719 rm -f conftest.$ac_objext
12720 if { (ac_try="$ac_compile"
12721 case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_compile") 2>conftest.er1
12728 grep -v '^ *+' conftest.er1 >conftest.err
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && {
12733 test -z "$ac_c_werror_flag" ||
12734 test ! -s conftest.err
12735 } && test -s conftest.$ac_objext; then
12736 ac_header_compiler=yes
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12741 ac_header_compiler=no
12744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12746 echo "${ECHO_T}$ac_header_compiler" >&6; }
12748 # Is the header present?
12749 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
12750 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
12751 cat >conftest.$ac_ext <<_ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12757 #include <lirc/lirc_client.h>
12759 if { (ac_try="$ac_cpp conftest.$ac_ext"
12760 case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12767 grep -v '^ *+' conftest.er1 >conftest.err
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } >/dev/null && {
12772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12773 test ! -s conftest.err
12775 ac_header_preproc=yes
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 ac_header_preproc=no
12783 rm -f conftest.err conftest.$ac_ext
12784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12785 echo "${ECHO_T}$ac_header_preproc" >&6; }
12787 # So? What about this header?
12788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12790 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
12791 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12792 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
12793 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
12794 ac_header_preproc=yes
12797 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
12798 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
12800 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
12801 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
12802 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
12803 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
12804 echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
12806 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
12808 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
12812 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
12813 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
12814 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
12819 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
12820 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
12823 if test $ac_cv_header_lirc_lirc_client_h = yes; then
12825 HAVE_LIRC_CLIENT_H=yes
12827 cat >>confdefs.h <<\_ACEOF
12828 #define HAVE_LIRC 1
12831 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
12834 echo "LIRC support not found, building without it."
12841 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
12843 INPUT_LIRC_FALSE='#'
12845 INPUT_LIRC_TRUE='#'
12850 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
12851 set dummy sh-elf-gcc; ac_word=$2
12852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12854 if test "${ac_cv_path_SHCC+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
12862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in $PATH
12866 test -z "$as_dir" && as_dir=.
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12869 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
12870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12880 SHCC=$ac_cv_path_SHCC
12881 if test -n "$SHCC"; then
12882 { echo "$as_me:$LINENO: result: $SHCC" >&5
12883 echo "${ECHO_T}$SHCC" >&6; }
12885 { echo "$as_me:$LINENO: result: no" >&5
12886 echo "${ECHO_T}no" >&6; }
12890 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
12891 set dummy sh-elf-ld; ac_word=$2
12892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12894 if test "${ac_cv_path_SHLD+set}" = set; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
12902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903 for as_dir in $PATH
12906 test -z "$as_dir" && as_dir=.
12907 for ac_exec_ext in '' $ac_executable_extensions; do
12908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12909 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
12910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12920 SHLD=$ac_cv_path_SHLD
12921 if test -n "$SHLD"; then
12922 { echo "$as_me:$LINENO: result: $SHLD" >&5
12923 echo "${ECHO_T}$SHLD" >&6; }
12925 { echo "$as_me:$LINENO: result: no" >&5
12926 echo "${ECHO_T}no" >&6; }
12930 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
12931 set dummy sh-elf-objcopy; ac_word=$2
12932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12934 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
12942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943 for as_dir in $PATH
12946 test -z "$as_dir" && as_dir=.
12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12949 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
12950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12960 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
12961 if test -n "$SHOBJCOPY"; then
12962 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
12963 echo "${ECHO_T}$SHOBJCOPY" >&6; }
12965 { echo "$as_me:$LINENO: result: no" >&5
12966 echo "${ECHO_T}no" >&6; }
12970 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
12971 set dummy arm-elf-gcc; ac_word=$2
12972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12974 if test "${ac_cv_path_ARMCC+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
12982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12983 for as_dir in $PATH
12986 test -z "$as_dir" && as_dir=.
12987 for ac_exec_ext in '' $ac_executable_extensions; do
12988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12989 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
12990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13000 ARMCC=$ac_cv_path_ARMCC
13001 if test -n "$ARMCC"; then
13002 { echo "$as_me:$LINENO: result: $ARMCC" >&5
13003 echo "${ECHO_T}$ARMCC" >&6; }
13005 { echo "$as_me:$LINENO: result: no" >&5
13006 echo "${ECHO_T}no" >&6; }
13010 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
13011 set dummy arm-elf-ld; ac_word=$2
13012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13014 if test "${ac_cv_path_ARMLD+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
13022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $PATH
13026 test -z "$as_dir" && as_dir=.
13027 for ac_exec_ext in '' $ac_executable_extensions; do
13028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13029 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
13030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13040 ARMLD=$ac_cv_path_ARMLD
13041 if test -n "$ARMLD"; then
13042 { echo "$as_me:$LINENO: result: $ARMLD" >&5
13043 echo "${ECHO_T}$ARMLD" >&6; }
13045 { echo "$as_me:$LINENO: result: no" >&5
13046 echo "${ECHO_T}no" >&6; }
13050 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
13051 set dummy arm-elf-objcopy; ac_word=$2
13052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13054 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13057 case $ARMOBJCOPY in
13059 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
13062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063 for as_dir in $PATH
13066 test -z "$as_dir" && as_dir=.
13067 for ac_exec_ext in '' $ac_executable_extensions; do
13068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13069 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
13070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13080 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
13081 if test -n "$ARMOBJCOPY"; then
13082 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
13083 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
13085 { echo "$as_me:$LINENO: result: no" >&5
13086 echo "${ECHO_T}no" >&6; }
13091 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
13093 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
13097 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
13099 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
13105 if test "$BUILD_SH" = "yes"; then
13106 BUILD_SYSTEST_TRUE=
13107 BUILD_SYSTEST_FALSE='#'
13109 BUILD_SYSTEST_TRUE='#'
13110 BUILD_SYSTEST_FALSE=
13115 if test "$BUILD_ARM" = "yes"; then
13116 BUILD_ARMTEST_TRUE=
13117 BUILD_ARMTEST_FALSE='#'
13119 BUILD_ARMTEST_TRUE='#'
13120 BUILD_ARMTEST_FALSE=
13124 CFLAGS="$CFLAGS $STDCFLAG"
13126 GETTEXT_PACKAGE=lxdream
13127 LXDREAM_LIBS="$LIBS"
13132 cat >>confdefs.h <<_ACEOF
13133 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
13137 ALL_LINGUAS="de es it nl pt_BR"
13140 for ac_header in locale.h
13142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 ac_res=`eval echo '${'$as_ac_Header'}'`
13150 { echo "$as_me:$LINENO: result: $ac_res" >&5
13151 echo "${ECHO_T}$ac_res" >&6; }
13153 # Is the header compilable?
13154 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13156 cat >conftest.$ac_ext <<_ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 $ac_includes_default
13163 #include <$ac_header>
13165 rm -f conftest.$ac_objext
13166 if { (ac_try="$ac_compile"
13167 case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_compile") 2>conftest.er1
13174 grep -v '^ *+' conftest.er1 >conftest.err
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } && {
13179 test -z "$ac_c_werror_flag" ||
13180 test ! -s conftest.err
13181 } && test -s conftest.$ac_objext; then
13182 ac_header_compiler=yes
13184 echo "$as_me: failed program was:" >&5
13185 sed 's/^/| /' conftest.$ac_ext >&5
13187 ac_header_compiler=no
13190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13192 echo "${ECHO_T}$ac_header_compiler" >&6; }
13194 # Is the header present?
13195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13197 cat >conftest.$ac_ext <<_ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13203 #include <$ac_header>
13205 if { (ac_try="$ac_cpp conftest.$ac_ext"
13206 case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13213 grep -v '^ *+' conftest.er1 >conftest.err
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } >/dev/null && {
13218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13219 test ! -s conftest.err
13221 ac_header_preproc=yes
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 ac_header_preproc=no
13229 rm -f conftest.err conftest.$ac_ext
13230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13231 echo "${ECHO_T}$ac_header_preproc" >&6; }
13233 # So? What about this header?
13234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13240 ac_header_preproc=yes
13243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13263 eval "$as_ac_Header=\$ac_header_preproc"
13265 ac_res=`eval echo '${'$as_ac_Header'}'`
13266 { echo "$as_me:$LINENO: result: $ac_res" >&5
13267 echo "${ECHO_T}$ac_res" >&6; }
13270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13271 cat >>confdefs.h <<_ACEOF
13272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13279 if test $ac_cv_header_locale_h = yes; then
13280 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13281 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13282 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13283 echo $ECHO_N "(cached) $ECHO_C" >&6
13285 cat >conftest.$ac_ext <<_ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 #include <locale.h>
13300 rm -f conftest.$ac_objext conftest$ac_exeext
13301 if { (ac_try="$ac_link"
13302 case "(($ac_try" in
13303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_link") 2>conftest.er1
13309 grep -v '^ *+' conftest.er1 >conftest.err
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } && {
13314 test -z "$ac_c_werror_flag" ||
13315 test ! -s conftest.err
13316 } && test -s conftest$ac_exeext &&
13317 $as_test_x conftest$ac_exeext; then
13318 am_cv_val_LC_MESSAGES=yes
13320 echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.$ac_ext >&5
13323 am_cv_val_LC_MESSAGES=no
13326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13327 conftest$ac_exeext conftest.$ac_ext
13329 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13330 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
13331 if test $am_cv_val_LC_MESSAGES = yes; then
13333 cat >>confdefs.h <<\_ACEOF
13334 #define HAVE_LC_MESSAGES 1
13342 gt_cv_have_gettext=no
13348 if test "${ac_cv_header_libintl_h+set}" = set; then
13349 { echo "$as_me:$LINENO: checking for libintl.h" >&5
13350 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
13351 if test "${ac_cv_header_libintl_h+set}" = set; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13355 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
13357 # Is the header compilable?
13358 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
13359 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
13360 cat >conftest.$ac_ext <<_ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366 $ac_includes_default
13367 #include <libintl.h>
13369 rm -f conftest.$ac_objext
13370 if { (ac_try="$ac_compile"
13371 case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_compile") 2>conftest.er1
13378 grep -v '^ *+' conftest.er1 >conftest.err
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && {
13383 test -z "$ac_c_werror_flag" ||
13384 test ! -s conftest.err
13385 } && test -s conftest.$ac_objext; then
13386 ac_header_compiler=yes
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13391 ac_header_compiler=no
13394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13396 echo "${ECHO_T}$ac_header_compiler" >&6; }
13398 # Is the header present?
13399 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
13400 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
13401 cat >conftest.$ac_ext <<_ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h. */
13407 #include <libintl.h>
13409 if { (ac_try="$ac_cpp conftest.$ac_ext"
13410 case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13417 grep -v '^ *+' conftest.er1 >conftest.err
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } >/dev/null && {
13422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13423 test ! -s conftest.err
13425 ac_header_preproc=yes
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13430 ac_header_preproc=no
13433 rm -f conftest.err conftest.$ac_ext
13434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13435 echo "${ECHO_T}$ac_header_preproc" >&6; }
13437 # So? What about this header?
13438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13440 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13441 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13442 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
13443 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
13444 ac_header_preproc=yes
13447 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
13448 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
13449 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
13450 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
13451 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
13452 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
13453 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
13454 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
13455 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13456 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13457 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
13458 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
13462 { echo "$as_me:$LINENO: checking for libintl.h" >&5
13463 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
13464 if test "${ac_cv_header_libintl_h+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 ac_cv_header_libintl_h=$ac_header_preproc
13469 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13470 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
13473 if test $ac_cv_header_libintl_h = yes; then
13474 gt_cv_func_dgettext_libintl="no"
13475 libintl_extra_libs=""
13478 # First check in libc
13480 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
13481 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
13482 if test "${gt_cv_func_ngettext_libc+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 cat >conftest.$ac_ext <<_ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13492 #include <libintl.h>
13497 return !ngettext ("","", 1)
13502 rm -f conftest.$ac_objext conftest$ac_exeext
13503 if { (ac_try="$ac_link"
13504 case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_link") 2>conftest.er1
13511 grep -v '^ *+' conftest.er1 >conftest.err
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } && {
13516 test -z "$ac_c_werror_flag" ||
13517 test ! -s conftest.err
13518 } && test -s conftest$ac_exeext &&
13519 $as_test_x conftest$ac_exeext; then
13520 gt_cv_func_ngettext_libc=yes
13522 echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13525 gt_cv_func_ngettext_libc=no
13528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13529 conftest$ac_exeext conftest.$ac_ext
13532 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
13533 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
13535 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
13536 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
13537 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
13538 if test "${gt_cv_func_dgettext_libc+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 cat >conftest.$ac_ext <<_ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13548 #include <libintl.h>
13553 return !dgettext ("","")
13558 rm -f conftest.$ac_objext conftest$ac_exeext
13559 if { (ac_try="$ac_link"
13560 case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_link") 2>conftest.er1
13567 grep -v '^ *+' conftest.er1 >conftest.err
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } && {
13572 test -z "$ac_c_werror_flag" ||
13573 test ! -s conftest.err
13574 } && test -s conftest$ac_exeext &&
13575 $as_test_x conftest$ac_exeext; then
13576 gt_cv_func_dgettext_libc=yes
13578 echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13581 gt_cv_func_dgettext_libc=no
13584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13585 conftest$ac_exeext conftest.$ac_ext
13588 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
13589 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
13592 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
13594 for ac_func in bind_textdomain_codeset
13596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 cat >conftest.$ac_ext <<_ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13610 #define $ac_func innocuous_$ac_func
13612 /* System header to define __stub macros and hopefully few prototypes,
13613 which can conflict with char $ac_func (); below.
13614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13615 <limits.h> exists even on freestanding compilers. */
13618 # include <limits.h>
13620 # include <assert.h>
13625 /* Override any GCC internal prototype to avoid an error.
13626 Use char because int might match the return type of a GCC
13627 builtin and then its argument prototype would still apply. */
13632 /* The GNU C library defines this for functions which it implements
13633 to always fail with ENOSYS. Some functions are actually named
13634 something starting with __ and the normal name is an alias. */
13635 #if defined __stub_$ac_func || defined __stub___$ac_func
13642 return $ac_func ();
13647 rm -f conftest.$ac_objext conftest$ac_exeext
13648 if { (ac_try="$ac_link"
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_link") 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); } && {
13661 test -z "$ac_c_werror_flag" ||
13662 test ! -s conftest.err
13663 } && test -s conftest$ac_exeext &&
13664 $as_test_x conftest$ac_exeext; then
13665 eval "$as_ac_var=yes"
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 eval "$as_ac_var=no"
13673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13674 conftest$ac_exeext conftest.$ac_ext
13676 ac_res=`eval echo '${'$as_ac_var'}'`
13677 { echo "$as_me:$LINENO: result: $ac_res" >&5
13678 echo "${ECHO_T}$ac_res" >&6; }
13679 if test `eval echo '${'$as_ac_var'}'` = yes; then
13680 cat >>confdefs.h <<_ACEOF
13681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13690 # If we don't have everything we want, check in libintl
13692 if test "$gt_cv_func_dgettext_libc" != "yes" \
13693 || test "$gt_cv_func_ngettext_libc" != "yes" \
13694 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
13696 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
13697 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
13698 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 ac_check_lib_save_LIBS=$LIBS
13702 LIBS="-lintl $LIBS"
13703 cat >conftest.$ac_ext <<_ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13710 /* Override any GCC internal prototype to avoid an error.
13711 Use char because int might match the return type of a GCC
13712 builtin and then its argument prototype would still apply. */
13716 char bindtextdomain ();
13720 return bindtextdomain ();
13725 rm -f conftest.$ac_objext conftest$ac_exeext
13726 if { (ac_try="$ac_link"
13727 case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_link") 2>conftest.er1
13734 grep -v '^ *+' conftest.er1 >conftest.err
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } && {
13739 test -z "$ac_c_werror_flag" ||
13740 test ! -s conftest.err
13741 } && test -s conftest$ac_exeext &&
13742 $as_test_x conftest$ac_exeext; then
13743 ac_cv_lib_intl_bindtextdomain=yes
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13748 ac_cv_lib_intl_bindtextdomain=no
13751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13752 conftest$ac_exeext conftest.$ac_ext
13753 LIBS=$ac_check_lib_save_LIBS
13755 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
13756 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
13757 if test $ac_cv_lib_intl_bindtextdomain = yes; then
13758 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
13759 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
13760 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 ac_check_lib_save_LIBS=$LIBS
13764 LIBS="-lintl $LIBS"
13765 cat >conftest.$ac_ext <<_ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13772 /* Override any GCC internal prototype to avoid an error.
13773 Use char because int might match the return type of a GCC
13774 builtin and then its argument prototype would still apply. */
13782 return ngettext ();
13787 rm -f conftest.$ac_objext conftest$ac_exeext
13788 if { (ac_try="$ac_link"
13789 case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_link") 2>conftest.er1
13796 grep -v '^ *+' conftest.er1 >conftest.err
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } && {
13801 test -z "$ac_c_werror_flag" ||
13802 test ! -s conftest.err
13803 } && test -s conftest$ac_exeext &&
13804 $as_test_x conftest$ac_exeext; then
13805 ac_cv_lib_intl_ngettext=yes
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13810 ac_cv_lib_intl_ngettext=no
13813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13814 conftest$ac_exeext conftest.$ac_ext
13815 LIBS=$ac_check_lib_save_LIBS
13817 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
13818 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
13819 if test $ac_cv_lib_intl_ngettext = yes; then
13820 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
13821 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
13822 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 ac_check_lib_save_LIBS=$LIBS
13826 LIBS="-lintl $LIBS"
13827 cat >conftest.$ac_ext <<_ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13834 /* Override any GCC internal prototype to avoid an error.
13835 Use char because int might match the return type of a GCC
13836 builtin and then its argument prototype would still apply. */
13844 return dgettext ();
13849 rm -f conftest.$ac_objext conftest$ac_exeext
13850 if { (ac_try="$ac_link"
13851 case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_link") 2>conftest.er1
13858 grep -v '^ *+' conftest.er1 >conftest.err
13860 cat conftest.err >&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } && {
13863 test -z "$ac_c_werror_flag" ||
13864 test ! -s conftest.err
13865 } && test -s conftest$ac_exeext &&
13866 $as_test_x conftest$ac_exeext; then
13867 ac_cv_lib_intl_dgettext=yes
13869 echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13872 ac_cv_lib_intl_dgettext=no
13875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13876 conftest$ac_exeext conftest.$ac_ext
13877 LIBS=$ac_check_lib_save_LIBS
13879 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
13880 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
13881 if test $ac_cv_lib_intl_dgettext = yes; then
13882 gt_cv_func_dgettext_libintl=yes
13890 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
13891 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
13892 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
13893 { echo "$as_me:$LINENO: result: " >&5
13894 echo "${ECHO_T}" >&6; }
13895 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
13896 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
13897 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 ac_check_lib_save_LIBS=$LIBS
13901 LIBS="-lintl -liconv $LIBS"
13902 cat >conftest.$ac_ext <<_ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13909 /* Override any GCC internal prototype to avoid an error.
13910 Use char because int might match the return type of a GCC
13911 builtin and then its argument prototype would still apply. */
13919 return ngettext ();
13924 rm -f conftest.$ac_objext conftest$ac_exeext
13925 if { (ac_try="$ac_link"
13926 case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_link") 2>conftest.er1
13933 grep -v '^ *+' conftest.er1 >conftest.err
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } && {
13938 test -z "$ac_c_werror_flag" ||
13939 test ! -s conftest.err
13940 } && test -s conftest$ac_exeext &&
13941 $as_test_x conftest$ac_exeext; then
13942 ac_cv_lib_intl_ngettext=yes
13944 echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13947 ac_cv_lib_intl_ngettext=no
13950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13951 conftest$ac_exeext conftest.$ac_ext
13952 LIBS=$ac_check_lib_save_LIBS
13954 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
13955 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
13956 if test $ac_cv_lib_intl_ngettext = yes; then
13957 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
13958 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
13959 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 ac_check_lib_save_LIBS=$LIBS
13963 LIBS="-lintl -liconv $LIBS"
13964 cat >conftest.$ac_ext <<_ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13981 return dcgettext ();
13986 rm -f conftest.$ac_objext conftest$ac_exeext
13987 if { (ac_try="$ac_link"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_link") 2>conftest.er1
13995 grep -v '^ *+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest$ac_exeext &&
14003 $as_test_x conftest$ac_exeext; then
14004 ac_cv_lib_intl_dcgettext=yes
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14009 ac_cv_lib_intl_dcgettext=no
14012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14013 conftest$ac_exeext conftest.$ac_ext
14014 LIBS=$ac_check_lib_save_LIBS
14016 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
14017 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
14018 if test $ac_cv_lib_intl_dcgettext = yes; then
14019 gt_cv_func_dgettext_libintl=yes
14020 libintl_extra_libs=-liconv
14032 # If we found libintl, then check in it for bind_textdomain_codeset();
14033 # we'll prefer libc if neither have bind_textdomain_codeset(),
14034 # and both have dgettext and ngettext
14036 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
14037 glib_save_LIBS="$LIBS"
14038 LIBS="$LIBS -lintl $libintl_extra_libs"
14039 unset ac_cv_func_bind_textdomain_codeset
14041 for ac_func in bind_textdomain_codeset
14043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 cat >conftest.$ac_ext <<_ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14057 #define $ac_func innocuous_$ac_func
14059 /* System header to define __stub macros and hopefully few prototypes,
14060 which can conflict with char $ac_func (); below.
14061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14062 <limits.h> exists even on freestanding compilers. */
14065 # include <limits.h>
14067 # include <assert.h>
14072 /* Override any GCC internal prototype to avoid an error.
14073 Use char because int might match the return type of a GCC
14074 builtin and then its argument prototype would still apply. */
14079 /* The GNU C library defines this for functions which it implements
14080 to always fail with ENOSYS. Some functions are actually named
14081 something starting with __ and the normal name is an alias. */
14082 #if defined __stub_$ac_func || defined __stub___$ac_func
14089 return $ac_func ();
14094 rm -f conftest.$ac_objext conftest$ac_exeext
14095 if { (ac_try="$ac_link"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_link") 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest$ac_exeext &&
14111 $as_test_x conftest$ac_exeext; then
14112 eval "$as_ac_var=yes"
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14117 eval "$as_ac_var=no"
14120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14121 conftest$ac_exeext conftest.$ac_ext
14123 ac_res=`eval echo '${'$as_ac_var'}'`
14124 { echo "$as_me:$LINENO: result: $ac_res" >&5
14125 echo "${ECHO_T}$ac_res" >&6; }
14126 if test `eval echo '${'$as_ac_var'}'` = yes; then
14127 cat >>confdefs.h <<_ACEOF
14128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14134 LIBS="$glib_save_LIBS"
14136 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
14137 gt_cv_func_dgettext_libc=no
14139 if test "$gt_cv_func_dgettext_libc" = "yes" \
14140 && test "$gt_cv_func_ngettext_libc" = "yes"; then
14141 gt_cv_func_dgettext_libintl=no
14147 if test "$gt_cv_func_dgettext_libc" = "yes" \
14148 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
14149 gt_cv_have_gettext=yes
14152 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
14153 INTLLIBS="-lintl $libintl_extra_libs"
14156 if test "$gt_cv_have_gettext" = "yes"; then
14158 cat >>confdefs.h <<\_ACEOF
14159 #define HAVE_GETTEXT 1
14162 # Extract the first word of "msgfmt", so it can be a program name with args.
14163 set dummy msgfmt; ac_word=$2
14164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14166 if test "${ac_cv_path_MSGFMT+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14175 for ac_dir in $PATH; do
14176 test -z "$ac_dir" && ac_dir=.
14177 if test -f $ac_dir/$ac_word; then
14178 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
14179 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14185 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
14189 MSGFMT="$ac_cv_path_MSGFMT"
14190 if test "$MSGFMT" != "no"; then
14191 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
14192 echo "${ECHO_T}$MSGFMT" >&6; }
14194 { echo "$as_me:$LINENO: result: no" >&5
14195 echo "${ECHO_T}no" >&6; }
14197 if test "$MSGFMT" != "no"; then
14198 glib_save_LIBS="$LIBS"
14199 LIBS="$LIBS $INTLLIBS"
14201 for ac_func in dcgettext
14203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 cat >conftest.$ac_ext <<_ACEOF
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h. */
14215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14217 #define $ac_func innocuous_$ac_func
14219 /* System header to define __stub macros and hopefully few prototypes,
14220 which can conflict with char $ac_func (); below.
14221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14222 <limits.h> exists even on freestanding compilers. */
14225 # include <limits.h>
14227 # include <assert.h>
14232 /* Override any GCC internal prototype to avoid an error.
14233 Use char because int might match the return type of a GCC
14234 builtin and then its argument prototype would still apply. */
14239 /* The GNU C library defines this for functions which it implements
14240 to always fail with ENOSYS. Some functions are actually named
14241 something starting with __ and the normal name is an alias. */
14242 #if defined __stub_$ac_func || defined __stub___$ac_func
14249 return $ac_func ();
14254 rm -f conftest.$ac_objext conftest$ac_exeext
14255 if { (ac_try="$ac_link"
14256 case "(($ac_try" in
14257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14258 *) ac_try_echo=$ac_try;;
14260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14261 (eval "$ac_link") 2>conftest.er1
14263 grep -v '^ *+' conftest.er1 >conftest.err
14265 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } && {
14268 test -z "$ac_c_werror_flag" ||
14269 test ! -s conftest.err
14270 } && test -s conftest$ac_exeext &&
14271 $as_test_x conftest$ac_exeext; then
14272 eval "$as_ac_var=yes"
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14277 eval "$as_ac_var=no"
14280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14281 conftest$ac_exeext conftest.$ac_ext
14283 ac_res=`eval echo '${'$as_ac_var'}'`
14284 { echo "$as_me:$LINENO: result: $ac_res" >&5
14285 echo "${ECHO_T}$ac_res" >&6; }
14286 if test `eval echo '${'$as_ac_var'}'` = yes; then
14287 cat >>confdefs.h <<_ACEOF
14288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14295 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
14296 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
14297 cat >conftest.foo <<_ACEOF
14301 "Content-Type: text/plain; charset=UTF-8\n"
14302 "Project-Id-Version: test 1.0\n"
14303 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
14304 "Last-Translator: test <foo@bar.xx>\n"
14305 "Language-Team: C <LL@li.org>\n"
14306 "MIME-Version: 1.0\n"
14307 "Content-Transfer-Encoding: 8bit\n"
14310 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
14311 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; then
14315 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
14316 echo "${ECHO_T}yes" >&6; }
14317 else { echo "$as_me:$LINENO: result: no" >&5
14318 echo "${ECHO_T}no" >&6; }
14319 echo "$as_me: failed input was:" >&5
14320 sed 's/^/| /' conftest.foo >&5
14323 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14324 set dummy gmsgfmt; ac_word=$2
14325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14327 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $PATH
14339 test -z "$as_dir" && as_dir=.
14340 for ac_exec_ext in '' $ac_executable_extensions; do
14341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14342 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14350 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14354 GMSGFMT=$ac_cv_path_GMSGFMT
14355 if test -n "$GMSGFMT"; then
14356 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14357 echo "${ECHO_T}$GMSGFMT" >&6; }
14359 { echo "$as_me:$LINENO: result: no" >&5
14360 echo "${ECHO_T}no" >&6; }
14364 # Extract the first word of "xgettext", so it can be a program name with args.
14365 set dummy xgettext; ac_word=$2
14366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14368 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 case "$XGETTEXT" in
14373 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14377 for ac_dir in $PATH; do
14378 test -z "$ac_dir" && ac_dir=.
14379 if test -f $ac_dir/$ac_word; then
14380 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
14381 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
14387 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14391 XGETTEXT="$ac_cv_path_XGETTEXT"
14392 if test "$XGETTEXT" != ":"; then
14393 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
14394 echo "${ECHO_T}$XGETTEXT" >&6; }
14396 { echo "$as_me:$LINENO: result: no" >&5
14397 echo "${ECHO_T}no" >&6; }
14400 cat >conftest.$ac_ext <<_ACEOF
14403 cat confdefs.h >>conftest.$ac_ext
14404 cat >>conftest.$ac_ext <<_ACEOF
14405 /* end confdefs.h. */
14410 extern int _nl_msg_cat_cntr;
14411 return _nl_msg_cat_cntr
14416 rm -f conftest.$ac_objext conftest$ac_exeext
14417 if { (ac_try="$ac_link"
14418 case "(($ac_try" in
14419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420 *) ac_try_echo=$ac_try;;
14422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423 (eval "$ac_link") 2>conftest.er1
14425 grep -v '^ *+' conftest.er1 >conftest.err
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } && {
14430 test -z "$ac_c_werror_flag" ||
14431 test ! -s conftest.err
14432 } && test -s conftest$ac_exeext &&
14433 $as_test_x conftest$ac_exeext; then
14437 echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14442 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
14443 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
14444 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14447 cat >conftest.$ac_ext <<_ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
14454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14455 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
14457 /* System header to define __stub macros and hopefully few prototypes,
14458 which can conflict with char bind_textdomain_codeset (); below.
14459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14460 <limits.h> exists even on freestanding compilers. */
14463 # include <limits.h>
14465 # include <assert.h>
14468 #undef bind_textdomain_codeset
14470 /* Override any GCC internal prototype to avoid an error.
14471 Use char because int might match the return type of a GCC
14472 builtin and then its argument prototype would still apply. */
14476 char bind_textdomain_codeset ();
14477 /* The GNU C library defines this for functions which it implements
14478 to always fail with ENOSYS. Some functions are actually named
14479 something starting with __ and the normal name is an alias. */
14480 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
14487 return bind_textdomain_codeset ();
14492 rm -f conftest.$ac_objext conftest$ac_exeext
14493 if { (ac_try="$ac_link"
14494 case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_link") 2>conftest.er1
14501 grep -v '^ *+' conftest.er1 >conftest.err
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } && {
14506 test -z "$ac_c_werror_flag" ||
14507 test ! -s conftest.err
14508 } && test -s conftest$ac_exeext &&
14509 $as_test_x conftest$ac_exeext; then
14510 ac_cv_func_bind_textdomain_codeset=yes
14512 echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14515 ac_cv_func_bind_textdomain_codeset=no
14518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14519 conftest$ac_exeext conftest.$ac_ext
14521 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
14522 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
14523 if test $ac_cv_func_bind_textdomain_codeset = yes; then
14539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14540 conftest$ac_exeext conftest.$ac_ext
14541 LIBS="$glib_save_LIBS"
14544 gt_cv_have_gettext=no
14552 if test "$gt_cv_have_gettext" = "yes" ; then
14554 cat >>confdefs.h <<\_ACEOF
14555 #define ENABLE_NLS 1
14560 if test "$XGETTEXT" != ":"; then
14561 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
14564 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
14565 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
14570 # We need to process the po/ directory.
14573 ac_config_commands="$ac_config_commands default-1"
14576 for lang in $ALL_LINGUAS; do
14577 GMOFILES="$GMOFILES $lang.gmo"
14578 POFILES="$POFILES $lang.po"
14593 if test "$gt_cv_have_gettext" = "yes"; then
14594 if test "x$ALL_LINGUAS" = "x"; then
14597 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
14598 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
14600 for presentlang in $ALL_LINGUAS; do
14602 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
14603 desiredlanguages="$LINGUAS"
14605 desiredlanguages="$ALL_LINGUAS"
14607 for desiredlang in $desiredlanguages; do
14608 # Use the presentlang catalog if desiredlang is
14609 # a. equal to presentlang, or
14610 # b. a variant of presentlang (because in this case,
14611 # presentlang can be used as a fallback for messages
14612 # which are not translated in the desiredlang catalog).
14613 case "$desiredlang" in
14614 "$presentlang"*) useit=yes;;
14617 if test $useit = yes; then
14618 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
14621 LINGUAS=$NEW_LINGUAS
14622 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
14623 echo "${ECHO_T}$LINGUAS" >&6; }
14626 if test -n "$LINGUAS"; then
14627 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
14632 if test -n "$ac_aux_dir"; then
14633 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
14635 if test -z "$MKINSTALLDIRS"; then
14636 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14640 test -d po || mkdir po
14641 if test "x$srcdir" != "x."; then
14642 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
14643 posrcprefix="$srcdir/"
14645 posrcprefix="../$srcdir/"
14651 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
14652 < $srcdir/po/POTFILES.in > po/POTFILES
14655 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
14657 cat >confcache <<\_ACEOF
14658 # This file is a shell script that caches the results of configure
14659 # tests run on this system so they can be shared between configure
14660 # scripts and configure runs, see configure's option --config-cache.
14661 # It is not useful on other systems. If it contains results you don't
14662 # want to keep, you may remove or edit it.
14664 # config.status only pays attention to the cache file if you give it
14665 # the --recheck option to rerun configure.
14667 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14668 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14669 # following values.
14673 # The following way of writing the cache mishandles newlines in values,
14674 # but we know of no workaround that is simple, portable, and efficient.
14675 # So, we kill variables containing newlines.
14676 # Ultrix sh set writes to stderr and can't be redirected directly,
14677 # and sets the high bit in the cache file unless we assign to the vars.
14679 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14680 eval ac_val=\$$ac_var
14684 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14685 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14688 _ | IFS | as_nl) ;; #(
14689 *) $as_unset $ac_var ;;
14695 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14696 *${as_nl}ac_space=\ *)
14697 # `set' does not quote correctly, so add quotes (double-quote
14698 # substitution turns \\\\ into \\, and sed turns \\ into \).
14701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14704 # `set' quotes correctly as required by POSIX, so do not add quotes.
14705 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14716 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14718 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14719 if test -w "$cache_file"; then
14720 test "x$cache_file" != "x/dev/null" &&
14721 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14722 echo "$as_me: updating cache $cache_file" >&6;}
14723 cat confcache >$cache_file
14725 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14726 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14732 # Let make expand exec_prefix.
14733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14735 DEFS=-DHAVE_CONFIG_H
14739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14740 # 1. Remove the extension, and $U if already installed.
14741 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14742 ac_i=`echo "$ac_i" | sed "$ac_script"`
14743 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14744 # will be set to the directory where LIBOBJS objects are built.
14745 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14746 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14748 LIBOBJS=$ac_libobjs
14750 LTLIBOBJS=$ac_ltlibobjs
14753 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14754 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14755 Usually this means the macro was only invoked conditionally." >&5
14756 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14757 Usually this means the macro was only invoked conditionally." >&2;}
14758 { (exit 1); exit 1; }; }
14760 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14761 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14762 Usually this means the macro was only invoked conditionally." >&5
14763 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14764 Usually this means the macro was only invoked conditionally." >&2;}
14765 { (exit 1); exit 1; }; }
14767 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14768 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14769 Usually this means the macro was only invoked conditionally." >&5
14770 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14771 Usually this means the macro was only invoked conditionally." >&2;}
14772 { (exit 1); exit 1; }; }
14774 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14775 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14776 Usually this means the macro was only invoked conditionally." >&5
14777 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14778 Usually this means the macro was only invoked conditionally." >&2;}
14779 { (exit 1); exit 1; }; }
14781 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
14782 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
14783 Usually this means the macro was only invoked conditionally." >&5
14784 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
14785 Usually this means the macro was only invoked conditionally." >&2;}
14786 { (exit 1); exit 1; }; }
14788 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14789 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14790 Usually this means the macro was only invoked conditionally." >&5
14791 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14792 Usually this means the macro was only invoked conditionally." >&2;}
14793 { (exit 1); exit 1; }; }
14795 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
14796 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
14797 Usually this means the macro was only invoked conditionally." >&5
14798 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
14799 Usually this means the macro was only invoked conditionally." >&2;}
14800 { (exit 1); exit 1; }; }
14802 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
14803 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
14804 Usually this means the macro was only invoked conditionally." >&5
14805 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
14806 Usually this means the macro was only invoked conditionally." >&2;}
14807 { (exit 1); exit 1; }; }
14809 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
14810 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SHARED\" was never defined.
14811 Usually this means the macro was only invoked conditionally." >&5
14812 echo "$as_me: error: conditional \"BUILD_SHARED\" was never defined.
14813 Usually this means the macro was only invoked conditionally." >&2;}
14814 { (exit 1); exit 1; }; }
14816 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
14817 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
14818 Usually this means the macro was only invoked conditionally." >&5
14819 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
14820 Usually this means the macro was only invoked conditionally." >&2;}
14821 { (exit 1); exit 1; }; }
14823 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
14824 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
14825 Usually this means the macro was only invoked conditionally." >&5
14826 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
14827 Usually this means the macro was only invoked conditionally." >&2;}
14828 { (exit 1); exit 1; }; }
14830 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
14831 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
14832 Usually this means the macro was only invoked conditionally." >&5
14833 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
14834 Usually this means the macro was only invoked conditionally." >&2;}
14835 { (exit 1); exit 1; }; }
14837 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
14838 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
14839 Usually this means the macro was only invoked conditionally." >&5
14840 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
14841 Usually this means the macro was only invoked conditionally." >&2;}
14842 { (exit 1); exit 1; }; }
14844 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
14845 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
14846 Usually this means the macro was only invoked conditionally." >&5
14847 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
14848 Usually this means the macro was only invoked conditionally." >&2;}
14849 { (exit 1); exit 1; }; }
14851 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
14852 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
14853 Usually this means the macro was only invoked conditionally." >&5
14854 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
14855 Usually this means the macro was only invoked conditionally." >&2;}
14856 { (exit 1); exit 1; }; }
14858 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
14859 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
14860 Usually this means the macro was only invoked conditionally." >&5
14861 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
14862 Usually this means the macro was only invoked conditionally." >&2;}
14863 { (exit 1); exit 1; }; }
14865 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
14866 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
14867 Usually this means the macro was only invoked conditionally." >&5
14868 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
14869 Usually this means the macro was only invoked conditionally." >&2;}
14870 { (exit 1); exit 1; }; }
14872 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
14873 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
14874 Usually this means the macro was only invoked conditionally." >&5
14875 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
14876 Usually this means the macro was only invoked conditionally." >&2;}
14877 { (exit 1); exit 1; }; }
14879 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
14880 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
14881 Usually this means the macro was only invoked conditionally." >&5
14882 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
14883 Usually this means the macro was only invoked conditionally." >&2;}
14884 { (exit 1); exit 1; }; }
14886 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
14887 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
14888 Usually this means the macro was only invoked conditionally." >&5
14889 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
14890 Usually this means the macro was only invoked conditionally." >&2;}
14891 { (exit 1); exit 1; }; }
14893 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
14894 { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
14895 Usually this means the macro was only invoked conditionally." >&5
14896 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
14897 Usually this means the macro was only invoked conditionally." >&2;}
14898 { (exit 1); exit 1; }; }
14900 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
14901 { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
14902 Usually this means the macro was only invoked conditionally." >&5
14903 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
14904 Usually this means the macro was only invoked conditionally." >&2;}
14905 { (exit 1); exit 1; }; }
14907 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
14908 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
14909 Usually this means the macro was only invoked conditionally." >&5
14910 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
14911 Usually this means the macro was only invoked conditionally." >&2;}
14912 { (exit 1); exit 1; }; }
14914 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
14915 { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
14916 Usually this means the macro was only invoked conditionally." >&5
14917 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
14918 Usually this means the macro was only invoked conditionally." >&2;}
14919 { (exit 1); exit 1; }; }
14921 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
14922 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
14923 Usually this means the macro was only invoked conditionally." >&5
14924 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
14925 Usually this means the macro was only invoked conditionally." >&2;}
14926 { (exit 1); exit 1; }; }
14928 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
14929 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
14930 Usually this means the macro was only invoked conditionally." >&5
14931 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
14932 Usually this means the macro was only invoked conditionally." >&2;}
14933 { (exit 1); exit 1; }; }
14936 : ${CONFIG_STATUS=./config.status}
14937 ac_clean_files_save=$ac_clean_files
14938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14939 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14940 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14941 cat >$CONFIG_STATUS <<_ACEOF
14943 # Generated by $as_me.
14944 # Run this file to recreate the current configuration.
14945 # Compiler output produced by configure, useful for debugging
14946 # configure, is in config.log if it exists.
14949 ac_cs_recheck=false
14951 SHELL=\${CONFIG_SHELL-$SHELL}
14954 cat >>$CONFIG_STATUS <<\_ACEOF
14955 ## --------------------- ##
14956 ## M4sh Initialization. ##
14957 ## --------------------- ##
14959 # Be more Bourne compatible
14960 DUALCASE=1; export DUALCASE # for MKS sh
14961 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14964 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14965 # is contrary to our usage. Disable this feature.
14966 alias -g '${1+"$@"}'='"$@"'
14967 setopt NO_GLOB_SUBST
14969 case `(set -o) 2>/dev/null` in
14970 *posix*) set -o posix ;;
14979 # Avoid depending upon Character Ranges.
14980 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14981 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14982 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14983 as_cr_digits='0123456789'
14984 as_cr_alnum=$as_cr_Letters$as_cr_digits
14986 # The user is always right.
14987 if test "${PATH_SEPARATOR+set}" != set; then
14988 echo "#! /bin/sh" >conf$$.sh
14989 echo "exit 0" >>conf$$.sh
14991 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14999 # Support unset when possible.
15000 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15008 # We need space, tab and new line, in precisely that order. Quoting is
15009 # there to prevent editors from complaining about space-tab.
15010 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15011 # splitting by setting IFS to empty value.)
15016 # Find who we are. Look in the path if we contain no directory separator.
15018 *[\\/]* ) as_myself=$0 ;;
15019 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15020 for as_dir in $PATH
15023 test -z "$as_dir" && as_dir=.
15024 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15030 # We did not find ourselves, most probably we were run as `sh COMMAND'
15031 # in which case we are not to be found in the path.
15032 if test "x$as_myself" = x; then
15035 if test ! -f "$as_myself"; then
15036 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15037 { (exit 1); exit 1; }
15040 # Work around bugs in pre-3.0 UWIN ksh.
15041 for as_var in ENV MAIL MAILPATH
15042 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15050 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15051 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15052 LC_TELEPHONE LC_TIME
15054 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15055 eval $as_var=C; export $as_var
15057 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15061 # Required to use basename.
15062 if expr a : '\(a\)' >/dev/null 2>&1 &&
15063 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15069 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15070 as_basename=basename
15076 # Name of the executable.
15077 as_me=`$as_basename -- "$0" ||
15078 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15079 X"$0" : 'X\(//\)$' \| \
15080 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15082 sed '/^.*\/\([^/][^/]*\)\/*$/{
15101 as_lineno_1=$LINENO
15102 as_lineno_2=$LINENO
15103 test "x$as_lineno_1" != "x$as_lineno_2" &&
15104 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15106 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15107 # uniformly replaced by the line number. The first 'sed' inserts a
15108 # line-number line after each line using $LINENO; the second 'sed'
15109 # does the real work. The second script uses 'N' to pair each
15110 # line-number line with the line containing $LINENO, and appends
15111 # trailing '-' during substitution so that $LINENO is not a special
15112 # case at line end.
15113 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15114 # scripts with optimization help from Paolo Bonzini. Blame Lee
15115 # E. McMahon (1931-1989) for sed's syntax. :-)
15127 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15130 ' >$as_me.lineno &&
15131 chmod +x "$as_me.lineno" ||
15132 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15133 { (exit 1); exit 1; }; }
15135 # Don't try to exec as it changes $[0], causing all sort of problems
15136 # (the dirname of $[0] is not the place where we might find the
15137 # original and so on. Autoconf is especially sensitive to this).
15138 . "./$as_me.lineno"
15139 # Exit status is that of the last command.
15144 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15150 ECHO_C= ECHO_N= ECHO_T=
15151 case `echo -n x` in
15153 case `echo 'x\c'` in
15154 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15161 if expr a : '\(a\)' >/dev/null 2>&1 &&
15162 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15168 rm -f conf$$ conf$$.exe conf$$.file
15169 if test -d conf$$.dir; then
15170 rm -f conf$$.dir/conf$$.file
15176 if ln -s conf$$.file conf$$ 2>/dev/null; then
15178 # ... but there are two gotchas:
15179 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15180 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15181 # In both cases, we have to default to `cp -p'.
15182 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15184 elif ln conf$$.file conf$$ 2>/dev/null; then
15189 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15190 rmdir conf$$.dir 2>/dev/null
15192 if mkdir -p . 2>/dev/null; then
15195 test -d ./-p && rmdir ./-p
15199 if test -x / >/dev/null 2>&1; then
15200 as_test_x='test -x'
15202 if ls -dL / >/dev/null 2>&1; then
15209 if test -d "$1"; then
15215 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15216 ???[sx]*):;;*)false;;esac;fi
15220 as_executable_p=$as_test_x
15222 # Sed expression to map a string onto a valid CPP name.
15223 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15225 # Sed expression to map a string onto a valid variable name.
15226 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15231 # Save the log message, to keep $[0] and so on meaningful, and to
15232 # report actual input values of CONFIG_FILES etc. instead of their
15233 # values after options handling.
15235 This file was extended by $as_me, which was
15236 generated by GNU Autoconf 2.61. Invocation command line was
15238 CONFIG_FILES = $CONFIG_FILES
15239 CONFIG_HEADERS = $CONFIG_HEADERS
15240 CONFIG_LINKS = $CONFIG_LINKS
15241 CONFIG_COMMANDS = $CONFIG_COMMANDS
15244 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15249 cat >>$CONFIG_STATUS <<_ACEOF
15250 # Files that config.status was made for.
15251 config_files="$ac_config_files"
15252 config_headers="$ac_config_headers"
15253 config_commands="$ac_config_commands"
15257 cat >>$CONFIG_STATUS <<\_ACEOF
15259 \`$as_me' instantiates files from templates according to the
15260 current configuration.
15262 Usage: $0 [OPTIONS] [FILE]...
15264 -h, --help print this help, then exit
15265 -V, --version print version number and configuration settings, then exit
15266 -q, --quiet do not print progress messages
15267 -d, --debug don't remove temporary files
15268 --recheck update $as_me by reconfiguring in the same conditions
15269 --file=FILE[:TEMPLATE]
15270 instantiate the configuration file FILE
15271 --header=FILE[:TEMPLATE]
15272 instantiate the configuration header FILE
15274 Configuration files:
15277 Configuration headers:
15280 Configuration commands:
15283 Report bugs to <bug-autoconf@gnu.org>."
15286 cat >>$CONFIG_STATUS <<_ACEOF
15289 configured by $0, generated by GNU Autoconf 2.61,
15290 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15292 Copyright (C) 2006 Free Software Foundation, Inc.
15293 This config.status script is free software; the Free Software Foundation
15294 gives unlimited permission to copy, distribute and modify it."
15301 cat >>$CONFIG_STATUS <<\_ACEOF
15302 # If no file are specified by the user, then we need to provide default
15303 # value. By we need to know if files were specified by the user.
15309 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15310 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15321 # Handling of the options.
15322 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15324 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15325 echo "$ac_cs_version"; exit ;;
15326 --debug | --debu | --deb | --de | --d | -d )
15328 --file | --fil | --fi | --f )
15330 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15331 ac_need_defaults=false;;
15332 --header | --heade | --head | --hea )
15334 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15335 ac_need_defaults=false;;
15337 # Conflict between --help and --header
15338 { echo "$as_me: error: ambiguous option: $1
15339 Try \`$0 --help' for more information." >&2
15340 { (exit 1); exit 1; }; };;
15341 --help | --hel | -h )
15342 echo "$ac_cs_usage"; exit ;;
15343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15344 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15347 # This is an error.
15348 -*) { echo "$as_me: error: unrecognized option: $1
15349 Try \`$0 --help' for more information." >&2
15350 { (exit 1); exit 1; }; } ;;
15352 *) ac_config_targets="$ac_config_targets $1"
15353 ac_need_defaults=false ;;
15359 ac_configure_extra_args=
15361 if $ac_cs_silent; then
15363 ac_configure_extra_args="$ac_configure_extra_args --silent"
15367 cat >>$CONFIG_STATUS <<_ACEOF
15368 if \$ac_cs_recheck; then
15369 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15370 CONFIG_SHELL=$SHELL
15371 export CONFIG_SHELL
15372 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15376 cat >>$CONFIG_STATUS <<\_ACEOF
15380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15381 ## Running $as_me. ##
15387 cat >>$CONFIG_STATUS <<_ACEOF
15391 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15396 cat >>$CONFIG_STATUS <<\_ACEOF
15398 # Handling of arguments.
15399 for ac_config_target in $ac_config_targets
15401 case $ac_config_target in
15402 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15403 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15404 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15405 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15406 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15407 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15408 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15409 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
15411 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15412 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15413 { (exit 1); exit 1; }; };;
15418 # If the user did not use the arguments to specify the items to instantiate,
15419 # then the envvar interface is used. Set only those that are not.
15420 # We use the long form for the default assignment because of an extremely
15421 # bizarre bug on SunOS 4.1.3.
15422 if $ac_need_defaults; then
15423 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15424 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15425 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15428 # Have a temporary directory for convenience. Make it in the build tree
15429 # simply because there is no reason against having it here, and in addition,
15430 # creating and moving files from /tmp can sometimes cause problems.
15431 # Hook for its removal unless debugging.
15432 # Note that there is a small window in which the directory will not be cleaned:
15433 # after its creation but before its name has been assigned to `$tmp'.
15437 trap 'exit_status=$?
15438 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15440 trap '{ (exit 1); exit 1; }' 1 2 13 15
15442 # Create a (secure) tmp directory for tmp files.
15445 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15446 test -n "$tmp" && test -d "$tmp"
15449 tmp=./conf$$-$RANDOM
15450 (umask 077 && mkdir "$tmp")
15453 echo "$me: cannot create a temporary directory in ." >&2
15454 { (exit 1); exit 1; }
15458 # Set up the sed scripts for CONFIG_FILES section.
15461 # No need to generate the scripts if there are no CONFIG_FILES.
15462 # This happens for instance when ./config.status config.h
15463 if test -n "$CONFIG_FILES"; then
15470 for ac_last_try in false false false false false :; do
15471 cat >conf$$subs.sed <<_ACEOF
15472 SHELL!$SHELL$ac_delim
15473 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15474 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15475 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15476 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15477 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15478 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15479 exec_prefix!$exec_prefix$ac_delim
15480 prefix!$prefix$ac_delim
15481 program_transform_name!$program_transform_name$ac_delim
15482 bindir!$bindir$ac_delim
15483 sbindir!$sbindir$ac_delim
15484 libexecdir!$libexecdir$ac_delim
15485 datarootdir!$datarootdir$ac_delim
15486 datadir!$datadir$ac_delim
15487 sysconfdir!$sysconfdir$ac_delim
15488 sharedstatedir!$sharedstatedir$ac_delim
15489 localstatedir!$localstatedir$ac_delim
15490 includedir!$includedir$ac_delim
15491 oldincludedir!$oldincludedir$ac_delim
15492 docdir!$docdir$ac_delim
15493 infodir!$infodir$ac_delim
15494 htmldir!$htmldir$ac_delim
15495 dvidir!$dvidir$ac_delim
15496 pdfdir!$pdfdir$ac_delim
15497 psdir!$psdir$ac_delim
15498 libdir!$libdir$ac_delim
15499 localedir!$localedir$ac_delim
15500 mandir!$mandir$ac_delim
15501 DEFS!$DEFS$ac_delim
15502 ECHO_C!$ECHO_C$ac_delim
15503 ECHO_N!$ECHO_N$ac_delim
15504 ECHO_T!$ECHO_T$ac_delim
15505 LIBS!$LIBS$ac_delim
15506 build_alias!$build_alias$ac_delim
15507 host_alias!$host_alias$ac_delim
15508 target_alias!$target_alias$ac_delim
15509 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15510 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15511 INSTALL_DATA!$INSTALL_DATA$ac_delim
15512 CYGPATH_W!$CYGPATH_W$ac_delim
15513 PACKAGE!$PACKAGE$ac_delim
15514 VERSION!$VERSION$ac_delim
15515 ACLOCAL!$ACLOCAL$ac_delim
15516 AUTOCONF!$AUTOCONF$ac_delim
15517 AUTOMAKE!$AUTOMAKE$ac_delim
15518 AUTOHEADER!$AUTOHEADER$ac_delim
15519 MAKEINFO!$MAKEINFO$ac_delim
15520 install_sh!$install_sh$ac_delim
15521 STRIP!$STRIP$ac_delim
15522 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
15523 mkdir_p!$mkdir_p$ac_delim
15525 SET_MAKE!$SET_MAKE$ac_delim
15526 am__leading_dot!$am__leading_dot$ac_delim
15527 AMTAR!$AMTAR$ac_delim
15528 am__tar!$am__tar$ac_delim
15529 am__untar!$am__untar$ac_delim
15530 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
15531 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
15532 MAINT!$MAINT$ac_delim
15534 CFLAGS!$CFLAGS$ac_delim
15535 LDFLAGS!$LDFLAGS$ac_delim
15536 CPPFLAGS!$CPPFLAGS$ac_delim
15537 ac_ct_CC!$ac_ct_CC$ac_delim
15538 EXEEXT!$EXEEXT$ac_delim
15539 OBJEXT!$OBJEXT$ac_delim
15540 DEPDIR!$DEPDIR$ac_delim
15541 am__include!$am__include$ac_delim
15542 am__quote!$am__quote$ac_delim
15543 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
15544 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
15545 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
15546 CCDEPMODE!$CCDEPMODE$ac_delim
15547 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
15548 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
15550 build!$build$ac_delim
15551 build_cpu!$build_cpu$ac_delim
15552 build_vendor!$build_vendor$ac_delim
15553 build_os!$build_os$ac_delim
15554 host!$host$ac_delim
15555 host_cpu!$host_cpu$ac_delim
15556 host_vendor!$host_vendor$ac_delim
15557 host_os!$host_os$ac_delim
15559 CFLAGS!$CFLAGS$ac_delim
15560 CPPFLAGS!$CPPFLAGS$ac_delim
15561 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
15562 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
15563 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
15564 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
15565 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
15567 CPPFLAGS!$CPPFLAGS$ac_delim
15568 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
15571 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15573 elif $ac_last_try; then
15574 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15575 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15576 { (exit 1); exit 1; }; }
15578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15582 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15583 if test -n "$ac_eof"; then
15584 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15585 ac_eof=`expr $ac_eof + 1`
15588 cat >>$CONFIG_STATUS <<_ACEOF
15589 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15593 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15594 s/^/s,@/; s/!/@,|#_!!_#|/
15597 s/'"$ac_delim"'$/,g/; t
15599 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15600 ' >>$CONFIG_STATUS <conf$$subs.sed
15601 rm -f conf$$subs.sed
15602 cat >>$CONFIG_STATUS <<_ACEOF
15608 for ac_last_try in false false false false false :; do
15609 cat >conf$$subs.sed <<_ACEOF
15610 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
15611 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
15612 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
15613 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
15614 OBJC!$OBJC$ac_delim
15615 OBJCFLAGS!$OBJCFLAGS$ac_delim
15616 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
15618 CCAS!$CCAS$ac_delim
15619 CCASFLAGS!$CCASFLAGS$ac_delim
15620 GREP!$GREP$ac_delim
15621 EGREP!$EGREP$ac_delim
15622 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
15623 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
15624 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
15625 POD2MAN!$POD2MAN$ac_delim
15626 POD2HTML!$POD2HTML$ac_delim
15627 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
15628 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
15629 SOEXT!$SOEXT$ac_delim
15630 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
15631 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
15632 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
15633 BUILD_SHARED_TRUE!$BUILD_SHARED_TRUE$ac_delim
15634 BUILD_SHARED_FALSE!$BUILD_SHARED_FALSE$ac_delim
15635 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
15636 PKG_CONFIG!$PKG_CONFIG$ac_delim
15637 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
15638 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
15639 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
15640 GLIB_LIBS!$GLIB_LIBS$ac_delim
15641 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
15642 GTK_LIBS!$GTK_LIBS$ac_delim
15643 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
15644 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
15645 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
15646 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
15647 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
15648 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
15649 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
15650 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
15651 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
15652 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
15653 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
15654 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
15655 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
15656 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
15657 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
15658 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
15659 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
15660 SDL_LIBS!$SDL_LIBS$ac_delim
15661 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
15662 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
15663 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
15664 PULSE_LIBS!$PULSE_LIBS$ac_delim
15665 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
15666 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
15667 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
15668 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
15669 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
15670 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
15671 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
15672 ALSA_LIBS!$ALSA_LIBS$ac_delim
15673 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
15674 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
15675 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
15676 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
15677 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
15678 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
15679 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
15680 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
15681 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
15682 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
15683 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
15684 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
15685 SHCC!$SHCC$ac_delim
15686 SHLD!$SHLD$ac_delim
15687 SHOBJCOPY!$SHOBJCOPY$ac_delim
15688 ARMCC!$ARMCC$ac_delim
15689 ARMLD!$ARMLD$ac_delim
15690 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
15691 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
15692 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
15693 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
15694 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
15695 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
15696 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15697 USE_NLS!$USE_NLS$ac_delim
15698 MSGFMT!$MSGFMT$ac_delim
15699 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
15700 GMSGFMT!$GMSGFMT$ac_delim
15701 XGETTEXT!$XGETTEXT$ac_delim
15702 CATALOGS!$CATALOGS$ac_delim
15703 CATOBJEXT!$CATOBJEXT$ac_delim
15704 DATADIRNAME!$DATADIRNAME$ac_delim
15705 GMOFILES!$GMOFILES$ac_delim
15706 INSTOBJEXT!$INSTOBJEXT$ac_delim
15709 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15711 elif $ac_last_try; then
15712 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15713 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15714 { (exit 1); exit 1; }; }
15716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15720 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15721 if test -n "$ac_eof"; then
15722 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15723 ac_eof=`expr $ac_eof + 1`
15726 cat >>$CONFIG_STATUS <<_ACEOF
15727 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15731 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15732 s/^/s,@/; s/!/@,|#_!!_#|/
15735 s/'"$ac_delim"'$/,g/; t
15737 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15738 ' >>$CONFIG_STATUS <conf$$subs.sed
15739 rm -f conf$$subs.sed
15740 cat >>$CONFIG_STATUS <<_ACEOF
15746 for ac_last_try in false false false false false :; do
15747 cat >conf$$subs.sed <<_ACEOF
15748 INTLLIBS!$INTLLIBS$ac_delim
15749 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
15750 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
15751 POFILES!$POFILES$ac_delim
15752 POSUB!$POSUB$ac_delim
15753 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15754 LIBOBJS!$LIBOBJS$ac_delim
15755 LTLIBOBJS!$LTLIBOBJS$ac_delim
15758 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
15760 elif $ac_last_try; then
15761 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15762 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15763 { (exit 1); exit 1; }; }
15765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15769 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15770 if test -n "$ac_eof"; then
15771 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15772 ac_eof=`expr $ac_eof + 1`
15775 cat >>$CONFIG_STATUS <<_ACEOF
15776 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
15777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15780 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15781 s/^/s,@/; s/!/@,|#_!!_#|/
15784 s/'"$ac_delim"'$/,g/; t
15786 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15787 ' >>$CONFIG_STATUS <conf$$subs.sed
15788 rm -f conf$$subs.sed
15789 cat >>$CONFIG_STATUS <<_ACEOF
15796 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15797 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15798 # trailing colons and then remove the whole line if VPATH becomes empty
15799 # (actually we leave an empty line to preserve line numbers).
15800 if test "x$srcdir" = x.; then
15801 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15802 s/:*\$(srcdir):*/:/
15803 s/:*\${srcdir}:*/:/
15805 s/^\([^=]*=[ ]*\):*/\1/
15811 cat >>$CONFIG_STATUS <<\_ACEOF
15812 fi # test -n "$CONFIG_FILES"
15815 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
15818 :[FHLC]) ac_mode=$ac_tag; continue;;
15820 case $ac_mode$ac_tag in
15822 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15823 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15824 { (exit 1); exit 1; }; };;
15825 :[FH]-) ac_tag=-:-;;
15826 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15843 -) ac_f="$tmp/stdin";;
15844 *) # Look for the file first in the build tree, then in the source tree
15845 # (if the path is not absolute). The absolute path cannot be DOS-style,
15846 # because $ac_f cannot contain `:'.
15850 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15852 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15853 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15854 { (exit 1); exit 1; }; };;
15856 ac_file_inputs="$ac_file_inputs $ac_f"
15859 # Let's still pretend it is `configure' which instantiates (i.e., don't
15860 # use $as_me), people would be surprised to read:
15861 # /* config.h. Generated by config.status. */
15862 configure_input="Generated from "`IFS=:
15863 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15864 if test x"$ac_file" != x-; then
15865 configure_input="$ac_file. $configure_input"
15866 { echo "$as_me:$LINENO: creating $ac_file" >&5
15867 echo "$as_me: creating $ac_file" >&6;}
15871 *:-:* | *:-) cat >"$tmp/stdin";;
15876 ac_dir=`$as_dirname -- "$ac_file" ||
15877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15878 X"$ac_file" : 'X\(//\)[^/]' \| \
15879 X"$ac_file" : 'X\(//\)$' \| \
15880 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15886 /^X\(\/\/\)[^/].*/{
15901 -*) as_dir=./$as_dir;;
15903 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15907 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15908 *) as_qdir=$as_dir;;
15910 as_dirs="'$as_qdir' $as_dirs"
15911 as_dir=`$as_dirname -- "$as_dir" ||
15912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15913 X"$as_dir" : 'X\(//\)[^/]' \| \
15914 X"$as_dir" : 'X\(//\)$' \| \
15915 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15921 /^X\(\/\/\)[^/].*/{
15934 test -d "$as_dir" && break
15936 test -z "$as_dirs" || eval "mkdir $as_dirs"
15937 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15938 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15939 { (exit 1); exit 1; }; }; }
15943 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15945 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15946 # A ".." for each directory in $ac_dir_suffix.
15947 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15948 case $ac_top_builddir_sub in
15949 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15950 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15953 ac_abs_top_builddir=$ac_pwd
15954 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15955 # for backward compatibility:
15956 ac_top_builddir=$ac_top_build_prefix
15959 .) # We are building in place.
15961 ac_top_srcdir=$ac_top_builddir_sub
15962 ac_abs_top_srcdir=$ac_pwd ;;
15963 [\\/]* | ?:[\\/]* ) # Absolute name.
15964 ac_srcdir=$srcdir$ac_dir_suffix;
15965 ac_top_srcdir=$srcdir
15966 ac_abs_top_srcdir=$srcdir ;;
15967 *) # Relative name.
15968 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15969 ac_top_srcdir=$ac_top_build_prefix$srcdir
15970 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15972 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15982 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15983 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15987 cat >>$CONFIG_STATUS <<\_ACEOF
15988 # If the template does not know about datarootdir, expand it.
15989 # FIXME: This hack should be removed a few years after 2.60.
15990 ac_datarootdir_hack=; ac_datarootdir_seen=
15992 case `sed -n '/datarootdir/ {
16001 ' $ac_file_inputs` in
16002 *datarootdir*) ac_datarootdir_seen=yes;;
16003 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16004 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16005 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16007 cat >>$CONFIG_STATUS <<_ACEOF
16008 ac_datarootdir_hack='
16009 s&@datadir@&$datadir&g
16010 s&@docdir@&$docdir&g
16011 s&@infodir@&$infodir&g
16012 s&@localedir@&$localedir&g
16013 s&@mandir@&$mandir&g
16014 s&\\\${datarootdir}&$datarootdir&g' ;;
16018 # Neutralize VPATH when `$srcdir' = `.'.
16019 # Shell code in configure.ac might set extrasub.
16020 # FIXME: do we really want to maintain this feature?
16021 cat >>$CONFIG_STATUS <<_ACEOF
16025 cat >>$CONFIG_STATUS <<\_ACEOF
16027 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16028 s&@configure_input@&$configure_input&;t t
16029 s&@top_builddir@&$ac_top_builddir_sub&;t t
16030 s&@srcdir@&$ac_srcdir&;t t
16031 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16032 s&@top_srcdir@&$ac_top_srcdir&;t t
16033 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16034 s&@builddir@&$ac_builddir&;t t
16035 s&@abs_builddir@&$ac_abs_builddir&;t t
16036 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16037 s&@INSTALL@&$ac_INSTALL&;t t
16038 $ac_datarootdir_hack
16039 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
16041 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16042 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16043 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16044 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16045 which seems to be undefined. Please make sure it is defined." >&5
16046 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16047 which seems to be undefined. Please make sure it is defined." >&2;}
16051 -) cat "$tmp/out"; rm -f "$tmp/out";;
16052 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16061 # Transform confdefs.h into a sed script `conftest.defines', that
16062 # substitutes the proper values into config.h.in to produce config.h.
16063 rm -f conftest.defines conftest.tail
16064 # First, append a space to every undef/define line, to ease matching.
16065 echo 's/$/ /' >conftest.defines
16066 # Then, protect against being on the right side of a sed subst, or in
16067 # an unquoted here document, in config.status. If some macros were
16068 # called several times there might be several #defines for the same
16069 # symbol, which is useless. But do not sort them, since the last
16070 # AC_DEFINE must be honored.
16071 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16072 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
16073 # NAME is the cpp macro being defined, VALUE is the value it is being given.
16074 # PARAMS is the parameter list in the macro definition--in most cases, it's
16075 # just an empty string.
16076 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
16077 ac_dB='\\)[ (].*,\\1define\\2'
16085 s/^[ ]*#[ ]*define[ ][ ]*//
16090 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
16091 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
16092 ' >>conftest.defines
16094 # Remove the space that was appended to ease matching.
16095 # Then replace #undef with comments. This is necessary, for
16096 # example, in the case of _POSIX_SOURCE, which is predefined and required
16097 # on some systems where configure will not decide to define it.
16098 # (The regexp can be short, since the line contains either #define or #undef.)
16100 s,^[ #]*u.*,/* & */,' >>conftest.defines
16102 # Break up conftest.defines:
16103 ac_max_sed_lines=50
16105 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
16106 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
16107 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
16109 ac_in='$ac_file_inputs'
16110 ac_out='"$tmp/out1"'
16111 ac_nxt='"$tmp/out2"'
16115 # Write a here document:
16116 cat >>$CONFIG_STATUS <<_ACEOF
16117 # First, check the format of the line:
16118 cat >"\$tmp/defines.sed" <<\\CEOF
16119 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
16120 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
16124 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
16126 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16127 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16128 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16129 grep . conftest.tail >/dev/null || break
16130 rm -f conftest.defines
16131 mv conftest.tail conftest.defines
16133 rm -f conftest.defines conftest.tail
16135 echo "ac_result=$ac_in" >>$CONFIG_STATUS
16136 cat >>$CONFIG_STATUS <<\_ACEOF
16137 if test x"$ac_file" != x-; then
16138 echo "/* $configure_input */" >"$tmp/config.h"
16139 cat "$ac_result" >>"$tmp/config.h"
16140 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
16141 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16142 echo "$as_me: $ac_file is unchanged" >&6;}
16145 mv "$tmp/config.h" $ac_file
16148 echo "/* $configure_input */"
16152 # Compute $ac_file's index in $config_headers.
16154 for _am_header in $config_headers :; do
16155 case $_am_header in
16156 $ac_file | $ac_file:* )
16159 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16162 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
16163 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16164 X$ac_file : 'X\(//\)[^/]' \| \
16165 X$ac_file : 'X\(//\)$' \| \
16166 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
16168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16172 /^X\(\/\/\)[^/].*/{
16184 s/.*/./; q'`/stamp-h$_am_stamp_count
16187 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16188 echo "$as_me: executing $ac_file commands" >&6;}
16193 case $ac_file$ac_mode in
16194 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16195 # Strip MF so we end up with the name of the file.
16196 mf=`echo "$mf" | sed -e 's/:.*$//'`
16197 # Check whether this is an Automake generated Makefile or not.
16198 # We used to match only the files named `Makefile.in', but
16199 # some people rename them; so instead we look at the file content.
16200 # Grep'ing the first line is not enough: some people post-process
16201 # each Makefile.in and add a new line on top of each file to say so.
16202 # So let's grep whole file.
16203 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16204 dirpart=`$as_dirname -- "$mf" ||
16205 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16206 X"$mf" : 'X\(//\)[^/]' \| \
16207 X"$mf" : 'X\(//\)$' \| \
16208 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16214 /^X\(\/\/\)[^/].*/{
16230 # Extract the definition of DEPDIR, am__include, and am__quote
16231 # from the Makefile without running `make'.
16232 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16233 test -z "$DEPDIR" && continue
16234 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16235 test -z "am__include" && continue
16236 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16237 # When using ansi2knr, U may be empty or an underscore; expand it
16238 U=`sed -n 's/^U = //p' < "$mf"`
16239 # Find all dependency output files, they are included files with
16240 # $(DEPDIR) in their names. We invoke sed twice because it is the
16241 # simplest approach to changing $(DEPDIR) to its actual value in the
16243 for file in `sed -n "
16244 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16245 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16246 # Make sure the directory exists.
16247 test -f "$dirpart/$file" && continue
16248 fdir=`$as_dirname -- "$file" ||
16249 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16250 X"$file" : 'X\(//\)[^/]' \| \
16251 X"$file" : 'X\(//\)$' \| \
16252 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16258 /^X\(\/\/\)[^/].*/{
16271 { as_dir=$dirpart/$fdir
16273 -*) as_dir=./$as_dir;;
16275 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16279 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16280 *) as_qdir=$as_dir;;
16282 as_dirs="'$as_qdir' $as_dirs"
16283 as_dir=`$as_dirname -- "$as_dir" ||
16284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16285 X"$as_dir" : 'X\(//\)[^/]' \| \
16286 X"$as_dir" : 'X\(//\)$' \| \
16287 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16293 /^X\(\/\/\)[^/].*/{
16306 test -d "$as_dir" && break
16308 test -z "$as_dirs" || eval "mkdir $as_dirs"
16309 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16310 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16311 { (exit 1); exit 1; }; }; }
16312 # echo "creating $dirpart/$file"
16313 echo '# dummy' > "$dirpart/$file"
16317 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
16318 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
16325 { (exit 0); exit 0; }
16327 chmod +x $CONFIG_STATUS
16328 ac_clean_files=$ac_clean_files_save
16331 # configure is writing to config.log, and then calls config.status.
16332 # config.status does its own redirection, appending to config.log.
16333 # Unfortunately, on DOS this fails, as config.log is still kept open
16334 # by configure, so config.status won't be able to write to it; its
16335 # output is simply discarded. So we exec the FD to /dev/null,
16336 # effectively closing config.log, so it can be properly (re)opened and
16337 # appended to by config.status. When coming back to configure, we
16338 # need to make the FD available again.
16339 if test "$no_create" != yes; then
16341 ac_config_status_args=
16342 test "$silent" = yes &&
16343 ac_config_status_args="$ac_config_status_args --quiet"
16345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16348 # would make configure fail if this is the last instruction.
16349 $ac_cs_success || { (exit 1); exit 1; }
16354 -*) as_dir=./$as_dir;;
16356 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16360 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16361 *) as_qdir=$as_dir;;
16363 as_dirs="'$as_qdir' $as_dirs"
16364 as_dir=`$as_dirname -- "$as_dir" ||
16365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16366 X"$as_dir" : 'X\(//\)[^/]' \| \
16367 X"$as_dir" : 'X\(//\)$' \| \
16368 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16374 /^X\(\/\/\)[^/].*/{
16387 test -d "$as_dir" && break
16389 test -z "$as_dirs" || eval "mkdir $as_dirs"
16390 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16391 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16392 { (exit 1); exit 1; }; }; }
16396 echo "Configuration complete"
16399 if test "x$HAVE_GTK" = x; then
16400 if test "x$HAVE_COCOA" = x; then
16401 echo " User interface: none"
16403 echo " User interface: Cocoa"
16406 echo " User interface: GTK"
16409 if test "x$SH4_TRANSLATOR" = "x"; then
16410 echo " SH4 translator: None (emulation core only)"
16412 echo " SH4 translator: $SH4_TRANSLATOR"
16415 if test "x$VIDEO_DRIVERS" = "x"; then
16416 echo " Video drivers: none (no supported GL found)"
16418 echo " Video drivers: $VIDEO_DRIVERS"
16421 if test "x$AUDIO_DRIVERS" = "x"; then
16422 echo " Audio drivers: none (no supported output devices found)"
16424 echo " Audio drivers: $AUDIO_DRIVERS"
16427 if test "x$INPUT_DRIVERS" = "x"; then
16428 echo " Input drivers: none (no supported input devices found)"
16430 echo " Input drivers: $INPUT_DRIVERS"
16433 if test "x$CDROM_DRIVER" = "x"; then
16434 echo " CD-ROM driver: none (no supported cd-rom devices found)"
16436 echo " CD-ROM driver: $CDROM_DRIVER"
.