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
712 am__fastdepOBJC_FALSE
804 ac_precious_vars='build_alias
838 # Initialize some variables set by options.
840 ac_init_version=false
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
850 program_transform_name=s,x,x,
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE}'
875 infodir='${datarootdir}/info'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
896 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
924 cache_file=config.cache ;;
926 -datadir | --datadir | --datadi | --datad)
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
938 -disable-* | --disable-*)
939 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
945 eval enable_$ac_feature=no ;;
947 -docdir | --docdir | --docdi | --doc | --do)
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 -enable-* | --enable-*)
958 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
961 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
962 { (exit 1); exit 1; }; }
963 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
964 eval enable_$ac_feature=\$ac_optarg ;;
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
979 -help | --help | --hel | --he | -h)
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 htmldir=$ac_optarg ;;
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1009 -libdir | --libdir | --libdi | --libd)
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1100 -psdir | --psdir | --psdi | --psd | --ps)
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 sbindir=$ac_optarg ;;
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 sharedstatedir=$ac_optarg ;;
1126 -site | --site | --sit)
1128 -site=* | --site=* | --sit=*)
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1155 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158 { echo "$as_me: error: invalid package name: $ac_package" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1161 eval with_$ac_package=\$ac_optarg ;;
1163 -without-* | --without-*)
1164 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 { echo "$as_me: error: invalid package name: $ac_package" >&2
1168 { (exit 1); exit 1; }; }
1169 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1170 eval with_$ac_package=no ;;
1173 # Obsolete; use --with-x.
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1190 -*) { echo "$as_me: error: unrecognized option: $ac_option
1191 Try \`$0 --help' for more information." >&2
1192 { (exit 1); exit 1; }; }
1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1199 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1200 { (exit 1); exit 1; }; }
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1205 # FIXME: should be removed in autoconf 3.0.
1206 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 { echo "$as_me: error: missing argument to $ac_option" >&2
1218 { (exit 1); exit 1; }; }
1221 # Be sure to have absolute directory names.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1227 eval ac_val=\$$ac_var
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1233 { (exit 1); exit 1; }; }
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1241 target=$target_alias
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x; then
1245 if test "x$build_alias" = x; then
1246 cross_compiling=maybe
1247 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1248 If a cross compiler is detected then cross compile mode will be used." >&2
1249 elif test "x$build_alias" != "x$host_alias"; then
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257 test "$silent" = yes && exec 6>/dev/null
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 { echo "$as_me: error: Working directory cannot be determined" >&2
1264 { (exit 1); exit 1; }; }
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266 { echo "$as_me: error: pwd does not report name of working directory" >&2
1267 { (exit 1); exit 1; }; }
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$0" ||
1275 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$0" : 'X\(//\)[^/]' \| \
1277 X"$0" : 'X\(//\)$' \| \
1278 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1302 ac_srcdir_defaulted=no
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1307 { (exit 1); exit 1; }; }
1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1312 { (exit 1); exit 1; }; }
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 # Report the --help message.
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1338 \`configure' configures this package to adapt to many kinds of systems.
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1345 Defaults for the options are specified in brackets.
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print \`checking...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 By default, \`make install' will install all the files in
1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367 for instance \`--prefix=\$HOME'.
1369 For better control, use the options below.
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1396 --program-prefix=PREFIX prepend PREFIX to installed program names
1397 --program-suffix=SUFFIX append SUFFIX to installed program names
1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 if test -n "$ac_init_help"; then
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --enable-maintainer-mode enable make rules and dependencies not useful
1414 (and sometimes confusing) to the casual installer
1415 --disable-dependency-tracking speeds up one-time build
1416 --enable-dependency-tracking do not reject slow dependency extractors
1417 --enable-strict-warn Enable strict compilation warnings
1418 --disable-translator Disable the SH4 translator (Enabled by default)
1419 --disable-optimized Disable compile-time optimizations (Enabled by
1421 --enable-shared Build drivers as shared libraries (Enabled if
1423 --enable-profiled Enable profiling build
1424 --enable-trace Enable generation of IO traces (warning: hurts
1426 --enable-watch Enable watchpoints in the debugger (warning: hurts
1428 --enable-sh4stats Enable statistics on executed sh4 instructions
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-osmesa Build with the osmesa GL library (software
1435 --with-gtk Build with the GTK UI. Default on X11 systems
1436 --with-esd Build with support for the ESounD audio system
1437 --with-pulse Build with support for the PulseAudio audio system
1438 --with-sdl Build with support for SDL audio
1440 Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 LIBS libraries to pass to the linker, e.g. -l<library>
1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 OBJC Objective C compiler command
1449 OBJCFLAGS Objective C compiler flags
1450 CCAS assembler compiler command (defaults to CC)
1451 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1453 PKG_CONFIG path to pkg-config utility
1455 C compiler flags for LIBPNG, overriding pkg-config
1456 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1457 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1458 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1459 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1460 GTK_LIBS linker flags for GTK, overriding pkg-config
1462 C compiler flags for LIBISOFS, overriding pkg-config
1464 linker flags for LIBISOFS, overriding pkg-config
1466 C compiler flags for LIBGL, overriding pkg-config
1467 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1468 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1469 SDL_LIBS linker flags for SDL, overriding pkg-config
1471 C compiler flags for PULSE, overriding pkg-config
1472 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1474 C compiler flags for ESOUND, overriding pkg-config
1475 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1476 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1477 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1479 Use these variables to override the choices made by `configure' or to help
1480 it to find libraries and programs with nonstandard names/locations.
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" || continue
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1509 .) # We are building in place.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1543 generated by GNU Autoconf 2.61
1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1546 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1552 cat >config.log <<_ACEOF
1553 This file contains any messages produced by compilers while
1554 running configure, to aid debugging if configure makes a mistake.
1556 It was created by $as_me, which was
1557 generated by GNU Autoconf 2.61. Invocation command line was
1569 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1570 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1571 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1572 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1573 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1575 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1576 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1578 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1579 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1580 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1581 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1582 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1583 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1584 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592 test -z "$as_dir" && as_dir=.
1593 echo "PATH: $as_dir"
1609 # Keep a trace of the command line.
1610 # Strip out --no-create and --no-recursion so they do not pile up.
1611 # Strip out --silent because we don't want to record it for future runs.
1612 # Also quote any args containing shell meta-characters.
1613 # Make two passes to allow for proper duplicate-argument suppression.
1617 ac_must_keep_next=false
1623 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1625 | -silent | --silent | --silen | --sile | --sil)
1628 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1631 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1633 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1634 if test $ac_must_keep_next = true; then
1635 ac_must_keep_next=false # Got value, back to normal.
1638 *=* | --config-cache | -C | -disable-* | --disable-* \
1639 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1640 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1641 | -with-* | --with-* | -without-* | --without-* | --x)
1642 case "$ac_configure_args0 " in
1643 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646 -* ) ac_must_keep_next=true ;;
1649 ac_configure_args="$ac_configure_args '$ac_arg'"
1654 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1655 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1657 # When interrupted or exit'd, cleanup temporary files, and complete
1658 # config.log. We remove comments because anyway the quotes in there
1659 # would cause problems or look ugly.
1660 # WARNING: Use '\'' to represent an apostrophe within the trap.
1661 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1662 trap 'exit_status=$?
1663 # Save into config.log some information that might help in debugging.
1668 ## ---------------- ##
1669 ## Cache variables. ##
1670 ## ---------------- ##
1673 # The following way of writing the cache mishandles newlines in values,
1675 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1676 eval ac_val=\$$ac_var
1680 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1681 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1684 _ | IFS | as_nl) ;; #(
1685 *) $as_unset $ac_var ;;
1690 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1691 *${as_nl}ac_space=\ *)
1693 "s/'\''/'\''\\\\'\'''\''/g;
1694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1705 ## ----------------- ##
1706 ## Output variables. ##
1707 ## ----------------- ##
1710 for ac_var in $ac_subst_vars
1712 eval ac_val=\$$ac_var
1714 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1716 echo "$ac_var='\''$ac_val'\''"
1720 if test -n "$ac_subst_files"; then
1722 ## ------------------- ##
1723 ## File substitutions. ##
1724 ## ------------------- ##
1727 for ac_var in $ac_subst_files
1729 eval ac_val=\$$ac_var
1731 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733 echo "$ac_var='\''$ac_val'\''"
1738 if test -s confdefs.h; then
1748 test "$ac_signal" != 0 &&
1749 echo "$as_me: caught signal $ac_signal"
1750 echo "$as_me: exit $exit_status"
1752 rm -f core *.core core.conftest.* &&
1753 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1756 for ac_signal in 1 2 13 15; do
1757 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1761 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1762 rm -f -r conftest* confdefs.h
1764 # Predefined preprocessor variables.
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_NAME "$PACKAGE_NAME"
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_STRING "$PACKAGE_STRING"
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1791 # Let the site file select an alternate cache file if it wants to.
1792 # Prefer explicitly selected file to automatically selected ones.
1793 if test -n "$CONFIG_SITE"; then
1794 set x "$CONFIG_SITE"
1795 elif test "x$prefix" != xNONE; then
1796 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1798 set x "$ac_default_prefix/share/config.site" \
1799 "$ac_default_prefix/etc/config.site"
1804 if test -r "$ac_site_file"; then
1805 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1806 echo "$as_me: loading site script $ac_site_file" >&6;}
1807 sed 's/^/| /' "$ac_site_file" >&5
1812 if test -r "$cache_file"; then
1813 # Some versions of bash will fail to source /dev/null (special
1814 # files actually), so we avoid doing that.
1815 if test -f "$cache_file"; then
1816 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1817 echo "$as_me: loading cache $cache_file" >&6;}
1819 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1820 *) . "./$cache_file";;
1824 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1825 echo "$as_me: creating cache $cache_file" >&6;}
1829 # Check that the precious variables saved in the cache have kept the same
1831 ac_cache_corrupted=false
1832 for ac_var in $ac_precious_vars; do
1833 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1834 eval ac_new_set=\$ac_env_${ac_var}_set
1835 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1836 eval ac_new_val=\$ac_env_${ac_var}_value
1837 case $ac_old_set,$ac_new_set in
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1843 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1844 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1845 ac_cache_corrupted=: ;;
1848 if test "x$ac_old_val" != "x$ac_new_val"; then
1849 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1850 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1851 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1852 echo "$as_me: former value: $ac_old_val" >&2;}
1853 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1854 echo "$as_me: current value: $ac_new_val" >&2;}
1855 ac_cache_corrupted=:
1858 # Pass precious variables to config.status.
1859 if test "$ac_new_set" = set; then
1861 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1862 *) ac_arg=$ac_var=$ac_new_val ;;
1864 case " $ac_configure_args " in
1865 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1866 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1870 if $ac_cache_corrupted; then
1871 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1872 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1873 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1874 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1875 { (exit 1); exit 1; }; }
1895 ac_cpp='$CPP $CPPFLAGS'
1896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901 am__api_version="1.9"
1903 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1904 if test -f "$ac_dir/install-sh"; then
1906 ac_install_sh="$ac_aux_dir/install-sh -c"
1908 elif test -f "$ac_dir/install.sh"; then
1910 ac_install_sh="$ac_aux_dir/install.sh -c"
1912 elif test -f "$ac_dir/shtool"; then
1914 ac_install_sh="$ac_aux_dir/shtool install -c"
1918 if test -z "$ac_aux_dir"; then
1919 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1920 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1921 { (exit 1); exit 1; }; }
1924 # These three variables are undocumented and unsupported,
1925 # and are intended to be withdrawn in a future Autoconf release.
1926 # They can cause serious problems if a builder's source tree is in a directory
1927 # whose full name contains unusual characters.
1928 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1929 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1930 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1933 # Find a good install program. We prefer a C program (faster),
1934 # so one script is as good as another. But avoid the broken or
1935 # incompatible versions:
1936 # SysV /etc/install, /usr/sbin/install
1937 # SunOS /usr/etc/install
1938 # IRIX /sbin/install
1940 # AmigaOS /C/install, which installs bootblocks on floppy discs
1941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1944 # OS/2's system install, which has a completely different semantic
1945 # ./install, which can be erroneously created by make from ./install.sh.
1946 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1947 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1948 if test -z "$INSTALL"; then
1949 if test "${ac_cv_path_install+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 test -z "$as_dir" && as_dir=.
1957 # Account for people who put trailing slashes in PATH elements.
1959 ./ | .// | /cC/* | \
1960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1961 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1964 # OSF1 and SCO ODT 3.0 have their own names for install.
1965 # Don't use installbsd from OSF since it installs stuff as root
1967 for ac_prog in ginstall scoinst install; do
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1970 if test $ac_prog = install &&
1971 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1972 # AIX install. It has an incompatible calling convention.
1974 elif test $ac_prog = install &&
1975 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1976 # program-specific install script used by HP pwplus--don't use.
1979 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1992 if test "${ac_cv_path_install+set}" = set; then
1993 INSTALL=$ac_cv_path_install
1995 # As a last resort, use the slow shell script. Don't cache a
1996 # value for INSTALL within a source directory, because that will
1997 # break other packages using the cache if that directory is
1998 # removed, or if the value is a relative name.
1999 INSTALL=$ac_install_sh
2002 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2003 echo "${ECHO_T}$INSTALL" >&6; }
2005 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2006 # It thinks the first close brace ends the variable substitution.
2007 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2009 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2011 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2013 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2014 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2017 echo timestamp > conftest.file
2018 # Do `set' in a subshell so we don't clobber the current shell's
2019 # arguments. Must try -L first in case configure is actually a
2020 # symlink; some systems play weird games with the mod time of symlinks
2021 # (eg FreeBSD returns the mod time of the symlink's containing
2024 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2025 if test "$*" = "X"; then
2027 set X `ls -t $srcdir/configure conftest.file`
2030 if test "$*" != "X $srcdir/configure conftest.file" \
2031 && test "$*" != "X conftest.file $srcdir/configure"; then
2033 # If neither matched, then we have a broken ls. This can happen
2034 # if, for instance, CONFIG_SHELL is bash and it inherits a
2035 # broken ls alias from the environment. This has actually
2036 # happened. Such a system could not be considered "sane".
2037 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2038 alias in your environment" >&5
2039 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2040 alias in your environment" >&2;}
2041 { (exit 1); exit 1; }; }
2044 test "$2" = conftest.file
2050 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2051 Check your system clock" >&5
2052 echo "$as_me: error: newly created file is older than distributed files!
2053 Check your system clock" >&2;}
2054 { (exit 1); exit 1; }; }
2056 { echo "$as_me:$LINENO: result: yes" >&5
2057 echo "${ECHO_T}yes" >&6; }
2058 test "$program_prefix" != NONE &&
2059 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2060 # Use a double $ so make ignores it.
2061 test "$program_suffix" != NONE &&
2062 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2063 # Double any \ or $. echo might interpret backslashes.
2064 # By default was `s,x,x', remove it if useless.
2065 cat <<\_ACEOF >conftest.sed
2066 s/[\\$]/&&/g;s/;s,x,x,$//
2068 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2071 # expand $ac_aux_dir to an absolute path
2072 am_aux_dir=`cd $ac_aux_dir && pwd`
2074 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2075 # Use eval to expand $SHELL
2076 if eval "$MISSING --run true"; then
2077 am_missing_run="$MISSING --run "
2080 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2081 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2084 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2085 # We used to keeping the `.' as first argument, in order to
2086 # allow $(mkdir_p) to be used without argument. As in
2087 # $(mkdir_p) $(somedir)
2088 # where $(somedir) is conditionally defined. However this is wrong
2090 # 1. if the package is installed by a user who cannot write `.'
2091 # make install will fail,
2092 # 2. the above comment should most certainly read
2093 # $(mkdir_p) $(DESTDIR)$(somedir)
2094 # so it does not work when $(somedir) is undefined and
2095 # $(DESTDIR) is not.
2096 # To support the latter case, we have to write
2097 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2098 # so the `.' trick is pointless.
2099 mkdir_p='mkdir -p --'
2101 # On NextStep and OpenStep, the `mkdir' command does not
2102 # recognize any option. It will interpret all options as
2103 # directories to create, and then abort because `.' already
2105 for d in ./-p ./--version;
2107 test -d $d && rmdir $d
2109 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2110 if test -f "$ac_aux_dir/mkinstalldirs"; then
2111 mkdir_p='$(mkinstalldirs)'
2113 mkdir_p='$(install_sh) -d'
2117 for ac_prog in gawk mawk nawk awk
2119 # Extract the first word of "$ac_prog", so it can be a program name with args.
2120 set dummy $ac_prog; ac_word=$2
2121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2123 if test "${ac_cv_prog_AWK+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 if test -n "$AWK"; then
2127 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 test -z "$as_dir" && as_dir=.
2134 for ac_exec_ext in '' $ac_executable_extensions; do
2135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2136 ac_cv_prog_AWK="$ac_prog"
2137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 if test -n "$AWK"; then
2148 { echo "$as_me:$LINENO: result: $AWK" >&5
2149 echo "${ECHO_T}$AWK" >&6; }
2151 { echo "$as_me:$LINENO: result: no" >&5
2152 echo "${ECHO_T}no" >&6; }
2156 test -n "$AWK" && break
2159 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2160 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2161 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2162 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 cat >conftest.make <<\_ACEOF
2168 @echo '@@@%%%=$(MAKE)=@@@%%%'
2170 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2171 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2173 eval ac_cv_prog_make_${ac_make}_set=yes;;
2175 eval ac_cv_prog_make_${ac_make}_set=no;;
2179 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2180 { echo "$as_me:$LINENO: result: yes" >&5
2181 echo "${ECHO_T}yes" >&6; }
2184 { echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6; }
2186 SET_MAKE="MAKE=${MAKE-make}"
2189 rm -rf .tst 2>/dev/null
2190 mkdir .tst 2>/dev/null
2191 if test -d .tst; then
2196 rmdir .tst 2>/dev/null
2198 # test to see if srcdir already configured
2199 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2200 test -f $srcdir/config.status; then
2201 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2202 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2203 { (exit 1); exit 1; }; }
2206 # test whether we have cygpath
2207 if test -z "$CYGPATH_W"; then
2208 if (cygpath --version) >/dev/null 2>/dev/null; then
2209 CYGPATH_W='cygpath -w'
2216 # Define the identity of the package.
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE "$PACKAGE"
2226 cat >>confdefs.h <<_ACEOF
2227 #define VERSION "$VERSION"
2230 # Some tools Automake needs.
2232 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2235 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2238 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2241 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2244 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2246 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2248 # Installed binaries are usually stripped using `strip' when the user
2249 # run `make install-strip'. However `strip' might not be the right
2250 # tool to use in cross-compilation environments, therefore Automake
2251 # will honor the `STRIP' environment variable to overrule this program.
2252 if test "$cross_compiling" != no; then
2253 if test -n "$ac_tool_prefix"; then
2254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2255 set dummy ${ac_tool_prefix}strip; ac_word=$2
2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258 if test "${ac_cv_prog_STRIP+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 if test -n "$STRIP"; then
2262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 STRIP=$ac_cv_prog_STRIP
2282 if test -n "$STRIP"; then
2283 { echo "$as_me:$LINENO: result: $STRIP" >&5
2284 echo "${ECHO_T}$STRIP" >&6; }
2286 { echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6; }
2292 if test -z "$ac_cv_prog_STRIP"; then
2294 # Extract the first word of "strip", so it can be a program name with args.
2295 set dummy strip; ac_word=$2
2296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2298 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 if test -n "$ac_ct_STRIP"; then
2302 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2311 ac_cv_prog_ac_ct_STRIP="strip"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2322 if test -n "$ac_ct_STRIP"; then
2323 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2324 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2326 { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2330 if test "x$ac_ct_STRIP" = x; then
2333 case $cross_compiling:$ac_tool_warned in
2335 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2336 whose name does not start with the host triplet. If you think this
2337 configuration is useful to you, please write to autoconf@gnu.org." >&5
2338 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2339 whose name does not start with the host triplet. If you think this
2340 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2341 ac_tool_warned=yes ;;
2346 STRIP="$ac_cv_prog_STRIP"
2350 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2352 # We need awk for the "check" target. The system "awk" is bad on
2354 # Always define AMTAR for backward compatibility.
2356 AMTAR=${AMTAR-"${am_missing_run}tar"}
2358 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2364 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2365 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2366 # Check whether --enable-maintainer-mode was given.
2367 if test "${enable_maintainer_mode+set}" = set; then
2368 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2370 USE_MAINTAINER_MODE=no
2373 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2374 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2377 if test $USE_MAINTAINER_MODE = yes; then
2378 MAINTAINER_MODE_TRUE=
2379 MAINTAINER_MODE_FALSE='#'
2381 MAINTAINER_MODE_TRUE='#'
2382 MAINTAINER_MODE_FALSE=
2385 MAINT=$MAINTAINER_MODE_TRUE
2388 ac_config_headers="$ac_config_headers config.h"
2391 DEPDIR="${am__leading_dot}deps"
2393 ac_config_commands="$ac_config_commands depfiles"
2396 am_make=${MAKE-make}
2397 cat > confinc << 'END'
2402 # If we don't find an include directive, just comment out the code.
2403 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2404 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2408 # First try GNU make style include.
2409 echo "include confinc" > confmf
2410 # We grep out `Entering directory' and `Leaving directory'
2411 # messages which can occur if `w' ends up in MAKEFLAGS.
2412 # In particular we don't look at `^make:' because GNU make might
2413 # be invoked under some other name (usually "gmake"), in which
2414 # case it prints its new name instead of `make'.
2415 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2420 # Now try BSD make style include.
2421 if test "$am__include" = "#"; then
2422 echo '.include "confinc"' > confmf
2423 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2424 am__include=.include
2431 { echo "$as_me:$LINENO: result: $_am_result" >&5
2432 echo "${ECHO_T}$_am_result" >&6; }
2433 rm -f confinc confmf
2435 # Check whether --enable-dependency-tracking was given.
2436 if test "${enable_dependency_tracking+set}" = set; then
2437 enableval=$enable_dependency_tracking;
2440 if test "x$enable_dependency_tracking" != xno; then
2441 am_depcomp="$ac_aux_dir/depcomp"
2446 if test "x$enable_dependency_tracking" != xno; then
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461 if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 if test -n "$CC"; then
2470 ac_cv_prog_CC="$CC" # Let the user override the test.
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 if test -n "$CC"; then
2491 { echo "$as_me:$LINENO: result: $CC" >&5
2492 echo "${ECHO_T}$CC" >&6; }
2494 { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2500 if test -z "$ac_cv_prog_CC"; then
2502 # Extract the first word of "gcc", so it can be a program name with args.
2503 set dummy gcc; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 if test -n "$ac_ct_CC"; then
2510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519 ac_cv_prog_ac_ct_CC="gcc"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2530 if test -n "$ac_ct_CC"; then
2531 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2532 echo "${ECHO_T}$ac_ct_CC" >&6; }
2534 { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2538 if test "x$ac_ct_CC" = x; then
2541 case $cross_compiling:$ac_tool_warned in
2543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2544 whose name does not start with the host triplet. If you think this
2545 configuration is useful to you, please write to autoconf@gnu.org." >&5
2546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2547 whose name does not start with the host triplet. If you think this
2548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2549 ac_tool_warned=yes ;;
2557 if test -z "$CC"; then
2558 if test -n "$ac_tool_prefix"; then
2559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2560 set dummy ${ac_tool_prefix}cc; ac_word=$2
2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2563 if test "${ac_cv_prog_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576 ac_cv_prog_CC="${ac_tool_prefix}cc"
2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 if test -n "$CC"; then
2588 { echo "$as_me:$LINENO: result: $CC" >&5
2589 echo "${ECHO_T}$CC" >&6; }
2591 { echo "$as_me:$LINENO: result: no" >&5
2592 echo "${ECHO_T}no" >&6; }
2598 if test -z "$CC"; then
2599 # Extract the first word of "cc", so it can be a program name with args.
2600 set dummy cc; ac_word=$2
2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603 if test "${ac_cv_prog_CC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2618 ac_prog_rejected=yes
2622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 if test $ac_prog_rejected = yes; then
2630 # We found a bogon in the path, so make sure we never use it.
2631 set dummy $ac_cv_prog_CC
2633 if test $# != 0; then
2634 # We chose a different compiler from the bogus one.
2635 # However, it has the same basename, so the bogon will be chosen
2636 # first if we set CC to just the basename; use the full file name.
2638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2644 if test -n "$CC"; then
2645 { echo "$as_me:$LINENO: result: $CC" >&5
2646 echo "${ECHO_T}$CC" >&6; }
2648 { echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6; }
2654 if test -z "$CC"; then
2655 if test -n "$ac_tool_prefix"; then
2656 for ac_prog in cl.exe
2658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2662 if test "${ac_cv_prog_CC+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 if test -n "$CC"; then
2666 ac_cv_prog_CC="$CC" # Let the user override the test.
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 if test -n "$CC"; then
2687 { echo "$as_me:$LINENO: result: $CC" >&5
2688 echo "${ECHO_T}$CC" >&6; }
2690 { echo "$as_me:$LINENO: result: no" >&5
2691 echo "${ECHO_T}no" >&6; }
2695 test -n "$CC" && break
2698 if test -z "$CC"; then
2700 for ac_prog in cl.exe
2702 # Extract the first word of "$ac_prog", so it can be a program name with args.
2703 set dummy $ac_prog; ac_word=$2
2704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 if test -n "$ac_ct_CC"; then
2710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719 ac_cv_prog_ac_ct_CC="$ac_prog"
2720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2730 if test -n "$ac_ct_CC"; then
2731 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2732 echo "${ECHO_T}$ac_ct_CC" >&6; }
2734 { echo "$as_me:$LINENO: result: no" >&5
2735 echo "${ECHO_T}no" >&6; }
2739 test -n "$ac_ct_CC" && break
2742 if test "x$ac_ct_CC" = x; then
2745 case $cross_compiling:$ac_tool_warned in
2747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2748 whose name does not start with the host triplet. If you think this
2749 configuration is useful to you, please write to autoconf@gnu.org." >&5
2750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2751 whose name does not start with the host triplet. If you think this
2752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2753 ac_tool_warned=yes ;;
2762 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2763 See \`config.log' for more details." >&5
2764 echo "$as_me: error: no acceptable C compiler found in \$PATH
2765 See \`config.log' for more details." >&2;}
2766 { (exit 1); exit 1; }; }
2768 # Provide some information about the compiler.
2769 echo "$as_me:$LINENO: checking for C compiler version" >&5
2770 ac_compiler=`set X $ac_compile; echo $2`
2771 { (ac_try="$ac_compiler --version >&5"
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compiler --version >&5") 2>&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }
2781 { (ac_try="$ac_compiler -v >&5"
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_compiler -v >&5") 2>&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }
2791 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }
2802 cat >conftest.$ac_ext <<_ACEOF
2805 cat confdefs.h >>conftest.$ac_ext
2806 cat >>conftest.$ac_ext <<_ACEOF
2807 /* end confdefs.h. */
2817 ac_clean_files_save=$ac_clean_files
2818 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2819 # Try to create an executable without -o first, disregard a.out.
2820 # It will help us diagnose broken compilers, and finding out an intuition
2822 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2823 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2824 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2826 # List of possible output files, starting from the most likely.
2827 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2828 # only as a last resort. b.out is created by i960 compilers.
2829 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2831 # The IRIX 6 linker writes into existing files which may not be
2832 # executable, retaining their permissions. Remove them first so a
2833 # subsequent execution test works.
2835 for ac_file in $ac_files
2838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2839 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2844 if { (ac_try="$ac_link_default"
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_link_default") 2>&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; then
2854 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2855 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2856 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2857 # so that the user can short-circuit this test for compilers unknown to
2859 for ac_file in $ac_files ''
2861 test -f "$ac_file" || continue
2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2866 # We found the default executable, but exeext='' is most
2870 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2872 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2874 # We set ac_cv_exeext here because the later test for it is not
2875 # safe: cross compilers may not add the suffix if given an `-o'
2876 # argument, so we may need to know it at that point already.
2877 # Even if this section looks crufty: it has the advantage of
2884 test "$ac_cv_exeext" = no && ac_cv_exeext=
2890 { echo "$as_me:$LINENO: result: $ac_file" >&5
2891 echo "${ECHO_T}$ac_file" >&6; }
2892 if test -z "$ac_file"; then
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2896 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2897 See \`config.log' for more details." >&5
2898 echo "$as_me: error: C compiler cannot create executables
2899 See \`config.log' for more details." >&2;}
2900 { (exit 77); exit 77; }; }
2903 ac_exeext=$ac_cv_exeext
2905 # Check that the compiler produces executables we can run. If not, either
2906 # the compiler is broken, or we cross compile.
2907 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2908 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2909 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2910 # If not cross compiling, check that we can run a simple program.
2911 if test "$cross_compiling" != yes; then
2912 if { ac_try='./$ac_file'
2913 { (case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_try") 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; }; then
2924 if test "$cross_compiling" = maybe; then
2927 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2928 If you meant to cross compile, use \`--host'.
2929 See \`config.log' for more details." >&5
2930 echo "$as_me: error: cannot run C compiled programs.
2931 If you meant to cross compile, use \`--host'.
2932 See \`config.log' for more details." >&2;}
2933 { (exit 1); exit 1; }; }
2937 { echo "$as_me:$LINENO: result: yes" >&5
2938 echo "${ECHO_T}yes" >&6; }
2940 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2941 ac_clean_files=$ac_clean_files_save
2942 # Check that the compiler produces executables we can run. If not, either
2943 # the compiler is broken, or we cross compile.
2944 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2945 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2946 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2947 echo "${ECHO_T}$cross_compiling" >&6; }
2949 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2950 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2951 if { (ac_try="$ac_link"
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_link") 2>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; then
2961 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2962 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2963 # work properly (i.e., refer to `conftest.exe'), while it won't with
2965 for ac_file in conftest.exe conftest conftest.*; do
2966 test -f "$ac_file" || continue
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2969 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2975 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2976 See \`config.log' for more details." >&5
2977 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2978 See \`config.log' for more details." >&2;}
2979 { (exit 1); exit 1; }; }
2982 rm -f conftest$ac_cv_exeext
2983 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2984 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2986 rm -f conftest.$ac_ext
2987 EXEEXT=$ac_cv_exeext
2989 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2990 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2991 if test "${ac_cv_objext+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 cat >conftest.$ac_ext <<_ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3009 rm -f conftest.o conftest.obj
3010 if { (ac_try="$ac_compile"
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_compile") 2>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; then
3020 for ac_file in conftest.o conftest.obj conftest.*; do
3021 test -f "$ac_file" || continue;
3023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3024 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3032 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3035 See \`config.log' for more details." >&2;}
3036 { (exit 1); exit 1; }; }
3039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3041 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3042 echo "${ECHO_T}$ac_cv_objext" >&6; }
3043 OBJEXT=$ac_cv_objext
3045 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3046 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3047 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 cat >conftest.$ac_ext <<_ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } && {
3082 test -z "$ac_c_werror_flag" ||
3083 test ! -s conftest.err
3084 } && test -s conftest.$ac_objext; then
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3097 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3098 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3099 GCC=`test $ac_compiler_gnu = yes && echo yes`
3100 ac_test_CFLAGS=${CFLAGS+set}
3101 ac_save_CFLAGS=$CFLAGS
3102 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3103 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3104 if test "${ac_cv_prog_cc_g+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 ac_save_c_werror_flag=$ac_c_werror_flag
3108 ac_c_werror_flag=yes
3111 cat >conftest.$ac_ext <<_ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } && {
3140 test -z "$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3149 cat >conftest.$ac_ext <<_ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 ac_c_werror_flag=$ac_save_c_werror_flag
3188 cat >conftest.$ac_ext <<_ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3203 rm -f conftest.$ac_objext
3204 if { (ac_try="$ac_compile"
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_compile") 2>conftest.er1
3212 grep -v '^ *+' conftest.er1 >conftest.err
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } && {
3217 test -z "$ac_c_werror_flag" ||
3218 test ! -s conftest.err
3219 } && test -s conftest.$ac_objext; then
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3239 if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241 elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3248 if test "$GCC" = yes; then
3254 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3255 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_cc_c89+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 ac_cv_prog_cc_c89=no
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3269 #include <sys/types.h>
3270 #include <sys/stat.h>
3271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3272 struct buf { int x; };
3273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274 static char *e (p, i)
3280 static char *f (char * (*g) (char **, int), char **p, ...)
3285 s = g (p, va_arg (v,int));
3290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3291 function prototypes and stuff, but not '\xHH' hex character constants.
3292 These don't provoke an error unfortunately, instead are silently treated
3293 as 'x'. The following induces an error, until -std is added to get
3294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3295 array size at least. It's necessary to write '\x00'==0 to get something
3296 that's true only with -std. */
3297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300 inside strings and character constants. */
3302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304 int test (int i, double x);
3305 struct s1 {int (*f) (int a);};
3306 struct s2 {int (*f) (double a);};
3307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3313 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3321 CC="$ac_save_CC $ac_arg"
3322 rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
3331 grep -v '^ *+' conftest.er1 >conftest.err
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } && {
3336 test -z "$ac_c_werror_flag" ||
3337 test ! -s conftest.err
3338 } && test -s conftest.$ac_objext; then
3339 ac_cv_prog_cc_c89=$ac_arg
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3347 rm -f core conftest.err conftest.$ac_objext
3348 test "x$ac_cv_prog_cc_c89" != "xno" && break
3350 rm -f conftest.$ac_ext
3355 case "x$ac_cv_prog_cc_c89" in
3357 { echo "$as_me:$LINENO: result: none needed" >&5
3358 echo "${ECHO_T}none needed" >&6; } ;;
3360 { echo "$as_me:$LINENO: result: unsupported" >&5
3361 echo "${ECHO_T}unsupported" >&6; } ;;
3363 CC="$CC $ac_cv_prog_cc_c89"
3364 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3365 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 depcc="$CC" am_compiler_list=
3377 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3378 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3379 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3383 # We make a subdir and do the tests there. Otherwise we can end up
3384 # making bogus files that we don't know about and never remove. For
3385 # instance it was reported that on HP-UX the gcc test will end up
3386 # making a dummy file named `D' -- because `-MD' means `put the output
3389 # Copy depcomp to subdir because otherwise we won't find it if we're
3390 # using a relative directory.
3391 cp "$am_depcomp" conftest.dir
3393 # We will build objects and dependencies in a subdirectory because
3394 # it helps to detect inapplicable dependency modes. For instance
3395 # both Tru64's cc and ICC support -MD to output dependencies as a
3396 # side effect of compilation, but ICC will put the dependencies in
3397 # the current directory while Tru64 will put them in the object
3401 am_cv_CC_dependencies_compiler_type=none
3402 if test "$am_compiler_list" = ""; then
3403 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3405 for depmode in $am_compiler_list; do
3406 # Setup a source with many dependencies, because some compilers
3407 # like to wrap large dependency lists on column 80 (with \), and
3408 # we should not choose a depcomp mode which is confused by this.
3410 # We need to recreate these files for each test, as the compiler may
3411 # overwrite some of them when testing with obscure command lines.
3412 # This happens at least with the AIX C compiler.
3414 for i in 1 2 3 4 5 6; do
3415 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3416 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3417 # Solaris 8's {/usr,}/bin/sh.
3418 touch sub/conftst$i.h
3420 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3424 # after this tag, mechanisms are not by side-effect, so they'll
3425 # only be used when explicitly requested
3426 if test "x$enable_dependency_tracking" = xyes; then
3434 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3435 # mode. It turns out that the SunPro C++ compiler does not properly
3436 # handle `-M -o', and we need to detect this.
3437 if depmode=$depmode \
3438 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3439 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3440 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3441 >/dev/null 2>conftest.err &&
3442 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3443 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3444 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3445 # icc doesn't choke on unknown options, it will just issue warnings
3446 # or remarks (even with -Werror). So we grep stderr for any message
3447 # that says an option was ignored or not supported.
3448 # When given -MP, icc 7.0 and 7.1 complain thusly:
3449 # icc: Command line warning: ignoring option '-M'; no argument required
3450 # The diagnosis changed in icc 8.0:
3451 # icc: Command line remark: option '-MP' not supported
3452 if (grep 'ignoring option' conftest.err ||
3453 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3454 am_cv_CC_dependencies_compiler_type=$depmode
3463 am_cv_CC_dependencies_compiler_type=none
3467 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3468 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3469 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3474 test "x$enable_dependency_tracking" != xno \
3475 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3477 am__fastdepCC_FALSE='#'
3479 am__fastdepCC_TRUE='#'
3480 am__fastdepCC_FALSE=
3486 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3487 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3488 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 ac_check_lib_save_LIBS=$LIBS
3492 LIBS="-lcposix $LIBS"
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3500 /* Override any GCC internal prototype to avoid an error.
3501 Use char because int might match the return type of a GCC
3502 builtin and then its argument prototype would still apply. */
3515 rm -f conftest.$ac_objext conftest$ac_exeext
3516 if { (ac_try="$ac_link"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_link") 2>conftest.er1
3524 grep -v '^ *+' conftest.er1 >conftest.err
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest$ac_exeext &&
3532 $as_test_x conftest$ac_exeext; then
3533 ac_cv_lib_cposix_strerror=yes
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 ac_cv_lib_cposix_strerror=no
3541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3542 conftest$ac_exeext conftest.$ac_ext
3543 LIBS=$ac_check_lib_save_LIBS
3545 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3546 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3547 if test $ac_cv_lib_cposix_strerror = yes; then
3548 LIBS="$LIBS -lcposix"
3554 ac_cpp='$CPP $CPPFLAGS'
3555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558 if test -n "$ac_tool_prefix"; then
3559 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3560 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3563 if test "${ac_cv_prog_CC+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 if test -n "$CC"; then
3567 ac_cv_prog_CC="$CC" # Let the user override the test.
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3576 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 if test -n "$CC"; then
3588 { echo "$as_me:$LINENO: result: $CC" >&5
3589 echo "${ECHO_T}$CC" >&6; }
3591 { echo "$as_me:$LINENO: result: no" >&5
3592 echo "${ECHO_T}no" >&6; }
3597 if test -z "$ac_cv_prog_CC"; then
3599 # Extract the first word of "gcc", so it can be a program name with args.
3600 set dummy gcc; ac_word=$2
3601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 if test -n "$ac_ct_CC"; then
3607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_prog_ac_ct_CC="gcc"
3617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3627 if test -n "$ac_ct_CC"; then
3628 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3629 echo "${ECHO_T}$ac_ct_CC" >&6; }
3631 { echo "$as_me:$LINENO: result: no" >&5
3632 echo "${ECHO_T}no" >&6; }
3635 if test "x$ac_ct_CC" = x; then
3638 case $cross_compiling:$ac_tool_warned in
3640 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3641 whose name does not start with the host triplet. If you think this
3642 configuration is useful to you, please write to autoconf@gnu.org." >&5
3643 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3644 whose name does not start with the host triplet. If you think this
3645 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3646 ac_tool_warned=yes ;;
3654 if test -z "$CC"; then
3655 if test -n "$ac_tool_prefix"; then
3656 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3657 set dummy ${ac_tool_prefix}cc; ac_word=$2
3658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3660 if test "${ac_cv_prog_CC+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 if test -n "$CC"; then
3664 ac_cv_prog_CC="$CC" # Let the user override the test.
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 ac_cv_prog_CC="${ac_tool_prefix}cc"
3674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 if test -n "$CC"; then
3685 { echo "$as_me:$LINENO: result: $CC" >&5
3686 echo "${ECHO_T}$CC" >&6; }
3688 { echo "$as_me:$LINENO: result: no" >&5
3689 echo "${ECHO_T}no" >&6; }
3695 if test -z "$CC"; then
3696 # Extract the first word of "cc", so it can be a program name with args.
3697 set dummy cc; ac_word=$2
3698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3700 if test "${ac_cv_prog_CC+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 if test -n "$CC"; then
3704 ac_cv_prog_CC="$CC" # Let the user override the test.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3714 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3715 ac_prog_rejected=yes
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 if test $ac_prog_rejected = yes; then
3727 # We found a bogon in the path, so make sure we never use it.
3728 set dummy $ac_cv_prog_CC
3730 if test $# != 0; then
3731 # We chose a different compiler from the bogus one.
3732 # However, it has the same basename, so the bogon will be chosen
3733 # first if we set CC to just the basename; use the full file name.
3735 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3741 if test -n "$CC"; then
3742 { echo "$as_me:$LINENO: result: $CC" >&5
3743 echo "${ECHO_T}$CC" >&6; }
3745 { echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6; }
3751 if test -z "$CC"; then
3752 if test -n "$ac_tool_prefix"; then
3753 for ac_prog in cl.exe
3755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3759 if test "${ac_cv_prog_CC+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 if test -n "$CC"; then
3763 ac_cv_prog_CC="$CC" # Let the user override the test.
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 if test -n "$CC"; then
3784 { echo "$as_me:$LINENO: result: $CC" >&5
3785 echo "${ECHO_T}$CC" >&6; }
3787 { echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6; }
3792 test -n "$CC" && break
3795 if test -z "$CC"; then
3797 for ac_prog in cl.exe
3799 # Extract the first word of "$ac_prog", so it can be a program name with args.
3800 set dummy $ac_prog; ac_word=$2
3801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 if test -n "$ac_ct_CC"; then
3807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816 ac_cv_prog_ac_ct_CC="$ac_prog"
3817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3827 if test -n "$ac_ct_CC"; then
3828 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3829 echo "${ECHO_T}$ac_ct_CC" >&6; }
3831 { echo "$as_me:$LINENO: result: no" >&5
3832 echo "${ECHO_T}no" >&6; }
3836 test -n "$ac_ct_CC" && break
3839 if test "x$ac_ct_CC" = x; then
3842 case $cross_compiling:$ac_tool_warned in
3844 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3845 whose name does not start with the host triplet. If you think this
3846 configuration is useful to you, please write to autoconf@gnu.org." >&5
3847 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3848 whose name does not start with the host triplet. If you think this
3849 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3850 ac_tool_warned=yes ;;
3859 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3860 See \`config.log' for more details." >&5
3861 echo "$as_me: error: no acceptable C compiler found in \$PATH
3862 See \`config.log' for more details." >&2;}
3863 { (exit 1); exit 1; }; }
3865 # Provide some information about the compiler.
3866 echo "$as_me:$LINENO: checking for C compiler version" >&5
3867 ac_compiler=`set X $ac_compile; echo $2`
3868 { (ac_try="$ac_compiler --version >&5"
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_compiler --version >&5") 2>&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }
3878 { (ac_try="$ac_compiler -v >&5"
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_compiler -v >&5") 2>&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }
3888 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }
3899 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3900 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3901 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 cat >conftest.$ac_ext <<_ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3922 rm -f conftest.$ac_objext
3923 if { (ac_try="$ac_compile"
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929 (eval "$ac_compile") 2>conftest.er1
3931 grep -v '^ *+' conftest.er1 >conftest.err
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } && {
3936 test -z "$ac_c_werror_flag" ||
3937 test ! -s conftest.err
3938 } && test -s conftest.$ac_objext; then
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3951 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3952 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3953 GCC=`test $ac_compiler_gnu = yes && echo yes`
3954 ac_test_CFLAGS=${CFLAGS+set}
3955 ac_save_CFLAGS=$CFLAGS
3956 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3957 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3958 if test "${ac_cv_prog_cc_g+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 ac_save_c_werror_flag=$ac_c_werror_flag
3962 ac_c_werror_flag=yes
3965 cat >conftest.$ac_ext <<_ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3980 rm -f conftest.$ac_objext
3981 if { (ac_try="$ac_compile"
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_compile") 2>conftest.er1
3989 grep -v '^ *+' conftest.er1 >conftest.err
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } && {
3994 test -z "$ac_c_werror_flag" ||
3995 test ! -s conftest.err
3996 } && test -s conftest.$ac_objext; then
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4003 cat >conftest.$ac_ext <<_ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4018 rm -f conftest.$ac_objext
4019 if { (ac_try="$ac_compile"
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025 (eval "$ac_compile") 2>conftest.er1
4027 grep -v '^ *+' conftest.er1 >conftest.err
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } && {
4032 test -z "$ac_c_werror_flag" ||
4033 test ! -s conftest.err
4034 } && test -s conftest.$ac_objext; then
4037 echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4040 ac_c_werror_flag=$ac_save_c_werror_flag
4042 cat >conftest.$ac_ext <<_ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4057 rm -f conftest.$ac_objext
4058 if { (ac_try="$ac_compile"
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_compile") 2>conftest.er1
4066 grep -v '^ *+' conftest.er1 >conftest.err
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && {
4071 test -z "$ac_c_werror_flag" ||
4072 test ! -s conftest.err
4073 } && test -s conftest.$ac_objext; then
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 ac_c_werror_flag=$ac_save_c_werror_flag
4091 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4092 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4093 if test "$ac_test_CFLAGS" = set; then
4094 CFLAGS=$ac_save_CFLAGS
4095 elif test $ac_cv_prog_cc_g = yes; then
4096 if test "$GCC" = yes; then
4102 if test "$GCC" = yes; then
4108 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4109 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4110 if test "${ac_cv_prog_cc_c89+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 ac_cv_prog_cc_c89=no
4115 cat >conftest.$ac_ext <<_ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4123 #include <sys/types.h>
4124 #include <sys/stat.h>
4125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4126 struct buf { int x; };
4127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4128 static char *e (p, i)
4134 static char *f (char * (*g) (char **, int), char **p, ...)
4139 s = g (p, va_arg (v,int));
4144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4145 function prototypes and stuff, but not '\xHH' hex character constants.
4146 These don't provoke an error unfortunately, instead are silently treated
4147 as 'x'. The following induces an error, until -std is added to get
4148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4149 array size at least. It's necessary to write '\x00'==0 to get something
4150 that's true only with -std. */
4151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4154 inside strings and character constants. */
4156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4158 int test (int i, double x);
4159 struct s1 {int (*f) (int a);};
4160 struct s2 {int (*f) (double a);};
4161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4175 CC="$ac_save_CC $ac_arg"
4176 rm -f conftest.$ac_objext
4177 if { (ac_try="$ac_compile"
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_compile") 2>conftest.er1
4185 grep -v '^ *+' conftest.er1 >conftest.err
4187 cat conftest.err >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } && {
4190 test -z "$ac_c_werror_flag" ||
4191 test ! -s conftest.err
4192 } && test -s conftest.$ac_objext; then
4193 ac_cv_prog_cc_c89=$ac_arg
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4201 rm -f core conftest.err conftest.$ac_objext
4202 test "x$ac_cv_prog_cc_c89" != "xno" && break
4204 rm -f conftest.$ac_ext
4209 case "x$ac_cv_prog_cc_c89" in
4211 { echo "$as_me:$LINENO: result: none needed" >&5
4212 echo "${ECHO_T}none needed" >&6; } ;;
4214 { echo "$as_me:$LINENO: result: unsupported" >&5
4215 echo "${ECHO_T}unsupported" >&6; } ;;
4217 CC="$CC $ac_cv_prog_cc_c89"
4218 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4219 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4224 ac_cpp='$CPP $CPPFLAGS'
4225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229 depcc="$CC" am_compiler_list=
4231 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4232 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4233 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4237 # We make a subdir and do the tests there. Otherwise we can end up
4238 # making bogus files that we don't know about and never remove. For
4239 # instance it was reported that on HP-UX the gcc test will end up
4240 # making a dummy file named `D' -- because `-MD' means `put the output
4243 # Copy depcomp to subdir because otherwise we won't find it if we're
4244 # using a relative directory.
4245 cp "$am_depcomp" conftest.dir
4247 # We will build objects and dependencies in a subdirectory because
4248 # it helps to detect inapplicable dependency modes. For instance
4249 # both Tru64's cc and ICC support -MD to output dependencies as a
4250 # side effect of compilation, but ICC will put the dependencies in
4251 # the current directory while Tru64 will put them in the object
4255 am_cv_CC_dependencies_compiler_type=none
4256 if test "$am_compiler_list" = ""; then
4257 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4259 for depmode in $am_compiler_list; do
4260 # Setup a source with many dependencies, because some compilers
4261 # like to wrap large dependency lists on column 80 (with \), and
4262 # we should not choose a depcomp mode which is confused by this.
4264 # We need to recreate these files for each test, as the compiler may
4265 # overwrite some of them when testing with obscure command lines.
4266 # This happens at least with the AIX C compiler.
4268 for i in 1 2 3 4 5 6; do
4269 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4270 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4271 # Solaris 8's {/usr,}/bin/sh.
4272 touch sub/conftst$i.h
4274 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4278 # after this tag, mechanisms are not by side-effect, so they'll
4279 # only be used when explicitly requested
4280 if test "x$enable_dependency_tracking" = xyes; then
4288 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4289 # mode. It turns out that the SunPro C++ compiler does not properly
4290 # handle `-M -o', and we need to detect this.
4291 if depmode=$depmode \
4292 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4293 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4294 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4295 >/dev/null 2>conftest.err &&
4296 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4297 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4298 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4299 # icc doesn't choke on unknown options, it will just issue warnings
4300 # or remarks (even with -Werror). So we grep stderr for any message
4301 # that says an option was ignored or not supported.
4302 # When given -MP, icc 7.0 and 7.1 complain thusly:
4303 # icc: Command line warning: ignoring option '-M'; no argument required
4304 # The diagnosis changed in icc 8.0:
4305 # icc: Command line remark: option '-MP' not supported
4306 if (grep 'ignoring option' conftest.err ||
4307 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4308 am_cv_CC_dependencies_compiler_type=$depmode
4317 am_cv_CC_dependencies_compiler_type=none
4321 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4322 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4323 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4328 test "x$enable_dependency_tracking" != xno \
4329 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4331 am__fastdepCC_FALSE='#'
4333 am__fastdepCC_TRUE='#'
4334 am__fastdepCC_FALSE=
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 if test -n "$ac_tool_prefix"; then
4344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4345 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4348 if test "${ac_cv_prog_CC+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 if test -n "$CC"; then
4352 ac_cv_prog_CC="$CC" # Let the user override the test.
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4361 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 if test -n "$CC"; then
4373 { echo "$as_me:$LINENO: result: $CC" >&5
4374 echo "${ECHO_T}$CC" >&6; }
4376 { echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6; }
4382 if test -z "$ac_cv_prog_CC"; then
4384 # Extract the first word of "gcc", so it can be a program name with args.
4385 set dummy gcc; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test -n "$ac_ct_CC"; then
4392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_ac_ct_CC="gcc"
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4412 if test -n "$ac_ct_CC"; then
4413 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4414 echo "${ECHO_T}$ac_ct_CC" >&6; }
4416 { echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6; }
4420 if test "x$ac_ct_CC" = x; then
4423 case $cross_compiling:$ac_tool_warned in
4425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4426 whose name does not start with the host triplet. If you think this
4427 configuration is useful to you, please write to autoconf@gnu.org." >&5
4428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4429 whose name does not start with the host triplet. If you think this
4430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4431 ac_tool_warned=yes ;;
4439 if test -z "$CC"; then
4440 if test -n "$ac_tool_prefix"; then
4441 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4442 set dummy ${ac_tool_prefix}cc; ac_word=$2
4443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4445 if test "${ac_cv_prog_CC+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 if test -n "$CC"; then
4449 ac_cv_prog_CC="$CC" # Let the user override the test.
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_prog_CC="${ac_tool_prefix}cc"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 if test -n "$CC"; then
4470 { echo "$as_me:$LINENO: result: $CC" >&5
4471 echo "${ECHO_T}$CC" >&6; }
4473 { echo "$as_me:$LINENO: result: no" >&5
4474 echo "${ECHO_T}no" >&6; }
4480 if test -z "$CC"; then
4481 # Extract the first word of "cc", so it can be a program name with args.
4482 set dummy cc; ac_word=$2
4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485 if test "${ac_cv_prog_CC+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 if test -n "$CC"; then
4489 ac_cv_prog_CC="$CC" # Let the user override the test.
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4500 ac_prog_rejected=yes
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 if test $ac_prog_rejected = yes; then
4512 # We found a bogon in the path, so make sure we never use it.
4513 set dummy $ac_cv_prog_CC
4515 if test $# != 0; then
4516 # We chose a different compiler from the bogus one.
4517 # However, it has the same basename, so the bogon will be chosen
4518 # first if we set CC to just the basename; use the full file name.
4520 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4526 if test -n "$CC"; then
4527 { echo "$as_me:$LINENO: result: $CC" >&5
4528 echo "${ECHO_T}$CC" >&6; }
4530 { echo "$as_me:$LINENO: result: no" >&5
4531 echo "${ECHO_T}no" >&6; }
4536 if test -z "$CC"; then
4537 if test -n "$ac_tool_prefix"; then
4538 for ac_prog in cl.exe
4540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4544 if test "${ac_cv_prog_CC+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 if test -n "$CC"; then
4548 ac_cv_prog_CC="$CC" # Let the user override the test.
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 if test -n "$CC"; then
4569 { echo "$as_me:$LINENO: result: $CC" >&5
4570 echo "${ECHO_T}$CC" >&6; }
4572 { echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6; }
4577 test -n "$CC" && break
4580 if test -z "$CC"; then
4582 for ac_prog in cl.exe
4584 # Extract the first word of "$ac_prog", so it can be a program name with args.
4585 set dummy $ac_prog; ac_word=$2
4586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 if test -n "$ac_ct_CC"; then
4592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4601 ac_cv_prog_ac_ct_CC="$ac_prog"
4602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4612 if test -n "$ac_ct_CC"; then
4613 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4614 echo "${ECHO_T}$ac_ct_CC" >&6; }
4616 { echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6; }
4621 test -n "$ac_ct_CC" && break
4624 if test "x$ac_ct_CC" = x; then
4627 case $cross_compiling:$ac_tool_warned in
4629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4630 whose name does not start with the host triplet. If you think this
4631 configuration is useful to you, please write to autoconf@gnu.org." >&5
4632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4633 whose name does not start with the host triplet. If you think this
4634 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4635 ac_tool_warned=yes ;;
4644 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4645 See \`config.log' for more details." >&5
4646 echo "$as_me: error: no acceptable C compiler found in \$PATH
4647 See \`config.log' for more details." >&2;}
4648 { (exit 1); exit 1; }; }
4650 # Provide some information about the compiler.
4651 echo "$as_me:$LINENO: checking for C compiler version" >&5
4652 ac_compiler=`set X $ac_compile; echo $2`
4653 { (ac_try="$ac_compiler --version >&5"
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_compiler --version >&5") 2>&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }
4663 { (ac_try="$ac_compiler -v >&5"
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4669 (eval "$ac_compiler -v >&5") 2>&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }
4673 { (ac_try="$ac_compiler -V >&5"
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_compiler -V >&5") 2>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }
4684 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4685 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4686 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 cat >conftest.$ac_ext <<_ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4707 rm -f conftest.$ac_objext
4708 if { (ac_try="$ac_compile"
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4714 (eval "$ac_compile") 2>conftest.er1
4716 grep -v '^ *+' conftest.er1 >conftest.err
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } && {
4721 test -z "$ac_c_werror_flag" ||
4722 test ! -s conftest.err
4723 } && test -s conftest.$ac_objext; then
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4736 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4737 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4738 GCC=`test $ac_compiler_gnu = yes && echo yes`
4739 ac_test_CFLAGS=${CFLAGS+set}
4740 ac_save_CFLAGS=$CFLAGS
4741 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4742 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4743 if test "${ac_cv_prog_cc_g+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 ac_save_c_werror_flag=$ac_c_werror_flag
4747 ac_c_werror_flag=yes
4750 cat >conftest.$ac_ext <<_ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4765 rm -f conftest.$ac_objext
4766 if { (ac_try="$ac_compile"
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_compile") 2>conftest.er1
4774 grep -v '^ *+' conftest.er1 >conftest.err
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } && {
4779 test -z "$ac_c_werror_flag" ||
4780 test ! -s conftest.err
4781 } && test -s conftest.$ac_objext; then
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4788 cat >conftest.$ac_ext <<_ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4803 rm -f conftest.$ac_objext
4804 if { (ac_try="$ac_compile"
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810 (eval "$ac_compile") 2>conftest.er1
4812 grep -v '^ *+' conftest.er1 >conftest.err
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } && {
4817 test -z "$ac_c_werror_flag" ||
4818 test ! -s conftest.err
4819 } && test -s conftest.$ac_objext; then
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4825 ac_c_werror_flag=$ac_save_c_werror_flag
4827 cat >conftest.$ac_ext <<_ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4842 rm -f conftest.$ac_objext
4843 if { (ac_try="$ac_compile"
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849 (eval "$ac_compile") 2>conftest.er1
4851 grep -v '^ *+' conftest.er1 >conftest.err
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } && {
4856 test -z "$ac_c_werror_flag" ||
4857 test ! -s conftest.err
4858 } && test -s conftest.$ac_objext; then
4861 echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874 ac_c_werror_flag=$ac_save_c_werror_flag
4876 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4877 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4878 if test "$ac_test_CFLAGS" = set; then
4879 CFLAGS=$ac_save_CFLAGS
4880 elif test $ac_cv_prog_cc_g = yes; then
4881 if test "$GCC" = yes; then
4887 if test "$GCC" = yes; then
4893 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4894 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_cc_c89+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_cv_prog_cc_c89=no
4900 cat >conftest.$ac_ext <<_ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4908 #include <sys/types.h>
4909 #include <sys/stat.h>
4910 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4911 struct buf { int x; };
4912 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4913 static char *e (p, i)
4919 static char *f (char * (*g) (char **, int), char **p, ...)
4924 s = g (p, va_arg (v,int));
4929 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4930 function prototypes and stuff, but not '\xHH' hex character constants.
4931 These don't provoke an error unfortunately, instead are silently treated
4932 as 'x'. The following induces an error, until -std is added to get
4933 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4934 array size at least. It's necessary to write '\x00'==0 to get something
4935 that's true only with -std. */
4936 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4938 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4939 inside strings and character constants. */
4941 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4943 int test (int i, double x);
4944 struct s1 {int (*f) (int a);};
4945 struct s2 {int (*f) (double a);};
4946 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4952 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4957 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4958 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4960 CC="$ac_save_CC $ac_arg"
4961 rm -f conftest.$ac_objext
4962 if { (ac_try="$ac_compile"
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_compile") 2>conftest.er1
4970 grep -v '^ *+' conftest.er1 >conftest.err
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } && {
4975 test -z "$ac_c_werror_flag" ||
4976 test ! -s conftest.err
4977 } && test -s conftest.$ac_objext; then
4978 ac_cv_prog_cc_c89=$ac_arg
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4986 rm -f core conftest.err conftest.$ac_objext
4987 test "x$ac_cv_prog_cc_c89" != "xno" && break
4989 rm -f conftest.$ac_ext
4994 case "x$ac_cv_prog_cc_c89" in
4996 { echo "$as_me:$LINENO: result: none needed" >&5
4997 echo "${ECHO_T}none needed" >&6; } ;;
4999 { echo "$as_me:$LINENO: result: unsupported" >&5
5000 echo "${ECHO_T}unsupported" >&6; } ;;
5002 CC="$CC $ac_cv_prog_cc_c89"
5003 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5004 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 depcc="$CC" am_compiler_list=
5016 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5017 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5018 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5022 # We make a subdir and do the tests there. Otherwise we can end up
5023 # making bogus files that we don't know about and never remove. For
5024 # instance it was reported that on HP-UX the gcc test will end up
5025 # making a dummy file named `D' -- because `-MD' means `put the output
5028 # Copy depcomp to subdir because otherwise we won't find it if we're
5029 # using a relative directory.
5030 cp "$am_depcomp" conftest.dir
5032 # We will build objects and dependencies in a subdirectory because
5033 # it helps to detect inapplicable dependency modes. For instance
5034 # both Tru64's cc and ICC support -MD to output dependencies as a
5035 # side effect of compilation, but ICC will put the dependencies in
5036 # the current directory while Tru64 will put them in the object
5040 am_cv_CC_dependencies_compiler_type=none
5041 if test "$am_compiler_list" = ""; then
5042 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5044 for depmode in $am_compiler_list; do
5045 # Setup a source with many dependencies, because some compilers
5046 # like to wrap large dependency lists on column 80 (with \), and
5047 # we should not choose a depcomp mode which is confused by this.
5049 # We need to recreate these files for each test, as the compiler may
5050 # overwrite some of them when testing with obscure command lines.
5051 # This happens at least with the AIX C compiler.
5053 for i in 1 2 3 4 5 6; do
5054 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5055 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5056 # Solaris 8's {/usr,}/bin/sh.
5057 touch sub/conftst$i.h
5059 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5063 # after this tag, mechanisms are not by side-effect, so they'll
5064 # only be used when explicitly requested
5065 if test "x$enable_dependency_tracking" = xyes; then
5073 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5074 # mode. It turns out that the SunPro C++ compiler does not properly
5075 # handle `-M -o', and we need to detect this.
5076 if depmode=$depmode \
5077 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5078 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5079 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5080 >/dev/null 2>conftest.err &&
5081 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5082 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5083 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5084 # icc doesn't choke on unknown options, it will just issue warnings
5085 # or remarks (even with -Werror). So we grep stderr for any message
5086 # that says an option was ignored or not supported.
5087 # When given -MP, icc 7.0 and 7.1 complain thusly:
5088 # icc: Command line warning: ignoring option '-M'; no argument required
5089 # The diagnosis changed in icc 8.0:
5090 # icc: Command line remark: option '-MP' not supported
5091 if (grep 'ignoring option' conftest.err ||
5092 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5093 am_cv_CC_dependencies_compiler_type=$depmode
5102 am_cv_CC_dependencies_compiler_type=none
5106 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5107 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5108 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5113 test "x$enable_dependency_tracking" != xno \
5114 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5116 am__fastdepCC_FALSE='#'
5118 am__fastdepCC_TRUE='#'
5119 am__fastdepCC_FALSE=
5124 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5127 ac_cpp='$OBJCPP $CPPFLAGS'
5128 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5131 if test -n "$ac_tool_prefix"; then
5132 for ac_prog in gcc objcc objc cc CC
5134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_prog_OBJC+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 if test -n "$OBJC"; then
5142 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 OBJC=$ac_cv_prog_OBJC
5162 if test -n "$OBJC"; then
5163 { echo "$as_me:$LINENO: result: $OBJC" >&5
5164 echo "${ECHO_T}$OBJC" >&6; }
5166 { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5171 test -n "$OBJC" && break
5174 if test -z "$OBJC"; then
5176 for ac_prog in gcc objcc objc cc CC
5178 # Extract the first word of "$ac_prog", so it can be a program name with args.
5179 set dummy $ac_prog; ac_word=$2
5180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5182 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 if test -n "$ac_ct_OBJC"; then
5186 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_prog_ac_ct_OBJC="$ac_prog"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5206 if test -n "$ac_ct_OBJC"; then
5207 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
5208 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
5210 { echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6; }
5215 test -n "$ac_ct_OBJC" && break
5218 if test "x$ac_ct_OBJC" = x; then
5221 case $cross_compiling:$ac_tool_warned in
5223 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5224 whose name does not start with the host triplet. If you think this
5225 configuration is useful to you, please write to autoconf@gnu.org." >&5
5226 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5227 whose name does not start with the host triplet. If you think this
5228 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5229 ac_tool_warned=yes ;;
5235 # Provide some information about the compiler.
5236 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
5237 ac_compiler=`set X $ac_compile; echo $2`
5238 { (ac_try="$ac_compiler --version >&5"
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_compiler --version >&5") 2>&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }
5248 { (ac_try="$ac_compiler -v >&5"
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_compiler -v >&5") 2>&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }
5258 { (ac_try="$ac_compiler -V >&5"
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_compiler -V >&5") 2>&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }
5269 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
5270 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
5271 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 cat >conftest.$ac_ext <<_ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5292 rm -f conftest.$ac_objext
5293 if { (ac_try="$ac_compile"
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_compile") 2>conftest.er1
5301 grep -v '^ *+' conftest.er1 >conftest.err
5303 cat conftest.err >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } && {
5306 test -z "$ac_objc_werror_flag" ||
5307 test ! -s conftest.err
5308 } && test -s conftest.$ac_objext; then
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5321 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
5322 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
5323 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
5324 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5325 ac_save_OBJCFLAGS=$OBJCFLAGS
5326 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
5327 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
5328 if test "${ac_cv_prog_objc_g+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 ac_save_objc_werror_flag=$ac_objc_werror_flag
5332 ac_objc_werror_flag=yes
5333 ac_cv_prog_objc_g=no
5335 cat >conftest.$ac_ext <<_ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5350 rm -f conftest.$ac_objext
5351 if { (ac_try="$ac_compile"
5353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5354 *) ac_try_echo=$ac_try;;
5356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5357 (eval "$ac_compile") 2>conftest.er1
5359 grep -v '^ *+' conftest.er1 >conftest.err
5361 cat conftest.err >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } && {
5364 test -z "$ac_objc_werror_flag" ||
5365 test ! -s conftest.err
5366 } && test -s conftest.$ac_objext; then
5367 ac_cv_prog_objc_g=yes
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5373 cat >conftest.$ac_ext <<_ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
5397 grep -v '^ *+' conftest.er1 >conftest.err
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } && {
5402 test -z "$ac_objc_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest.$ac_objext; then
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 ac_objc_werror_flag=$ac_save_objc_werror_flag
5412 cat >conftest.$ac_ext <<_ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5427 rm -f conftest.$ac_objext
5428 if { (ac_try="$ac_compile"
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_compile") 2>conftest.er1
5436 grep -v '^ *+' conftest.er1 >conftest.err
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } && {
5441 test -z "$ac_objc_werror_flag" ||
5442 test ! -s conftest.err
5443 } && test -s conftest.$ac_objext; then
5444 ac_cv_prog_objc_g=yes
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 ac_objc_werror_flag=$ac_save_objc_werror_flag
5461 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
5462 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
5463 if test "$ac_test_OBJCFLAGS" = set; then
5464 OBJCFLAGS=$ac_save_OBJCFLAGS
5465 elif test $ac_cv_prog_objc_g = yes; then
5466 if test "$GOBJC" = yes; then
5472 if test "$GOBJC" = yes; then
5479 ac_cpp='$CPP $CPPFLAGS'
5480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5484 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5485 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5486 if test "${ac_cv_path_SED+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5490 for ac_i in 1 2 3 4 5 6 7; do
5491 ac_script="$ac_script$as_nl$ac_script"
5493 echo "$ac_script" | sed 99q >conftest.sed
5494 $as_unset ac_script || ac_script=
5495 # Extract the first word of "sed gsed" to use in msg output
5496 if test -z "$SED"; then
5497 set dummy sed gsed; ac_prog_name=$2
5498 if test "${ac_cv_path_SED+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 ac_path_SED_found=false
5502 # Loop through the user's path and test for each of PROGNAME-LIST
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 test -z "$as_dir" && as_dir=.
5508 for ac_prog in sed gsed; do
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5511 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5512 # Check for GNU ac_path_SED and select it if it is found.
5513 # Check for GNU $ac_path_SED
5514 case `"$ac_path_SED" --version 2>&1` in
5516 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5519 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5522 cat "conftest.in" "conftest.in" >"conftest.tmp"
5523 mv "conftest.tmp" "conftest.in"
5524 cp "conftest.in" "conftest.nl"
5525 echo '' >> "conftest.nl"
5526 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5528 ac_count=`expr $ac_count + 1`
5529 if test $ac_count -gt ${ac_path_SED_max-0}; then
5530 # Best one so far, save it but keep looking for a better one
5531 ac_cv_path_SED="$ac_path_SED"
5532 ac_path_SED_max=$ac_count
5534 # 10*(2^10) chars as input seems more than enough
5535 test $ac_count -gt 10 && break
5537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5541 $ac_path_SED_found && break 3
5551 SED="$ac_cv_path_SED"
5552 if test -z "$SED"; then
5553 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5554 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5555 { (exit 1); exit 1; }; }
5563 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5564 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5565 SED="$ac_cv_path_SED"
5568 # By default we simply use the C compiler to build assembly code.
5570 test "${CCAS+set}" = set || CCAS=$CC
5571 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5576 ac_cpp='$CPP $CPPFLAGS'
5577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5580 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5581 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5582 # On Suns, sometimes $CPP names a directory.
5583 if test -n "$CPP" && test -d "$CPP"; then
5586 if test -z "$CPP"; then
5587 if test "${ac_cv_prog_CPP+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 # Double quotes because CPP needs to be expanded
5591 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5594 for ac_c_preproc_warn_flag in '' yes
5596 # Use a header file that comes with gcc, so configuring glibc
5597 # with a fresh cross-compiler works.
5598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5599 # <limits.h> exists even on freestanding compilers.
5600 # On the NeXT, cc -E runs the code through the compiler's parser,
5601 # not just through cpp. "Syntax error" is here to catch this case.
5602 cat >conftest.$ac_ext <<_ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5609 # include <limits.h>
5611 # include <assert.h>
5615 if { (ac_try="$ac_cpp conftest.$ac_ext"
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5623 grep -v '^ *+' conftest.er1 >conftest.err
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } >/dev/null && {
5628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 # Broken: fails on valid input.
5640 rm -f conftest.err conftest.$ac_ext
5642 # OK, works on sane cases. Now check whether nonexistent headers
5643 # can be detected and how.
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 #include <ac_nonexistent.h>
5652 if { (ac_try="$ac_cpp conftest.$ac_ext"
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5660 grep -v '^ *+' conftest.er1 >conftest.err
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } >/dev/null && {
5665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5666 test ! -s conftest.err
5668 # Broken: success on invalid input.
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 # Passes both tests.
5679 rm -f conftest.err conftest.$ac_ext
5682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5683 rm -f conftest.err conftest.$ac_ext
5684 if $ac_preproc_ok; then
5696 { echo "$as_me:$LINENO: result: $CPP" >&5
5697 echo "${ECHO_T}$CPP" >&6; }
5699 for ac_c_preproc_warn_flag in '' yes
5701 # Use a header file that comes with gcc, so configuring glibc
5702 # with a fresh cross-compiler works.
5703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5704 # <limits.h> exists even on freestanding compilers.
5705 # On the NeXT, cc -E runs the code through the compiler's parser,
5706 # not just through cpp. "Syntax error" is here to catch this case.
5707 cat >conftest.$ac_ext <<_ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5714 # include <limits.h>
5716 # include <assert.h>
5720 if { (ac_try="$ac_cpp conftest.$ac_ext"
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5728 grep -v '^ *+' conftest.er1 >conftest.err
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } >/dev/null && {
5733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 # Broken: fails on valid input.
5745 rm -f conftest.err conftest.$ac_ext
5747 # OK, works on sane cases. Now check whether nonexistent headers
5748 # can be detected and how.
5749 cat >conftest.$ac_ext <<_ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 #include <ac_nonexistent.h>
5757 if { (ac_try="$ac_cpp conftest.$ac_ext"
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5765 grep -v '^ *+' conftest.er1 >conftest.err
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } >/dev/null && {
5770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5773 # Broken: success on invalid input.
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 # Passes both tests.
5784 rm -f conftest.err conftest.$ac_ext
5787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5788 rm -f conftest.err conftest.$ac_ext
5789 if $ac_preproc_ok; then
5792 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5793 See \`config.log' for more details." >&5
5794 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5795 See \`config.log' for more details." >&2;}
5796 { (exit 1); exit 1; }; }
5800 ac_cpp='$CPP $CPPFLAGS'
5801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5806 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5807 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5808 if test "${ac_cv_path_GREP+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 # Extract the first word of "grep ggrep" to use in msg output
5812 if test -z "$GREP"; then
5813 set dummy grep ggrep; ac_prog_name=$2
5814 if test "${ac_cv_path_GREP+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 ac_path_GREP_found=false
5818 # Loop through the user's path and test for each of PROGNAME-LIST
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5823 test -z "$as_dir" && as_dir=.
5824 for ac_prog in grep ggrep; do
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5827 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5828 # Check for GNU ac_path_GREP and select it if it is found.
5829 # Check for GNU $ac_path_GREP
5830 case `"$ac_path_GREP" --version 2>&1` in
5832 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5835 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5838 cat "conftest.in" "conftest.in" >"conftest.tmp"
5839 mv "conftest.tmp" "conftest.in"
5840 cp "conftest.in" "conftest.nl"
5841 echo 'GREP' >> "conftest.nl"
5842 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5844 ac_count=`expr $ac_count + 1`
5845 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5846 # Best one so far, save it but keep looking for a better one
5847 ac_cv_path_GREP="$ac_path_GREP"
5848 ac_path_GREP_max=$ac_count
5850 # 10*(2^10) chars as input seems more than enough
5851 test $ac_count -gt 10 && break
5853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5857 $ac_path_GREP_found && break 3
5867 GREP="$ac_cv_path_GREP"
5868 if test -z "$GREP"; then
5869 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5870 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5871 { (exit 1); exit 1; }; }
5875 ac_cv_path_GREP=$GREP
5880 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5881 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5882 GREP="$ac_cv_path_GREP"
5885 { echo "$as_me:$LINENO: checking for egrep" >&5
5886 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5887 if test "${ac_cv_path_EGREP+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5891 then ac_cv_path_EGREP="$GREP -E"
5893 # Extract the first word of "egrep" to use in msg output
5894 if test -z "$EGREP"; then
5895 set dummy egrep; ac_prog_name=$2
5896 if test "${ac_cv_path_EGREP+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 ac_path_EGREP_found=false
5900 # Loop through the user's path and test for each of PROGNAME-LIST
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5905 test -z "$as_dir" && as_dir=.
5906 for ac_prog in egrep; do
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5909 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5910 # Check for GNU ac_path_EGREP and select it if it is found.
5911 # Check for GNU $ac_path_EGREP
5912 case `"$ac_path_EGREP" --version 2>&1` in
5914 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5917 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5920 cat "conftest.in" "conftest.in" >"conftest.tmp"
5921 mv "conftest.tmp" "conftest.in"
5922 cp "conftest.in" "conftest.nl"
5923 echo 'EGREP' >> "conftest.nl"
5924 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5926 ac_count=`expr $ac_count + 1`
5927 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5928 # Best one so far, save it but keep looking for a better one
5929 ac_cv_path_EGREP="$ac_path_EGREP"
5930 ac_path_EGREP_max=$ac_count
5932 # 10*(2^10) chars as input seems more than enough
5933 test $ac_count -gt 10 && break
5935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5939 $ac_path_EGREP_found && break 3
5949 EGREP="$ac_cv_path_EGREP"
5950 if test -z "$EGREP"; then
5951 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5952 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5953 { (exit 1); exit 1; }; }
5957 ac_cv_path_EGREP=$EGREP
5963 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5964 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5965 EGREP="$ac_cv_path_EGREP"
5968 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5969 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5970 if test "${ac_cv_header_stdc+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 cat >conftest.$ac_ext <<_ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5992 rm -f conftest.$ac_objext
5993 if { (ac_try="$ac_compile"
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_compile") 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && {
6006 test -z "$ac_c_werror_flag" ||
6007 test ! -s conftest.err
6008 } && test -s conftest.$ac_objext; then
6009 ac_cv_header_stdc=yes
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 ac_cv_header_stdc=no
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 if test $ac_cv_header_stdc = yes; then
6020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6021 cat >conftest.$ac_ext <<_ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6031 $EGREP "memchr" >/dev/null 2>&1; then
6034 ac_cv_header_stdc=no
6040 if test $ac_cv_header_stdc = yes; then
6041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6042 cat >conftest.$ac_ext <<_ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6052 $EGREP "free" >/dev/null 2>&1; then
6055 ac_cv_header_stdc=no
6061 if test $ac_cv_header_stdc = yes; then
6062 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6063 if test "$cross_compiling" = yes; then
6066 cat >conftest.$ac_ext <<_ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6074 #if ((' ' & 0x0FF) == 0x020)
6075 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6076 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6078 # define ISLOWER(c) \
6079 (('a' <= (c) && (c) <= 'i') \
6080 || ('j' <= (c) && (c) <= 'r') \
6081 || ('s' <= (c) && (c) <= 'z'))
6082 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6085 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6090 for (i = 0; i < 256; i++)
6091 if (XOR (islower (i), ISLOWER (i))
6092 || toupper (i) != TOUPPER (i))
6097 rm -f conftest$ac_exeext
6098 if { (ac_try="$ac_link"
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_link") 2>&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6108 { (case "(($ac_try" in
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_try") 2>&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; }; then
6119 echo "$as_me: program exited with status $ac_status" >&5
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6124 ac_cv_header_stdc=no
6126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6132 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6133 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6134 if test $ac_cv_header_stdc = yes; then
6136 cat >>confdefs.h <<\_ACEOF
6137 #define STDC_HEADERS 1
6142 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6152 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6153 inttypes.h stdint.h unistd.h
6155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 cat >conftest.$ac_ext <<_ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 $ac_includes_default
6169 #include <$ac_header>
6171 rm -f conftest.$ac_objext
6172 if { (ac_try="$ac_compile"
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_compile") 2>conftest.er1
6180 grep -v '^ *+' conftest.er1 >conftest.err
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest.$ac_objext; then
6188 eval "$as_ac_Header=yes"
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6193 eval "$as_ac_Header=no"
6196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 ac_res=`eval echo '${'$as_ac_Header'}'`
6199 { echo "$as_me:$LINENO: result: $ac_res" >&5
6200 echo "${ECHO_T}$ac_res" >&6; }
6201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6202 cat >>confdefs.h <<_ACEOF
6203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6211 { echo "$as_me:$LINENO: checking for void *" >&5
6212 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
6213 if test "${ac_cv_type_void_p+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 cat >conftest.$ac_ext <<_ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 $ac_includes_default
6223 typedef void * ac__type_new_;
6227 if ((ac__type_new_ *) 0)
6229 if (sizeof (ac__type_new_))
6235 rm -f conftest.$ac_objext
6236 if { (ac_try="$ac_compile"
6238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239 *) ac_try_echo=$ac_try;;
6241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6242 (eval "$ac_compile") 2>conftest.er1
6244 grep -v '^ *+' conftest.er1 >conftest.err
6246 cat conftest.err >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } && {
6249 test -z "$ac_c_werror_flag" ||
6250 test ! -s conftest.err
6251 } && test -s conftest.$ac_objext; then
6252 ac_cv_type_void_p=yes
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6257 ac_cv_type_void_p=no
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6263 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
6265 # The cast to long int works around a bug in the HP C Compiler
6266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6268 # This bug is HP SR number 8606223364.
6269 { echo "$as_me:$LINENO: checking size of void *" >&5
6270 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
6271 if test "${ac_cv_sizeof_void_p+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 if test "$cross_compiling" = yes; then
6275 # Depending upon the size, compute the lo and hi bounds.
6276 cat >conftest.$ac_ext <<_ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 $ac_includes_default
6283 typedef void * ac__type_sizeof_;
6287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6294 rm -f conftest.$ac_objext
6295 if { (ac_try="$ac_compile"
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_compile") 2>conftest.er1
6303 grep -v '^ *+' conftest.er1 >conftest.err
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } && {
6308 test -z "$ac_c_werror_flag" ||
6309 test ! -s conftest.err
6310 } && test -s conftest.$ac_objext; then
6313 cat >conftest.$ac_ext <<_ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 $ac_includes_default
6320 typedef void * ac__type_sizeof_;
6324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6331 rm -f conftest.$ac_objext
6332 if { (ac_try="$ac_compile"
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_compile") 2>conftest.er1
6340 grep -v '^ *+' conftest.er1 >conftest.err
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } && {
6345 test -z "$ac_c_werror_flag" ||
6346 test ! -s conftest.err
6347 } && test -s conftest.$ac_objext; then
6348 ac_hi=$ac_mid; break
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6353 ac_lo=`expr $ac_mid + 1`
6354 if test $ac_lo -le $ac_mid; then
6358 ac_mid=`expr 2 '*' $ac_mid + 1`
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6367 cat >conftest.$ac_ext <<_ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 $ac_includes_default
6374 typedef void * ac__type_sizeof_;
6378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6385 rm -f conftest.$ac_objext
6386 if { (ac_try="$ac_compile"
6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389 *) ac_try_echo=$ac_try;;
6391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392 (eval "$ac_compile") 2>conftest.er1
6394 grep -v '^ *+' conftest.er1 >conftest.err
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } && {
6399 test -z "$ac_c_werror_flag" ||
6400 test ! -s conftest.err
6401 } && test -s conftest.$ac_objext; then
6404 cat >conftest.$ac_ext <<_ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410 $ac_includes_default
6411 typedef void * ac__type_sizeof_;
6415 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6422 rm -f conftest.$ac_objext
6423 if { (ac_try="$ac_compile"
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compile") 2>conftest.er1
6431 grep -v '^ *+' conftest.er1 >conftest.err
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } && {
6436 test -z "$ac_c_werror_flag" ||
6437 test ! -s conftest.err
6438 } && test -s conftest.$ac_objext; then
6439 ac_lo=$ac_mid; break
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 ac_hi=`expr '(' $ac_mid ')' - 1`
6445 if test $ac_mid -le $ac_hi; then
6449 ac_mid=`expr 2 '*' $ac_mid`
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6465 # Binary search between lo and hi bounds.
6466 while test "x$ac_lo" != "x$ac_hi"; do
6467 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6468 cat >conftest.$ac_ext <<_ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 $ac_includes_default
6475 typedef void * ac__type_sizeof_;
6479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6486 rm -f conftest.$ac_objext
6487 if { (ac_try="$ac_compile"
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493 (eval "$ac_compile") 2>conftest.er1
6495 grep -v '^ *+' conftest.er1 >conftest.err
6497 cat conftest.err >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } && {
6500 test -z "$ac_c_werror_flag" ||
6501 test ! -s conftest.err
6502 } && test -s conftest.$ac_objext; then
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6508 ac_lo=`expr '(' $ac_mid ')' + 1`
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6515 '') if test "$ac_cv_type_void_p" = yes; then
6516 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6517 See \`config.log' for more details." >&5
6518 echo "$as_me: error: cannot compute sizeof (void *)
6519 See \`config.log' for more details." >&2;}
6520 { (exit 77); exit 77; }; }
6522 ac_cv_sizeof_void_p=0
6526 cat >conftest.$ac_ext <<_ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 $ac_includes_default
6533 typedef void * ac__type_sizeof_;
6534 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6535 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6542 FILE *f = fopen ("conftest.val", "w");
6545 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6547 long int i = longval ();
6548 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6550 fprintf (f, "%ld\n", i);
6554 unsigned long int i = ulongval ();
6555 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6557 fprintf (f, "%lu\n", i);
6559 return ferror (f) || fclose (f) != 0;
6565 rm -f conftest$ac_exeext
6566 if { (ac_try="$ac_link"
6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572 (eval "$ac_link") 2>&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6576 { (case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581 (eval "$ac_try") 2>&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 ac_cv_sizeof_void_p=`cat conftest.val`
6587 echo "$as_me: program exited with status $ac_status" >&5
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6592 if test "$ac_cv_type_void_p" = yes; then
6593 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6594 See \`config.log' for more details." >&5
6595 echo "$as_me: error: cannot compute sizeof (void *)
6596 See \`config.log' for more details." >&2;}
6597 { (exit 77); exit 77; }; }
6599 ac_cv_sizeof_void_p=0
6602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6606 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6607 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
6611 cat >>confdefs.h <<_ACEOF
6612 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6616 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6617 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6618 if test "${ac_cv_header_stdc+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 cat >conftest.$ac_ext <<_ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6640 rm -f conftest.$ac_objext
6641 if { (ac_try="$ac_compile"
6643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647 (eval "$ac_compile") 2>conftest.er1
6649 grep -v '^ *+' conftest.er1 >conftest.err
6651 cat conftest.err >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && {
6654 test -z "$ac_c_werror_flag" ||
6655 test ! -s conftest.err
6656 } && test -s conftest.$ac_objext; then
6657 ac_cv_header_stdc=yes
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6662 ac_cv_header_stdc=no
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 if test $ac_cv_header_stdc = yes; then
6668 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6669 cat >conftest.$ac_ext <<_ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6679 $EGREP "memchr" >/dev/null 2>&1; then
6682 ac_cv_header_stdc=no
6688 if test $ac_cv_header_stdc = yes; then
6689 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6690 cat >conftest.$ac_ext <<_ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700 $EGREP "free" >/dev/null 2>&1; then
6703 ac_cv_header_stdc=no
6709 if test $ac_cv_header_stdc = yes; then
6710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6711 if test "$cross_compiling" = yes; then
6714 cat >conftest.$ac_ext <<_ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6722 #if ((' ' & 0x0FF) == 0x020)
6723 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6724 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6726 # define ISLOWER(c) \
6727 (('a' <= (c) && (c) <= 'i') \
6728 || ('j' <= (c) && (c) <= 'r') \
6729 || ('s' <= (c) && (c) <= 'z'))
6730 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6738 for (i = 0; i < 256; i++)
6739 if (XOR (islower (i), ISLOWER (i))
6740 || toupper (i) != TOUPPER (i))
6745 rm -f conftest$ac_exeext
6746 if { (ac_try="$ac_link"
6748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749 *) ac_try_echo=$ac_try;;
6751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6752 (eval "$ac_link") 2>&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6756 { (case "(($ac_try" in
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_try") 2>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6767 echo "$as_me: program exited with status $ac_status" >&5
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6772 ac_cv_header_stdc=no
6774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6780 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6781 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6782 if test $ac_cv_header_stdc = yes; then
6784 cat >>confdefs.h <<\_ACEOF
6785 #define STDC_HEADERS 1
6790 # Make sure we can run config.sub.
6791 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6792 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6793 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6794 { (exit 1); exit 1; }; }
6796 { echo "$as_me:$LINENO: checking build system type" >&5
6797 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
6798 if test "${ac_cv_build+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 ac_build_alias=$build_alias
6802 test "x$ac_build_alias" = x &&
6803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6804 test "x$ac_build_alias" = x &&
6805 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6806 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6807 { (exit 1); exit 1; }; }
6808 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6809 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6810 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6811 { (exit 1); exit 1; }; }
6814 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6815 echo "${ECHO_T}$ac_cv_build" >&6; }
6816 case $ac_cv_build in
6818 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6819 echo "$as_me: error: invalid value of canonical build" >&2;}
6820 { (exit 1); exit 1; }; };;
6823 ac_save_IFS=$IFS; IFS='-'
6829 # Remember, the first character of IFS is used to create $*,
6830 # except with old shells:
6833 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6836 { echo "$as_me:$LINENO: checking host system type" >&5
6837 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
6838 if test "${ac_cv_host+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 if test "x$host_alias" = x; then
6842 ac_cv_host=$ac_cv_build
6844 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6845 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6846 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6847 { (exit 1); exit 1; }; }
6851 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6852 echo "${ECHO_T}$ac_cv_host" >&6; }
6855 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6856 echo "$as_me: error: invalid value of canonical host" >&2;}
6857 { (exit 1); exit 1; }; };;
6860 ac_save_IFS=$IFS; IFS='-'
6866 # Remember, the first character of IFS is used to create $*,
6867 # except with old shells:
6870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6875 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6877 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6878 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6879 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6883 # We make a subdir and do the tests there. Otherwise we can end up
6884 # making bogus files that we don't know about and never remove. For
6885 # instance it was reported that on HP-UX the gcc test will end up
6886 # making a dummy file named `D' -- because `-MD' means `put the output
6889 # Copy depcomp to subdir because otherwise we won't find it if we're
6890 # using a relative directory.
6891 cp "$am_depcomp" conftest.dir
6893 # We will build objects and dependencies in a subdirectory because
6894 # it helps to detect inapplicable dependency modes. For instance
6895 # both Tru64's cc and ICC support -MD to output dependencies as a
6896 # side effect of compilation, but ICC will put the dependencies in
6897 # the current directory while Tru64 will put them in the object
6901 am_cv_OBJC_dependencies_compiler_type=none
6902 if test "$am_compiler_list" = ""; then
6903 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6905 for depmode in $am_compiler_list; do
6906 # Setup a source with many dependencies, because some compilers
6907 # like to wrap large dependency lists on column 80 (with \), and
6908 # we should not choose a depcomp mode which is confused by this.
6910 # We need to recreate these files for each test, as the compiler may
6911 # overwrite some of them when testing with obscure command lines.
6912 # This happens at least with the AIX C compiler.
6914 for i in 1 2 3 4 5 6; do
6915 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6916 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6917 # Solaris 8's {/usr,}/bin/sh.
6918 touch sub/conftst$i.h
6920 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6924 # after this tag, mechanisms are not by side-effect, so they'll
6925 # only be used when explicitly requested
6926 if test "x$enable_dependency_tracking" = xyes; then
6934 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6935 # mode. It turns out that the SunPro C++ compiler does not properly
6936 # handle `-M -o', and we need to detect this.
6937 if depmode=$depmode \
6938 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6939 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6940 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6941 >/dev/null 2>conftest.err &&
6942 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6943 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6944 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6945 # icc doesn't choke on unknown options, it will just issue warnings
6946 # or remarks (even with -Werror). So we grep stderr for any message
6947 # that says an option was ignored or not supported.
6948 # When given -MP, icc 7.0 and 7.1 complain thusly:
6949 # icc: Command line warning: ignoring option '-M'; no argument required
6950 # The diagnosis changed in icc 8.0:
6951 # icc: Command line remark: option '-MP' not supported
6952 if (grep 'ignoring option' conftest.err ||
6953 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6954 am_cv_OBJC_dependencies_compiler_type=$depmode
6963 am_cv_OBJC_dependencies_compiler_type=none
6967 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
6968 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
6969 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
6974 test "x$enable_dependency_tracking" != xno \
6975 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
6976 am__fastdepOBJC_TRUE=
6977 am__fastdepOBJC_FALSE='#'
6979 am__fastdepOBJC_TRUE='#'
6980 am__fastdepOBJC_FALSE=
6985 # Extract the first word of "pod2man", so it can be a program name with args.
6986 set dummy pod2man; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_path_POD2MAN+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 POD2MAN=$ac_cv_path_POD2MAN
7016 if test -n "$POD2MAN"; then
7017 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7018 echo "${ECHO_T}$POD2MAN" >&6; }
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7025 # Extract the first word of "pod2html", so it can be a program name with args.
7026 set dummy pod2html; ac_word=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_path_POD2HTML+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 POD2HTML=$ac_cv_path_POD2HTML
7056 if test -n "$POD2HTML"; then
7057 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7058 echo "${ECHO_T}$POD2HTML" >&6; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7067 # Check whether --enable-strict-warn was given.
7068 if test "${enable_strict_warn+set}" = set; then
7069 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
7070 enable_strictwarn=yes
7074 # Check whether --enable-translator was given.
7075 if test "${enable_translator+set}" = set; then
7076 enableval=$enable_translator; true
7078 enable_translator=yes
7081 # Check whether --enable-optimized was given.
7082 if test "${enable_optimized+set}" = set; then
7083 enableval=$enable_optimized; true
7085 enable_optimized=yes
7088 # Check whether --enable-shared was given.
7089 if test "${enable_shared+set}" = set; then
7090 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
7095 # Check whether --enable-profiled was given.
7096 if test "${enable_profiled+set}" = set; then
7097 enableval=$enable_profiled; if test "$enableval" == "yes"; then
7098 enable_profiled=yes;
7102 # Check whether --enable-trace was given.
7103 if test "${enable_trace+set}" = set; then
7104 enableval=$enable_trace; if test "$enableval" == "yes"; then
7106 cat >>confdefs.h <<\_ACEOF
7107 #define ENABLE_TRACE_IO 1
7113 # Check whether --enable-watch was given.
7114 if test "${enable_watch+set}" = set; then
7115 enableval=$enable_watch; if test "$enableval" == "yes"; then
7117 cat >>confdefs.h <<\_ACEOF
7118 #define ENABLE_WATCH 1
7124 # Check whether --enable-sh4stats was given.
7125 if test "${enable_sh4stats+set}" = set; then
7126 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
7128 cat >>confdefs.h <<\_ACEOF
7129 #define ENABLE_SH4STATS 1
7136 # Check whether --with-osmesa was given.
7137 if test "${with_osmesa+set}" = set; then
7138 withval=$with_osmesa;
7144 # Check whether --with-gtk was given.
7145 if test "${with_gtk+set}" = set; then
7146 withval=$with_gtk; with_gtk=yes
7152 # Check whether --with-esd was given.
7153 if test "${with_esd+set}" = set; then
7158 # Check whether --with-pulse was given.
7159 if test "${with_pulse+set}" = set; then
7160 withval=$with_pulse;
7164 # Check whether --with-sdl was given.
7165 if test "${with_sdl+set}" = set; then
7175 ac_cpp='$OBJCPP $CPPFLAGS'
7176 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7177 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7178 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7179 if test -n "$ac_tool_prefix"; then
7180 for ac_prog in gcc objcc objc cc CC
7182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186 if test "${ac_cv_prog_OBJC+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 if test -n "$OBJC"; then
7190 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7199 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 OBJC=$ac_cv_prog_OBJC
7210 if test -n "$OBJC"; then
7211 { echo "$as_me:$LINENO: result: $OBJC" >&5
7212 echo "${ECHO_T}$OBJC" >&6; }
7214 { echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6; }
7219 test -n "$OBJC" && break
7222 if test -z "$OBJC"; then
7224 for ac_prog in gcc objcc objc cc CC
7226 # Extract the first word of "$ac_prog", so it can be a program name with args.
7227 set dummy $ac_prog; ac_word=$2
7228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7230 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 if test -n "$ac_ct_OBJC"; then
7234 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7254 if test -n "$ac_ct_OBJC"; then
7255 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7256 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
7258 { echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6; }
7263 test -n "$ac_ct_OBJC" && break
7266 if test "x$ac_ct_OBJC" = x; then
7269 case $cross_compiling:$ac_tool_warned in
7271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7272 whose name does not start with the host triplet. If you think this
7273 configuration is useful to you, please write to autoconf@gnu.org." >&5
7274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7275 whose name does not start with the host triplet. If you think this
7276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7277 ac_tool_warned=yes ;;
7283 # Provide some information about the compiler.
7284 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7285 ac_compiler=`set X $ac_compile; echo $2`
7286 { (ac_try="$ac_compiler --version >&5"
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_compiler --version >&5") 2>&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }
7296 { (ac_try="$ac_compiler -v >&5"
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_compiler -v >&5") 2>&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }
7306 { (ac_try="$ac_compiler -V >&5"
7308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309 *) ac_try_echo=$ac_try;;
7311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7312 (eval "$ac_compiler -V >&5") 2>&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }
7317 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7318 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
7319 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 cat >conftest.$ac_ext <<_ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7340 rm -f conftest.$ac_objext
7341 if { (ac_try="$ac_compile"
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_compile") 2>conftest.er1
7349 grep -v '^ *+' conftest.er1 >conftest.err
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_objc_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest.$ac_objext; then
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7369 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7370 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
7371 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
7372 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7373 ac_save_OBJCFLAGS=$OBJCFLAGS
7374 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7375 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
7376 if test "${ac_cv_prog_objc_g+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 ac_save_objc_werror_flag=$ac_objc_werror_flag
7380 ac_objc_werror_flag=yes
7381 ac_cv_prog_objc_g=no
7383 cat >conftest.$ac_ext <<_ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7398 rm -f conftest.$ac_objext
7399 if { (ac_try="$ac_compile"
7401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402 *) ac_try_echo=$ac_try;;
7404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7405 (eval "$ac_compile") 2>conftest.er1
7407 grep -v '^ *+' conftest.er1 >conftest.err
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } && {
7412 test -z "$ac_objc_werror_flag" ||
7413 test ! -s conftest.err
7414 } && test -s conftest.$ac_objext; then
7415 ac_cv_prog_objc_g=yes
7417 echo "$as_me: failed program was:" >&5
7418 sed 's/^/| /' conftest.$ac_ext >&5
7421 cat >conftest.$ac_ext <<_ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7436 rm -f conftest.$ac_objext
7437 if { (ac_try="$ac_compile"
7439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7440 *) ac_try_echo=$ac_try;;
7442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7443 (eval "$ac_compile") 2>conftest.er1
7445 grep -v '^ *+' conftest.er1 >conftest.err
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } && {
7450 test -z "$ac_objc_werror_flag" ||
7451 test ! -s conftest.err
7452 } && test -s conftest.$ac_objext; then
7455 echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7458 ac_objc_werror_flag=$ac_save_objc_werror_flag
7460 cat >conftest.$ac_ext <<_ACEOF
7463 cat confdefs.h >>conftest.$ac_ext
7464 cat >>conftest.$ac_ext <<_ACEOF
7465 /* end confdefs.h. */
7475 rm -f conftest.$ac_objext
7476 if { (ac_try="$ac_compile"
7478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7479 *) ac_try_echo=$ac_try;;
7481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7482 (eval "$ac_compile") 2>conftest.er1
7484 grep -v '^ *+' conftest.er1 >conftest.err
7486 cat conftest.err >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && {
7489 test -z "$ac_objc_werror_flag" ||
7490 test ! -s conftest.err
7491 } && test -s conftest.$ac_objext; then
7492 ac_cv_prog_objc_g=yes
7494 echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507 ac_objc_werror_flag=$ac_save_objc_werror_flag
7509 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7510 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
7511 if test "$ac_test_OBJCFLAGS" = set; then
7512 OBJCFLAGS=$ac_save_OBJCFLAGS
7513 elif test $ac_cv_prog_objc_g = yes; then
7514 if test "$GOBJC" = yes; then
7520 if test "$GOBJC" = yes; then
7527 ac_cpp='$CPP $CPPFLAGS'
7528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7532 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
7533 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
7535 ac_cpp='$OBJCPP $CPPFLAGS'
7536 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7537 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7538 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7539 cat >conftest.$ac_ext <<_ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7554 rm -f conftest.$ac_objext
7555 if { (ac_try="$ac_compile"
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561 (eval "$ac_compile") 2>conftest.er1
7563 grep -v '^ *+' conftest.er1 >conftest.err
7565 cat conftest.err >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && {
7568 test -z "$ac_objc_werror_flag" ||
7569 test ! -s conftest.err
7570 } && test -s conftest.$ac_objext; then
7571 { echo "$as_me:$LINENO: result: yes" >&5
7572 echo "${ECHO_T}yes" >&6; }
7574 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7575 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
7576 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 $ac_includes_default
7587 #include <Cocoa/Cocoa.h>
7589 rm -f conftest.$ac_objext
7590 if { (ac_try="$ac_compile"
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_compile") 2>conftest.er1
7598 grep -v '^ *+' conftest.er1 >conftest.err
7600 cat conftest.err >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } && {
7603 test -z "$ac_objc_werror_flag" ||
7604 test ! -s conftest.err
7605 } && test -s conftest.$ac_objext; then
7606 ac_cv_header_Cocoa_Cocoa_h=yes
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 ac_cv_header_Cocoa_Cocoa_h=no
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7617 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7618 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
7622 LIBS="$LIBS -framework AppKit -framework Carbon"
7623 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"
7624 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
7625 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
7627 cat >>confdefs.h <<\_ACEOF
7628 #define HAVE_COCOA 1
7632 cat >>confdefs.h <<\_ACEOF
7633 #define APPLE_BUILD 1
7636 if test "x$with_gtk" = "xx11"; then
7645 { echo "$as_me:$LINENO: checking OBJC version" >&5
7646 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
7647 if test -n "$OBJC"; then
7648 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
7649 if test -n "$_GOBJC_VERSION"; then
7650 { echo "$as_me:$LINENO: result: GCC" >&5
7651 echo "${ECHO_T}GCC" >&6; }
7652 OBJCOPT="-O2 -msse2 -mfpmath=sse"
7653 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
7655 { echo "$as_me:$LINENO: result: Unknown" >&5
7656 echo "${ECHO_T}Unknown" >&6; }
7660 { echo "$as_me:$LINENO: result: None" >&5
7661 echo "${ECHO_T}None" >&6; }
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 { echo "$as_me:$LINENO: result: No" >&5
7671 echo "${ECHO_T}No" >&6; }
7675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
7677 ac_cpp='$CPP $CPPFLAGS'
7678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7686 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
7694 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
7696 cat >>confdefs.h <<\_ACEOF
7697 #define OSX_BUNDLE 1
7702 CFLAGS="-g -fexceptions"
7703 OBJCFLAGS="-g -fexceptions"
7705 cat >>confdefs.h <<\_ACEOF
7706 #define HAVE_EXCEPTIONS 1
7712 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
7713 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
7714 { echo "$as_me:$LINENO: checking CC version" >&5
7715 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
7716 if test -n "$_ICC_VERSION"; then
7717 { echo "$as_me:$LINENO: result: ICC" >&5
7718 echo "${ECHO_T}ICC" >&6; }
7719 CCOPT="$CFLAGS -fast"
7720 CFLAGS="$CFLAGS -fno-strict-aliasing"
7721 elif test -n "$_GCC_VERSION"; then
7722 { echo "$as_me:$LINENO: result: GCC" >&5
7723 echo "${ECHO_T}GCC" >&6; }
7724 CCOPT="-O2 -msse2 -mfpmath=sse"
7725 CFLAGS="$CFLAGS -fno-strict-aliasing"
7727 { echo "$as_me:$LINENO: result: Unknown" >&5
7728 echo "${ECHO_T}Unknown" >&6; }
7733 if test "x$enable_optimized" = "xyes"; then
7734 CFLAGS="$CFLAGS $CCOPT"
7735 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
7736 if test "x$enable_profiled" != "xyes"; then
7737 CFLAGS="$CFLAGS -fomit-frame-pointer"
7738 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
7741 CFLAGS="$CFLAGS -g3"
7742 OBJCFLAGS="$OBJCFLAGS -g3"
7745 if test "x$enable_profiled" = "xyes"; then
7746 CFLAGS="$CFLAGS -pg"
7747 LDFLAGS="$LDFLAGS -pg";
7748 OBJCFLAGS="$OBJCFLAGS -pg";
7751 if test "x$enable_strictwarn" = "xyes"; then
7752 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
7753 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
7756 if test "x$enable_shared" != "xno"; then
7758 cat >>confdefs.h <<\_ACEOF
7759 #define ENABLE_SHARED 1
7762 if test "x$APPLE_BUILD" = "xyes"; then
7764 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
7767 PLUGINLDFLAGS="-shared"
7769 PLUGINCFLAGS="-fPIC"
7771 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7772 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
7773 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
7774 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
7778 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
7780 # Is the header compilable?
7781 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
7782 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
7783 cat >conftest.$ac_ext <<_ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 $ac_includes_default
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_compile") 2>conftest.er1
7801 grep -v '^ *+' conftest.er1 >conftest.err
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && {
7806 test -z "$ac_c_werror_flag" ||
7807 test ! -s conftest.err
7808 } && test -s conftest.$ac_objext; then
7809 ac_header_compiler=yes
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7814 ac_header_compiler=no
7817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7819 echo "${ECHO_T}$ac_header_compiler" >&6; }
7821 # Is the header present?
7822 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
7823 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
7824 cat >conftest.$ac_ext <<_ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7832 if { (ac_try="$ac_cpp conftest.$ac_ext"
7834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7840 grep -v '^ *+' conftest.er1 >conftest.err
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } >/dev/null && {
7845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7846 test ! -s conftest.err
7848 ac_header_preproc=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 ac_header_preproc=no
7856 rm -f conftest.err conftest.$ac_ext
7857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7858 echo "${ECHO_T}$ac_header_preproc" >&6; }
7860 # So? What about this header?
7861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7863 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
7864 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7865 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
7866 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
7867 ac_header_preproc=yes
7870 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
7871 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
7872 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
7873 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
7874 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
7875 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
7876 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
7877 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
7878 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
7879 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
7880 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
7881 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
7885 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
7886 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
7887 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 ac_cv_header_dlfcn_h=$ac_header_preproc
7892 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
7893 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
7896 if test $ac_cv_header_dlfcn_h = yes; then
7898 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7899 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
7900 if test "${ac_cv_search_dlopen+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 ac_func_search_save_LIBS=$LIBS
7904 cat >conftest.$ac_ext <<_ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7911 /* Override any GCC internal prototype to avoid an error.
7912 Use char because int might match the return type of a GCC
7913 builtin and then its argument prototype would still apply. */
7926 for ac_lib in '' dl; do
7927 if test -z "$ac_lib"; then
7928 ac_res="none required"
7931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7933 rm -f conftest.$ac_objext conftest$ac_exeext
7934 if { (ac_try="$ac_link"
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_link") 2>conftest.er1
7942 grep -v '^ *+' conftest.er1 >conftest.err
7944 cat conftest.err >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && {
7947 test -z "$ac_c_werror_flag" ||
7948 test ! -s conftest.err
7949 } && test -s conftest$ac_exeext &&
7950 $as_test_x conftest$ac_exeext; then
7951 ac_cv_search_dlopen=$ac_res
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7961 if test "${ac_cv_search_dlopen+set}" = set; then
7965 if test "${ac_cv_search_dlopen+set}" = set; then
7968 ac_cv_search_dlopen=no
7971 LIBS=$ac_func_search_save_LIBS
7973 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7974 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
7975 ac_res=$ac_cv_search_dlopen
7976 if test "$ac_res" != no; then
7977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7984 if test "x$have_dlopen" != "xyes"; then
7985 if test "x$enable_shared" == "xyes"; then
7986 { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
7987 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
7988 { (exit 1); exit 1; }; }
7990 { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
7991 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
7995 { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
7996 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
7997 old_LDFLAGS="$LDFLAGS"
7998 LDFLAGS="$LDFLAGS -rdynamic"
7999 cat >conftest.$ac_ext <<_ACEOF
8000 int main(){ return 0; }
8002 rm -f conftest.$ac_objext conftest$ac_exeext
8003 if { (ac_try="$ac_link"
8005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_link") 2>conftest.er1
8011 grep -v '^ *+' conftest.er1 >conftest.err
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && {
8016 test -z "$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8018 } && test -s conftest$ac_exeext &&
8019 $as_test_x conftest$ac_exeext; then
8021 LXDREAMLDFLAGS="-rdynamic"
8022 { echo "$as_me:$LINENO: result: yes" >&5
8023 echo "${ECHO_T}yes" >&6; }
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8031 { echo "$as_me:$LINENO: result: no" >&5
8032 echo "${ECHO_T}no" >&6; }
8035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8036 conftest$ac_exeext conftest.$ac_ext
8037 LDFLAGS="$old_LDFLAGS"
8046 if test "x$have_dlopen" = "xyes"; then
8048 BUILD_SHARED_FALSE='#'
8050 BUILD_SHARED_TRUE='#'
8056 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
8057 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
8058 if test "$cross_compiling" = yes; then
8059 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8060 See \`config.log' for more details." >&5
8061 echo "$as_me: error: cannot run test program while cross compiling
8062 See \`config.log' for more details." >&2;}
8063 { (exit 1); exit 1; }; }
8065 cat >conftest.$ac_ext <<_ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8073 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
8075 int main(int argc, char *argv[])
8077 return foo( 1, 2 ) == 3 ? 0 : 1;
8080 rm -f conftest$ac_exeext
8081 if { (ac_try="$ac_link"
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_link") 2>&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8091 { (case "(($ac_try" in
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096 (eval "$ac_try") 2>&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8101 { echo "$as_me:$LINENO: result: yes" >&5
8102 echo "${ECHO_T}yes" >&6; }
8105 cat >>confdefs.h <<\_ACEOF
8106 #define HAVE_FASTCALL 1
8111 echo "$as_me: program exited with status $ac_status" >&5
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8117 { echo "$as_me:$LINENO: result: no" >&5
8118 echo "${ECHO_T}no" >&6; }
8121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8127 { echo "$as_me:$LINENO: checking support for force inlining" >&5
8128 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
8129 cat >conftest.$ac_ext <<_ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8137 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
8139 int main(int argc, char *argv[])
8141 return foo( 1, 2 ) == 3 ? 0 : 1;
8144 rm -f conftest.$ac_objext
8145 if { (ac_try="$ac_compile"
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8153 grep -v '^ *+' conftest.er1 >conftest.err
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8162 FORCEINLINE="__attribute__((always_inline))"
8163 { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
8164 echo "${ECHO_T}$FORCEINLINE" >&6; }
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8172 { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 cat >>confdefs.h <<_ACEOF
8181 #define FORCEINLINE $FORCEINLINE
8185 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
8186 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
8187 if test "$cross_compiling" = yes; then
8188 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8189 See \`config.log' for more details." >&5
8190 echo "$as_me: error: cannot run test program while cross compiling
8191 See \`config.log' for more details." >&2;}
8192 { (exit 1); exit 1; }; }
8194 cat >conftest.$ac_ext <<_ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8202 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
8203 int __attribute__((noinline)) foo( int arg, void *exc )
8206 *(((void **)__builtin_frame_address(0))+1) = exc;
8211 int main(int argc, char *argv[])
8213 goto *first_arg(&&start, &&except);
8216 return foo( argc, &&except ) + 1;
8222 rm -f conftest$ac_exeext
8223 if { (ac_try="$ac_link"
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_link") 2>&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8233 { (case "(($ac_try" in
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_try") 2>&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; }; then
8243 { echo "$as_me:$LINENO: result: yes" >&5
8244 echo "${ECHO_T}yes" >&6; }
8247 cat >>confdefs.h <<\_ACEOF
8248 #define HAVE_FRAME_ADDRESS 1
8253 echo "$as_me: program exited with status $ac_status" >&5
8254 echo "$as_me: failed program was:" >&5
8255 sed 's/^/| /' conftest.$ac_ext >&5
8259 { echo "$as_me:$LINENO: result: no" >&5
8260 echo "${ECHO_T}no" >&6; }
8261 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
8262 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
8264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8271 { echo "$as_me:$LINENO: checking for library containing listen" >&5
8272 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
8273 if test "${ac_cv_search_listen+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 ac_func_search_save_LIBS=$LIBS
8277 cat >conftest.$ac_ext <<_ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8284 /* Override any GCC internal prototype to avoid an error.
8285 Use char because int might match the return type of a GCC
8286 builtin and then its argument prototype would still apply. */
8299 for ac_lib in '' socket; do
8300 if test -z "$ac_lib"; then
8301 ac_res="none required"
8304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8306 rm -f conftest.$ac_objext conftest$ac_exeext
8307 if { (ac_try="$ac_link"
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_link") 2>conftest.er1
8315 grep -v '^ *+' conftest.er1 >conftest.err
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } && {
8320 test -z "$ac_c_werror_flag" ||
8321 test ! -s conftest.err
8322 } && test -s conftest$ac_exeext &&
8323 $as_test_x conftest$ac_exeext; then
8324 ac_cv_search_listen=$ac_res
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8334 if test "${ac_cv_search_listen+set}" = set; then
8338 if test "${ac_cv_search_listen+set}" = set; then
8341 ac_cv_search_listen=no
8344 LIBS=$ac_func_search_save_LIBS
8346 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
8347 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
8348 ac_res=$ac_cv_search_listen
8349 if test "$ac_res" != no; then
8350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8354 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
8355 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
8356 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 ac_func_search_save_LIBS=$LIBS
8360 cat >conftest.$ac_ext <<_ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8367 /* Override any GCC internal prototype to avoid an error.
8368 Use char because int might match the return type of a GCC
8369 builtin and then its argument prototype would still apply. */
8377 return inet_ntoa ();
8382 for ac_lib in '' nsl; do
8383 if test -z "$ac_lib"; then
8384 ac_res="none required"
8387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (ac_try="$ac_link"
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_link") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest$ac_exeext &&
8406 $as_test_x conftest$ac_exeext; then
8407 ac_cv_search_inet_ntoa=$ac_res
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8417 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8421 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8424 ac_cv_search_inet_ntoa=no
8427 LIBS=$ac_func_search_save_LIBS
8429 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
8430 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
8431 ac_res=$ac_cv_search_inet_ntoa
8432 if test "$ac_res" != no; then
8433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8440 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8441 if test -n "$ac_tool_prefix"; then
8442 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8443 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8446 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8473 if test -n "$PKG_CONFIG"; then
8474 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8475 echo "${ECHO_T}$PKG_CONFIG" >&6; }
8477 { echo "$as_me:$LINENO: result: no" >&5
8478 echo "${ECHO_T}no" >&6; }
8483 if test -z "$ac_cv_path_PKG_CONFIG"; then
8484 ac_pt_PKG_CONFIG=$PKG_CONFIG
8485 # Extract the first word of "pkg-config", so it can be a program name with args.
8486 set dummy pkg-config; ac_word=$2
8487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8489 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 case $ac_pt_PKG_CONFIG in
8494 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8504 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8516 if test -n "$ac_pt_PKG_CONFIG"; then
8517 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8518 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
8520 { echo "$as_me:$LINENO: result: no" >&5
8521 echo "${ECHO_T}no" >&6; }
8524 if test "x$ac_pt_PKG_CONFIG" = x; then
8527 case $cross_compiling:$ac_tool_warned in
8529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8530 whose name does not start with the host triplet. If you think this
8531 configuration is useful to you, please write to autoconf@gnu.org." >&5
8532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8533 whose name does not start with the host triplet. If you think this
8534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8535 ac_tool_warned=yes ;;
8537 PKG_CONFIG=$ac_pt_PKG_CONFIG
8540 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8544 if test -n "$PKG_CONFIG"; then
8545 _pkg_min_version=0.9.0
8546 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8547 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
8548 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8549 { echo "$as_me:$LINENO: result: yes" >&5
8550 echo "${ECHO_T}yes" >&6; }
8552 { echo "$as_me:$LINENO: result: no" >&5
8553 echo "${ECHO_T}no" >&6; }
8560 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
8561 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
8563 if test -n "$LIBPNG_CFLAGS"; then
8564 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
8565 elif test -n "$PKG_CONFIG"; then
8566 if test -n "$PKG_CONFIG" && \
8567 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8568 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; then
8572 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
8579 if test -n "$LIBPNG_LIBS"; then
8580 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8581 elif test -n "$PKG_CONFIG"; then
8582 if test -n "$PKG_CONFIG" && \
8583 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8584 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; then
8588 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
8598 if test $pkg_failed = yes; then
8600 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8601 _pkg_short_errors_supported=yes
8603 _pkg_short_errors_supported=no
8605 if test $_pkg_short_errors_supported = yes; then
8606 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
8608 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
8610 # Put the nasty error message in config.log where it belongs
8611 echo "$LIBPNG_PKG_ERRORS" >&5
8613 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
8617 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8618 installed software in a non-standard prefix.
8620 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8621 and LIBPNG_LIBS to avoid the need to call pkg-config.
8622 See the pkg-config man page for more details.
8624 echo "$as_me: error: Package requirements (libpng ) were not met:
8628 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8629 installed software in a non-standard prefix.
8631 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8632 and LIBPNG_LIBS to avoid the need to call pkg-config.
8633 See the pkg-config man page for more details.
8635 { (exit 1); exit 1; }; }
8636 elif test $pkg_failed = untried; then
8637 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8638 is in your PATH or set the PKG_CONFIG environment variable to the full
8641 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8642 and LIBPNG_LIBS to avoid the need to call pkg-config.
8643 See the pkg-config man page for more details.
8645 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8646 See \`config.log' for more details." >&5
8647 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8648 is in your PATH or set the PKG_CONFIG environment variable to the full
8651 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8652 and LIBPNG_LIBS to avoid the need to call pkg-config.
8653 See the pkg-config man page for more details.
8655 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8656 See \`config.log' for more details." >&2;}
8657 { (exit 1); exit 1; }; }
8659 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8660 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8661 { echo "$as_me:$LINENO: result: yes" >&5
8662 echo "${ECHO_T}yes" >&6; }
8667 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
8668 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
8669 if test "${ac_cv_lib_z_uncompress+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 ac_check_lib_save_LIBS=$LIBS
8674 cat >conftest.$ac_ext <<_ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8681 /* Override any GCC internal prototype to avoid an error.
8682 Use char because int might match the return type of a GCC
8683 builtin and then its argument prototype would still apply. */
8691 return uncompress ();
8696 rm -f conftest.$ac_objext conftest$ac_exeext
8697 if { (ac_try="$ac_link"
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_link") 2>conftest.er1
8705 grep -v '^ *+' conftest.er1 >conftest.err
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } && {
8710 test -z "$ac_c_werror_flag" ||
8711 test ! -s conftest.err
8712 } && test -s conftest$ac_exeext &&
8713 $as_test_x conftest$ac_exeext; then
8714 ac_cv_lib_z_uncompress=yes
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_cv_lib_z_uncompress=no
8722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8723 conftest$ac_exeext conftest.$ac_ext
8724 LIBS=$ac_check_lib_save_LIBS
8726 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
8727 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
8728 if test $ac_cv_lib_z_uncompress = yes; then
8729 cat >>confdefs.h <<_ACEOF
8737 echo "Zlib (libz.so) could not be found, but is required."
8742 if test "x$with_gtk" = "xno"; then
8745 { echo "$as_me:$LINENO: checking for GLIB" >&5
8746 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
8748 if test -n "$GLIB_CFLAGS"; then
8749 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8750 elif test -n "$PKG_CONFIG"; then
8751 if test -n "$PKG_CONFIG" && \
8752 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8753 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; then
8757 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
8764 if test -n "$GLIB_LIBS"; then
8765 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8766 elif test -n "$PKG_CONFIG"; then
8767 if test -n "$PKG_CONFIG" && \
8768 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8769 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; then
8773 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
8783 if test $pkg_failed = yes; then
8785 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8786 _pkg_short_errors_supported=yes
8788 _pkg_short_errors_supported=no
8790 if test $_pkg_short_errors_supported = yes; then
8791 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
8793 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
8795 # Put the nasty error message in config.log where it belongs
8796 echo "$GLIB_PKG_ERRORS" >&5
8798 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
8802 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8803 installed software in a non-standard prefix.
8805 Alternatively, you may set the environment variables GLIB_CFLAGS
8806 and GLIB_LIBS to avoid the need to call pkg-config.
8807 See the pkg-config man page for more details.
8809 echo "$as_me: error: Package requirements (glib-2.0) were not met:
8813 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8814 installed software in a non-standard prefix.
8816 Alternatively, you may set the environment variables GLIB_CFLAGS
8817 and GLIB_LIBS to avoid the need to call pkg-config.
8818 See the pkg-config man page for more details.
8820 { (exit 1); exit 1; }; }
8821 elif test $pkg_failed = untried; then
8822 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8823 is in your PATH or set the PKG_CONFIG environment variable to the full
8826 Alternatively, you may set the environment variables GLIB_CFLAGS
8827 and GLIB_LIBS to avoid the need to call pkg-config.
8828 See the pkg-config man page for more details.
8830 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8831 See \`config.log' for more details." >&5
8832 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8833 is in your PATH or set the PKG_CONFIG environment variable to the full
8836 Alternatively, you may set the environment variables GLIB_CFLAGS
8837 and GLIB_LIBS to avoid the need to call pkg-config.
8838 See the pkg-config man page for more details.
8840 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8841 See \`config.log' for more details." >&2;}
8842 { (exit 1); exit 1; }; }
8844 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8845 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8846 { echo "$as_me:$LINENO: result: yes" >&5
8847 echo "${ECHO_T}yes" >&6; }
8853 { echo "$as_me:$LINENO: checking for GTK" >&5
8854 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
8856 if test -n "$GTK_CFLAGS"; then
8857 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8858 elif test -n "$PKG_CONFIG"; then
8859 if test -n "$PKG_CONFIG" && \
8860 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8861 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; then
8865 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
8872 if test -n "$GTK_LIBS"; then
8873 pkg_cv_GTK_LIBS="$GTK_LIBS"
8874 elif test -n "$PKG_CONFIG"; then
8875 if test -n "$PKG_CONFIG" && \
8876 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8877 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; then
8881 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
8891 if test $pkg_failed = yes; then
8893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8894 _pkg_short_errors_supported=yes
8896 _pkg_short_errors_supported=no
8898 if test $_pkg_short_errors_supported = yes; then
8899 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
8901 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
8903 # Put the nasty error message in config.log where it belongs
8904 echo "$GTK_PKG_ERRORS" >&5
8906 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
8910 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8911 installed software in a non-standard prefix.
8913 Alternatively, you may set the environment variables GTK_CFLAGS
8914 and GTK_LIBS to avoid the need to call pkg-config.
8915 See the pkg-config man page for more details.
8917 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
8921 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8922 installed software in a non-standard prefix.
8924 Alternatively, you may set the environment variables GTK_CFLAGS
8925 and GTK_LIBS to avoid the need to call pkg-config.
8926 See the pkg-config man page for more details.
8928 { (exit 1); exit 1; }; }
8929 elif test $pkg_failed = untried; then
8930 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8931 is in your PATH or set the PKG_CONFIG environment variable to the full
8934 Alternatively, you may set the environment variables GTK_CFLAGS
8935 and GTK_LIBS to avoid the need to call pkg-config.
8936 See the pkg-config man page for more details.
8938 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8939 See \`config.log' for more details." >&5
8940 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8941 is in your PATH or set the PKG_CONFIG environment variable to the full
8944 Alternatively, you may set the environment variables GTK_CFLAGS
8945 and GTK_LIBS to avoid the need to call pkg-config.
8946 See the pkg-config man page for more details.
8948 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8949 See \`config.log' for more details." >&2;}
8950 { (exit 1); exit 1; }; }
8952 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
8953 GTK_LIBS=$pkg_cv_GTK_LIBS
8954 { echo "$as_me:$LINENO: result: yes" >&5
8955 echo "${ECHO_T}yes" >&6; }
8959 cat >>confdefs.h <<\_ACEOF
8966 LIBS="$LIBS $GTK_LIBS"
8967 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
8968 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
8969 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 cat >conftest.$ac_ext <<_ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
8979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8980 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
8982 /* System header to define __stub macros and hopefully few prototypes,
8983 which can conflict with char gdk_x11_display_get_xdisplay (); below.
8984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8985 <limits.h> exists even on freestanding compilers. */
8988 # include <limits.h>
8990 # include <assert.h>
8993 #undef gdk_x11_display_get_xdisplay
8995 /* Override any GCC internal prototype to avoid an error.
8996 Use char because int might match the return type of a GCC
8997 builtin and then its argument prototype would still apply. */
9001 char gdk_x11_display_get_xdisplay ();
9002 /* The GNU C library defines this for functions which it implements
9003 to always fail with ENOSYS. Some functions are actually named
9004 something starting with __ and the normal name is an alias. */
9005 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
9012 return gdk_x11_display_get_xdisplay ();
9017 rm -f conftest.$ac_objext conftest$ac_exeext
9018 if { (ac_try="$ac_link"
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024 (eval "$ac_link") 2>conftest.er1
9026 grep -v '^ *+' conftest.er1 >conftest.err
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } && {
9031 test -z "$ac_c_werror_flag" ||
9032 test ! -s conftest.err
9033 } && test -s conftest$ac_exeext &&
9034 $as_test_x conftest$ac_exeext; then
9035 ac_cv_func_gdk_x11_display_get_xdisplay=yes
9037 echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9040 ac_cv_func_gdk_x11_display_get_xdisplay=no
9043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9044 conftest$ac_exeext conftest.$ac_ext
9046 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
9047 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
9048 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
9052 cat >>confdefs.h <<\_ACEOF
9053 #define HAVE_GTK_X11 1
9058 GTK_LIBS="$GTK_LIBS -lX11"
9060 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
9061 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
9062 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9065 cat >conftest.$ac_ext <<_ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9071 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
9072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9073 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
9075 /* System header to define __stub macros and hopefully few prototypes,
9076 which can conflict with char gdk_quartz_window_get_nsview (); below.
9077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9078 <limits.h> exists even on freestanding compilers. */
9081 # include <limits.h>
9083 # include <assert.h>
9086 #undef gdk_quartz_window_get_nsview
9088 /* Override any GCC internal prototype to avoid an error.
9089 Use char because int might match the return type of a GCC
9090 builtin and then its argument prototype would still apply. */
9094 char gdk_quartz_window_get_nsview ();
9095 /* The GNU C library defines this for functions which it implements
9096 to always fail with ENOSYS. Some functions are actually named
9097 something starting with __ and the normal name is an alias. */
9098 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
9105 return gdk_quartz_window_get_nsview ();
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (ac_try="$ac_link"
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_link") 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } && {
9124 test -z "$ac_c_werror_flag" ||
9125 test ! -s conftest.err
9126 } && test -s conftest$ac_exeext &&
9127 $as_test_x conftest$ac_exeext; then
9128 ac_cv_func_gdk_quartz_window_get_nsview=yes
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 ac_cv_func_gdk_quartz_window_get_nsview=no
9136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9137 conftest$ac_exeext conftest.$ac_ext
9139 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
9140 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
9141 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
9145 cat >>confdefs.h <<\_ACEOF
9146 #define HAVE_GTK_OSX 1
9151 if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
9152 { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
9153 See \`config.log' for more details." >&5
9154 echo "$as_me: error: Unable to identify GTK platform
9155 See \`config.log' for more details." >&2;}
9156 { (exit 1); exit 1; }; }
9162 if test "$HAVE_GTK" = 'yes'; then
9173 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
9174 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
9176 if test -n "$LIBISOFS_CFLAGS"; then
9177 pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
9178 elif test -n "$PKG_CONFIG"; then
9179 if test -n "$PKG_CONFIG" && \
9180 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
9181 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; then
9185 pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
9192 if test -n "$LIBISOFS_LIBS"; then
9193 pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
9194 elif test -n "$PKG_CONFIG"; then
9195 if test -n "$PKG_CONFIG" && \
9196 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
9197 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; then
9201 pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
9211 if test $pkg_failed = yes; then
9213 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9214 _pkg_short_errors_supported=yes
9216 _pkg_short_errors_supported=no
9218 if test $_pkg_short_errors_supported = yes; then
9219 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
9221 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
9223 # Put the nasty error message in config.log where it belongs
9224 echo "$LIBISOFS_PKG_ERRORS" >&5
9226 { { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
9228 $LIBISOFS_PKG_ERRORS
9230 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9231 installed software in a non-standard prefix.
9233 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
9234 and LIBISOFS_LIBS to avoid the need to call pkg-config.
9235 See the pkg-config man page for more details.
9237 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
9239 $LIBISOFS_PKG_ERRORS
9241 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9242 installed software in a non-standard prefix.
9244 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
9245 and LIBISOFS_LIBS to avoid the need to call pkg-config.
9246 See the pkg-config man page for more details.
9248 { (exit 1); exit 1; }; }
9249 elif test $pkg_failed = untried; then
9250 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
9251 is in your PATH or set the PKG_CONFIG environment variable to the full
9254 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
9255 and LIBISOFS_LIBS to avoid the need to call pkg-config.
9256 See the pkg-config man page for more details.
9258 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9259 See \`config.log' for more details." >&5
9260 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
9261 is in your PATH or set the PKG_CONFIG environment variable to the full
9264 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
9265 and LIBISOFS_LIBS to avoid the need to call pkg-config.
9266 See the pkg-config man page for more details.
9268 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9269 See \`config.log' for more details." >&2;}
9270 { (exit 1); exit 1; }; }
9272 LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
9273 LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
9274 { echo "$as_me:$LINENO: result: yes" >&5
9275 echo "${ECHO_T}yes" >&6; }
9279 if test "x$with_osmesa" != xno; then
9283 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
9284 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
9285 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 ac_check_lib_save_LIBS=$LIBS
9289 LIBS="-lOSMesa $LIBS"
9290 cat >conftest.$ac_ext <<_ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9297 /* Override any GCC internal prototype to avoid an error.
9298 Use char because int might match the return type of a GCC
9299 builtin and then its argument prototype would still apply. */
9303 char OSMesaCreateContext ();
9307 return OSMesaCreateContext ();
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (ac_try="$ac_link"
9315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316 *) ac_try_echo=$ac_try;;
9318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319 (eval "$ac_link") 2>conftest.er1
9321 grep -v '^ *+' conftest.er1 >conftest.err
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } && {
9326 test -z "$ac_c_werror_flag" ||
9327 test ! -s conftest.err
9328 } && test -s conftest$ac_exeext &&
9329 $as_test_x conftest$ac_exeext; then
9330 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_cv_lib_OSMesa_OSMesaCreateContext=no
9338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9339 conftest$ac_exeext conftest.$ac_ext
9340 LIBS=$ac_check_lib_save_LIBS
9342 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
9343 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
9344 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
9345 cat >>confdefs.h <<_ACEOF
9346 #define HAVE_LIBOSMESA 1
9349 LIBS="-lOSMesa $LIBS"
9352 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
9353 See \`config.log' for more details." >&5
9354 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
9355 See \`config.log' for more details." >&2;}
9356 { (exit 1); exit 1; }; }
9359 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9360 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9361 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
9362 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9366 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
9368 # Is the header compilable?
9369 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
9370 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
9371 cat >conftest.$ac_ext <<_ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9377 $ac_includes_default
9378 #include <GL/osmesa.h>
9380 rm -f conftest.$ac_objext
9381 if { (ac_try="$ac_compile"
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_compile") 2>conftest.er1
9389 grep -v '^ *+' conftest.er1 >conftest.err
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest.$ac_objext; then
9397 ac_header_compiler=yes
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9402 ac_header_compiler=no
9405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9407 echo "${ECHO_T}$ac_header_compiler" >&6; }
9409 # Is the header present?
9410 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
9411 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
9412 cat >conftest.$ac_ext <<_ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 #include <GL/osmesa.h>
9420 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
9433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9436 ac_header_preproc=yes
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9441 ac_header_preproc=no
9444 rm -f conftest.err conftest.$ac_ext
9445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9446 echo "${ECHO_T}$ac_header_preproc" >&6; }
9448 # So? What about this header?
9449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9451 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
9452 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
9454 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
9455 ac_header_preproc=yes
9458 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
9459 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
9461 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
9463 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
9465 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
9467 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
9469 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
9473 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9474 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
9475 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 ac_cv_header_GL_osmesa_h=$ac_header_preproc
9480 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9481 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
9484 if test $ac_cv_header_GL_osmesa_h = yes; then
9487 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
9488 See \`config.log' for more details." >&5
9489 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
9490 See \`config.log' for more details." >&2;}
9491 { (exit 1); exit 1; }; }
9496 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
9498 cat >>confdefs.h <<\_ACEOF
9499 #define HAVE_OSMESA 1
9505 if test "x$APPLE_BUILD" != 'xyes'; then
9508 { echo "$as_me:$LINENO: checking for LIBGL" >&5
9509 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
9511 if test -n "$LIBGL_CFLAGS"; then
9512 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
9513 elif test -n "$PKG_CONFIG"; then
9514 if test -n "$PKG_CONFIG" && \
9515 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
9516 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; then
9520 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
9527 if test -n "$LIBGL_LIBS"; then
9528 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
9529 elif test -n "$PKG_CONFIG"; then
9530 if test -n "$PKG_CONFIG" && \
9531 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
9532 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; then
9536 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
9546 if test $pkg_failed = yes; then
9548 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9549 _pkg_short_errors_supported=yes
9551 _pkg_short_errors_supported=no
9553 if test $_pkg_short_errors_supported = yes; then
9554 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
9556 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
9558 # Put the nasty error message in config.log where it belongs
9559 echo "$LIBGL_PKG_ERRORS" >&5
9561 { { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
9565 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9566 installed software in a non-standard prefix.
9568 Alternatively, you may set the environment variables LIBGL_CFLAGS
9569 and LIBGL_LIBS to avoid the need to call pkg-config.
9570 See the pkg-config man page for more details.
9572 echo "$as_me: error: Package requirements (gl ) were not met:
9576 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9577 installed software in a non-standard prefix.
9579 Alternatively, you may set the environment variables LIBGL_CFLAGS
9580 and LIBGL_LIBS to avoid the need to call pkg-config.
9581 See the pkg-config man page for more details.
9583 { (exit 1); exit 1; }; }
9584 elif test $pkg_failed = untried; then
9585 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
9586 is in your PATH or set the PKG_CONFIG environment variable to the full
9589 Alternatively, you may set the environment variables LIBGL_CFLAGS
9590 and LIBGL_LIBS to avoid the need to call pkg-config.
9591 See the pkg-config man page for more details.
9593 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9594 See \`config.log' for more details." >&5
9595 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
9596 is in your PATH or set the PKG_CONFIG environment variable to the full
9599 Alternatively, you may set the environment variables LIBGL_CFLAGS
9600 and LIBGL_LIBS to avoid the need to call pkg-config.
9601 See the pkg-config man page for more details.
9603 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9604 See \`config.log' for more details." >&2;}
9605 { (exit 1); exit 1; }; }
9607 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
9608 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
9609 { echo "$as_me:$LINENO: result: yes" >&5
9610 echo "${ECHO_T}yes" >&6; }
9613 LIBS="$LIBS $LIBGL_LIBS";
9614 CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
9616 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
9617 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
9618 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 cat >conftest.$ac_ext <<_ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
9628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9629 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
9631 /* System header to define __stub macros and hopefully few prototypes,
9632 which can conflict with char NSOpenGLGetVersion (); below.
9633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9634 <limits.h> exists even on freestanding compilers. */
9637 # include <limits.h>
9639 # include <assert.h>
9642 #undef NSOpenGLGetVersion
9644 /* Override any GCC internal prototype to avoid an error.
9645 Use char because int might match the return type of a GCC
9646 builtin and then its argument prototype would still apply. */
9650 char NSOpenGLGetVersion ();
9651 /* The GNU C library defines this for functions which it implements
9652 to always fail with ENOSYS. Some functions are actually named
9653 something starting with __ and the normal name is an alias. */
9654 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
9661 return NSOpenGLGetVersion ();
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_link") 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest$ac_exeext &&
9683 $as_test_x conftest$ac_exeext; then
9684 ac_cv_func_NSOpenGLGetVersion=yes
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 ac_cv_func_NSOpenGLGetVersion=no
9692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9693 conftest$ac_exeext conftest.$ac_ext
9695 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
9696 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
9697 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
9700 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
9702 cat >>confdefs.h <<\_ACEOF
9710 if test "x$HAVE_GTK_X11" = "xyes"; then
9711 if test "x$APPLE_BUILD" = "xyes"; then
9712 LIBS="$LIBS -L/usr/X11/lib -lGL"
9714 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
9715 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
9716 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 cat >conftest.$ac_ext <<_ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9725 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
9726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9727 #define glXQueryVersion innocuous_glXQueryVersion
9729 /* System header to define __stub macros and hopefully few prototypes,
9730 which can conflict with char glXQueryVersion (); below.
9731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9732 <limits.h> exists even on freestanding compilers. */
9735 # include <limits.h>
9737 # include <assert.h>
9740 #undef glXQueryVersion
9742 /* Override any GCC internal prototype to avoid an error.
9743 Use char because int might match the return type of a GCC
9744 builtin and then its argument prototype would still apply. */
9748 char glXQueryVersion ();
9749 /* The GNU C library defines this for functions which it implements
9750 to always fail with ENOSYS. Some functions are actually named
9751 something starting with __ and the normal name is an alias. */
9752 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
9759 return glXQueryVersion ();
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (ac_try="$ac_link"
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_link") 2>conftest.er1
9773 grep -v '^ *+' conftest.er1 >conftest.err
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest$ac_exeext &&
9781 $as_test_x conftest$ac_exeext; then
9782 ac_cv_func_glXQueryVersion=yes
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9787 ac_cv_func_glXQueryVersion=no
9790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9791 conftest$ac_exeext conftest.$ac_ext
9793 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
9794 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
9795 if test $ac_cv_func_glXQueryVersion = yes; then
9798 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
9800 cat >>confdefs.h <<\_ACEOF
9816 if test "x$HAVE_OSMESA" = "xyes"; then
9818 VIDEO_OSMESA_FALSE='#'
9820 VIDEO_OSMESA_TRUE='#'
9826 if test "x$HAVE_GLX" = "xyes"; then
9836 if test "x$HAVE_NSGL" = "xyes"; then
9838 VIDEO_NSGL_FALSE='#'
9845 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
9846 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
9847 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 cat >conftest.$ac_ext <<_ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
9857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9858 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
9860 /* System header to define __stub macros and hopefully few prototypes,
9861 which can conflict with char glGenFramebuffersEXT (); below.
9862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9863 <limits.h> exists even on freestanding compilers. */
9866 # include <limits.h>
9868 # include <assert.h>
9871 #undef glGenFramebuffersEXT
9873 /* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9879 char glGenFramebuffersEXT ();
9880 /* The GNU C library defines this for functions which it implements
9881 to always fail with ENOSYS. Some functions are actually named
9882 something starting with __ and the normal name is an alias. */
9883 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
9890 return glGenFramebuffersEXT ();
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (ac_try="$ac_link"
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_link") 2>conftest.er1
9904 grep -v '^ *+' conftest.er1 >conftest.err
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest$ac_exeext &&
9912 $as_test_x conftest$ac_exeext; then
9913 ac_cv_func_glGenFramebuffersEXT=yes
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 ac_cv_func_glGenFramebuffersEXT=no
9921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9922 conftest$ac_exeext conftest.$ac_ext
9924 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
9925 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
9926 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
9928 cat >>confdefs.h <<\_ACEOF
9929 #define HAVE_OPENGL_FBO 1
9934 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
9935 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
9936 if test "${ac_cv_func_glCreateShader+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 cat >conftest.$ac_ext <<_ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
9946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9947 #define glCreateShader innocuous_glCreateShader
9949 /* System header to define __stub macros and hopefully few prototypes,
9950 which can conflict with char glCreateShader (); below.
9951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9952 <limits.h> exists even on freestanding compilers. */
9955 # include <limits.h>
9957 # include <assert.h>
9960 #undef glCreateShader
9962 /* Override any GCC internal prototype to avoid an error.
9963 Use char because int might match the return type of a GCC
9964 builtin and then its argument prototype would still apply. */
9968 char glCreateShader ();
9969 /* The GNU C library defines this for functions which it implements
9970 to always fail with ENOSYS. Some functions are actually named
9971 something starting with __ and the normal name is an alias. */
9972 #if defined __stub_glCreateShader || defined __stub___glCreateShader
9979 return glCreateShader ();
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (ac_try="$ac_link"
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_link") 2>conftest.er1
9993 grep -v '^ *+' conftest.er1 >conftest.err
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest$ac_exeext &&
10001 $as_test_x conftest$ac_exeext; then
10002 ac_cv_func_glCreateShader=yes
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 ac_cv_func_glCreateShader=no
10010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10011 conftest$ac_exeext conftest.$ac_ext
10013 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
10014 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
10015 if test $ac_cv_func_glCreateShader = yes; then
10017 cat >>confdefs.h <<\_ACEOF
10018 #define HAVE_OPENGL_SHADER 1
10023 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
10024 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
10025 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 cat >conftest.$ac_ext <<_ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
10035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10036 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
10038 /* System header to define __stub macros and hopefully few prototypes,
10039 which can conflict with char glCreateShaderObjectARB (); below.
10040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10041 <limits.h> exists even on freestanding compilers. */
10044 # include <limits.h>
10046 # include <assert.h>
10049 #undef glCreateShaderObjectARB
10051 /* Override any GCC internal prototype to avoid an error.
10052 Use char because int might match the return type of a GCC
10053 builtin and then its argument prototype would still apply. */
10057 char glCreateShaderObjectARB ();
10058 /* The GNU C library defines this for functions which it implements
10059 to always fail with ENOSYS. Some functions are actually named
10060 something starting with __ and the normal name is an alias. */
10061 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
10068 return glCreateShaderObjectARB ();
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (ac_try="$ac_link"
10075 case "(($ac_try" in
10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080 (eval "$ac_link") 2>conftest.er1
10082 grep -v '^ *+' conftest.er1 >conftest.err
10084 cat conftest.err >&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); } && {
10087 test -z "$ac_c_werror_flag" ||
10088 test ! -s conftest.err
10089 } && test -s conftest$ac_exeext &&
10090 $as_test_x conftest$ac_exeext; then
10091 ac_cv_func_glCreateShaderObjectARB=yes
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10096 ac_cv_func_glCreateShaderObjectARB=no
10099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10100 conftest$ac_exeext conftest.$ac_ext
10102 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
10103 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
10104 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
10106 cat >>confdefs.h <<\_ACEOF
10107 #define HAVE_OPENGL_SHADER_ARB 1
10112 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
10113 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
10114 if test "${ac_cv_func_glClampColorARB+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10117 cat >conftest.$ac_ext <<_ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
10124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10125 #define glClampColorARB innocuous_glClampColorARB
10127 /* System header to define __stub macros and hopefully few prototypes,
10128 which can conflict with char glClampColorARB (); below.
10129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10130 <limits.h> exists even on freestanding compilers. */
10133 # include <limits.h>
10135 # include <assert.h>
10138 #undef glClampColorARB
10140 /* Override any GCC internal prototype to avoid an error.
10141 Use char because int might match the return type of a GCC
10142 builtin and then its argument prototype would still apply. */
10146 char glClampColorARB ();
10147 /* The GNU C library defines this for functions which it implements
10148 to always fail with ENOSYS. Some functions are actually named
10149 something starting with __ and the normal name is an alias. */
10150 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
10157 return glClampColorARB ();
10162 rm -f conftest.$ac_objext conftest$ac_exeext
10163 if { (ac_try="$ac_link"
10164 case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169 (eval "$ac_link") 2>conftest.er1
10171 grep -v '^ *+' conftest.er1 >conftest.err
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } && {
10176 test -z "$ac_c_werror_flag" ||
10177 test ! -s conftest.err
10178 } && test -s conftest$ac_exeext &&
10179 $as_test_x conftest$ac_exeext; then
10180 ac_cv_func_glClampColorARB=yes
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ac_cv_func_glClampColorARB=no
10188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10189 conftest$ac_exeext conftest.$ac_ext
10191 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
10192 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
10193 if test $ac_cv_func_glClampColorARB = yes; then
10195 cat >>confdefs.h <<\_ACEOF
10196 #define HAVE_OPENGL_CLAMP_COLOR 1
10204 if test "x$enable_translator" != "xno"; then
10206 i386|i486|i586|i686|x86_64)
10207 SH4_TRANSLATOR="x86"
10209 cat >>confdefs.h <<_ACEOF
10210 #define SH4_TRANSLATOR TARGET_X86
10217 if test "$SH4_TRANSLATOR" = "x86"; then
10219 BUILD_SH4X86_FALSE='#'
10221 BUILD_SH4X86_TRUE='#'
10222 BUILD_SH4X86_FALSE=
10226 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10227 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10228 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
10229 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10233 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10235 # Is the header compilable?
10236 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
10237 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
10238 cat >conftest.$ac_ext <<_ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10244 $ac_includes_default
10245 #include <CoreAudio/CoreAudio.h>
10247 rm -f conftest.$ac_objext
10248 if { (ac_try="$ac_compile"
10249 case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_compile") 2>conftest.er1
10256 grep -v '^ *+' conftest.er1 >conftest.err
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && {
10261 test -z "$ac_c_werror_flag" ||
10262 test ! -s conftest.err
10263 } && test -s conftest.$ac_objext; then
10264 ac_header_compiler=yes
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 ac_header_compiler=no
10272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10274 echo "${ECHO_T}$ac_header_compiler" >&6; }
10276 # Is the header present?
10277 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
10278 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
10279 cat >conftest.$ac_ext <<_ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285 #include <CoreAudio/CoreAudio.h>
10287 if { (ac_try="$ac_cpp conftest.$ac_ext"
10288 case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10295 grep -v '^ *+' conftest.er1 >conftest.err
10297 cat conftest.err >&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } >/dev/null && {
10300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10301 test ! -s conftest.err
10303 ac_header_preproc=yes
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10308 ac_header_preproc=no
10311 rm -f conftest.err conftest.$ac_ext
10312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10313 echo "${ECHO_T}$ac_header_preproc" >&6; }
10315 # So? What about this header?
10316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10318 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10319 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10320 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
10321 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
10322 ac_header_preproc=yes
10325 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
10326 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
10327 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
10328 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
10330 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
10331 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
10332 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
10334 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
10335 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
10336 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
10340 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10341 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
10342 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
10347 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10348 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10351 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
10353 HAVE_CORE_AUDIO=yes
10354 LIBS="$LIBS -framework CoreAudio"
10355 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
10357 cat >>confdefs.h <<\_ACEOF
10358 #define HAVE_CORE_AUDIO 1
10368 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
10370 AUDIO_OSX_FALSE='#'
10377 if test "x$with_sdl" != "xno"; then
10380 { echo "$as_me:$LINENO: checking for SDL" >&5
10381 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
10383 if test -n "$SDL_CFLAGS"; then
10384 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
10385 elif test -n "$PKG_CONFIG"; then
10386 if test -n "$PKG_CONFIG" && \
10387 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10388 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; then
10392 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
10399 if test -n "$SDL_LIBS"; then
10400 pkg_cv_SDL_LIBS="$SDL_LIBS"
10401 elif test -n "$PKG_CONFIG"; then
10402 if test -n "$PKG_CONFIG" && \
10403 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10404 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; then
10408 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
10418 if test $pkg_failed = yes; then
10420 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10421 _pkg_short_errors_supported=yes
10423 _pkg_short_errors_supported=no
10425 if test $_pkg_short_errors_supported = yes; then
10426 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
10428 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
10430 # Put the nasty error message in config.log where it belongs
10431 echo "$SDL_PKG_ERRORS" >&5
10433 { echo "$as_me:$LINENO: result: no" >&5
10434 echo "${ECHO_T}no" >&6; }
10436 if test "x$with_sdl" = "xyes"; then
10437 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10438 See \`config.log' for more details." >&5
10439 echo "$as_me: error: \"SDL libraries could not be found (but were required)
10440 See \`config.log' for more details." >&2;}
10441 { (exit 1); exit 1; }; }
10444 elif test $pkg_failed = untried; then
10446 if test "x$with_sdl" = "xyes"; then
10447 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10448 See \`config.log' for more details." >&5
10449 echo "$as_me: error: \"SDL libraries could not be found (but were required)
10450 See \`config.log' for more details." >&2;}
10451 { (exit 1); exit 1; }; }
10455 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
10456 SDL_LIBS=$pkg_cv_SDL_LIBS
10457 { echo "$as_me:$LINENO: result: yes" >&5
10458 echo "${ECHO_T}yes" >&6; }
10461 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
10463 cat >>confdefs.h <<\_ACEOF
10472 if test "$HAVE_SDL" = 'yes' ; then
10474 AUDIO_SDL_FALSE='#'
10481 if test "x$with_pulse" != "xno"; then
10484 { echo "$as_me:$LINENO: checking for PULSE" >&5
10485 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
10487 if test -n "$PULSE_CFLAGS"; then
10488 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
10489 elif test -n "$PKG_CONFIG"; then
10490 if test -n "$PKG_CONFIG" && \
10491 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10492 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; then
10496 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
10503 if test -n "$PULSE_LIBS"; then
10504 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
10505 elif test -n "$PKG_CONFIG"; then
10506 if test -n "$PKG_CONFIG" && \
10507 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10508 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; then
10512 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
10522 if test $pkg_failed = yes; then
10524 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10525 _pkg_short_errors_supported=yes
10527 _pkg_short_errors_supported=no
10529 if test $_pkg_short_errors_supported = yes; then
10530 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
10532 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
10534 # Put the nasty error message in config.log where it belongs
10535 echo "$PULSE_PKG_ERRORS" >&5
10537 { echo "$as_me:$LINENO: result: no" >&5
10538 echo "${ECHO_T}no" >&6; }
10540 if test "x$with_pulse" = "xyes"; then
10541 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10542 See \`config.log' for more details." >&5
10543 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10544 See \`config.log' for more details." >&2;}
10545 { (exit 1); exit 1; }; }
10548 elif test $pkg_failed = untried; then
10550 if test "x$with_pulse" = "xyes"; then
10551 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10552 See \`config.log' for more details." >&5
10553 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10554 See \`config.log' for more details." >&2;}
10555 { (exit 1); exit 1; }; }
10559 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
10560 PULSE_LIBS=$pkg_cv_PULSE_LIBS
10561 { echo "$as_me:$LINENO: result: yes" >&5
10562 echo "${ECHO_T}yes" >&6; }
10565 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
10567 cat >>confdefs.h <<\_ACEOF
10568 #define HAVE_PULSE 1
10576 if test "$HAVE_PULSE" = 'yes' ; then
10578 AUDIO_PULSE_FALSE='#'
10580 AUDIO_PULSE_TRUE='#'
10585 if test "x$with_esd" != "xno"; then
10588 { echo "$as_me:$LINENO: checking for ESOUND" >&5
10589 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
10591 if test -n "$ESOUND_CFLAGS"; then
10592 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
10593 elif test -n "$PKG_CONFIG"; then
10594 if test -n "$PKG_CONFIG" && \
10595 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10596 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; then
10600 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
10607 if test -n "$ESOUND_LIBS"; then
10608 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
10609 elif test -n "$PKG_CONFIG"; then
10610 if test -n "$PKG_CONFIG" && \
10611 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10612 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; then
10616 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
10626 if test $pkg_failed = yes; then
10628 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10629 _pkg_short_errors_supported=yes
10631 _pkg_short_errors_supported=no
10633 if test $_pkg_short_errors_supported = yes; then
10634 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
10636 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
10638 # Put the nasty error message in config.log where it belongs
10639 echo "$ESOUND_PKG_ERRORS" >&5
10641 { echo "$as_me:$LINENO: result: no" >&5
10642 echo "${ECHO_T}no" >&6; }
10644 if test "x$with_esd" = "xyes"; then
10645 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10646 See \`config.log' for more details." >&5
10647 echo "$as_me: error: ESounD audio package could not be found (but was required)
10648 See \`config.log' for more details." >&2;}
10649 { (exit 1); exit 1; }; }
10652 elif test $pkg_failed = untried; then
10654 if test "x$with_esd" = "xyes"; then
10655 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10656 See \`config.log' for more details." >&5
10657 echo "$as_me: error: ESounD audio package could not be found (but was required)
10658 See \`config.log' for more details." >&2;}
10659 { (exit 1); exit 1; }; }
10663 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
10664 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
10665 { echo "$as_me:$LINENO: result: yes" >&5
10666 echo "${ECHO_T}yes" >&6; }
10669 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
10671 cat >>confdefs.h <<\_ACEOF
10672 #define HAVE_ESOUND 1
10680 if test "$HAVE_ESOUND" = 'yes' ; then
10682 AUDIO_ESOUND_FALSE='#'
10684 AUDIO_ESOUND_TRUE='#'
10685 AUDIO_ESOUND_FALSE=
10691 { echo "$as_me:$LINENO: checking for ALSA" >&5
10692 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
10694 if test -n "$ALSA_CFLAGS"; then
10695 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
10696 elif test -n "$PKG_CONFIG"; then
10697 if test -n "$PKG_CONFIG" && \
10698 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10699 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; then
10703 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
10710 if test -n "$ALSA_LIBS"; then
10711 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
10712 elif test -n "$PKG_CONFIG"; then
10713 if test -n "$PKG_CONFIG" && \
10714 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10715 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; then
10719 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
10729 if test $pkg_failed = yes; then
10731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10732 _pkg_short_errors_supported=yes
10734 _pkg_short_errors_supported=no
10736 if test $_pkg_short_errors_supported = yes; then
10737 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
10739 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
10741 # Put the nasty error message in config.log where it belongs
10742 echo "$ALSA_PKG_ERRORS" >&5
10744 { echo "$as_me:$LINENO: result: no" >&5
10745 echo "${ECHO_T}no" >&6; }
10747 elif test $pkg_failed = untried; then
10750 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
10751 ALSA_LIBS=$pkg_cv_ALSA_LIBS
10752 { echo "$as_me:$LINENO: result: yes" >&5
10753 echo "${ECHO_T}yes" >&6; }
10756 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
10758 cat >>confdefs.h <<\_ACEOF
10759 #define HAVE_ALSA 1
10765 if test "$HAVE_ALSA" = 'yes' ; then
10767 AUDIO_ALSA_FALSE='#'
10769 AUDIO_ALSA_TRUE='#'
10775 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10776 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10777 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
10778 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10782 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
10784 # Is the header compilable?
10785 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
10786 echo $ECHO_N "checking linux/cdrom.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 <linux/cdrom.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 linux/cdrom.h presence" >&5
10827 echo $ECHO_N "checking linux/cdrom.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 <linux/cdrom.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: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
10868 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
10870 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
10871 ac_header_preproc=yes
10874 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
10875 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
10877 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
10879 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
10881 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
10883 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
10885 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
10889 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10890 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
10891 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 ac_cv_header_linux_cdrom_h=$ac_header_preproc
10896 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10897 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
10900 if test $ac_cv_header_linux_cdrom_h = yes; then
10903 { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
10904 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
10905 old_CFLAGS="$CFLAGS"
10906 CFLAGS="$CFLAGS $STDCFLAG"
10907 cat >conftest.$ac_ext <<_ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 #include <linux/cdrom.h>
10922 rm -f conftest.$ac_objext
10923 if { (ac_try="$ac_compile"
10924 case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_compile") 2>conftest.er1
10931 grep -v '^ *+' conftest.er1 >conftest.err
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && {
10936 test -z "$ac_c_werror_flag" ||
10937 test ! -s conftest.err
10938 } && test -s conftest.$ac_objext; then
10939 { echo "$as_me:$LINENO: result: Yes" >&5
10940 echo "${ECHO_T}Yes" >&6; }
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10946 { echo "$as_me:$LINENO: result: No" >&5
10947 echo "${ECHO_T}No" >&6; }
10948 STDCFLAG="-std=gnu99"
10951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952 CFLAGS="$old_CFLAGS"
10959 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10960 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10961 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
10962 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10966 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10968 # Is the header compilable?
10969 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
10970 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
10971 cat >conftest.$ac_ext <<_ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 $ac_includes_default
10978 #include <IOKit/IOKitLib.h>
10980 rm -f conftest.$ac_objext
10981 if { (ac_try="$ac_compile"
10982 case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_compile") 2>conftest.er1
10989 grep -v '^ *+' conftest.er1 >conftest.err
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && {
10994 test -z "$ac_c_werror_flag" ||
10995 test ! -s conftest.err
10996 } && test -s conftest.$ac_objext; then
10997 ac_header_compiler=yes
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 ac_header_compiler=no
11005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11007 echo "${ECHO_T}$ac_header_compiler" >&6; }
11009 # Is the header present?
11010 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
11011 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
11012 cat >conftest.$ac_ext <<_ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11018 #include <IOKit/IOKitLib.h>
11020 if { (ac_try="$ac_cpp conftest.$ac_ext"
11021 case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11028 grep -v '^ *+' conftest.er1 >conftest.err
11030 cat conftest.err >&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } >/dev/null && {
11033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11034 test ! -s conftest.err
11036 ac_header_preproc=yes
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 ac_header_preproc=no
11044 rm -f conftest.err conftest.$ac_ext
11045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11046 echo "${ECHO_T}$ac_header_preproc" >&6; }
11048 # So? What about this header?
11049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11051 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11052 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11053 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
11054 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
11055 ac_header_preproc=yes
11058 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
11059 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
11060 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
11061 echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
11062 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
11063 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
11064 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
11065 echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
11067 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
11069 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
11073 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
11074 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
11075 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
11080 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
11081 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
11084 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
11087 LIBS="$LIBS -framework IOKit"
11095 if test "x$CDROM_DRIVER" = "xlinux"; then
11097 CDROM_LINUX_FALSE='#'
11099 CDROM_LINUX_TRUE='#'
11105 if test "x$CDROM_DRIVER" = "xosx"; then
11107 CDROM_OSX_FALSE='#'
11115 if test "x$CDROM_DRIVER" = "x"; then
11117 CDROM_NONE_FALSE='#'
11119 CDROM_NONE_TRUE='#'
11123 if test "x$CDROM_DRIVER" = "xlinux"; then
11125 cat >>confdefs.h <<\_ACEOF
11126 #define HAVE_LINUX_CDROM 1
11131 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11132 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11133 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
11134 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11138 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
11140 # Is the header compilable?
11141 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
11142 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
11143 cat >conftest.$ac_ext <<_ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 $ac_includes_default
11150 #include <linux/joystick.h>
11152 rm -f conftest.$ac_objext
11153 if { (ac_try="$ac_compile"
11154 case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_compile") 2>conftest.er1
11161 grep -v '^ *+' conftest.er1 >conftest.err
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } && {
11166 test -z "$ac_c_werror_flag" ||
11167 test ! -s conftest.err
11168 } && test -s conftest.$ac_objext; then
11169 ac_header_compiler=yes
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 ac_header_compiler=no
11177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11179 echo "${ECHO_T}$ac_header_compiler" >&6; }
11181 # Is the header present?
11182 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
11183 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
11184 cat >conftest.$ac_ext <<_ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11190 #include <linux/joystick.h>
11192 if { (ac_try="$ac_cpp conftest.$ac_ext"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11200 grep -v '^ *+' conftest.er1 >conftest.err
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } >/dev/null && {
11205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11208 ac_header_preproc=yes
11210 echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11213 ac_header_preproc=no
11216 rm -f conftest.err conftest.$ac_ext
11217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11218 echo "${ECHO_T}$ac_header_preproc" >&6; }
11220 # So? What about this header?
11221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11223 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
11224 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
11226 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
11227 ac_header_preproc=yes
11230 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
11231 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
11232 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
11233 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
11234 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
11235 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
11237 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
11239 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
11241 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
11245 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11246 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
11247 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11248 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 ac_cv_header_linux_joystick_h=$ac_header_preproc
11252 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11253 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
11256 if test $ac_cv_header_linux_joystick_h = yes; then
11258 HAVE_LINUX_JOYSTICK_H=yes
11260 cat >>confdefs.h <<\_ACEOF
11261 #define HAVE_LINUX_JOYSTICK 1
11264 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
11266 echo "Linux Joystick support not found, building without it."
11272 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
11274 JOY_LINUX_FALSE='#'
11281 if test "x$with_lirc" != "xno"; then
11282 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11283 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
11284 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
11285 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
11289 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
11291 # Is the header compilable?
11292 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
11293 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
11294 cat >conftest.$ac_ext <<_ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 $ac_includes_default
11301 #include <lirc/lirc_client.h>
11303 rm -f conftest.$ac_objext
11304 if { (ac_try="$ac_compile"
11305 case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_compile") 2>conftest.er1
11312 grep -v '^ *+' conftest.er1 >conftest.err
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } && {
11317 test -z "$ac_c_werror_flag" ||
11318 test ! -s conftest.err
11319 } && test -s conftest.$ac_objext; then
11320 ac_header_compiler=yes
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 ac_header_compiler=no
11328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11330 echo "${ECHO_T}$ac_header_compiler" >&6; }
11332 # Is the header present?
11333 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
11334 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
11335 cat >conftest.$ac_ext <<_ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11341 #include <lirc/lirc_client.h>
11343 if { (ac_try="$ac_cpp conftest.$ac_ext"
11344 case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11351 grep -v '^ *+' conftest.er1 >conftest.err
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } >/dev/null && {
11356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11357 test ! -s conftest.err
11359 ac_header_preproc=yes
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 ac_header_preproc=no
11367 rm -f conftest.err conftest.$ac_ext
11368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11369 echo "${ECHO_T}$ac_header_preproc" >&6; }
11371 # So? What about this header?
11372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11374 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
11375 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11376 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
11377 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
11378 ac_header_preproc=yes
11381 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
11382 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
11384 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
11386 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
11388 echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
11390 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
11392 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
11396 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
11397 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
11398 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
11403 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
11404 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
11407 if test $ac_cv_header_lirc_lirc_client_h = yes; then
11409 HAVE_LIRC_CLIENT_H=yes
11411 cat >>confdefs.h <<\_ACEOF
11412 #define HAVE_LIRC 1
11415 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
11418 echo "LIRC support not found, building without it."
11425 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
11427 INPUT_LIRC_FALSE='#'
11429 INPUT_LIRC_TRUE='#'
11434 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
11435 set dummy sh-elf-gcc; ac_word=$2
11436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11438 if test "${ac_cv_path_SHCC+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447 for as_dir in $PATH
11450 test -z "$as_dir" && as_dir=.
11451 for ac_exec_ext in '' $ac_executable_extensions; do
11452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11453 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
11454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11464 SHCC=$ac_cv_path_SHCC
11465 if test -n "$SHCC"; then
11466 { echo "$as_me:$LINENO: result: $SHCC" >&5
11467 echo "${ECHO_T}$SHCC" >&6; }
11469 { echo "$as_me:$LINENO: result: no" >&5
11470 echo "${ECHO_T}no" >&6; }
11474 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
11475 set dummy sh-elf-ld; ac_word=$2
11476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11478 if test "${ac_cv_path_SHLD+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
11486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $PATH
11490 test -z "$as_dir" && as_dir=.
11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11493 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
11494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 SHLD=$ac_cv_path_SHLD
11505 if test -n "$SHLD"; then
11506 { echo "$as_me:$LINENO: result: $SHLD" >&5
11507 echo "${ECHO_T}$SHLD" >&6; }
11509 { echo "$as_me:$LINENO: result: no" >&5
11510 echo "${ECHO_T}no" >&6; }
11514 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
11515 set dummy sh-elf-objcopy; ac_word=$2
11516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11518 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
11526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527 for as_dir in $PATH
11530 test -z "$as_dir" && as_dir=.
11531 for ac_exec_ext in '' $ac_executable_extensions; do
11532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11533 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11544 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
11545 if test -n "$SHOBJCOPY"; then
11546 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
11547 echo "${ECHO_T}$SHOBJCOPY" >&6; }
11549 { echo "$as_me:$LINENO: result: no" >&5
11550 echo "${ECHO_T}no" >&6; }
11554 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
11555 set dummy arm-elf-gcc; ac_word=$2
11556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11558 if test "${ac_cv_path_ARMCC+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
11566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567 for as_dir in $PATH
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11573 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
11574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 ARMCC=$ac_cv_path_ARMCC
11585 if test -n "$ARMCC"; then
11586 { echo "$as_me:$LINENO: result: $ARMCC" >&5
11587 echo "${ECHO_T}$ARMCC" >&6; }
11589 { echo "$as_me:$LINENO: result: no" >&5
11590 echo "${ECHO_T}no" >&6; }
11594 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
11595 set dummy arm-elf-ld; ac_word=$2
11596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11598 if test "${ac_cv_path_ARMLD+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11613 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
11614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11624 ARMLD=$ac_cv_path_ARMLD
11625 if test -n "$ARMLD"; then
11626 { echo "$as_me:$LINENO: result: $ARMLD" >&5
11627 echo "${ECHO_T}$ARMLD" >&6; }
11629 { echo "$as_me:$LINENO: result: no" >&5
11630 echo "${ECHO_T}no" >&6; }
11634 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
11635 set dummy arm-elf-objcopy; ac_word=$2
11636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11638 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 case $ARMOBJCOPY in
11643 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11650 test -z "$as_dir" && as_dir=.
11651 for ac_exec_ext in '' $ac_executable_extensions; do
11652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11653 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11664 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
11665 if test -n "$ARMOBJCOPY"; then
11666 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
11667 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
11669 { echo "$as_me:$LINENO: result: no" >&5
11670 echo "${ECHO_T}no" >&6; }
11675 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
11677 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
11681 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
11683 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
11689 if test "$BUILD_SH" = "yes"; then
11690 BUILD_SYSTEST_TRUE=
11691 BUILD_SYSTEST_FALSE='#'
11693 BUILD_SYSTEST_TRUE='#'
11694 BUILD_SYSTEST_FALSE=
11699 if test "$BUILD_ARM" = "yes"; then
11700 BUILD_ARMTEST_TRUE=
11701 BUILD_ARMTEST_FALSE='#'
11703 BUILD_ARMTEST_TRUE='#'
11704 BUILD_ARMTEST_FALSE=
11708 CFLAGS="$CFLAGS $STDCFLAG"
11710 GETTEXT_PACKAGE=lxdream
11711 LXDREAM_LIBS="$LIBS"
11716 cat >>confdefs.h <<_ACEOF
11717 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11721 ALL_LINGUAS="de es it nl pt_BR"
11724 for ac_header in locale.h
11726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 ac_res=`eval echo '${'$as_ac_Header'}'`
11734 { echo "$as_me:$LINENO: result: $ac_res" >&5
11735 echo "${ECHO_T}$ac_res" >&6; }
11737 # Is the header compilable?
11738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11740 cat >conftest.$ac_ext <<_ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746 $ac_includes_default
11747 #include <$ac_header>
11749 rm -f conftest.$ac_objext
11750 if { (ac_try="$ac_compile"
11751 case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756 (eval "$ac_compile") 2>conftest.er1
11758 grep -v '^ *+' conftest.er1 >conftest.err
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } && {
11763 test -z "$ac_c_werror_flag" ||
11764 test ! -s conftest.err
11765 } && test -s conftest.$ac_objext; then
11766 ac_header_compiler=yes
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 ac_header_compiler=no
11774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11776 echo "${ECHO_T}$ac_header_compiler" >&6; }
11778 # Is the header present?
11779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11781 cat >conftest.$ac_ext <<_ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 #include <$ac_header>
11789 if { (ac_try="$ac_cpp conftest.$ac_ext"
11790 case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11797 grep -v '^ *+' conftest.er1 >conftest.err
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } >/dev/null && {
11802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11803 test ! -s conftest.err
11805 ac_header_preproc=yes
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 ac_header_preproc=no
11813 rm -f conftest.err conftest.$ac_ext
11814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11815 echo "${ECHO_T}$ac_header_preproc" >&6; }
11817 # So? What about this header?
11818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11824 ac_header_preproc=yes
11827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 eval "$as_ac_Header=\$ac_header_preproc"
11849 ac_res=`eval echo '${'$as_ac_Header'}'`
11850 { echo "$as_me:$LINENO: result: $ac_res" >&5
11851 echo "${ECHO_T}$ac_res" >&6; }
11854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11863 if test $ac_cv_header_locale_h = yes; then
11864 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11865 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
11866 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 cat >conftest.$ac_ext <<_ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11875 #include <locale.h>
11884 rm -f conftest.$ac_objext conftest$ac_exeext
11885 if { (ac_try="$ac_link"
11886 case "(($ac_try" in
11887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888 *) ac_try_echo=$ac_try;;
11890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891 (eval "$ac_link") 2>conftest.er1
11893 grep -v '^ *+' conftest.er1 >conftest.err
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } && {
11898 test -z "$ac_c_werror_flag" ||
11899 test ! -s conftest.err
11900 } && test -s conftest$ac_exeext &&
11901 $as_test_x conftest$ac_exeext; then
11902 am_cv_val_LC_MESSAGES=yes
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 am_cv_val_LC_MESSAGES=no
11910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11911 conftest$ac_exeext conftest.$ac_ext
11913 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11914 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
11915 if test $am_cv_val_LC_MESSAGES = yes; then
11917 cat >>confdefs.h <<\_ACEOF
11918 #define HAVE_LC_MESSAGES 1
11926 gt_cv_have_gettext=no
11932 if test "${ac_cv_header_libintl_h+set}" = set; then
11933 { echo "$as_me:$LINENO: checking for libintl.h" >&5
11934 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
11935 if test "${ac_cv_header_libintl_h+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11939 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
11941 # Is the header compilable?
11942 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
11943 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
11944 cat >conftest.$ac_ext <<_ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 $ac_includes_default
11951 #include <libintl.h>
11953 rm -f conftest.$ac_objext
11954 if { (ac_try="$ac_compile"
11955 case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_compile") 2>conftest.er1
11962 grep -v '^ *+' conftest.er1 >conftest.err
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } && {
11967 test -z "$ac_c_werror_flag" ||
11968 test ! -s conftest.err
11969 } && test -s conftest.$ac_objext; then
11970 ac_header_compiler=yes
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11975 ac_header_compiler=no
11978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11980 echo "${ECHO_T}$ac_header_compiler" >&6; }
11982 # Is the header present?
11983 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
11984 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
11985 cat >conftest.$ac_ext <<_ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h. */
11991 #include <libintl.h>
11993 if { (ac_try="$ac_cpp conftest.$ac_ext"
11994 case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12001 grep -v '^ *+' conftest.er1 >conftest.err
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } >/dev/null && {
12006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12007 test ! -s conftest.err
12009 ac_header_preproc=yes
12011 echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12014 ac_header_preproc=no
12017 rm -f conftest.err conftest.$ac_ext
12018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12019 echo "${ECHO_T}$ac_header_preproc" >&6; }
12021 # So? What about this header?
12022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12024 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12025 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12026 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
12027 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
12028 ac_header_preproc=yes
12031 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
12032 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
12033 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
12034 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
12035 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
12036 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
12038 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
12040 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
12041 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
12042 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
12046 { echo "$as_me:$LINENO: checking for libintl.h" >&5
12047 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
12048 if test "${ac_cv_header_libintl_h+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 ac_cv_header_libintl_h=$ac_header_preproc
12053 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12054 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
12057 if test $ac_cv_header_libintl_h = yes; then
12058 gt_cv_func_dgettext_libintl="no"
12059 libintl_extra_libs=""
12062 # First check in libc
12064 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
12065 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
12066 if test "${gt_cv_func_ngettext_libc+set}" = set; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6
12069 cat >conftest.$ac_ext <<_ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12076 #include <libintl.h>
12081 return !ngettext ("","", 1)
12086 rm -f conftest.$ac_objext conftest$ac_exeext
12087 if { (ac_try="$ac_link"
12088 case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_link") 2>conftest.er1
12095 grep -v '^ *+' conftest.er1 >conftest.err
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } && {
12100 test -z "$ac_c_werror_flag" ||
12101 test ! -s conftest.err
12102 } && test -s conftest$ac_exeext &&
12103 $as_test_x conftest$ac_exeext; then
12104 gt_cv_func_ngettext_libc=yes
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 gt_cv_func_ngettext_libc=no
12112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12113 conftest$ac_exeext conftest.$ac_ext
12116 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
12117 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
12119 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12120 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
12121 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
12122 if test "${gt_cv_func_dgettext_libc+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 cat >conftest.$ac_ext <<_ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12132 #include <libintl.h>
12137 return !dgettext ("","")
12142 rm -f conftest.$ac_objext conftest$ac_exeext
12143 if { (ac_try="$ac_link"
12144 case "(($ac_try" in
12145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146 *) ac_try_echo=$ac_try;;
12148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149 (eval "$ac_link") 2>conftest.er1
12151 grep -v '^ *+' conftest.er1 >conftest.err
12153 cat conftest.err >&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } && {
12156 test -z "$ac_c_werror_flag" ||
12157 test ! -s conftest.err
12158 } && test -s conftest$ac_exeext &&
12159 $as_test_x conftest$ac_exeext; then
12160 gt_cv_func_dgettext_libc=yes
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 gt_cv_func_dgettext_libc=no
12168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12169 conftest$ac_exeext conftest.$ac_ext
12172 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
12173 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
12176 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12178 for ac_func in bind_textdomain_codeset
12180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12186 cat >conftest.$ac_ext <<_ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12194 #define $ac_func innocuous_$ac_func
12196 /* System header to define __stub macros and hopefully few prototypes,
12197 which can conflict with char $ac_func (); below.
12198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12199 <limits.h> exists even on freestanding compilers. */
12202 # include <limits.h>
12204 # include <assert.h>
12209 /* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
12216 /* The GNU C library defines this for functions which it implements
12217 to always fail with ENOSYS. Some functions are actually named
12218 something starting with __ and the normal name is an alias. */
12219 #if defined __stub_$ac_func || defined __stub___$ac_func
12226 return $ac_func ();
12231 rm -f conftest.$ac_objext conftest$ac_exeext
12232 if { (ac_try="$ac_link"
12233 case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_link") 2>conftest.er1
12240 grep -v '^ *+' conftest.er1 >conftest.err
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } && {
12245 test -z "$ac_c_werror_flag" ||
12246 test ! -s conftest.err
12247 } && test -s conftest$ac_exeext &&
12248 $as_test_x conftest$ac_exeext; then
12249 eval "$as_ac_var=yes"
12251 echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12254 eval "$as_ac_var=no"
12257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12258 conftest$ac_exeext conftest.$ac_ext
12260 ac_res=`eval echo '${'$as_ac_var'}'`
12261 { echo "$as_me:$LINENO: result: $ac_res" >&5
12262 echo "${ECHO_T}$ac_res" >&6; }
12263 if test `eval echo '${'$as_ac_var'}'` = yes; then
12264 cat >>confdefs.h <<_ACEOF
12265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12274 # If we don't have everything we want, check in libintl
12276 if test "$gt_cv_func_dgettext_libc" != "yes" \
12277 || test "$gt_cv_func_ngettext_libc" != "yes" \
12278 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
12280 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
12281 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
12282 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
12283 echo $ECHO_N "(cached) $ECHO_C" >&6
12285 ac_check_lib_save_LIBS=$LIBS
12286 LIBS="-lintl $LIBS"
12287 cat >conftest.$ac_ext <<_ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12294 /* Override any GCC internal prototype to avoid an error.
12295 Use char because int might match the return type of a GCC
12296 builtin and then its argument prototype would still apply. */
12300 char bindtextdomain ();
12304 return bindtextdomain ();
12309 rm -f conftest.$ac_objext conftest$ac_exeext
12310 if { (ac_try="$ac_link"
12311 case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_link") 2>conftest.er1
12318 grep -v '^ *+' conftest.er1 >conftest.err
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } && {
12323 test -z "$ac_c_werror_flag" ||
12324 test ! -s conftest.err
12325 } && test -s conftest$ac_exeext &&
12326 $as_test_x conftest$ac_exeext; then
12327 ac_cv_lib_intl_bindtextdomain=yes
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12332 ac_cv_lib_intl_bindtextdomain=no
12335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12336 conftest$ac_exeext conftest.$ac_ext
12337 LIBS=$ac_check_lib_save_LIBS
12339 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
12340 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
12341 if test $ac_cv_lib_intl_bindtextdomain = yes; then
12342 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12343 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
12344 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12345 echo $ECHO_N "(cached) $ECHO_C" >&6
12347 ac_check_lib_save_LIBS=$LIBS
12348 LIBS="-lintl $LIBS"
12349 cat >conftest.$ac_ext <<_ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12356 /* Override any GCC internal prototype to avoid an error.
12357 Use char because int might match the return type of a GCC
12358 builtin and then its argument prototype would still apply. */
12366 return ngettext ();
12371 rm -f conftest.$ac_objext conftest$ac_exeext
12372 if { (ac_try="$ac_link"
12373 case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_link") 2>conftest.er1
12380 grep -v '^ *+' conftest.er1 >conftest.err
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } && {
12385 test -z "$ac_c_werror_flag" ||
12386 test ! -s conftest.err
12387 } && test -s conftest$ac_exeext &&
12388 $as_test_x conftest$ac_exeext; then
12389 ac_cv_lib_intl_ngettext=yes
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12394 ac_cv_lib_intl_ngettext=no
12397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12398 conftest$ac_exeext conftest.$ac_ext
12399 LIBS=$ac_check_lib_save_LIBS
12401 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12402 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
12403 if test $ac_cv_lib_intl_ngettext = yes; then
12404 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12405 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
12406 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 ac_check_lib_save_LIBS=$LIBS
12410 LIBS="-lintl $LIBS"
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12418 /* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12428 return dgettext ();
12433 rm -f conftest.$ac_objext conftest$ac_exeext
12434 if { (ac_try="$ac_link"
12435 case "(($ac_try" in
12436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437 *) ac_try_echo=$ac_try;;
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440 (eval "$ac_link") 2>conftest.er1
12442 grep -v '^ *+' conftest.er1 >conftest.err
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } && {
12447 test -z "$ac_c_werror_flag" ||
12448 test ! -s conftest.err
12449 } && test -s conftest$ac_exeext &&
12450 $as_test_x conftest$ac_exeext; then
12451 ac_cv_lib_intl_dgettext=yes
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12456 ac_cv_lib_intl_dgettext=no
12459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12460 conftest$ac_exeext conftest.$ac_ext
12461 LIBS=$ac_check_lib_save_LIBS
12463 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12464 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
12465 if test $ac_cv_lib_intl_dgettext = yes; then
12466 gt_cv_func_dgettext_libintl=yes
12474 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
12475 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
12476 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
12477 { echo "$as_me:$LINENO: result: " >&5
12478 echo "${ECHO_T}" >&6; }
12479 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12480 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
12481 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12484 ac_check_lib_save_LIBS=$LIBS
12485 LIBS="-lintl -liconv $LIBS"
12486 cat >conftest.$ac_ext <<_ACEOF
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h. */
12493 /* Override any GCC internal prototype to avoid an error.
12494 Use char because int might match the return type of a GCC
12495 builtin and then its argument prototype would still apply. */
12503 return ngettext ();
12508 rm -f conftest.$ac_objext conftest$ac_exeext
12509 if { (ac_try="$ac_link"
12510 case "(($ac_try" in
12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_link") 2>conftest.er1
12517 grep -v '^ *+' conftest.er1 >conftest.err
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } && {
12522 test -z "$ac_c_werror_flag" ||
12523 test ! -s conftest.err
12524 } && test -s conftest$ac_exeext &&
12525 $as_test_x conftest$ac_exeext; then
12526 ac_cv_lib_intl_ngettext=yes
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12531 ac_cv_lib_intl_ngettext=no
12534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12535 conftest$ac_exeext conftest.$ac_ext
12536 LIBS=$ac_check_lib_save_LIBS
12538 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12539 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
12540 if test $ac_cv_lib_intl_ngettext = yes; then
12541 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
12542 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
12543 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 ac_check_lib_save_LIBS=$LIBS
12547 LIBS="-lintl -liconv $LIBS"
12548 cat >conftest.$ac_ext <<_ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12555 /* Override any GCC internal prototype to avoid an error.
12556 Use char because int might match the return type of a GCC
12557 builtin and then its argument prototype would still apply. */
12565 return dcgettext ();
12570 rm -f conftest.$ac_objext conftest$ac_exeext
12571 if { (ac_try="$ac_link"
12572 case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_link") 2>conftest.er1
12579 grep -v '^ *+' conftest.er1 >conftest.err
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } && {
12584 test -z "$ac_c_werror_flag" ||
12585 test ! -s conftest.err
12586 } && test -s conftest$ac_exeext &&
12587 $as_test_x conftest$ac_exeext; then
12588 ac_cv_lib_intl_dcgettext=yes
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12593 ac_cv_lib_intl_dcgettext=no
12596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12597 conftest$ac_exeext conftest.$ac_ext
12598 LIBS=$ac_check_lib_save_LIBS
12600 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
12601 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
12602 if test $ac_cv_lib_intl_dcgettext = yes; then
12603 gt_cv_func_dgettext_libintl=yes
12604 libintl_extra_libs=-liconv
12616 # If we found libintl, then check in it for bind_textdomain_codeset();
12617 # we'll prefer libc if neither have bind_textdomain_codeset(),
12618 # and both have dgettext and ngettext
12620 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
12621 glib_save_LIBS="$LIBS"
12622 LIBS="$LIBS -lintl $libintl_extra_libs"
12623 unset ac_cv_func_bind_textdomain_codeset
12625 for ac_func in bind_textdomain_codeset
12627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 cat >conftest.$ac_ext <<_ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12641 #define $ac_func innocuous_$ac_func
12643 /* System header to define __stub macros and hopefully few prototypes,
12644 which can conflict with char $ac_func (); below.
12645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12646 <limits.h> exists even on freestanding compilers. */
12649 # include <limits.h>
12651 # include <assert.h>
12656 /* Override any GCC internal prototype to avoid an error.
12657 Use char because int might match the return type of a GCC
12658 builtin and then its argument prototype would still apply. */
12663 /* The GNU C library defines this for functions which it implements
12664 to always fail with ENOSYS. Some functions are actually named
12665 something starting with __ and the normal name is an alias. */
12666 #if defined __stub_$ac_func || defined __stub___$ac_func
12673 return $ac_func ();
12678 rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (ac_try="$ac_link"
12680 case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_link") 2>conftest.er1
12687 grep -v '^ *+' conftest.er1 >conftest.err
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && {
12692 test -z "$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 } && test -s conftest$ac_exeext &&
12695 $as_test_x conftest$ac_exeext; then
12696 eval "$as_ac_var=yes"
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12701 eval "$as_ac_var=no"
12704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12705 conftest$ac_exeext conftest.$ac_ext
12707 ac_res=`eval echo '${'$as_ac_var'}'`
12708 { echo "$as_me:$LINENO: result: $ac_res" >&5
12709 echo "${ECHO_T}$ac_res" >&6; }
12710 if test `eval echo '${'$as_ac_var'}'` = yes; then
12711 cat >>confdefs.h <<_ACEOF
12712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12718 LIBS="$glib_save_LIBS"
12720 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
12721 gt_cv_func_dgettext_libc=no
12723 if test "$gt_cv_func_dgettext_libc" = "yes" \
12724 && test "$gt_cv_func_ngettext_libc" = "yes"; then
12725 gt_cv_func_dgettext_libintl=no
12731 if test "$gt_cv_func_dgettext_libc" = "yes" \
12732 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
12733 gt_cv_have_gettext=yes
12736 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
12737 INTLLIBS="-lintl $libintl_extra_libs"
12740 if test "$gt_cv_have_gettext" = "yes"; then
12742 cat >>confdefs.h <<\_ACEOF
12743 #define HAVE_GETTEXT 1
12746 # Extract the first word of "msgfmt", so it can be a program name with args.
12747 set dummy msgfmt; ac_word=$2
12748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12750 if test "${ac_cv_path_MSGFMT+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12759 for ac_dir in $PATH; do
12760 test -z "$ac_dir" && ac_dir=.
12761 if test -f $ac_dir/$ac_word; then
12762 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12763 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12769 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
12773 MSGFMT="$ac_cv_path_MSGFMT"
12774 if test "$MSGFMT" != "no"; then
12775 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
12776 echo "${ECHO_T}$MSGFMT" >&6; }
12778 { echo "$as_me:$LINENO: result: no" >&5
12779 echo "${ECHO_T}no" >&6; }
12781 if test "$MSGFMT" != "no"; then
12782 glib_save_LIBS="$LIBS"
12783 LIBS="$LIBS $INTLLIBS"
12785 for ac_func in dcgettext
12787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12788 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12791 echo $ECHO_N "(cached) $ECHO_C" >&6
12793 cat >conftest.$ac_ext <<_ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12801 #define $ac_func innocuous_$ac_func
12803 /* System header to define __stub macros and hopefully few prototypes,
12804 which can conflict with char $ac_func (); below.
12805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12806 <limits.h> exists even on freestanding compilers. */
12809 # include <limits.h>
12811 # include <assert.h>
12816 /* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
12823 /* The GNU C library defines this for functions which it implements
12824 to always fail with ENOSYS. Some functions are actually named
12825 something starting with __ and the normal name is an alias. */
12826 #if defined __stub_$ac_func || defined __stub___$ac_func
12833 return $ac_func ();
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (ac_try="$ac_link"
12840 case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_link") 2>conftest.er1
12847 grep -v '^ *+' conftest.er1 >conftest.err
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && {
12852 test -z "$ac_c_werror_flag" ||
12853 test ! -s conftest.err
12854 } && test -s conftest$ac_exeext &&
12855 $as_test_x conftest$ac_exeext; then
12856 eval "$as_ac_var=yes"
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12861 eval "$as_ac_var=no"
12864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12865 conftest$ac_exeext conftest.$ac_ext
12867 ac_res=`eval echo '${'$as_ac_var'}'`
12868 { echo "$as_me:$LINENO: result: $ac_res" >&5
12869 echo "${ECHO_T}$ac_res" >&6; }
12870 if test `eval echo '${'$as_ac_var'}'` = yes; then
12871 cat >>confdefs.h <<_ACEOF
12872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12879 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
12880 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
12881 cat >conftest.foo <<_ACEOF
12885 "Content-Type: text/plain; charset=UTF-8\n"
12886 "Project-Id-Version: test 1.0\n"
12887 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
12888 "Last-Translator: test <foo@bar.xx>\n"
12889 "Language-Team: C <LL@li.org>\n"
12890 "MIME-Version: 1.0\n"
12891 "Content-Transfer-Encoding: 8bit\n"
12894 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
12895 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; then
12899 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
12900 echo "${ECHO_T}yes" >&6; }
12901 else { echo "$as_me:$LINENO: result: no" >&5
12902 echo "${ECHO_T}no" >&6; }
12903 echo "$as_me: failed input was:" >&5
12904 sed 's/^/| /' conftest.foo >&5
12907 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12908 set dummy gmsgfmt; ac_word=$2
12909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12911 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12916 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920 for as_dir in $PATH
12923 test -z "$as_dir" && as_dir=.
12924 for ac_exec_ext in '' $ac_executable_extensions; do
12925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12926 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12934 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12938 GMSGFMT=$ac_cv_path_GMSGFMT
12939 if test -n "$GMSGFMT"; then
12940 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12941 echo "${ECHO_T}$GMSGFMT" >&6; }
12943 { echo "$as_me:$LINENO: result: no" >&5
12944 echo "${ECHO_T}no" >&6; }
12948 # Extract the first word of "xgettext", so it can be a program name with args.
12949 set dummy xgettext; ac_word=$2
12950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12952 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 case "$XGETTEXT" in
12957 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12961 for ac_dir in $PATH; do
12962 test -z "$ac_dir" && ac_dir=.
12963 if test -f $ac_dir/$ac_word; then
12964 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
12965 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12971 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12975 XGETTEXT="$ac_cv_path_XGETTEXT"
12976 if test "$XGETTEXT" != ":"; then
12977 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12978 echo "${ECHO_T}$XGETTEXT" >&6; }
12980 { echo "$as_me:$LINENO: result: no" >&5
12981 echo "${ECHO_T}no" >&6; }
12984 cat >conftest.$ac_ext <<_ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12994 extern int _nl_msg_cat_cntr;
12995 return _nl_msg_cat_cntr
13000 rm -f conftest.$ac_objext conftest$ac_exeext
13001 if { (ac_try="$ac_link"
13002 case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_link") 2>conftest.er1
13009 grep -v '^ *+' conftest.er1 >conftest.err
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } && {
13014 test -z "$ac_c_werror_flag" ||
13015 test ! -s conftest.err
13016 } && test -s conftest$ac_exeext &&
13017 $as_test_x conftest$ac_exeext; then
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13026 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
13027 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
13028 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13031 cat >conftest.$ac_ext <<_ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13037 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
13038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13039 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
13041 /* System header to define __stub macros and hopefully few prototypes,
13042 which can conflict with char bind_textdomain_codeset (); below.
13043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13044 <limits.h> exists even on freestanding compilers. */
13047 # include <limits.h>
13049 # include <assert.h>
13052 #undef bind_textdomain_codeset
13054 /* Override any GCC internal prototype to avoid an error.
13055 Use char because int might match the return type of a GCC
13056 builtin and then its argument prototype would still apply. */
13060 char bind_textdomain_codeset ();
13061 /* The GNU C library defines this for functions which it implements
13062 to always fail with ENOSYS. Some functions are actually named
13063 something starting with __ and the normal name is an alias. */
13064 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
13071 return bind_textdomain_codeset ();
13076 rm -f conftest.$ac_objext conftest$ac_exeext
13077 if { (ac_try="$ac_link"
13078 case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_link") 2>conftest.er1
13085 grep -v '^ *+' conftest.er1 >conftest.err
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest$ac_exeext &&
13093 $as_test_x conftest$ac_exeext; then
13094 ac_cv_func_bind_textdomain_codeset=yes
13096 echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13099 ac_cv_func_bind_textdomain_codeset=no
13102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13103 conftest$ac_exeext conftest.$ac_ext
13105 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
13106 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
13107 if test $ac_cv_func_bind_textdomain_codeset = yes; then
13123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13124 conftest$ac_exeext conftest.$ac_ext
13125 LIBS="$glib_save_LIBS"
13128 gt_cv_have_gettext=no
13136 if test "$gt_cv_have_gettext" = "yes" ; then
13138 cat >>confdefs.h <<\_ACEOF
13139 #define ENABLE_NLS 1
13144 if test "$XGETTEXT" != ":"; then
13145 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
13148 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13149 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
13154 # We need to process the po/ directory.
13157 ac_config_commands="$ac_config_commands default-1"
13160 for lang in $ALL_LINGUAS; do
13161 GMOFILES="$GMOFILES $lang.gmo"
13162 POFILES="$POFILES $lang.po"
13177 if test "$gt_cv_have_gettext" = "yes"; then
13178 if test "x$ALL_LINGUAS" = "x"; then
13181 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13182 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
13184 for presentlang in $ALL_LINGUAS; do
13186 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
13187 desiredlanguages="$LINGUAS"
13189 desiredlanguages="$ALL_LINGUAS"
13191 for desiredlang in $desiredlanguages; do
13192 # Use the presentlang catalog if desiredlang is
13193 # a. equal to presentlang, or
13194 # b. a variant of presentlang (because in this case,
13195 # presentlang can be used as a fallback for messages
13196 # which are not translated in the desiredlang catalog).
13197 case "$desiredlang" in
13198 "$presentlang"*) useit=yes;;
13201 if test $useit = yes; then
13202 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13205 LINGUAS=$NEW_LINGUAS
13206 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
13207 echo "${ECHO_T}$LINGUAS" >&6; }
13210 if test -n "$LINGUAS"; then
13211 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13216 if test -n "$ac_aux_dir"; then
13217 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13219 if test -z "$MKINSTALLDIRS"; then
13220 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13224 test -d po || mkdir po
13225 if test "x$srcdir" != "x."; then
13226 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
13227 posrcprefix="$srcdir/"
13229 posrcprefix="../$srcdir/"
13235 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
13236 < $srcdir/po/POTFILES.in > po/POTFILES
13239 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
13241 cat >confcache <<\_ACEOF
13242 # This file is a shell script that caches the results of configure
13243 # tests run on this system so they can be shared between configure
13244 # scripts and configure runs, see configure's option --config-cache.
13245 # It is not useful on other systems. If it contains results you don't
13246 # want to keep, you may remove or edit it.
13248 # config.status only pays attention to the cache file if you give it
13249 # the --recheck option to rerun configure.
13251 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13252 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13253 # following values.
13257 # The following way of writing the cache mishandles newlines in values,
13258 # but we know of no workaround that is simple, portable, and efficient.
13259 # So, we kill variables containing newlines.
13260 # Ultrix sh set writes to stderr and can't be redirected directly,
13261 # and sets the high bit in the cache file unless we assign to the vars.
13263 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13264 eval ac_val=\$$ac_var
13268 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13269 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13272 _ | IFS | as_nl) ;; #(
13273 *) $as_unset $ac_var ;;
13279 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13280 *${as_nl}ac_space=\ *)
13281 # `set' does not quote correctly, so add quotes (double-quote
13282 # substitution turns \\\\ into \\, and sed turns \\ into \).
13285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13288 # `set' quotes correctly as required by POSIX, so do not add quotes.
13289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13298 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13300 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13302 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13303 if test -w "$cache_file"; then
13304 test "x$cache_file" != "x/dev/null" &&
13305 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13306 echo "$as_me: updating cache $cache_file" >&6;}
13307 cat confcache >$cache_file
13309 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13310 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13316 # Let make expand exec_prefix.
13317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13319 DEFS=-DHAVE_CONFIG_H
13323 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13324 # 1. Remove the extension, and $U if already installed.
13325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13326 ac_i=`echo "$ac_i" | sed "$ac_script"`
13327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13328 # will be set to the directory where LIBOBJS objects are built.
13329 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13330 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13332 LIBOBJS=$ac_libobjs
13334 LTLIBOBJS=$ac_ltlibobjs
13337 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13338 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13339 Usually this means the macro was only invoked conditionally." >&5
13340 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13341 Usually this means the macro was only invoked conditionally." >&2;}
13342 { (exit 1); exit 1; }; }
13344 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13345 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13346 Usually this means the macro was only invoked conditionally." >&5
13347 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13348 Usually this means the macro was only invoked conditionally." >&2;}
13349 { (exit 1); exit 1; }; }
13351 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13352 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13353 Usually this means the macro was only invoked conditionally." >&5
13354 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13355 Usually this means the macro was only invoked conditionally." >&2;}
13356 { (exit 1); exit 1; }; }
13358 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13359 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13360 Usually this means the macro was only invoked conditionally." >&5
13361 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13362 Usually this means the macro was only invoked conditionally." >&2;}
13363 { (exit 1); exit 1; }; }
13365 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13366 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13367 Usually this means the macro was only invoked conditionally." >&5
13368 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13369 Usually this means the macro was only invoked conditionally." >&2;}
13370 { (exit 1); exit 1; }; }
13372 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
13373 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
13374 Usually this means the macro was only invoked conditionally." >&5
13375 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
13376 Usually this means the macro was only invoked conditionally." >&2;}
13377 { (exit 1); exit 1; }; }
13379 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
13380 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
13381 Usually this means the macro was only invoked conditionally." >&5
13382 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
13383 Usually this means the macro was only invoked conditionally." >&2;}
13384 { (exit 1); exit 1; }; }
13386 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
13387 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SHARED\" was never defined.
13388 Usually this means the macro was only invoked conditionally." >&5
13389 echo "$as_me: error: conditional \"BUILD_SHARED\" was never defined.
13390 Usually this means the macro was only invoked conditionally." >&2;}
13391 { (exit 1); exit 1; }; }
13393 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
13394 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
13395 Usually this means the macro was only invoked conditionally." >&5
13396 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
13397 Usually this means the macro was only invoked conditionally." >&2;}
13398 { (exit 1); exit 1; }; }
13400 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
13401 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
13402 Usually this means the macro was only invoked conditionally." >&5
13403 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
13404 Usually this means the macro was only invoked conditionally." >&2;}
13405 { (exit 1); exit 1; }; }
13407 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
13408 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
13409 Usually this means the macro was only invoked conditionally." >&5
13410 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
13411 Usually this means the macro was only invoked conditionally." >&2;}
13412 { (exit 1); exit 1; }; }
13414 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
13415 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
13416 Usually this means the macro was only invoked conditionally." >&5
13417 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
13418 Usually this means the macro was only invoked conditionally." >&2;}
13419 { (exit 1); exit 1; }; }
13421 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
13422 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
13423 Usually this means the macro was only invoked conditionally." >&5
13424 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
13425 Usually this means the macro was only invoked conditionally." >&2;}
13426 { (exit 1); exit 1; }; }
13428 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
13429 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
13430 Usually this means the macro was only invoked conditionally." >&5
13431 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
13432 Usually this means the macro was only invoked conditionally." >&2;}
13433 { (exit 1); exit 1; }; }
13435 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
13436 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
13437 Usually this means the macro was only invoked conditionally." >&5
13438 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
13439 Usually this means the macro was only invoked conditionally." >&2;}
13440 { (exit 1); exit 1; }; }
13442 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
13443 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
13444 Usually this means the macro was only invoked conditionally." >&5
13445 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
13446 Usually this means the macro was only invoked conditionally." >&2;}
13447 { (exit 1); exit 1; }; }
13449 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
13450 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
13451 Usually this means the macro was only invoked conditionally." >&5
13452 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
13453 Usually this means the macro was only invoked conditionally." >&2;}
13454 { (exit 1); exit 1; }; }
13456 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
13457 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
13458 Usually this means the macro was only invoked conditionally." >&5
13459 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
13460 Usually this means the macro was only invoked conditionally." >&2;}
13461 { (exit 1); exit 1; }; }
13463 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
13464 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
13465 Usually this means the macro was only invoked conditionally." >&5
13466 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
13467 Usually this means the macro was only invoked conditionally." >&2;}
13468 { (exit 1); exit 1; }; }
13470 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
13471 { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
13472 Usually this means the macro was only invoked conditionally." >&5
13473 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
13474 Usually this means the macro was only invoked conditionally." >&2;}
13475 { (exit 1); exit 1; }; }
13477 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
13478 { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
13479 Usually this means the macro was only invoked conditionally." >&5
13480 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
13481 Usually this means the macro was only invoked conditionally." >&2;}
13482 { (exit 1); exit 1; }; }
13484 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
13485 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
13486 Usually this means the macro was only invoked conditionally." >&5
13487 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
13488 Usually this means the macro was only invoked conditionally." >&2;}
13489 { (exit 1); exit 1; }; }
13491 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
13492 { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
13493 Usually this means the macro was only invoked conditionally." >&5
13494 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
13495 Usually this means the macro was only invoked conditionally." >&2;}
13496 { (exit 1); exit 1; }; }
13498 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
13499 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
13500 Usually this means the macro was only invoked conditionally." >&5
13501 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
13502 Usually this means the macro was only invoked conditionally." >&2;}
13503 { (exit 1); exit 1; }; }
13505 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
13506 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
13507 Usually this means the macro was only invoked conditionally." >&5
13508 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
13509 Usually this means the macro was only invoked conditionally." >&2;}
13510 { (exit 1); exit 1; }; }
13513 : ${CONFIG_STATUS=./config.status}
13514 ac_clean_files_save=$ac_clean_files
13515 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13516 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13517 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13518 cat >$CONFIG_STATUS <<_ACEOF
13520 # Generated by $as_me.
13521 # Run this file to recreate the current configuration.
13522 # Compiler output produced by configure, useful for debugging
13523 # configure, is in config.log if it exists.
13526 ac_cs_recheck=false
13528 SHELL=\${CONFIG_SHELL-$SHELL}
13531 cat >>$CONFIG_STATUS <<\_ACEOF
13532 ## --------------------- ##
13533 ## M4sh Initialization. ##
13534 ## --------------------- ##
13536 # Be more Bourne compatible
13537 DUALCASE=1; export DUALCASE # for MKS sh
13538 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13541 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13542 # is contrary to our usage. Disable this feature.
13543 alias -g '${1+"$@"}'='"$@"'
13544 setopt NO_GLOB_SUBST
13546 case `(set -o) 2>/dev/null` in
13547 *posix*) set -o posix ;;
13556 # Avoid depending upon Character Ranges.
13557 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13558 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13559 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13560 as_cr_digits='0123456789'
13561 as_cr_alnum=$as_cr_Letters$as_cr_digits
13563 # The user is always right.
13564 if test "${PATH_SEPARATOR+set}" != set; then
13565 echo "#! /bin/sh" >conf$$.sh
13566 echo "exit 0" >>conf$$.sh
13568 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13576 # Support unset when possible.
13577 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13585 # We need space, tab and new line, in precisely that order. Quoting is
13586 # there to prevent editors from complaining about space-tab.
13587 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13588 # splitting by setting IFS to empty value.)
13593 # Find who we are. Look in the path if we contain no directory separator.
13595 *[\\/]* ) as_myself=$0 ;;
13596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13597 for as_dir in $PATH
13600 test -z "$as_dir" && as_dir=.
13601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13607 # We did not find ourselves, most probably we were run as `sh COMMAND'
13608 # in which case we are not to be found in the path.
13609 if test "x$as_myself" = x; then
13612 if test ! -f "$as_myself"; then
13613 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13614 { (exit 1); exit 1; }
13617 # Work around bugs in pre-3.0 UWIN ksh.
13618 for as_var in ENV MAIL MAILPATH
13619 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13627 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13628 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13629 LC_TELEPHONE LC_TIME
13631 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13632 eval $as_var=C; export $as_var
13634 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13638 # Required to use basename.
13639 if expr a : '\(a\)' >/dev/null 2>&1 &&
13640 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13646 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13647 as_basename=basename
13653 # Name of the executable.
13654 as_me=`$as_basename -- "$0" ||
13655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13656 X"$0" : 'X\(//\)$' \| \
13657 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13659 sed '/^.*\/\([^/][^/]*\)\/*$/{
13678 as_lineno_1=$LINENO
13679 as_lineno_2=$LINENO
13680 test "x$as_lineno_1" != "x$as_lineno_2" &&
13681 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13683 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13684 # uniformly replaced by the line number. The first 'sed' inserts a
13685 # line-number line after each line using $LINENO; the second 'sed'
13686 # does the real work. The second script uses 'N' to pair each
13687 # line-number line with the line containing $LINENO, and appends
13688 # trailing '-' during substitution so that $LINENO is not a special
13689 # case at line end.
13690 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13691 # scripts with optimization help from Paolo Bonzini. Blame Lee
13692 # E. McMahon (1931-1989) for sed's syntax. :-)
13704 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13707 ' >$as_me.lineno &&
13708 chmod +x "$as_me.lineno" ||
13709 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13710 { (exit 1); exit 1; }; }
13712 # Don't try to exec as it changes $[0], causing all sort of problems
13713 # (the dirname of $[0] is not the place where we might find the
13714 # original and so on. Autoconf is especially sensitive to this).
13715 . "./$as_me.lineno"
13716 # Exit status is that of the last command.
13721 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13727 ECHO_C= ECHO_N= ECHO_T=
13728 case `echo -n x` in
13730 case `echo 'x\c'` in
13731 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13738 if expr a : '\(a\)' >/dev/null 2>&1 &&
13739 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13745 rm -f conf$$ conf$$.exe conf$$.file
13746 if test -d conf$$.dir; then
13747 rm -f conf$$.dir/conf$$.file
13753 if ln -s conf$$.file conf$$ 2>/dev/null; then
13755 # ... but there are two gotchas:
13756 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13757 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13758 # In both cases, we have to default to `cp -p'.
13759 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13761 elif ln conf$$.file conf$$ 2>/dev/null; then
13766 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13767 rmdir conf$$.dir 2>/dev/null
13769 if mkdir -p . 2>/dev/null; then
13772 test -d ./-p && rmdir ./-p
13776 if test -x / >/dev/null 2>&1; then
13777 as_test_x='test -x'
13779 if ls -dL / >/dev/null 2>&1; then
13786 if test -d "$1"; then
13792 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13793 ???[sx]*):;;*)false;;esac;fi
13797 as_executable_p=$as_test_x
13799 # Sed expression to map a string onto a valid CPP name.
13800 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13802 # Sed expression to map a string onto a valid variable name.
13803 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13808 # Save the log message, to keep $[0] and so on meaningful, and to
13809 # report actual input values of CONFIG_FILES etc. instead of their
13810 # values after options handling.
13812 This file was extended by $as_me, which was
13813 generated by GNU Autoconf 2.61. Invocation command line was
13815 CONFIG_FILES = $CONFIG_FILES
13816 CONFIG_HEADERS = $CONFIG_HEADERS
13817 CONFIG_LINKS = $CONFIG_LINKS
13818 CONFIG_COMMANDS = $CONFIG_COMMANDS
13821 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13826 cat >>$CONFIG_STATUS <<_ACEOF
13827 # Files that config.status was made for.
13828 config_files="$ac_config_files"
13829 config_headers="$ac_config_headers"
13830 config_commands="$ac_config_commands"
13834 cat >>$CONFIG_STATUS <<\_ACEOF
13836 \`$as_me' instantiates files from templates according to the
13837 current configuration.
13839 Usage: $0 [OPTIONS] [FILE]...
13841 -h, --help print this help, then exit
13842 -V, --version print version number and configuration settings, then exit
13843 -q, --quiet do not print progress messages
13844 -d, --debug don't remove temporary files
13845 --recheck update $as_me by reconfiguring in the same conditions
13846 --file=FILE[:TEMPLATE]
13847 instantiate the configuration file FILE
13848 --header=FILE[:TEMPLATE]
13849 instantiate the configuration header FILE
13851 Configuration files:
13854 Configuration headers:
13857 Configuration commands:
13860 Report bugs to <bug-autoconf@gnu.org>."
13863 cat >>$CONFIG_STATUS <<_ACEOF
13866 configured by $0, generated by GNU Autoconf 2.61,
13867 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13869 Copyright (C) 2006 Free Software Foundation, Inc.
13870 This config.status script is free software; the Free Software Foundation
13871 gives unlimited permission to copy, distribute and modify it."
13878 cat >>$CONFIG_STATUS <<\_ACEOF
13879 # If no file are specified by the user, then we need to provide default
13880 # value. By we need to know if files were specified by the user.
13886 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13887 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13898 # Handling of the options.
13899 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13901 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13902 echo "$ac_cs_version"; exit ;;
13903 --debug | --debu | --deb | --de | --d | -d )
13905 --file | --fil | --fi | --f )
13907 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13908 ac_need_defaults=false;;
13909 --header | --heade | --head | --hea )
13911 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13912 ac_need_defaults=false;;
13914 # Conflict between --help and --header
13915 { echo "$as_me: error: ambiguous option: $1
13916 Try \`$0 --help' for more information." >&2
13917 { (exit 1); exit 1; }; };;
13918 --help | --hel | -h )
13919 echo "$ac_cs_usage"; exit ;;
13920 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13921 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13924 # This is an error.
13925 -*) { echo "$as_me: error: unrecognized option: $1
13926 Try \`$0 --help' for more information." >&2
13927 { (exit 1); exit 1; }; } ;;
13929 *) ac_config_targets="$ac_config_targets $1"
13930 ac_need_defaults=false ;;
13936 ac_configure_extra_args=
13938 if $ac_cs_silent; then
13940 ac_configure_extra_args="$ac_configure_extra_args --silent"
13944 cat >>$CONFIG_STATUS <<_ACEOF
13945 if \$ac_cs_recheck; then
13946 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13947 CONFIG_SHELL=$SHELL
13948 export CONFIG_SHELL
13949 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13953 cat >>$CONFIG_STATUS <<\_ACEOF
13957 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13958 ## Running $as_me. ##
13964 cat >>$CONFIG_STATUS <<_ACEOF
13968 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13973 cat >>$CONFIG_STATUS <<\_ACEOF
13975 # Handling of arguments.
13976 for ac_config_target in $ac_config_targets
13978 case $ac_config_target in
13979 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13980 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13981 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13982 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13983 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13984 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13985 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13986 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
13988 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13989 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13990 { (exit 1); exit 1; }; };;
13995 # If the user did not use the arguments to specify the items to instantiate,
13996 # then the envvar interface is used. Set only those that are not.
13997 # We use the long form for the default assignment because of an extremely
13998 # bizarre bug on SunOS 4.1.3.
13999 if $ac_need_defaults; then
14000 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14001 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14002 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14005 # Have a temporary directory for convenience. Make it in the build tree
14006 # simply because there is no reason against having it here, and in addition,
14007 # creating and moving files from /tmp can sometimes cause problems.
14008 # Hook for its removal unless debugging.
14009 # Note that there is a small window in which the directory will not be cleaned:
14010 # after its creation but before its name has been assigned to `$tmp'.
14014 trap 'exit_status=$?
14015 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14017 trap '{ (exit 1); exit 1; }' 1 2 13 15
14019 # Create a (secure) tmp directory for tmp files.
14022 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14023 test -n "$tmp" && test -d "$tmp"
14026 tmp=./conf$$-$RANDOM
14027 (umask 077 && mkdir "$tmp")
14030 echo "$me: cannot create a temporary directory in ." >&2
14031 { (exit 1); exit 1; }
14035 # Set up the sed scripts for CONFIG_FILES section.
14038 # No need to generate the scripts if there are no CONFIG_FILES.
14039 # This happens for instance when ./config.status config.h
14040 if test -n "$CONFIG_FILES"; then
14047 for ac_last_try in false false false false false :; do
14048 cat >conf$$subs.sed <<_ACEOF
14049 SHELL!$SHELL$ac_delim
14050 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14051 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14052 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14053 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14054 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14055 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14056 exec_prefix!$exec_prefix$ac_delim
14057 prefix!$prefix$ac_delim
14058 program_transform_name!$program_transform_name$ac_delim
14059 bindir!$bindir$ac_delim
14060 sbindir!$sbindir$ac_delim
14061 libexecdir!$libexecdir$ac_delim
14062 datarootdir!$datarootdir$ac_delim
14063 datadir!$datadir$ac_delim
14064 sysconfdir!$sysconfdir$ac_delim
14065 sharedstatedir!$sharedstatedir$ac_delim
14066 localstatedir!$localstatedir$ac_delim
14067 includedir!$includedir$ac_delim
14068 oldincludedir!$oldincludedir$ac_delim
14069 docdir!$docdir$ac_delim
14070 infodir!$infodir$ac_delim
14071 htmldir!$htmldir$ac_delim
14072 dvidir!$dvidir$ac_delim
14073 pdfdir!$pdfdir$ac_delim
14074 psdir!$psdir$ac_delim
14075 libdir!$libdir$ac_delim
14076 localedir!$localedir$ac_delim
14077 mandir!$mandir$ac_delim
14078 DEFS!$DEFS$ac_delim
14079 ECHO_C!$ECHO_C$ac_delim
14080 ECHO_N!$ECHO_N$ac_delim
14081 ECHO_T!$ECHO_T$ac_delim
14082 LIBS!$LIBS$ac_delim
14083 build_alias!$build_alias$ac_delim
14084 host_alias!$host_alias$ac_delim
14085 target_alias!$target_alias$ac_delim
14086 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14087 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14088 INSTALL_DATA!$INSTALL_DATA$ac_delim
14089 CYGPATH_W!$CYGPATH_W$ac_delim
14090 PACKAGE!$PACKAGE$ac_delim
14091 VERSION!$VERSION$ac_delim
14092 ACLOCAL!$ACLOCAL$ac_delim
14093 AUTOCONF!$AUTOCONF$ac_delim
14094 AUTOMAKE!$AUTOMAKE$ac_delim
14095 AUTOHEADER!$AUTOHEADER$ac_delim
14096 MAKEINFO!$MAKEINFO$ac_delim
14097 install_sh!$install_sh$ac_delim
14098 STRIP!$STRIP$ac_delim
14099 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
14100 mkdir_p!$mkdir_p$ac_delim
14102 SET_MAKE!$SET_MAKE$ac_delim
14103 am__leading_dot!$am__leading_dot$ac_delim
14104 AMTAR!$AMTAR$ac_delim
14105 am__tar!$am__tar$ac_delim
14106 am__untar!$am__untar$ac_delim
14107 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
14108 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
14109 MAINT!$MAINT$ac_delim
14111 CFLAGS!$CFLAGS$ac_delim
14112 LDFLAGS!$LDFLAGS$ac_delim
14113 CPPFLAGS!$CPPFLAGS$ac_delim
14114 ac_ct_CC!$ac_ct_CC$ac_delim
14115 EXEEXT!$EXEEXT$ac_delim
14116 OBJEXT!$OBJEXT$ac_delim
14117 DEPDIR!$DEPDIR$ac_delim
14118 am__include!$am__include$ac_delim
14119 am__quote!$am__quote$ac_delim
14120 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
14121 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
14122 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
14123 CCDEPMODE!$CCDEPMODE$ac_delim
14124 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
14125 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
14126 OBJC!$OBJC$ac_delim
14127 OBJCFLAGS!$OBJCFLAGS$ac_delim
14128 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
14130 CCAS!$CCAS$ac_delim
14131 CCASFLAGS!$CCASFLAGS$ac_delim
14133 GREP!$GREP$ac_delim
14134 EGREP!$EGREP$ac_delim
14135 build!$build$ac_delim
14136 build_cpu!$build_cpu$ac_delim
14137 build_vendor!$build_vendor$ac_delim
14138 build_os!$build_os$ac_delim
14139 host!$host$ac_delim
14140 host_cpu!$host_cpu$ac_delim
14141 host_vendor!$host_vendor$ac_delim
14142 host_os!$host_os$ac_delim
14143 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
14144 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
14145 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
14148 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14150 elif $ac_last_try; then
14151 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14152 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14153 { (exit 1); exit 1; }; }
14155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14159 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14160 if test -n "$ac_eof"; then
14161 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14162 ac_eof=`expr $ac_eof + 1`
14165 cat >>$CONFIG_STATUS <<_ACEOF
14166 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14170 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14171 s/^/s,@/; s/!/@,|#_!!_#|/
14174 s/'"$ac_delim"'$/,g/; t
14176 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14177 ' >>$CONFIG_STATUS <conf$$subs.sed
14178 rm -f conf$$subs.sed
14179 cat >>$CONFIG_STATUS <<_ACEOF
14185 for ac_last_try in false false false false false :; do
14186 cat >conf$$subs.sed <<_ACEOF
14187 POD2MAN!$POD2MAN$ac_delim
14188 POD2HTML!$POD2HTML$ac_delim
14189 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
14190 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
14191 SOEXT!$SOEXT$ac_delim
14192 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
14193 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
14194 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
14195 BUILD_SHARED_TRUE!$BUILD_SHARED_TRUE$ac_delim
14196 BUILD_SHARED_FALSE!$BUILD_SHARED_FALSE$ac_delim
14197 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
14198 PKG_CONFIG!$PKG_CONFIG$ac_delim
14199 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
14200 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
14201 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
14202 GLIB_LIBS!$GLIB_LIBS$ac_delim
14203 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
14204 GTK_LIBS!$GTK_LIBS$ac_delim
14205 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
14206 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
14207 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
14208 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
14209 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
14210 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
14211 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
14212 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
14213 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
14214 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
14215 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
14216 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
14217 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
14218 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
14219 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
14220 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
14221 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
14222 SDL_LIBS!$SDL_LIBS$ac_delim
14223 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
14224 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
14225 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
14226 PULSE_LIBS!$PULSE_LIBS$ac_delim
14227 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
14228 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
14229 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
14230 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
14231 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
14232 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
14233 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
14234 ALSA_LIBS!$ALSA_LIBS$ac_delim
14235 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
14236 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
14237 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
14238 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
14239 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
14240 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
14241 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
14242 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
14243 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
14244 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
14245 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
14246 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
14247 SHCC!$SHCC$ac_delim
14248 SHLD!$SHLD$ac_delim
14249 SHOBJCOPY!$SHOBJCOPY$ac_delim
14250 ARMCC!$ARMCC$ac_delim
14251 ARMLD!$ARMLD$ac_delim
14252 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
14253 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
14254 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
14255 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
14256 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
14257 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
14258 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
14259 USE_NLS!$USE_NLS$ac_delim
14260 MSGFMT!$MSGFMT$ac_delim
14261 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
14262 GMSGFMT!$GMSGFMT$ac_delim
14263 XGETTEXT!$XGETTEXT$ac_delim
14264 CATALOGS!$CATALOGS$ac_delim
14265 CATOBJEXT!$CATOBJEXT$ac_delim
14266 DATADIRNAME!$DATADIRNAME$ac_delim
14267 GMOFILES!$GMOFILES$ac_delim
14268 INSTOBJEXT!$INSTOBJEXT$ac_delim
14269 INTLLIBS!$INTLLIBS$ac_delim
14270 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
14271 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
14272 POFILES!$POFILES$ac_delim
14273 POSUB!$POSUB$ac_delim
14274 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
14275 LIBOBJS!$LIBOBJS$ac_delim
14276 LTLIBOBJS!$LTLIBOBJS$ac_delim
14279 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
14281 elif $ac_last_try; then
14282 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14283 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14284 { (exit 1); exit 1; }; }
14286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14290 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14291 if test -n "$ac_eof"; then
14292 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14293 ac_eof=`expr $ac_eof + 1`
14296 cat >>$CONFIG_STATUS <<_ACEOF
14297 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14301 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14302 s/^/s,@/; s/!/@,|#_!!_#|/
14305 s/'"$ac_delim"'$/,g/; t
14307 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14308 ' >>$CONFIG_STATUS <conf$$subs.sed
14309 rm -f conf$$subs.sed
14310 cat >>$CONFIG_STATUS <<_ACEOF
14317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14319 # trailing colons and then remove the whole line if VPATH becomes empty
14320 # (actually we leave an empty line to preserve line numbers).
14321 if test "x$srcdir" = x.; then
14322 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14323 s/:*\$(srcdir):*/:/
14324 s/:*\${srcdir}:*/:/
14326 s/^\([^=]*=[ ]*\):*/\1/
14332 cat >>$CONFIG_STATUS <<\_ACEOF
14333 fi # test -n "$CONFIG_FILES"
14336 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14339 :[FHLC]) ac_mode=$ac_tag; continue;;
14341 case $ac_mode$ac_tag in
14343 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14344 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14345 { (exit 1); exit 1; }; };;
14346 :[FH]-) ac_tag=-:-;;
14347 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14364 -) ac_f="$tmp/stdin";;
14365 *) # Look for the file first in the build tree, then in the source tree
14366 # (if the path is not absolute). The absolute path cannot be DOS-style,
14367 # because $ac_f cannot contain `:'.
14371 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14373 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14374 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14375 { (exit 1); exit 1; }; };;
14377 ac_file_inputs="$ac_file_inputs $ac_f"
14380 # Let's still pretend it is `configure' which instantiates (i.e., don't
14381 # use $as_me), people would be surprised to read:
14382 # /* config.h. Generated by config.status. */
14383 configure_input="Generated from "`IFS=:
14384 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14385 if test x"$ac_file" != x-; then
14386 configure_input="$ac_file. $configure_input"
14387 { echo "$as_me:$LINENO: creating $ac_file" >&5
14388 echo "$as_me: creating $ac_file" >&6;}
14392 *:-:* | *:-) cat >"$tmp/stdin";;
14397 ac_dir=`$as_dirname -- "$ac_file" ||
14398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14399 X"$ac_file" : 'X\(//\)[^/]' \| \
14400 X"$ac_file" : 'X\(//\)$' \| \
14401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14407 /^X\(\/\/\)[^/].*/{
14422 -*) as_dir=./$as_dir;;
14424 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14428 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14429 *) as_qdir=$as_dir;;
14431 as_dirs="'$as_qdir' $as_dirs"
14432 as_dir=`$as_dirname -- "$as_dir" ||
14433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14434 X"$as_dir" : 'X\(//\)[^/]' \| \
14435 X"$as_dir" : 'X\(//\)$' \| \
14436 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14442 /^X\(\/\/\)[^/].*/{
14455 test -d "$as_dir" && break
14457 test -z "$as_dirs" || eval "mkdir $as_dirs"
14458 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14459 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14460 { (exit 1); exit 1; }; }; }
14464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14466 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14467 # A ".." for each directory in $ac_dir_suffix.
14468 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14469 case $ac_top_builddir_sub in
14470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14474 ac_abs_top_builddir=$ac_pwd
14475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14476 # for backward compatibility:
14477 ac_top_builddir=$ac_top_build_prefix
14480 .) # We are building in place.
14482 ac_top_srcdir=$ac_top_builddir_sub
14483 ac_abs_top_srcdir=$ac_pwd ;;
14484 [\\/]* | ?:[\\/]* ) # Absolute name.
14485 ac_srcdir=$srcdir$ac_dir_suffix;
14486 ac_top_srcdir=$srcdir
14487 ac_abs_top_srcdir=$srcdir ;;
14488 *) # Relative name.
14489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14490 ac_top_srcdir=$ac_top_build_prefix$srcdir
14491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14503 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14504 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14508 cat >>$CONFIG_STATUS <<\_ACEOF
14509 # If the template does not know about datarootdir, expand it.
14510 # FIXME: This hack should be removed a few years after 2.60.
14511 ac_datarootdir_hack=; ac_datarootdir_seen=
14513 case `sed -n '/datarootdir/ {
14522 ' $ac_file_inputs` in
14523 *datarootdir*) ac_datarootdir_seen=yes;;
14524 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14525 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14526 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14528 cat >>$CONFIG_STATUS <<_ACEOF
14529 ac_datarootdir_hack='
14530 s&@datadir@&$datadir&g
14531 s&@docdir@&$docdir&g
14532 s&@infodir@&$infodir&g
14533 s&@localedir@&$localedir&g
14534 s&@mandir@&$mandir&g
14535 s&\\\${datarootdir}&$datarootdir&g' ;;
14539 # Neutralize VPATH when `$srcdir' = `.'.
14540 # Shell code in configure.ac might set extrasub.
14541 # FIXME: do we really want to maintain this feature?
14542 cat >>$CONFIG_STATUS <<_ACEOF
14546 cat >>$CONFIG_STATUS <<\_ACEOF
14548 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14549 s&@configure_input@&$configure_input&;t t
14550 s&@top_builddir@&$ac_top_builddir_sub&;t t
14551 s&@srcdir@&$ac_srcdir&;t t
14552 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14553 s&@top_srcdir@&$ac_top_srcdir&;t t
14554 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14555 s&@builddir@&$ac_builddir&;t t
14556 s&@abs_builddir@&$ac_abs_builddir&;t t
14557 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14558 s&@INSTALL@&$ac_INSTALL&;t t
14559 $ac_datarootdir_hack
14560 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14562 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14563 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14564 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14565 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14566 which seems to be undefined. Please make sure it is defined." >&5
14567 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14568 which seems to be undefined. Please make sure it is defined." >&2;}
14572 -) cat "$tmp/out"; rm -f "$tmp/out";;
14573 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14582 # Transform confdefs.h into a sed script `conftest.defines', that
14583 # substitutes the proper values into config.h.in to produce config.h.
14584 rm -f conftest.defines conftest.tail
14585 # First, append a space to every undef/define line, to ease matching.
14586 echo 's/$/ /' >conftest.defines
14587 # Then, protect against being on the right side of a sed subst, or in
14588 # an unquoted here document, in config.status. If some macros were
14589 # called several times there might be several #defines for the same
14590 # symbol, which is useless. But do not sort them, since the last
14591 # AC_DEFINE must be honored.
14592 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14593 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14594 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14595 # PARAMS is the parameter list in the macro definition--in most cases, it's
14596 # just an empty string.
14597 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14598 ac_dB='\\)[ (].*,\\1define\\2'
14606 s/^[ ]*#[ ]*define[ ][ ]*//
14611 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14612 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14613 ' >>conftest.defines
14615 # Remove the space that was appended to ease matching.
14616 # Then replace #undef with comments. This is necessary, for
14617 # example, in the case of _POSIX_SOURCE, which is predefined and required
14618 # on some systems where configure will not decide to define it.
14619 # (The regexp can be short, since the line contains either #define or #undef.)
14621 s,^[ #]*u.*,/* & */,' >>conftest.defines
14623 # Break up conftest.defines:
14624 ac_max_sed_lines=50
14626 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14627 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14628 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14630 ac_in='$ac_file_inputs'
14631 ac_out='"$tmp/out1"'
14632 ac_nxt='"$tmp/out2"'
14636 # Write a here document:
14637 cat >>$CONFIG_STATUS <<_ACEOF
14638 # First, check the format of the line:
14639 cat >"\$tmp/defines.sed" <<\\CEOF
14640 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14641 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14645 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14647 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14648 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14649 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14650 grep . conftest.tail >/dev/null || break
14651 rm -f conftest.defines
14652 mv conftest.tail conftest.defines
14654 rm -f conftest.defines conftest.tail
14656 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14657 cat >>$CONFIG_STATUS <<\_ACEOF
14658 if test x"$ac_file" != x-; then
14659 echo "/* $configure_input */" >"$tmp/config.h"
14660 cat "$ac_result" >>"$tmp/config.h"
14661 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14662 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14663 echo "$as_me: $ac_file is unchanged" >&6;}
14666 mv "$tmp/config.h" $ac_file
14669 echo "/* $configure_input */"
14673 # Compute $ac_file's index in $config_headers.
14675 for _am_header in $config_headers :; do
14676 case $_am_header in
14677 $ac_file | $ac_file:* )
14680 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14683 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
14684 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14685 X$ac_file : 'X\(//\)[^/]' \| \
14686 X$ac_file : 'X\(//\)$' \| \
14687 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
14689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14693 /^X\(\/\/\)[^/].*/{
14705 s/.*/./; q'`/stamp-h$_am_stamp_count
14708 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14709 echo "$as_me: executing $ac_file commands" >&6;}
14714 case $ac_file$ac_mode in
14715 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14716 # Strip MF so we end up with the name of the file.
14717 mf=`echo "$mf" | sed -e 's/:.*$//'`
14718 # Check whether this is an Automake generated Makefile or not.
14719 # We used to match only the files named `Makefile.in', but
14720 # some people rename them; so instead we look at the file content.
14721 # Grep'ing the first line is not enough: some people post-process
14722 # each Makefile.in and add a new line on top of each file to say so.
14723 # So let's grep whole file.
14724 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14725 dirpart=`$as_dirname -- "$mf" ||
14726 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14727 X"$mf" : 'X\(//\)[^/]' \| \
14728 X"$mf" : 'X\(//\)$' \| \
14729 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14735 /^X\(\/\/\)[^/].*/{
14751 # Extract the definition of DEPDIR, am__include, and am__quote
14752 # from the Makefile without running `make'.
14753 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14754 test -z "$DEPDIR" && continue
14755 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14756 test -z "am__include" && continue
14757 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14758 # When using ansi2knr, U may be empty or an underscore; expand it
14759 U=`sed -n 's/^U = //p' < "$mf"`
14760 # Find all dependency output files, they are included files with
14761 # $(DEPDIR) in their names. We invoke sed twice because it is the
14762 # simplest approach to changing $(DEPDIR) to its actual value in the
14764 for file in `sed -n "
14765 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14766 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14767 # Make sure the directory exists.
14768 test -f "$dirpart/$file" && continue
14769 fdir=`$as_dirname -- "$file" ||
14770 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14771 X"$file" : 'X\(//\)[^/]' \| \
14772 X"$file" : 'X\(//\)$' \| \
14773 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14779 /^X\(\/\/\)[^/].*/{
14792 { as_dir=$dirpart/$fdir
14794 -*) as_dir=./$as_dir;;
14796 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14800 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14801 *) as_qdir=$as_dir;;
14803 as_dirs="'$as_qdir' $as_dirs"
14804 as_dir=`$as_dirname -- "$as_dir" ||
14805 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14806 X"$as_dir" : 'X\(//\)[^/]' \| \
14807 X"$as_dir" : 'X\(//\)$' \| \
14808 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14814 /^X\(\/\/\)[^/].*/{
14827 test -d "$as_dir" && break
14829 test -z "$as_dirs" || eval "mkdir $as_dirs"
14830 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14831 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14832 { (exit 1); exit 1; }; }; }
14833 # echo "creating $dirpart/$file"
14834 echo '# dummy' > "$dirpart/$file"
14838 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
14839 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14846 { (exit 0); exit 0; }
14848 chmod +x $CONFIG_STATUS
14849 ac_clean_files=$ac_clean_files_save
14852 # configure is writing to config.log, and then calls config.status.
14853 # config.status does its own redirection, appending to config.log.
14854 # Unfortunately, on DOS this fails, as config.log is still kept open
14855 # by configure, so config.status won't be able to write to it; its
14856 # output is simply discarded. So we exec the FD to /dev/null,
14857 # effectively closing config.log, so it can be properly (re)opened and
14858 # appended to by config.status. When coming back to configure, we
14859 # need to make the FD available again.
14860 if test "$no_create" != yes; then
14862 ac_config_status_args=
14863 test "$silent" = yes &&
14864 ac_config_status_args="$ac_config_status_args --quiet"
14866 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14868 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14869 # would make configure fail if this is the last instruction.
14870 $ac_cs_success || { (exit 1); exit 1; }
14875 -*) as_dir=./$as_dir;;
14877 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14881 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14882 *) as_qdir=$as_dir;;
14884 as_dirs="'$as_qdir' $as_dirs"
14885 as_dir=`$as_dirname -- "$as_dir" ||
14886 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14887 X"$as_dir" : 'X\(//\)[^/]' \| \
14888 X"$as_dir" : 'X\(//\)$' \| \
14889 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14895 /^X\(\/\/\)[^/].*/{
14908 test -d "$as_dir" && break
14910 test -z "$as_dirs" || eval "mkdir $as_dirs"
14911 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14912 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14913 { (exit 1); exit 1; }; }; }
14917 echo "Configuration complete"
14920 if test "x$HAVE_GTK" = x; then
14921 if test "x$HAVE_COCOA" = x; then
14922 echo " User interface: none"
14924 echo " User interface: Cocoa"
14927 echo " User interface: GTK"
14930 if test "x$SH4_TRANSLATOR" = "x"; then
14931 echo " SH4 translator: None (emulation core only)"
14933 echo " SH4 translator: $SH4_TRANSLATOR"
14936 if test "x$VIDEO_DRIVERS" = "x"; then
14937 echo " Video drivers: none (no supported GL found)"
14939 echo " Video drivers: $VIDEO_DRIVERS"
14942 if test "x$AUDIO_DRIVERS" = "x"; then
14943 echo " Audio drivers: none (no supported output devices found)"
14945 echo " Audio drivers: $AUDIO_DRIVERS"
14948 if test "x$INPUT_DRIVERS" = "x"; then
14949 echo " Input drivers: none (no supported input devices found)"
14951 echo " Input drivers: $INPUT_DRIVERS"
14954 if test "x$CDROM_DRIVER" = "x"; then
14955 echo " CD-ROM driver: none (no supported cd-rom devices found)"
14957 echo " CD-ROM driver: $CDROM_DRIVER"
.