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
771 ac_precious_vars='build_alias
795 # Initialize some variables set by options.
797 ac_init_version=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
807 program_transform_name=s,x,x,
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902 eval enable_$ac_feature=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 -enable-* | --enable-*)
915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921 eval enable_$ac_feature=\$ac_optarg ;;
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
936 -help | --help | --hel | --he | -h)
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 htmldir=$ac_optarg ;;
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
966 -libdir | --libdir | --libdi | --libd)
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
978 -localedir | --localedir | --localedi | --localed | --locale)
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 # Obsolete; use --without-fp.
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1057 -psdir | --psdir | --psdi | --psd | --ps)
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 sbindir=$ac_optarg ;;
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 sharedstatedir=$ac_optarg ;;
1083 -site | --site | --sit)
1085 -site=* | --site=* | --sit=*)
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118 eval with_$ac_package=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127 eval with_$ac_package=no ;;
1130 # Obsolete; use --with-x.
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
1178 # Be sure to have absolute directory names.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val=\$$ac_var
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1198 target=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214 test "$silent" = yes && exec 6>/dev/null
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
1235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264 { (exit 1); exit 1; }; }
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269 { (exit 1); exit 1; }; }
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 # Report the --help message.
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1295 \`configure' configures this package to adapt to many kinds of systems.
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1302 Defaults for the options are specified in brackets.
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1326 For better control, use the options below.
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1353 --program-prefix=PREFIX prepend PREFIX to installed program names
1354 --program-suffix=SUFFIX append SUFFIX to installed program names
1355 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1358 --build=BUILD configure for building on BUILD [guessed]
1359 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 if test -n "$ac_init_help"; then
1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1370 --enable-maintainer-mode enable make rules and dependencies not useful
1371 (and sometimes confusing) to the casual installer
1372 --disable-dependency-tracking speeds up one-time build
1373 --enable-dependency-tracking do not reject slow dependency extractors
1374 --enable-trace Enable generation of IO traces (warning: hurts
1376 --enable-watch Enable watchpoints in the debugger (warning: hurts
1378 --enable-sh4stats Enable statistics on executed sh4 instructions
1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1383 --with-osmesa Build with the osmesa GL library (software
1386 Some influential environment variables:
1387 CC C compiler command
1388 CFLAGS C compiler flags
1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1390 nonstandard directory <lib dir>
1391 LIBS libraries to pass to the linker, e.g. -l<library>
1392 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1393 you have headers in a nonstandard directory <include dir>
1394 CCAS assembler compiler command (defaults to CC)
1395 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1397 PKG_CONFIG path to pkg-config utility
1399 C compiler flags for LIBPNG, overriding pkg-config
1400 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1401 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1402 GTK_LIBS linker flags for GTK, overriding pkg-config
1404 C compiler flags for PULSE, overriding pkg-config
1405 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1407 C compiler flags for ESOUND, overriding pkg-config
1408 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1409 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1410 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1419 if test "$ac_init_help" = "recursive"; then
1420 # If there are subdirs, report their specific --help.
1421 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1422 test -d "$ac_dir" || continue
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1442 .) # We are building in place.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1466 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1476 generated by GNU Autoconf 2.61
1478 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1479 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1480 This configure script is free software; the Free Software Foundation
1481 gives unlimited permission to copy, distribute and modify it.
1485 cat >config.log <<_ACEOF
1486 This file contains any messages produced by compilers while
1487 running configure, to aid debugging if configure makes a mistake.
1489 It was created by $as_me, which was
1490 generated by GNU Autoconf 2.61. Invocation command line was
1502 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1503 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1504 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1505 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1506 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1509 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1511 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1512 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1513 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1514 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1515 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1516 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1517 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 test -z "$as_dir" && as_dir=.
1526 echo "PATH: $as_dir"
1542 # Keep a trace of the command line.
1543 # Strip out --no-create and --no-recursion so they do not pile up.
1544 # Strip out --silent because we don't want to record it for future runs.
1545 # Also quote any args containing shell meta-characters.
1546 # Make two passes to allow for proper duplicate-argument suppression.
1550 ac_must_keep_next=false
1556 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1558 | -silent | --silent | --silen | --sile | --sil)
1561 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1564 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1566 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1567 if test $ac_must_keep_next = true; then
1568 ac_must_keep_next=false # Got value, back to normal.
1571 *=* | --config-cache | -C | -disable-* | --disable-* \
1572 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1573 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1574 | -with-* | --with-* | -without-* | --without-* | --x)
1575 case "$ac_configure_args0 " in
1576 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1579 -* ) ac_must_keep_next=true ;;
1582 ac_configure_args="$ac_configure_args '$ac_arg'"
1587 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1588 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1590 # When interrupted or exit'd, cleanup temporary files, and complete
1591 # config.log. We remove comments because anyway the quotes in there
1592 # would cause problems or look ugly.
1593 # WARNING: Use '\'' to represent an apostrophe within the trap.
1594 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1595 trap 'exit_status=$?
1596 # Save into config.log some information that might help in debugging.
1601 ## ---------------- ##
1602 ## Cache variables. ##
1603 ## ---------------- ##
1606 # The following way of writing the cache mishandles newlines in values,
1608 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1609 eval ac_val=\$$ac_var
1613 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1614 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1617 _ | IFS | as_nl) ;; #(
1618 *) $as_unset $ac_var ;;
1623 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1624 *${as_nl}ac_space=\ *)
1626 "s/'\''/'\''\\\\'\'''\''/g;
1627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1638 ## ----------------- ##
1639 ## Output variables. ##
1640 ## ----------------- ##
1643 for ac_var in $ac_subst_vars
1645 eval ac_val=\$$ac_var
1647 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 echo "$ac_var='\''$ac_val'\''"
1653 if test -n "$ac_subst_files"; then
1655 ## ------------------- ##
1656 ## File substitutions. ##
1657 ## ------------------- ##
1660 for ac_var in $ac_subst_files
1662 eval ac_val=\$$ac_var
1664 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666 echo "$ac_var='\''$ac_val'\''"
1671 if test -s confdefs.h; then
1681 test "$ac_signal" != 0 &&
1682 echo "$as_me: caught signal $ac_signal"
1683 echo "$as_me: exit $exit_status"
1685 rm -f core *.core core.conftest.* &&
1686 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1689 for ac_signal in 1 2 13 15; do
1690 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1694 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1695 rm -f -r conftest* confdefs.h
1697 # Predefined preprocessor variables.
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_NAME "$PACKAGE_NAME"
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_STRING "$PACKAGE_STRING"
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1724 # Let the site file select an alternate cache file if it wants to.
1725 # Prefer explicitly selected file to automatically selected ones.
1726 if test -n "$CONFIG_SITE"; then
1727 set x "$CONFIG_SITE"
1728 elif test "x$prefix" != xNONE; then
1729 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1731 set x "$ac_default_prefix/share/config.site" \
1732 "$ac_default_prefix/etc/config.site"
1737 if test -r "$ac_site_file"; then
1738 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1739 echo "$as_me: loading site script $ac_site_file" >&6;}
1740 sed 's/^/| /' "$ac_site_file" >&5
1745 if test -r "$cache_file"; then
1746 # Some versions of bash will fail to source /dev/null (special
1747 # files actually), so we avoid doing that.
1748 if test -f "$cache_file"; then
1749 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1750 echo "$as_me: loading cache $cache_file" >&6;}
1752 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1753 *) . "./$cache_file";;
1757 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1758 echo "$as_me: creating cache $cache_file" >&6;}
1762 # Check that the precious variables saved in the cache have kept the same
1764 ac_cache_corrupted=false
1765 for ac_var in $ac_precious_vars; do
1766 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1767 eval ac_new_set=\$ac_env_${ac_var}_set
1768 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1769 eval ac_new_val=\$ac_env_${ac_var}_value
1770 case $ac_old_set,$ac_new_set in
1772 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1773 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1774 ac_cache_corrupted=: ;;
1776 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1777 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1778 ac_cache_corrupted=: ;;
1781 if test "x$ac_old_val" != "x$ac_new_val"; then
1782 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1783 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1784 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1785 echo "$as_me: former value: $ac_old_val" >&2;}
1786 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1787 echo "$as_me: current value: $ac_new_val" >&2;}
1788 ac_cache_corrupted=:
1791 # Pass precious variables to config.status.
1792 if test "$ac_new_set" = set; then
1794 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1795 *) ac_arg=$ac_var=$ac_new_val ;;
1797 case " $ac_configure_args " in
1798 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1799 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1803 if $ac_cache_corrupted; then
1804 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1805 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1806 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1807 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1808 { (exit 1); exit 1; }; }
1828 ac_cpp='$CPP $CPPFLAGS'
1829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1834 am__api_version="1.9"
1836 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1837 if test -f "$ac_dir/install-sh"; then
1839 ac_install_sh="$ac_aux_dir/install-sh -c"
1841 elif test -f "$ac_dir/install.sh"; then
1843 ac_install_sh="$ac_aux_dir/install.sh -c"
1845 elif test -f "$ac_dir/shtool"; then
1847 ac_install_sh="$ac_aux_dir/shtool install -c"
1851 if test -z "$ac_aux_dir"; then
1852 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1853 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1854 { (exit 1); exit 1; }; }
1857 # These three variables are undocumented and unsupported,
1858 # and are intended to be withdrawn in a future Autoconf release.
1859 # They can cause serious problems if a builder's source tree is in a directory
1860 # whose full name contains unusual characters.
1861 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1862 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1863 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1866 # Find a good install program. We prefer a C program (faster),
1867 # so one script is as good as another. But avoid the broken or
1868 # incompatible versions:
1869 # SysV /etc/install, /usr/sbin/install
1870 # SunOS /usr/etc/install
1871 # IRIX /sbin/install
1873 # AmigaOS /C/install, which installs bootblocks on floppy discs
1874 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1877 # OS/2's system install, which has a completely different semantic
1878 # ./install, which can be erroneously created by make from ./install.sh.
1879 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1880 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1881 if test -z "$INSTALL"; then
1882 if test "${ac_cv_path_install+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 test -z "$as_dir" && as_dir=.
1890 # Account for people who put trailing slashes in PATH elements.
1892 ./ | .// | /cC/* | \
1893 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1894 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1897 # OSF1 and SCO ODT 3.0 have their own names for install.
1898 # Don't use installbsd from OSF since it installs stuff as root
1900 for ac_prog in ginstall scoinst install; do
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1903 if test $ac_prog = install &&
1904 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1905 # AIX install. It has an incompatible calling convention.
1907 elif test $ac_prog = install &&
1908 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1909 # program-specific install script used by HP pwplus--don't use.
1912 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1925 if test "${ac_cv_path_install+set}" = set; then
1926 INSTALL=$ac_cv_path_install
1928 # As a last resort, use the slow shell script. Don't cache a
1929 # value for INSTALL within a source directory, because that will
1930 # break other packages using the cache if that directory is
1931 # removed, or if the value is a relative name.
1932 INSTALL=$ac_install_sh
1935 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1936 echo "${ECHO_T}$INSTALL" >&6; }
1938 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1939 # It thinks the first close brace ends the variable substitution.
1940 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1942 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1944 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1946 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1947 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1950 echo timestamp > conftest.file
1951 # Do `set' in a subshell so we don't clobber the current shell's
1952 # arguments. Must try -L first in case configure is actually a
1953 # symlink; some systems play weird games with the mod time of symlinks
1954 # (eg FreeBSD returns the mod time of the symlink's containing
1957 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1958 if test "$*" = "X"; then
1960 set X `ls -t $srcdir/configure conftest.file`
1963 if test "$*" != "X $srcdir/configure conftest.file" \
1964 && test "$*" != "X conftest.file $srcdir/configure"; then
1966 # If neither matched, then we have a broken ls. This can happen
1967 # if, for instance, CONFIG_SHELL is bash and it inherits a
1968 # broken ls alias from the environment. This has actually
1969 # happened. Such a system could not be considered "sane".
1970 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1971 alias in your environment" >&5
1972 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1973 alias in your environment" >&2;}
1974 { (exit 1); exit 1; }; }
1977 test "$2" = conftest.file
1983 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1984 Check your system clock" >&5
1985 echo "$as_me: error: newly created file is older than distributed files!
1986 Check your system clock" >&2;}
1987 { (exit 1); exit 1; }; }
1989 { echo "$as_me:$LINENO: result: yes" >&5
1990 echo "${ECHO_T}yes" >&6; }
1991 test "$program_prefix" != NONE &&
1992 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1993 # Use a double $ so make ignores it.
1994 test "$program_suffix" != NONE &&
1995 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1996 # Double any \ or $. echo might interpret backslashes.
1997 # By default was `s,x,x', remove it if useless.
1998 cat <<\_ACEOF >conftest.sed
1999 s/[\\$]/&&/g;s/;s,x,x,$//
2001 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2004 # expand $ac_aux_dir to an absolute path
2005 am_aux_dir=`cd $ac_aux_dir && pwd`
2007 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2008 # Use eval to expand $SHELL
2009 if eval "$MISSING --run true"; then
2010 am_missing_run="$MISSING --run "
2013 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2014 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2017 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2018 # We used to keeping the `.' as first argument, in order to
2019 # allow $(mkdir_p) to be used without argument. As in
2020 # $(mkdir_p) $(somedir)
2021 # where $(somedir) is conditionally defined. However this is wrong
2023 # 1. if the package is installed by a user who cannot write `.'
2024 # make install will fail,
2025 # 2. the above comment should most certainly read
2026 # $(mkdir_p) $(DESTDIR)$(somedir)
2027 # so it does not work when $(somedir) is undefined and
2028 # $(DESTDIR) is not.
2029 # To support the latter case, we have to write
2030 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2031 # so the `.' trick is pointless.
2032 mkdir_p='mkdir -p --'
2034 # On NextStep and OpenStep, the `mkdir' command does not
2035 # recognize any option. It will interpret all options as
2036 # directories to create, and then abort because `.' already
2038 for d in ./-p ./--version;
2040 test -d $d && rmdir $d
2042 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2043 if test -f "$ac_aux_dir/mkinstalldirs"; then
2044 mkdir_p='$(mkinstalldirs)'
2046 mkdir_p='$(install_sh) -d'
2050 for ac_prog in gawk mawk nawk awk
2052 # Extract the first word of "$ac_prog", so it can be a program name with args.
2053 set dummy $ac_prog; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_AWK+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$AWK"; then
2060 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 ac_cv_prog_AWK="$ac_prog"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 if test -n "$AWK"; then
2081 { echo "$as_me:$LINENO: result: $AWK" >&5
2082 echo "${ECHO_T}$AWK" >&6; }
2084 { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2089 test -n "$AWK" && break
2092 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2093 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2094 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2095 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 cat >conftest.make <<\_ACEOF
2101 @echo '@@@%%%=$(MAKE)=@@@%%%'
2103 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2104 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2106 eval ac_cv_prog_make_${ac_make}_set=yes;;
2108 eval ac_cv_prog_make_${ac_make}_set=no;;
2112 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2113 { echo "$as_me:$LINENO: result: yes" >&5
2114 echo "${ECHO_T}yes" >&6; }
2117 { echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6; }
2119 SET_MAKE="MAKE=${MAKE-make}"
2122 rm -rf .tst 2>/dev/null
2123 mkdir .tst 2>/dev/null
2124 if test -d .tst; then
2129 rmdir .tst 2>/dev/null
2131 # test to see if srcdir already configured
2132 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2133 test -f $srcdir/config.status; then
2134 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2135 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2136 { (exit 1); exit 1; }; }
2139 # test whether we have cygpath
2140 if test -z "$CYGPATH_W"; then
2141 if (cygpath --version) >/dev/null 2>/dev/null; then
2142 CYGPATH_W='cygpath -w'
2149 # Define the identity of the package.
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE "$PACKAGE"
2159 cat >>confdefs.h <<_ACEOF
2160 #define VERSION "$VERSION"
2163 # Some tools Automake needs.
2165 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2168 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2171 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2174 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2177 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2179 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2181 # Installed binaries are usually stripped using `strip' when the user
2182 # run `make install-strip'. However `strip' might not be the right
2183 # tool to use in cross-compilation environments, therefore Automake
2184 # will honor the `STRIP' environment variable to overrule this program.
2185 if test "$cross_compiling" != no; then
2186 if test -n "$ac_tool_prefix"; then
2187 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2188 set dummy ${ac_tool_prefix}strip; ac_word=$2
2189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2191 if test "${ac_cv_prog_STRIP+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 if test -n "$STRIP"; then
2195 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 test -z "$as_dir" && as_dir=.
2202 for ac_exec_ext in '' $ac_executable_extensions; do
2203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2204 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 STRIP=$ac_cv_prog_STRIP
2215 if test -n "$STRIP"; then
2216 { echo "$as_me:$LINENO: result: $STRIP" >&5
2217 echo "${ECHO_T}$STRIP" >&6; }
2219 { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2225 if test -z "$ac_cv_prog_STRIP"; then
2227 # Extract the first word of "strip", so it can be a program name with args.
2228 set dummy strip; ac_word=$2
2229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2231 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 if test -n "$ac_ct_STRIP"; then
2235 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2244 ac_cv_prog_ac_ct_STRIP="strip"
2245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2255 if test -n "$ac_ct_STRIP"; then
2256 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2257 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2259 { echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6; }
2263 if test "x$ac_ct_STRIP" = x; then
2266 case $cross_compiling:$ac_tool_warned in
2268 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2269 whose name does not start with the host triplet. If you think this
2270 configuration is useful to you, please write to autoconf@gnu.org." >&5
2271 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2272 whose name does not start with the host triplet. If you think this
2273 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2274 ac_tool_warned=yes ;;
2279 STRIP="$ac_cv_prog_STRIP"
2283 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2285 # We need awk for the "check" target. The system "awk" is bad on
2287 # Always define AMTAR for backward compatibility.
2289 AMTAR=${AMTAR-"${am_missing_run}tar"}
2291 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2297 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2298 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2299 # Check whether --enable-maintainer-mode was given.
2300 if test "${enable_maintainer_mode+set}" = set; then
2301 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2303 USE_MAINTAINER_MODE=no
2306 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2307 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2310 if test $USE_MAINTAINER_MODE = yes; then
2311 MAINTAINER_MODE_TRUE=
2312 MAINTAINER_MODE_FALSE='#'
2314 MAINTAINER_MODE_TRUE='#'
2315 MAINTAINER_MODE_FALSE=
2318 MAINT=$MAINTAINER_MODE_TRUE
2321 ac_config_headers="$ac_config_headers config.h"
2324 DEPDIR="${am__leading_dot}deps"
2326 ac_config_commands="$ac_config_commands depfiles"
2329 am_make=${MAKE-make}
2330 cat > confinc << 'END'
2335 # If we don't find an include directive, just comment out the code.
2336 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2337 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2341 # First try GNU make style include.
2342 echo "include confinc" > confmf
2343 # We grep out `Entering directory' and `Leaving directory'
2344 # messages which can occur if `w' ends up in MAKEFLAGS.
2345 # In particular we don't look at `^make:' because GNU make might
2346 # be invoked under some other name (usually "gmake"), in which
2347 # case it prints its new name instead of `make'.
2348 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2353 # Now try BSD make style include.
2354 if test "$am__include" = "#"; then
2355 echo '.include "confinc"' > confmf
2356 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2357 am__include=.include
2364 { echo "$as_me:$LINENO: result: $_am_result" >&5
2365 echo "${ECHO_T}$_am_result" >&6; }
2366 rm -f confinc confmf
2368 # Check whether --enable-dependency-tracking was given.
2369 if test "${enable_dependency_tracking+set}" = set; then
2370 enableval=$enable_dependency_tracking;
2373 if test "x$enable_dependency_tracking" != xno; then
2374 am_depcomp="$ac_aux_dir/depcomp"
2379 if test "x$enable_dependency_tracking" != xno; then
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 if test -n "$ac_tool_prefix"; then
2395 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2396 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399 if test "${ac_cv_prog_CC+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 if test -n "$CC"; then
2403 ac_cv_prog_CC="$CC" # Let the user override the test.
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 if test -n "$CC"; then
2424 { echo "$as_me:$LINENO: result: $CC" >&5
2425 echo "${ECHO_T}$CC" >&6; }
2427 { echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6; }
2433 if test -z "$ac_cv_prog_CC"; then
2435 # Extract the first word of "gcc", so it can be a program name with args.
2436 set dummy gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 if test -n "$ac_ct_CC"; then
2443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_ac_ct_CC="gcc"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2463 if test -n "$ac_ct_CC"; then
2464 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2465 echo "${ECHO_T}$ac_ct_CC" >&6; }
2467 { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2471 if test "x$ac_ct_CC" = x; then
2474 case $cross_compiling:$ac_tool_warned in
2476 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2477 whose name does not start with the host triplet. If you think this
2478 configuration is useful to you, please write to autoconf@gnu.org." >&5
2479 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2480 whose name does not start with the host triplet. If you think this
2481 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2482 ac_tool_warned=yes ;;
2490 if test -z "$CC"; then
2491 if test -n "$ac_tool_prefix"; then
2492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2493 set dummy ${ac_tool_prefix}cc; ac_word=$2
2494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2496 if test "${ac_cv_prog_CC+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 if test -n "$CC"; then
2500 ac_cv_prog_CC="$CC" # Let the user override the test.
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 ac_cv_prog_CC="${ac_tool_prefix}cc"
2510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 if test -n "$CC"; then
2521 { echo "$as_me:$LINENO: result: $CC" >&5
2522 echo "${ECHO_T}$CC" >&6; }
2524 { echo "$as_me:$LINENO: result: no" >&5
2525 echo "${ECHO_T}no" >&6; }
2531 if test -z "$CC"; then
2532 # Extract the first word of "cc", so it can be a program name with args.
2533 set dummy cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2551 ac_prog_rejected=yes
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 if test $ac_prog_rejected = yes; then
2563 # We found a bogon in the path, so make sure we never use it.
2564 set dummy $ac_cv_prog_CC
2566 if test $# != 0; then
2567 # We chose a different compiler from the bogus one.
2568 # However, it has the same basename, so the bogon will be chosen
2569 # first if we set CC to just the basename; use the full file name.
2571 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2577 if test -n "$CC"; then
2578 { echo "$as_me:$LINENO: result: $CC" >&5
2579 echo "${ECHO_T}$CC" >&6; }
2581 { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2587 if test -z "$CC"; then
2588 if test -n "$ac_tool_prefix"; then
2589 for ac_prog in cl.exe
2591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2595 if test "${ac_cv_prog_CC+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 if test -n "$CC"; then
2599 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 if test -n "$CC"; then
2620 { echo "$as_me:$LINENO: result: $CC" >&5
2621 echo "${ECHO_T}$CC" >&6; }
2623 { echo "$as_me:$LINENO: result: no" >&5
2624 echo "${ECHO_T}no" >&6; }
2628 test -n "$CC" && break
2631 if test -z "$CC"; then
2633 for ac_prog in cl.exe
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 if test -n "$ac_ct_CC"; then
2643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 ac_cv_prog_ac_ct_CC="$ac_prog"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663 if test -n "$ac_ct_CC"; then
2664 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2665 echo "${ECHO_T}$ac_ct_CC" >&6; }
2667 { echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6; }
2672 test -n "$ac_ct_CC" && break
2675 if test "x$ac_ct_CC" = x; then
2678 case $cross_compiling:$ac_tool_warned in
2680 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet. If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&5
2683 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2684 whose name does not start with the host triplet. If you think this
2685 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2686 ac_tool_warned=yes ;;
2695 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&5
2697 echo "$as_me: error: no acceptable C compiler found in \$PATH
2698 See \`config.log' for more details." >&2;}
2699 { (exit 1); exit 1; }; }
2701 # Provide some information about the compiler.
2702 echo "$as_me:$LINENO: checking for C compiler version" >&5
2703 ac_compiler=`set X $ac_compile; echo $2`
2704 { (ac_try="$ac_compiler --version >&5"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compiler --version >&5") 2>&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }
2714 { (ac_try="$ac_compiler -v >&5"
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compiler -v >&5") 2>&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }
2724 { (ac_try="$ac_compiler -V >&5"
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_compiler -V >&5") 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
2735 cat >conftest.$ac_ext <<_ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h. */
2750 ac_clean_files_save=$ac_clean_files
2751 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2752 # Try to create an executable without -o first, disregard a.out.
2753 # It will help us diagnose broken compilers, and finding out an intuition
2755 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2756 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2757 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2759 # List of possible output files, starting from the most likely.
2760 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2761 # only as a last resort. b.out is created by i960 compilers.
2762 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2764 # The IRIX 6 linker writes into existing files which may not be
2765 # executable, retaining their permissions. Remove them first so a
2766 # subsequent execution test works.
2768 for ac_file in $ac_files
2771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2777 if { (ac_try="$ac_link_default"
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_link_default") 2>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; then
2787 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2788 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2789 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2790 # so that the user can short-circuit this test for compilers unknown to
2792 for ac_file in $ac_files ''
2794 test -f "$ac_file" || continue
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2799 # We found the default executable, but exeext='' is most
2803 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2805 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2807 # We set ac_cv_exeext here because the later test for it is not
2808 # safe: cross compilers may not add the suffix if given an `-o'
2809 # argument, so we may need to know it at that point already.
2810 # Even if this section looks crufty: it has the advantage of
2817 test "$ac_cv_exeext" = no && ac_cv_exeext=
2823 { echo "$as_me:$LINENO: result: $ac_file" >&5
2824 echo "${ECHO_T}$ac_file" >&6; }
2825 if test -z "$ac_file"; then
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2829 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2830 See \`config.log' for more details." >&5
2831 echo "$as_me: error: C compiler cannot create executables
2832 See \`config.log' for more details." >&2;}
2833 { (exit 77); exit 77; }; }
2836 ac_exeext=$ac_cv_exeext
2838 # Check that the compiler produces executables we can run. If not, either
2839 # the compiler is broken, or we cross compile.
2840 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2841 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2842 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2843 # If not cross compiling, check that we can run a simple program.
2844 if test "$cross_compiling" != yes; then
2845 if { ac_try='./$ac_file'
2846 { (case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_try") 2>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2857 if test "$cross_compiling" = maybe; then
2860 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2861 If you meant to cross compile, use \`--host'.
2862 See \`config.log' for more details." >&5
2863 echo "$as_me: error: cannot run C compiled programs.
2864 If you meant to cross compile, use \`--host'.
2865 See \`config.log' for more details." >&2;}
2866 { (exit 1); exit 1; }; }
2870 { echo "$as_me:$LINENO: result: yes" >&5
2871 echo "${ECHO_T}yes" >&6; }
2873 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2874 ac_clean_files=$ac_clean_files_save
2875 # Check that the compiler produces executables we can run. If not, either
2876 # the compiler is broken, or we cross compile.
2877 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2878 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2879 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2880 echo "${ECHO_T}$cross_compiling" >&6; }
2882 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2883 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2884 if { (ac_try="$ac_link"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_link") 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; then
2894 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2895 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2896 # work properly (i.e., refer to `conftest.exe'), while it won't with
2898 for ac_file in conftest.exe conftest conftest.*; do
2899 test -f "$ac_file" || continue
2901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2902 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2908 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." >&5
2910 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2911 See \`config.log' for more details." >&2;}
2912 { (exit 1); exit 1; }; }
2915 rm -f conftest$ac_cv_exeext
2916 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2917 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2919 rm -f conftest.$ac_ext
2920 EXEEXT=$ac_cv_exeext
2922 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2923 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2924 if test "${ac_cv_objext+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2942 rm -f conftest.o conftest.obj
2943 if { (ac_try="$ac_compile"
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; then
2953 for ac_file in conftest.o conftest.obj conftest.*; do
2954 test -f "$ac_file" || continue;
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2957 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2965 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2966 See \`config.log' for more details." >&5
2967 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2968 See \`config.log' for more details." >&2;}
2969 { (exit 1); exit 1; }; }
2972 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2974 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2975 echo "${ECHO_T}$ac_cv_objext" >&6; }
2976 OBJEXT=$ac_cv_objext
2978 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2979 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2980 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 cat >conftest.$ac_ext <<_ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } && {
3015 test -z "$ac_c_werror_flag" ||
3016 test ! -s conftest.err
3017 } && test -s conftest.$ac_objext; then
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3027 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3030 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3031 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3032 GCC=`test $ac_compiler_gnu = yes && echo yes`
3033 ac_test_CFLAGS=${CFLAGS+set}
3034 ac_save_CFLAGS=$CFLAGS
3035 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3036 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3037 if test "${ac_cv_prog_cc_g+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 ac_save_c_werror_flag=$ac_c_werror_flag
3041 ac_c_werror_flag=yes
3044 cat >conftest.$ac_ext <<_ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3059 rm -f conftest.$ac_objext
3060 if { (ac_try="$ac_compile"
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_compile") 2>conftest.er1
3068 grep -v '^ *+' conftest.er1 >conftest.err
3070 cat conftest.err >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } && {
3073 test -z "$ac_c_werror_flag" ||
3074 test ! -s conftest.err
3075 } && test -s conftest.$ac_objext; then
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3106 grep -v '^ *+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } && {
3111 test -z "$ac_c_werror_flag" ||
3112 test ! -s conftest.err
3113 } && test -s conftest.$ac_objext; then
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 ac_c_werror_flag=$ac_save_c_werror_flag
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } && {
3150 test -z "$ac_c_werror_flag" ||
3151 test ! -s conftest.err
3152 } && test -s conftest.$ac_objext; then
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 ac_c_werror_flag=$ac_save_c_werror_flag
3170 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3171 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3172 if test "$ac_test_CFLAGS" = set; then
3173 CFLAGS=$ac_save_CFLAGS
3174 elif test $ac_cv_prog_cc_g = yes; then
3175 if test "$GCC" = yes; then
3181 if test "$GCC" = yes; then
3187 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3188 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3189 if test "${ac_cv_prog_cc_c89+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 ac_cv_prog_cc_c89=no
3194 cat >conftest.$ac_ext <<_ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3202 #include <sys/types.h>
3203 #include <sys/stat.h>
3204 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3205 struct buf { int x; };
3206 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3207 static char *e (p, i)
3213 static char *f (char * (*g) (char **, int), char **p, ...)
3218 s = g (p, va_arg (v,int));
3223 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3224 function prototypes and stuff, but not '\xHH' hex character constants.
3225 These don't provoke an error unfortunately, instead are silently treated
3226 as 'x'. The following induces an error, until -std is added to get
3227 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3228 array size at least. It's necessary to write '\x00'==0 to get something
3229 that's true only with -std. */
3230 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3232 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3233 inside strings and character constants. */
3235 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3237 int test (int i, double x);
3238 struct s1 {int (*f) (int a);};
3239 struct s2 {int (*f) (double a);};
3240 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3246 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3251 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3252 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3254 CC="$ac_save_CC $ac_arg"
3255 rm -f conftest.$ac_objext
3256 if { (ac_try="$ac_compile"
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_compile") 2>conftest.er1
3264 grep -v '^ *+' conftest.er1 >conftest.err
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } && {
3269 test -z "$ac_c_werror_flag" ||
3270 test ! -s conftest.err
3271 } && test -s conftest.$ac_objext; then
3272 ac_cv_prog_cc_c89=$ac_arg
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3280 rm -f core conftest.err conftest.$ac_objext
3281 test "x$ac_cv_prog_cc_c89" != "xno" && break
3283 rm -f conftest.$ac_ext
3288 case "x$ac_cv_prog_cc_c89" in
3290 { echo "$as_me:$LINENO: result: none needed" >&5
3291 echo "${ECHO_T}none needed" >&6; } ;;
3293 { echo "$as_me:$LINENO: result: unsupported" >&5
3294 echo "${ECHO_T}unsupported" >&6; } ;;
3296 CC="$CC $ac_cv_prog_cc_c89"
3297 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3298 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3303 ac_cpp='$CPP $CPPFLAGS'
3304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3308 depcc="$CC" am_compiler_list=
3310 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3311 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3312 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3316 # We make a subdir and do the tests there. Otherwise we can end up
3317 # making bogus files that we don't know about and never remove. For
3318 # instance it was reported that on HP-UX the gcc test will end up
3319 # making a dummy file named `D' -- because `-MD' means `put the output
3322 # Copy depcomp to subdir because otherwise we won't find it if we're
3323 # using a relative directory.
3324 cp "$am_depcomp" conftest.dir
3326 # We will build objects and dependencies in a subdirectory because
3327 # it helps to detect inapplicable dependency modes. For instance
3328 # both Tru64's cc and ICC support -MD to output dependencies as a
3329 # side effect of compilation, but ICC will put the dependencies in
3330 # the current directory while Tru64 will put them in the object
3334 am_cv_CC_dependencies_compiler_type=none
3335 if test "$am_compiler_list" = ""; then
3336 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3338 for depmode in $am_compiler_list; do
3339 # Setup a source with many dependencies, because some compilers
3340 # like to wrap large dependency lists on column 80 (with \), and
3341 # we should not choose a depcomp mode which is confused by this.
3343 # We need to recreate these files for each test, as the compiler may
3344 # overwrite some of them when testing with obscure command lines.
3345 # This happens at least with the AIX C compiler.
3347 for i in 1 2 3 4 5 6; do
3348 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3349 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3350 # Solaris 8's {/usr,}/bin/sh.
3351 touch sub/conftst$i.h
3353 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3357 # after this tag, mechanisms are not by side-effect, so they'll
3358 # only be used when explicitly requested
3359 if test "x$enable_dependency_tracking" = xyes; then
3367 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3368 # mode. It turns out that the SunPro C++ compiler does not properly
3369 # handle `-M -o', and we need to detect this.
3370 if depmode=$depmode \
3371 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3372 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3373 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3374 >/dev/null 2>conftest.err &&
3375 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3376 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3377 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3378 # icc doesn't choke on unknown options, it will just issue warnings
3379 # or remarks (even with -Werror). So we grep stderr for any message
3380 # that says an option was ignored or not supported.
3381 # When given -MP, icc 7.0 and 7.1 complain thusly:
3382 # icc: Command line warning: ignoring option '-M'; no argument required
3383 # The diagnosis changed in icc 8.0:
3384 # icc: Command line remark: option '-MP' not supported
3385 if (grep 'ignoring option' conftest.err ||
3386 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3387 am_cv_CC_dependencies_compiler_type=$depmode
3396 am_cv_CC_dependencies_compiler_type=none
3400 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3401 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3402 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3407 test "x$enable_dependency_tracking" != xno \
3408 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3410 am__fastdepCC_FALSE='#'
3412 am__fastdepCC_TRUE='#'
3413 am__fastdepCC_FALSE=
3419 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3420 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3421 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 ac_check_lib_save_LIBS=$LIBS
3425 LIBS="-lcposix $LIBS"
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3433 /* Override any GCC internal prototype to avoid an error.
3434 Use char because int might match the return type of a GCC
3435 builtin and then its argument prototype would still apply. */
3448 rm -f conftest.$ac_objext conftest$ac_exeext
3449 if { (ac_try="$ac_link"
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_link") 2>conftest.er1
3457 grep -v '^ *+' conftest.er1 >conftest.err
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } && {
3462 test -z "$ac_c_werror_flag" ||
3463 test ! -s conftest.err
3464 } && test -s conftest$ac_exeext &&
3465 $as_test_x conftest$ac_exeext; then
3466 ac_cv_lib_cposix_strerror=yes
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 ac_cv_lib_cposix_strerror=no
3474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3475 conftest$ac_exeext conftest.$ac_ext
3476 LIBS=$ac_check_lib_save_LIBS
3478 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3479 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3480 if test $ac_cv_lib_cposix_strerror = yes; then
3481 LIBS="$LIBS -lcposix"
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491 if test -n "$ac_tool_prefix"; then
3492 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3493 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3496 if test "${ac_cv_prog_CC+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 if test -n "$CC"; then
3521 { echo "$as_me:$LINENO: result: $CC" >&5
3522 echo "${ECHO_T}$CC" >&6; }
3524 { echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6; }
3530 if test -z "$ac_cv_prog_CC"; then
3532 # Extract the first word of "gcc", so it can be a program name with args.
3533 set dummy gcc; ac_word=$2
3534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3536 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_ac_ct_CC="gcc"
3550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3562 echo "${ECHO_T}$ac_ct_CC" >&6; }
3564 { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3568 if test "x$ac_ct_CC" = x; then
3571 case $cross_compiling:$ac_tool_warned in
3573 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3574 whose name does not start with the host triplet. If you think this
3575 configuration is useful to you, please write to autoconf@gnu.org." >&5
3576 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3577 whose name does not start with the host triplet. If you think this
3578 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3579 ac_tool_warned=yes ;;
3587 if test -z "$CC"; then
3588 if test -n "$ac_tool_prefix"; then
3589 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3590 set dummy ${ac_tool_prefix}cc; ac_word=$2
3591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3593 if test "${ac_cv_prog_CC+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 if test -n "$CC"; then
3597 ac_cv_prog_CC="$CC" # Let the user override the test.
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 ac_cv_prog_CC="${ac_tool_prefix}cc"
3607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 if test -n "$CC"; then
3618 { echo "$as_me:$LINENO: result: $CC" >&5
3619 echo "${ECHO_T}$CC" >&6; }
3621 { echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6; }
3628 if test -z "$CC"; then
3629 # Extract the first word of "cc", so it can be a program name with args.
3630 set dummy cc; ac_word=$2
3631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3633 if test "${ac_cv_prog_CC+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 if test -n "$CC"; then
3637 ac_cv_prog_CC="$CC" # Let the user override the test.
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3648 ac_prog_rejected=yes
3652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 if test $ac_prog_rejected = yes; then
3660 # We found a bogon in the path, so make sure we never use it.
3661 set dummy $ac_cv_prog_CC
3663 if test $# != 0; then
3664 # We chose a different compiler from the bogus one.
3665 # However, it has the same basename, so the bogon will be chosen
3666 # first if we set CC to just the basename; use the full file name.
3668 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3674 if test -n "$CC"; then
3675 { echo "$as_me:$LINENO: result: $CC" >&5
3676 echo "${ECHO_T}$CC" >&6; }
3678 { echo "$as_me:$LINENO: result: no" >&5
3679 echo "${ECHO_T}no" >&6; }
3684 if test -z "$CC"; then
3685 if test -n "$ac_tool_prefix"; then
3686 for ac_prog in cl.exe
3688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3692 if test "${ac_cv_prog_CC+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 if test -n "$CC"; then
3696 ac_cv_prog_CC="$CC" # Let the user override the test.
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 if test -n "$CC"; then
3717 { echo "$as_me:$LINENO: result: $CC" >&5
3718 echo "${ECHO_T}$CC" >&6; }
3720 { echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6; }
3725 test -n "$CC" && break
3728 if test -z "$CC"; then
3730 for ac_prog in cl.exe
3732 # Extract the first word of "$ac_prog", so it can be a program name with args.
3733 set dummy $ac_prog; ac_word=$2
3734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 if test -n "$ac_ct_CC"; then
3740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749 ac_cv_prog_ac_ct_CC="$ac_prog"
3750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760 if test -n "$ac_ct_CC"; then
3761 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3762 echo "${ECHO_T}$ac_ct_CC" >&6; }
3764 { echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6; }
3769 test -n "$ac_ct_CC" && break
3772 if test "x$ac_ct_CC" = x; then
3775 case $cross_compiling:$ac_tool_warned in
3777 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3778 whose name does not start with the host triplet. If you think this
3779 configuration is useful to you, please write to autoconf@gnu.org." >&5
3780 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3781 whose name does not start with the host triplet. If you think this
3782 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3783 ac_tool_warned=yes ;;
3792 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3793 See \`config.log' for more details." >&5
3794 echo "$as_me: error: no acceptable C compiler found in \$PATH
3795 See \`config.log' for more details." >&2;}
3796 { (exit 1); exit 1; }; }
3798 # Provide some information about the compiler.
3799 echo "$as_me:$LINENO: checking for C compiler version" >&5
3800 ac_compiler=`set X $ac_compile; echo $2`
3801 { (ac_try="$ac_compiler --version >&5"
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_compiler --version >&5") 2>&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }
3811 { (ac_try="$ac_compiler -v >&5"
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3817 (eval "$ac_compiler -v >&5") 2>&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }
3821 { (ac_try="$ac_compiler -V >&5"
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_compiler -V >&5") 2>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }
3832 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3833 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3834 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 cat >conftest.$ac_ext <<_ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_compile") 2>conftest.er1
3864 grep -v '^ *+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } && {
3869 test -z "$ac_c_werror_flag" ||
3870 test ! -s conftest.err
3871 } && test -s conftest.$ac_objext; then
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3884 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3885 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3886 GCC=`test $ac_compiler_gnu = yes && echo yes`
3887 ac_test_CFLAGS=${CFLAGS+set}
3888 ac_save_CFLAGS=$CFLAGS
3889 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3890 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3891 if test "${ac_cv_prog_cc_g+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 ac_save_c_werror_flag=$ac_c_werror_flag
3895 ac_c_werror_flag=yes
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3913 rm -f conftest.$ac_objext
3914 if { (ac_try="$ac_compile"
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920 (eval "$ac_compile") 2>conftest.er1
3922 grep -v '^ *+' conftest.er1 >conftest.err
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } && {
3927 test -z "$ac_c_werror_flag" ||
3928 test ! -s conftest.err
3929 } && test -s conftest.$ac_objext; then
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3936 cat >conftest.$ac_ext <<_ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3951 rm -f conftest.$ac_objext
3952 if { (ac_try="$ac_compile"
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_compile") 2>conftest.er1
3960 grep -v '^ *+' conftest.er1 >conftest.err
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && {
3965 test -z "$ac_c_werror_flag" ||
3966 test ! -s conftest.err
3967 } && test -s conftest.$ac_objext; then
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3973 ac_c_werror_flag=$ac_save_c_werror_flag
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3990 rm -f conftest.$ac_objext
3991 if { (ac_try="$ac_compile"
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_compile") 2>conftest.er1
3999 grep -v '^ *+' conftest.er1 >conftest.err
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } && {
4004 test -z "$ac_c_werror_flag" ||
4005 test ! -s conftest.err
4006 } && test -s conftest.$ac_objext; then
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 ac_c_werror_flag=$ac_save_c_werror_flag
4024 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4025 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4026 if test "$ac_test_CFLAGS" = set; then
4027 CFLAGS=$ac_save_CFLAGS
4028 elif test $ac_cv_prog_cc_g = yes; then
4029 if test "$GCC" = yes; then
4035 if test "$GCC" = yes; then
4041 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4042 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4043 if test "${ac_cv_prog_cc_c89+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 ac_cv_prog_cc_c89=no
4048 cat >conftest.$ac_ext <<_ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4056 #include <sys/types.h>
4057 #include <sys/stat.h>
4058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4059 struct buf { int x; };
4060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4061 static char *e (p, i)
4067 static char *f (char * (*g) (char **, int), char **p, ...)
4072 s = g (p, va_arg (v,int));
4077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4078 function prototypes and stuff, but not '\xHH' hex character constants.
4079 These don't provoke an error unfortunately, instead are silently treated
4080 as 'x'. The following induces an error, until -std is added to get
4081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4082 array size at least. It's necessary to write '\x00'==0 to get something
4083 that's true only with -std. */
4084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4087 inside strings and character constants. */
4089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4091 int test (int i, double x);
4092 struct s1 {int (*f) (int a);};
4093 struct s2 {int (*f) (double a);};
4094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4100 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4108 CC="$ac_save_CC $ac_arg"
4109 rm -f conftest.$ac_objext
4110 if { (ac_try="$ac_compile"
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_compile") 2>conftest.er1
4118 grep -v '^ *+' conftest.er1 >conftest.err
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } && {
4123 test -z "$ac_c_werror_flag" ||
4124 test ! -s conftest.err
4125 } && test -s conftest.$ac_objext; then
4126 ac_cv_prog_cc_c89=$ac_arg
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4134 rm -f core conftest.err conftest.$ac_objext
4135 test "x$ac_cv_prog_cc_c89" != "xno" && break
4137 rm -f conftest.$ac_ext
4142 case "x$ac_cv_prog_cc_c89" in
4144 { echo "$as_me:$LINENO: result: none needed" >&5
4145 echo "${ECHO_T}none needed" >&6; } ;;
4147 { echo "$as_me:$LINENO: result: unsupported" >&5
4148 echo "${ECHO_T}unsupported" >&6; } ;;
4150 CC="$CC $ac_cv_prog_cc_c89"
4151 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4152 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162 depcc="$CC" am_compiler_list=
4164 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4165 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4166 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4170 # We make a subdir and do the tests there. Otherwise we can end up
4171 # making bogus files that we don't know about and never remove. For
4172 # instance it was reported that on HP-UX the gcc test will end up
4173 # making a dummy file named `D' -- because `-MD' means `put the output
4176 # Copy depcomp to subdir because otherwise we won't find it if we're
4177 # using a relative directory.
4178 cp "$am_depcomp" conftest.dir
4180 # We will build objects and dependencies in a subdirectory because
4181 # it helps to detect inapplicable dependency modes. For instance
4182 # both Tru64's cc and ICC support -MD to output dependencies as a
4183 # side effect of compilation, but ICC will put the dependencies in
4184 # the current directory while Tru64 will put them in the object
4188 am_cv_CC_dependencies_compiler_type=none
4189 if test "$am_compiler_list" = ""; then
4190 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4192 for depmode in $am_compiler_list; do
4193 # Setup a source with many dependencies, because some compilers
4194 # like to wrap large dependency lists on column 80 (with \), and
4195 # we should not choose a depcomp mode which is confused by this.
4197 # We need to recreate these files for each test, as the compiler may
4198 # overwrite some of them when testing with obscure command lines.
4199 # This happens at least with the AIX C compiler.
4201 for i in 1 2 3 4 5 6; do
4202 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4203 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4204 # Solaris 8's {/usr,}/bin/sh.
4205 touch sub/conftst$i.h
4207 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4211 # after this tag, mechanisms are not by side-effect, so they'll
4212 # only be used when explicitly requested
4213 if test "x$enable_dependency_tracking" = xyes; then
4221 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4222 # mode. It turns out that the SunPro C++ compiler does not properly
4223 # handle `-M -o', and we need to detect this.
4224 if depmode=$depmode \
4225 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4226 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4227 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4228 >/dev/null 2>conftest.err &&
4229 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4230 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4231 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4232 # icc doesn't choke on unknown options, it will just issue warnings
4233 # or remarks (even with -Werror). So we grep stderr for any message
4234 # that says an option was ignored or not supported.
4235 # When given -MP, icc 7.0 and 7.1 complain thusly:
4236 # icc: Command line warning: ignoring option '-M'; no argument required
4237 # The diagnosis changed in icc 8.0:
4238 # icc: Command line remark: option '-MP' not supported
4239 if (grep 'ignoring option' conftest.err ||
4240 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4241 am_cv_CC_dependencies_compiler_type=$depmode
4250 am_cv_CC_dependencies_compiler_type=none
4254 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4255 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4256 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4261 test "x$enable_dependency_tracking" != xno \
4262 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4264 am__fastdepCC_FALSE='#'
4266 am__fastdepCC_TRUE='#'
4267 am__fastdepCC_FALSE=
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276 if test -n "$ac_tool_prefix"; then
4277 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4278 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4281 if test "${ac_cv_prog_CC+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 if test -n "$CC"; then
4285 ac_cv_prog_CC="$CC" # Let the user override the test.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4294 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 if test -n "$CC"; then
4306 { echo "$as_me:$LINENO: result: $CC" >&5
4307 echo "${ECHO_T}$CC" >&6; }
4309 { echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6; }
4315 if test -z "$ac_cv_prog_CC"; then
4317 # Extract the first word of "gcc", so it can be a program name with args.
4318 set dummy gcc; ac_word=$2
4319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4321 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 if test -n "$ac_ct_CC"; then
4325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334 ac_cv_prog_ac_ct_CC="gcc"
4335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4345 if test -n "$ac_ct_CC"; then
4346 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4347 echo "${ECHO_T}$ac_ct_CC" >&6; }
4349 { echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6; }
4353 if test "x$ac_ct_CC" = x; then
4356 case $cross_compiling:$ac_tool_warned in
4358 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4359 whose name does not start with the host triplet. If you think this
4360 configuration is useful to you, please write to autoconf@gnu.org." >&5
4361 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4362 whose name does not start with the host triplet. If you think this
4363 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4364 ac_tool_warned=yes ;;
4372 if test -z "$CC"; then
4373 if test -n "$ac_tool_prefix"; then
4374 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4375 set dummy ${ac_tool_prefix}cc; ac_word=$2
4376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4378 if test "${ac_cv_prog_CC+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 if test -n "$CC"; then
4382 ac_cv_prog_CC="$CC" # Let the user override the test.
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4391 ac_cv_prog_CC="${ac_tool_prefix}cc"
4392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 if test -n "$CC"; then
4403 { echo "$as_me:$LINENO: result: $CC" >&5
4404 echo "${ECHO_T}$CC" >&6; }
4406 { echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6; }
4413 if test -z "$CC"; then
4414 # Extract the first word of "cc", so it can be a program name with args.
4415 set dummy cc; ac_word=$2
4416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4418 if test "${ac_cv_prog_CC+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 if test -n "$CC"; then
4422 ac_cv_prog_CC="$CC" # Let the user override the test.
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4433 ac_prog_rejected=yes
4437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 if test $ac_prog_rejected = yes; then
4445 # We found a bogon in the path, so make sure we never use it.
4446 set dummy $ac_cv_prog_CC
4448 if test $# != 0; then
4449 # We chose a different compiler from the bogus one.
4450 # However, it has the same basename, so the bogon will be chosen
4451 # first if we set CC to just the basename; use the full file name.
4453 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4459 if test -n "$CC"; then
4460 { echo "$as_me:$LINENO: result: $CC" >&5
4461 echo "${ECHO_T}$CC" >&6; }
4463 { echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6; }
4469 if test -z "$CC"; then
4470 if test -n "$ac_tool_prefix"; then
4471 for ac_prog in cl.exe
4473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4477 if test "${ac_cv_prog_CC+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 if test -n "$CC"; then
4481 ac_cv_prog_CC="$CC" # Let the user override the test.
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 if test -n "$CC"; then
4502 { echo "$as_me:$LINENO: result: $CC" >&5
4503 echo "${ECHO_T}$CC" >&6; }
4505 { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4510 test -n "$CC" && break
4513 if test -z "$CC"; then
4515 for ac_prog in cl.exe
4517 # Extract the first word of "$ac_prog", so it can be a program name with args.
4518 set dummy $ac_prog; ac_word=$2
4519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 if test -n "$ac_ct_CC"; then
4525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4534 ac_cv_prog_ac_ct_CC="$ac_prog"
4535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4545 if test -n "$ac_ct_CC"; then
4546 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4547 echo "${ECHO_T}$ac_ct_CC" >&6; }
4549 { echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6; }
4554 test -n "$ac_ct_CC" && break
4557 if test "x$ac_ct_CC" = x; then
4560 case $cross_compiling:$ac_tool_warned in
4562 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4563 whose name does not start with the host triplet. If you think this
4564 configuration is useful to you, please write to autoconf@gnu.org." >&5
4565 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4566 whose name does not start with the host triplet. If you think this
4567 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4568 ac_tool_warned=yes ;;
4577 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4578 See \`config.log' for more details." >&5
4579 echo "$as_me: error: no acceptable C compiler found in \$PATH
4580 See \`config.log' for more details." >&2;}
4581 { (exit 1); exit 1; }; }
4583 # Provide some information about the compiler.
4584 echo "$as_me:$LINENO: checking for C compiler version" >&5
4585 ac_compiler=`set X $ac_compile; echo $2`
4586 { (ac_try="$ac_compiler --version >&5"
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592 (eval "$ac_compiler --version >&5") 2>&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }
4596 { (ac_try="$ac_compiler -v >&5"
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_compiler -v >&5") 2>&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }
4606 { (ac_try="$ac_compiler -V >&5"
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_compiler -V >&5") 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }
4617 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4618 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4619 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 cat >conftest.$ac_ext <<_ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_compile") 2>conftest.er1
4649 grep -v '^ *+' conftest.er1 >conftest.err
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.$ac_objext; then
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4669 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4670 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4671 GCC=`test $ac_compiler_gnu = yes && echo yes`
4672 ac_test_CFLAGS=${CFLAGS+set}
4673 ac_save_CFLAGS=$CFLAGS
4674 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4675 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4676 if test "${ac_cv_prog_cc_g+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 ac_save_c_werror_flag=$ac_c_werror_flag
4680 ac_c_werror_flag=yes
4683 cat >conftest.$ac_ext <<_ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4698 rm -f conftest.$ac_objext
4699 if { (ac_try="$ac_compile"
4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702 *) ac_try_echo=$ac_try;;
4704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705 (eval "$ac_compile") 2>conftest.er1
4707 grep -v '^ *+' conftest.er1 >conftest.err
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } && {
4712 test -z "$ac_c_werror_flag" ||
4713 test ! -s conftest.err
4714 } && test -s conftest.$ac_objext; then
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4721 cat >conftest.$ac_ext <<_ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4736 rm -f conftest.$ac_objext
4737 if { (ac_try="$ac_compile"
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_compile") 2>conftest.er1
4745 grep -v '^ *+' conftest.er1 >conftest.err
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } && {
4750 test -z "$ac_c_werror_flag" ||
4751 test ! -s conftest.err
4752 } && test -s conftest.$ac_objext; then
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4758 ac_c_werror_flag=$ac_save_c_werror_flag
4760 cat >conftest.$ac_ext <<_ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4775 rm -f conftest.$ac_objext
4776 if { (ac_try="$ac_compile"
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4782 (eval "$ac_compile") 2>conftest.er1
4784 grep -v '^ *+' conftest.er1 >conftest.err
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } && {
4789 test -z "$ac_c_werror_flag" ||
4790 test ! -s conftest.err
4791 } && test -s conftest.$ac_objext; then
4794 echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_c_werror_flag=$ac_save_c_werror_flag
4809 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4811 if test "$ac_test_CFLAGS" = set; then
4812 CFLAGS=$ac_save_CFLAGS
4813 elif test $ac_cv_prog_cc_g = yes; then
4814 if test "$GCC" = yes; then
4820 if test "$GCC" = yes; then
4826 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4827 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4828 if test "${ac_cv_prog_cc_c89+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 ac_cv_prog_cc_c89=no
4833 cat >conftest.$ac_ext <<_ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4841 #include <sys/types.h>
4842 #include <sys/stat.h>
4843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4844 struct buf { int x; };
4845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4846 static char *e (p, i)
4852 static char *f (char * (*g) (char **, int), char **p, ...)
4857 s = g (p, va_arg (v,int));
4862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4863 function prototypes and stuff, but not '\xHH' hex character constants.
4864 These don't provoke an error unfortunately, instead are silently treated
4865 as 'x'. The following induces an error, until -std is added to get
4866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4867 array size at least. It's necessary to write '\x00'==0 to get something
4868 that's true only with -std. */
4869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4872 inside strings and character constants. */
4874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4876 int test (int i, double x);
4877 struct s1 {int (*f) (int a);};
4878 struct s2 {int (*f) (double a);};
4879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4885 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4893 CC="$ac_save_CC $ac_arg"
4894 rm -f conftest.$ac_objext
4895 if { (ac_try="$ac_compile"
4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898 *) ac_try_echo=$ac_try;;
4900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4901 (eval "$ac_compile") 2>conftest.er1
4903 grep -v '^ *+' conftest.er1 >conftest.err
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } && {
4908 test -z "$ac_c_werror_flag" ||
4909 test ! -s conftest.err
4910 } && test -s conftest.$ac_objext; then
4911 ac_cv_prog_cc_c89=$ac_arg
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4919 rm -f core conftest.err conftest.$ac_objext
4920 test "x$ac_cv_prog_cc_c89" != "xno" && break
4922 rm -f conftest.$ac_ext
4927 case "x$ac_cv_prog_cc_c89" in
4929 { echo "$as_me:$LINENO: result: none needed" >&5
4930 echo "${ECHO_T}none needed" >&6; } ;;
4932 { echo "$as_me:$LINENO: result: unsupported" >&5
4933 echo "${ECHO_T}unsupported" >&6; } ;;
4935 CC="$CC $ac_cv_prog_cc_c89"
4936 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4937 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4942 ac_cpp='$CPP $CPPFLAGS'
4943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947 depcc="$CC" am_compiler_list=
4949 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4950 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4951 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4955 # We make a subdir and do the tests there. Otherwise we can end up
4956 # making bogus files that we don't know about and never remove. For
4957 # instance it was reported that on HP-UX the gcc test will end up
4958 # making a dummy file named `D' -- because `-MD' means `put the output
4961 # Copy depcomp to subdir because otherwise we won't find it if we're
4962 # using a relative directory.
4963 cp "$am_depcomp" conftest.dir
4965 # We will build objects and dependencies in a subdirectory because
4966 # it helps to detect inapplicable dependency modes. For instance
4967 # both Tru64's cc and ICC support -MD to output dependencies as a
4968 # side effect of compilation, but ICC will put the dependencies in
4969 # the current directory while Tru64 will put them in the object
4973 am_cv_CC_dependencies_compiler_type=none
4974 if test "$am_compiler_list" = ""; then
4975 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4977 for depmode in $am_compiler_list; do
4978 # Setup a source with many dependencies, because some compilers
4979 # like to wrap large dependency lists on column 80 (with \), and
4980 # we should not choose a depcomp mode which is confused by this.
4982 # We need to recreate these files for each test, as the compiler may
4983 # overwrite some of them when testing with obscure command lines.
4984 # This happens at least with the AIX C compiler.
4986 for i in 1 2 3 4 5 6; do
4987 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4988 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4989 # Solaris 8's {/usr,}/bin/sh.
4990 touch sub/conftst$i.h
4992 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4996 # after this tag, mechanisms are not by side-effect, so they'll
4997 # only be used when explicitly requested
4998 if test "x$enable_dependency_tracking" = xyes; then
5006 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5007 # mode. It turns out that the SunPro C++ compiler does not properly
5008 # handle `-M -o', and we need to detect this.
5009 if depmode=$depmode \
5010 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5011 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5012 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5013 >/dev/null 2>conftest.err &&
5014 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5015 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5016 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5017 # icc doesn't choke on unknown options, it will just issue warnings
5018 # or remarks (even with -Werror). So we grep stderr for any message
5019 # that says an option was ignored or not supported.
5020 # When given -MP, icc 7.0 and 7.1 complain thusly:
5021 # icc: Command line warning: ignoring option '-M'; no argument required
5022 # The diagnosis changed in icc 8.0:
5023 # icc: Command line remark: option '-MP' not supported
5024 if (grep 'ignoring option' conftest.err ||
5025 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5026 am_cv_CC_dependencies_compiler_type=$depmode
5035 am_cv_CC_dependencies_compiler_type=none
5039 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5040 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5041 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5046 test "x$enable_dependency_tracking" != xno \
5047 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5049 am__fastdepCC_FALSE='#'
5051 am__fastdepCC_TRUE='#'
5052 am__fastdepCC_FALSE=
5057 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5059 # By default we simply use the C compiler to build assembly code.
5061 test "${CCAS+set}" = set || CCAS=$CC
5062 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5067 ac_cpp='$CPP $CPPFLAGS'
5068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5072 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5073 # On Suns, sometimes $CPP names a directory.
5074 if test -n "$CPP" && test -d "$CPP"; then
5077 if test -z "$CPP"; then
5078 if test "${ac_cv_prog_CPP+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 # Double quotes because CPP needs to be expanded
5082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5085 for ac_c_preproc_warn_flag in '' yes
5087 # Use a header file that comes with gcc, so configuring glibc
5088 # with a fresh cross-compiler works.
5089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5090 # <limits.h> exists even on freestanding compilers.
5091 # On the NeXT, cc -E runs the code through the compiler's parser,
5092 # not just through cpp. "Syntax error" is here to catch this case.
5093 cat >conftest.$ac_ext <<_ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5100 # include <limits.h>
5102 # include <assert.h>
5106 if { (ac_try="$ac_cpp conftest.$ac_ext"
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev/null && {
5119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5120 test ! -s conftest.err
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5127 # Broken: fails on valid input.
5131 rm -f conftest.err conftest.$ac_ext
5133 # OK, works on sane cases. Now check whether nonexistent headers
5134 # can be detected and how.
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 #include <ac_nonexistent.h>
5143 if { (ac_try="$ac_cpp conftest.$ac_ext"
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5151 grep -v '^ *+' conftest.er1 >conftest.err
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } >/dev/null && {
5156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5157 test ! -s conftest.err
5159 # Broken: success on invalid input.
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5165 # Passes both tests.
5170 rm -f conftest.err conftest.$ac_ext
5173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5174 rm -f conftest.err conftest.$ac_ext
5175 if $ac_preproc_ok; then
5187 { echo "$as_me:$LINENO: result: $CPP" >&5
5188 echo "${ECHO_T}$CPP" >&6; }
5190 for ac_c_preproc_warn_flag in '' yes
5192 # Use a header file that comes with gcc, so configuring glibc
5193 # with a fresh cross-compiler works.
5194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195 # <limits.h> exists even on freestanding compilers.
5196 # On the NeXT, cc -E runs the code through the compiler's parser,
5197 # not just through cpp. "Syntax error" is here to catch this case.
5198 cat >conftest.$ac_ext <<_ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5205 # include <limits.h>
5207 # include <assert.h>
5211 if { (ac_try="$ac_cpp conftest.$ac_ext"
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5219 grep -v '^ *+' conftest.er1 >conftest.err
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } >/dev/null && {
5224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5225 test ! -s conftest.err
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5232 # Broken: fails on valid input.
5236 rm -f conftest.err conftest.$ac_ext
5238 # OK, works on sane cases. Now check whether nonexistent headers
5239 # can be detected and how.
5240 cat >conftest.$ac_ext <<_ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5246 #include <ac_nonexistent.h>
5248 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
5256 grep -v '^ *+' conftest.er1 >conftest.err
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } >/dev/null && {
5261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5264 # Broken: success on invalid input.
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5270 # Passes both tests.
5275 rm -f conftest.err conftest.$ac_ext
5278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5279 rm -f conftest.err conftest.$ac_ext
5280 if $ac_preproc_ok; then
5283 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5284 See \`config.log' for more details." >&5
5285 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5286 See \`config.log' for more details." >&2;}
5287 { (exit 1); exit 1; }; }
5291 ac_cpp='$CPP $CPPFLAGS'
5292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5297 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5298 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5299 if test "${ac_cv_path_GREP+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 # Extract the first word of "grep ggrep" to use in msg output
5303 if test -z "$GREP"; then
5304 set dummy grep ggrep; ac_prog_name=$2
5305 if test "${ac_cv_path_GREP+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 ac_path_GREP_found=false
5309 # Loop through the user's path and test for each of PROGNAME-LIST
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5314 test -z "$as_dir" && as_dir=.
5315 for ac_prog in grep ggrep; do
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5318 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5319 # Check for GNU ac_path_GREP and select it if it is found.
5320 # Check for GNU $ac_path_GREP
5321 case `"$ac_path_GREP" --version 2>&1` in
5323 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5326 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5329 cat "conftest.in" "conftest.in" >"conftest.tmp"
5330 mv "conftest.tmp" "conftest.in"
5331 cp "conftest.in" "conftest.nl"
5332 echo 'GREP' >> "conftest.nl"
5333 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5335 ac_count=`expr $ac_count + 1`
5336 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5337 # Best one so far, save it but keep looking for a better one
5338 ac_cv_path_GREP="$ac_path_GREP"
5339 ac_path_GREP_max=$ac_count
5341 # 10*(2^10) chars as input seems more than enough
5342 test $ac_count -gt 10 && break
5344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5348 $ac_path_GREP_found && break 3
5358 GREP="$ac_cv_path_GREP"
5359 if test -z "$GREP"; then
5360 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5361 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5362 { (exit 1); exit 1; }; }
5366 ac_cv_path_GREP=$GREP
5371 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5372 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5373 GREP="$ac_cv_path_GREP"
5376 { echo "$as_me:$LINENO: checking for egrep" >&5
5377 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5378 if test "${ac_cv_path_EGREP+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5382 then ac_cv_path_EGREP="$GREP -E"
5384 # Extract the first word of "egrep" to use in msg output
5385 if test -z "$EGREP"; then
5386 set dummy egrep; ac_prog_name=$2
5387 if test "${ac_cv_path_EGREP+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 ac_path_EGREP_found=false
5391 # Loop through the user's path and test for each of PROGNAME-LIST
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5396 test -z "$as_dir" && as_dir=.
5397 for ac_prog in egrep; do
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5400 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5401 # Check for GNU ac_path_EGREP and select it if it is found.
5402 # Check for GNU $ac_path_EGREP
5403 case `"$ac_path_EGREP" --version 2>&1` in
5405 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5408 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5411 cat "conftest.in" "conftest.in" >"conftest.tmp"
5412 mv "conftest.tmp" "conftest.in"
5413 cp "conftest.in" "conftest.nl"
5414 echo 'EGREP' >> "conftest.nl"
5415 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5417 ac_count=`expr $ac_count + 1`
5418 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5419 # Best one so far, save it but keep looking for a better one
5420 ac_cv_path_EGREP="$ac_path_EGREP"
5421 ac_path_EGREP_max=$ac_count
5423 # 10*(2^10) chars as input seems more than enough
5424 test $ac_count -gt 10 && break
5426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5430 $ac_path_EGREP_found && break 3
5440 EGREP="$ac_cv_path_EGREP"
5441 if test -z "$EGREP"; then
5442 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5443 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5444 { (exit 1); exit 1; }; }
5448 ac_cv_path_EGREP=$EGREP
5454 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5455 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5456 EGREP="$ac_cv_path_EGREP"
5459 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5460 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5461 if test "${ac_cv_header_stdc+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 cat >conftest.$ac_ext <<_ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_compile") 2>conftest.er1
5492 grep -v '^ *+' conftest.er1 >conftest.err
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest.$ac_objext; then
5500 ac_cv_header_stdc=yes
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 ac_cv_header_stdc=no
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 if test $ac_cv_header_stdc = yes; then
5511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5522 $EGREP "memchr" >/dev/null 2>&1; then
5525 ac_cv_header_stdc=no
5531 if test $ac_cv_header_stdc = yes; then
5532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5533 cat >conftest.$ac_ext <<_ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5543 $EGREP "free" >/dev/null 2>&1; then
5546 ac_cv_header_stdc=no
5552 if test $ac_cv_header_stdc = yes; then
5553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5554 if test "$cross_compiling" = yes; then
5557 cat >conftest.$ac_ext <<_ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5565 #if ((' ' & 0x0FF) == 0x020)
5566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5569 # define ISLOWER(c) \
5570 (('a' <= (c) && (c) <= 'i') \
5571 || ('j' <= (c) && (c) <= 'r') \
5572 || ('s' <= (c) && (c) <= 'z'))
5573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5581 for (i = 0; i < 256; i++)
5582 if (XOR (islower (i), ISLOWER (i))
5583 || toupper (i) != TOUPPER (i))
5588 rm -f conftest$ac_exeext
5589 if { (ac_try="$ac_link"
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_link") 2>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5599 { (case "(($ac_try" in
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_try") 2>&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5610 echo "$as_me: program exited with status $ac_status" >&5
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5615 ac_cv_header_stdc=no
5617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5623 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5624 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5625 if test $ac_cv_header_stdc = yes; then
5627 cat >>confdefs.h <<\_ACEOF
5628 #define STDC_HEADERS 1
5633 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5643 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5644 inttypes.h stdint.h unistd.h
5646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 cat >conftest.$ac_ext <<_ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 $ac_includes_default
5660 #include <$ac_header>
5662 rm -f conftest.$ac_objext
5663 if { (ac_try="$ac_compile"
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_compile") 2>conftest.er1
5671 grep -v '^ *+' conftest.er1 >conftest.err
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && {
5676 test -z "$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest.$ac_objext; then
5679 eval "$as_ac_Header=yes"
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 eval "$as_ac_Header=no"
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 ac_res=`eval echo '${'$as_ac_Header'}'`
5690 { echo "$as_me:$LINENO: result: $ac_res" >&5
5691 echo "${ECHO_T}$ac_res" >&6; }
5692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5693 cat >>confdefs.h <<_ACEOF
5694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5702 { echo "$as_me:$LINENO: checking for void *" >&5
5703 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
5704 if test "${ac_cv_type_void_p+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 cat >conftest.$ac_ext <<_ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 $ac_includes_default
5714 typedef void * ac__type_new_;
5718 if ((ac__type_new_ *) 0)
5720 if (sizeof (ac__type_new_))
5726 rm -f conftest.$ac_objext
5727 if { (ac_try="$ac_compile"
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_compile") 2>conftest.er1
5735 grep -v '^ *+' conftest.er1 >conftest.err
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_c_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest.$ac_objext; then
5743 ac_cv_type_void_p=yes
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5748 ac_cv_type_void_p=no
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5754 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
5756 # The cast to long int works around a bug in the HP C Compiler
5757 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5758 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5759 # This bug is HP SR number 8606223364.
5760 { echo "$as_me:$LINENO: checking size of void *" >&5
5761 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
5762 if test "${ac_cv_sizeof_void_p+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 if test "$cross_compiling" = yes; then
5766 # Depending upon the size, compute the lo and hi bounds.
5767 cat >conftest.$ac_ext <<_ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 $ac_includes_default
5774 typedef void * ac__type_sizeof_;
5778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5785 rm -f conftest.$ac_objext
5786 if { (ac_try="$ac_compile"
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compile") 2>conftest.er1
5794 grep -v '^ *+' conftest.er1 >conftest.err
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } && {
5799 test -z "$ac_c_werror_flag" ||
5800 test ! -s conftest.err
5801 } && test -s conftest.$ac_objext; then
5804 cat >conftest.$ac_ext <<_ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 $ac_includes_default
5811 typedef void * ac__type_sizeof_;
5815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && {
5836 test -z "$ac_c_werror_flag" ||
5837 test ! -s conftest.err
5838 } && test -s conftest.$ac_objext; then
5839 ac_hi=$ac_mid; break
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5844 ac_lo=`expr $ac_mid + 1`
5845 if test $ac_lo -le $ac_mid; then
5849 ac_mid=`expr 2 '*' $ac_mid + 1`
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5858 cat >conftest.$ac_ext <<_ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 $ac_includes_default
5865 typedef void * ac__type_sizeof_;
5869 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5876 rm -f conftest.$ac_objext
5877 if { (ac_try="$ac_compile"
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_compile") 2>conftest.er1
5885 grep -v '^ *+' conftest.er1 >conftest.err
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } && {
5890 test -z "$ac_c_werror_flag" ||
5891 test ! -s conftest.err
5892 } && test -s conftest.$ac_objext; then
5895 cat >conftest.$ac_ext <<_ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 $ac_includes_default
5902 typedef void * ac__type_sizeof_;
5906 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5913 rm -f conftest.$ac_objext
5914 if { (ac_try="$ac_compile"
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_compile") 2>conftest.er1
5922 grep -v '^ *+' conftest.er1 >conftest.err
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } && {
5927 test -z "$ac_c_werror_flag" ||
5928 test ! -s conftest.err
5929 } && test -s conftest.$ac_objext; then
5930 ac_lo=$ac_mid; break
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5935 ac_hi=`expr '(' $ac_mid ')' - 1`
5936 if test $ac_mid -le $ac_hi; then
5940 ac_mid=`expr 2 '*' $ac_mid`
5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 # Binary search between lo and hi bounds.
5957 while test "x$ac_lo" != "x$ac_hi"; do
5958 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5959 cat >conftest.$ac_ext <<_ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 $ac_includes_default
5966 typedef void * ac__type_sizeof_;
5970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5977 rm -f conftest.$ac_objext
5978 if { (ac_try="$ac_compile"
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_compile") 2>conftest.er1
5986 grep -v '^ *+' conftest.er1 >conftest.err
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest.$ac_objext; then
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 ac_lo=`expr '(' $ac_mid ')' + 1`
6002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6006 '') if test "$ac_cv_type_void_p" = yes; then
6007 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6008 See \`config.log' for more details." >&5
6009 echo "$as_me: error: cannot compute sizeof (void *)
6010 See \`config.log' for more details." >&2;}
6011 { (exit 77); exit 77; }; }
6013 ac_cv_sizeof_void_p=0
6017 cat >conftest.$ac_ext <<_ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 $ac_includes_default
6024 typedef void * ac__type_sizeof_;
6025 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6026 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6033 FILE *f = fopen ("conftest.val", "w");
6036 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6038 long int i = longval ();
6039 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6041 fprintf (f, "%ld\n", i);
6045 unsigned long int i = ulongval ();
6046 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6048 fprintf (f, "%lu\n", i);
6050 return ferror (f) || fclose (f) != 0;
6056 rm -f conftest$ac_exeext
6057 if { (ac_try="$ac_link"
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_link") 2>&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6067 { (case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_try") 2>&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 ac_cv_sizeof_void_p=`cat conftest.val`
6078 echo "$as_me: program exited with status $ac_status" >&5
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6083 if test "$ac_cv_type_void_p" = yes; then
6084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6085 See \`config.log' for more details." >&5
6086 echo "$as_me: error: cannot compute sizeof (void *)
6087 See \`config.log' for more details." >&2;}
6088 { (exit 77); exit 77; }; }
6090 ac_cv_sizeof_void_p=0
6093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6097 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6098 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
6102 cat >>confdefs.h <<_ACEOF
6103 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6107 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6108 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6109 if test "${ac_cv_header_stdc+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 cat >conftest.$ac_ext <<_ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6131 rm -f conftest.$ac_objext
6132 if { (ac_try="$ac_compile"
6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135 *) ac_try_echo=$ac_try;;
6137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
6148 ac_cv_header_stdc=yes
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6153 ac_cv_header_stdc=no
6156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 if test $ac_cv_header_stdc = yes; then
6159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6160 cat >conftest.$ac_ext <<_ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6170 $EGREP "memchr" >/dev/null 2>&1; then
6173 ac_cv_header_stdc=no
6179 if test $ac_cv_header_stdc = yes; then
6180 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6181 cat >conftest.$ac_ext <<_ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6191 $EGREP "free" >/dev/null 2>&1; then
6194 ac_cv_header_stdc=no
6200 if test $ac_cv_header_stdc = yes; then
6201 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6202 if test "$cross_compiling" = yes; then
6205 cat >conftest.$ac_ext <<_ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6213 #if ((' ' & 0x0FF) == 0x020)
6214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6217 # define ISLOWER(c) \
6218 (('a' <= (c) && (c) <= 'i') \
6219 || ('j' <= (c) && (c) <= 'r') \
6220 || ('s' <= (c) && (c) <= 'z'))
6221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6229 for (i = 0; i < 256; i++)
6230 if (XOR (islower (i), ISLOWER (i))
6231 || toupper (i) != TOUPPER (i))
6236 rm -f conftest$ac_exeext
6237 if { (ac_try="$ac_link"
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_link") 2>&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6247 { (case "(($ac_try" in
6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249 *) ac_try_echo=$ac_try;;
6251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6252 (eval "$ac_try") 2>&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6258 echo "$as_me: program exited with status $ac_status" >&5
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6263 ac_cv_header_stdc=no
6265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6271 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6272 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6273 if test $ac_cv_header_stdc = yes; then
6275 cat >>confdefs.h <<\_ACEOF
6276 #define STDC_HEADERS 1
6281 # Make sure we can run config.sub.
6282 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6283 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6284 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6285 { (exit 1); exit 1; }; }
6287 { echo "$as_me:$LINENO: checking build system type" >&5
6288 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
6289 if test "${ac_cv_build+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 ac_build_alias=$build_alias
6293 test "x$ac_build_alias" = x &&
6294 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6295 test "x$ac_build_alias" = x &&
6296 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6297 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6298 { (exit 1); exit 1; }; }
6299 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6300 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6301 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6302 { (exit 1); exit 1; }; }
6305 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6306 echo "${ECHO_T}$ac_cv_build" >&6; }
6307 case $ac_cv_build in
6309 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6310 echo "$as_me: error: invalid value of canonical build" >&2;}
6311 { (exit 1); exit 1; }; };;
6314 ac_save_IFS=$IFS; IFS='-'
6320 # Remember, the first character of IFS is used to create $*,
6321 # except with old shells:
6324 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6327 { echo "$as_me:$LINENO: checking host system type" >&5
6328 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
6329 if test "${ac_cv_host+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 if test "x$host_alias" = x; then
6333 ac_cv_host=$ac_cv_build
6335 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6336 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6337 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6338 { (exit 1); exit 1; }; }
6342 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6343 echo "${ECHO_T}$ac_cv_host" >&6; }
6346 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6347 echo "$as_me: error: invalid value of canonical host" >&2;}
6348 { (exit 1); exit 1; }; };;
6351 ac_save_IFS=$IFS; IFS='-'
6357 # Remember, the first character of IFS is used to create $*,
6358 # except with old shells:
6361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6364 # Check whether --enable-trace was given.
6365 if test "${enable_trace+set}" = set; then
6366 enableval=$enable_trace; if test "$enableval" == "yes"; then
6368 cat >>confdefs.h <<\_ACEOF
6369 #define ENABLE_TRACE_IO 1
6375 # Check whether --enable-watch was given.
6376 if test "${enable_watch+set}" = set; then
6377 enableval=$enable_watch; if test "$enableval" == "yes"; then
6379 cat >>confdefs.h <<\_ACEOF
6380 #define ENABLE_WATCH 1
6386 # Check whether --enable-sh4stats was given.
6387 if test "${enable_sh4stats+set}" = set; then
6388 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
6390 cat >>confdefs.h <<\_ACEOF
6391 #define ENABLE_SH4STATS 1
6398 # Check whether --with-osmesa was given.
6399 if test "${with_osmesa+set}" = set; then
6400 withval=$with_osmesa;
6408 lxdream_save_cppflags="$CPPFLAGS"
6409 CPPFLAGS="$CPPFLAGS -x objective-c"
6410 cat >conftest.$ac_ext <<_ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6425 rm -f conftest.$ac_objext
6426 if { (ac_try="$ac_compile"
6428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432 (eval "$ac_compile") 2>conftest.er1
6434 grep -v '^ *+' conftest.er1 >conftest.err
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } && {
6439 test -z "$ac_c_werror_flag" ||
6440 test ! -s conftest.err
6441 } && test -s conftest.$ac_objext; then
6444 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6445 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6446 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
6447 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6451 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6453 # Is the header compilable?
6454 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
6455 echo $ECHO_N "checking Cocoa/Cocoa.h usability... $ECHO_C" >&6; }
6456 cat >conftest.$ac_ext <<_ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 $ac_includes_default
6463 #include <Cocoa/Cocoa.h>
6465 rm -f conftest.$ac_objext
6466 if { (ac_try="$ac_compile"
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compile") 2>conftest.er1
6474 grep -v '^ *+' conftest.er1 >conftest.err
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
6482 ac_header_compiler=yes
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 ac_header_compiler=no
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6492 echo "${ECHO_T}$ac_header_compiler" >&6; }
6494 # Is the header present?
6495 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
6496 echo $ECHO_N "checking Cocoa/Cocoa.h presence... $ECHO_C" >&6; }
6497 cat >conftest.$ac_ext <<_ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6503 #include <Cocoa/Cocoa.h>
6505 if { (ac_try="$ac_cpp conftest.$ac_ext"
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6513 grep -v '^ *+' conftest.er1 >conftest.err
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } >/dev/null && {
6518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6521 ac_header_preproc=yes
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6526 ac_header_preproc=no
6529 rm -f conftest.err conftest.$ac_ext
6530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6531 echo "${ECHO_T}$ac_header_preproc" >&6; }
6533 # So? What about this header?
6534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6536 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6537 echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6538 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
6539 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
6540 ac_header_preproc=yes
6543 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
6544 echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
6545 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
6546 echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
6547 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
6548 echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
6549 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
6550 echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6551 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
6552 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
6553 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
6554 echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
6558 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6559 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
6560 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
6565 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6566 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6569 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
6573 LIBS="$LIBS -framework AppKit"
6574 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"
6576 cat >>confdefs.h <<\_ACEOF
6577 #define HAVE_COCOA 1
6581 cat >>confdefs.h <<\_ACEOF
6582 #define APPLE_BUILD 1
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6595 CPPFLAGS="$lxdream_save_cppflags"
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 if test "$HAVE_COCOA" = 'yes'; then
6612 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6613 if test -n "$ac_tool_prefix"; then
6614 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6615 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6645 if test -n "$PKG_CONFIG"; then
6646 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6647 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6649 { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6655 if test -z "$ac_cv_path_PKG_CONFIG"; then
6656 ac_pt_PKG_CONFIG=$PKG_CONFIG
6657 # Extract the first word of "pkg-config", so it can be a program name with args.
6658 set dummy pkg-config; ac_word=$2
6659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6661 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 case $ac_pt_PKG_CONFIG in
6666 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6688 if test -n "$ac_pt_PKG_CONFIG"; then
6689 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6690 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
6692 { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6696 if test "x$ac_pt_PKG_CONFIG" = x; then
6699 case $cross_compiling:$ac_tool_warned in
6701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6702 whose name does not start with the host triplet. If you think this
6703 configuration is useful to you, please write to autoconf@gnu.org." >&5
6704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6705 whose name does not start with the host triplet. If you think this
6706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6707 ac_tool_warned=yes ;;
6709 PKG_CONFIG=$ac_pt_PKG_CONFIG
6712 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6716 if test -n "$PKG_CONFIG"; then
6717 _pkg_min_version=0.9.0
6718 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6719 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
6720 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6721 { echo "$as_me:$LINENO: result: yes" >&5
6722 echo "${ECHO_T}yes" >&6; }
6724 { echo "$as_me:$LINENO: result: no" >&5
6725 echo "${ECHO_T}no" >&6; }
6732 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
6733 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
6735 if test -n "$PKG_CONFIG"; then
6736 if test -n "$LIBPNG_CFLAGS"; then
6737 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
6739 if test -n "$PKG_CONFIG" && \
6740 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6741 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; then
6745 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
6753 if test -n "$PKG_CONFIG"; then
6754 if test -n "$LIBPNG_LIBS"; then
6755 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
6757 if test -n "$PKG_CONFIG" && \
6758 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6759 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; then
6763 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
6774 if test $pkg_failed = yes; then
6776 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6777 _pkg_short_errors_supported=yes
6779 _pkg_short_errors_supported=no
6781 if test $_pkg_short_errors_supported = yes; then
6782 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
6784 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
6786 # Put the nasty error message in config.log where it belongs
6787 echo "$LIBPNG_PKG_ERRORS" >&5
6789 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
6793 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6794 installed software in a non-standard prefix.
6796 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6797 and LIBPNG_LIBS to avoid the need to call pkg-config.
6798 See the pkg-config man page for more details.
6800 echo "$as_me: error: Package requirements (libpng ) were not met:
6804 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6805 installed software in a non-standard prefix.
6807 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6808 and LIBPNG_LIBS to avoid the need to call pkg-config.
6809 See the pkg-config man page for more details.
6811 { (exit 1); exit 1; }; }
6812 elif test $pkg_failed = untried; then
6813 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6814 is in your PATH or set the PKG_CONFIG environment variable to the full
6817 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6818 and LIBPNG_LIBS to avoid the need to call pkg-config.
6819 See the pkg-config man page for more details.
6821 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6822 See \`config.log' for more details." >&5
6823 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6824 is in your PATH or set the PKG_CONFIG environment variable to the full
6827 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6828 and LIBPNG_LIBS to avoid the need to call pkg-config.
6829 See the pkg-config man page for more details.
6831 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6832 See \`config.log' for more details." >&2;}
6833 { (exit 1); exit 1; }; }
6835 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
6836 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
6837 { echo "$as_me:$LINENO: result: yes" >&5
6838 echo "${ECHO_T}yes" >&6; }
6843 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
6844 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
6845 if test "${ac_cv_lib_z_uncompress+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 ac_check_lib_save_LIBS=$LIBS
6850 cat >conftest.$ac_ext <<_ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6857 /* Override any GCC internal prototype to avoid an error.
6858 Use char because int might match the return type of a GCC
6859 builtin and then its argument prototype would still apply. */
6867 return uncompress ();
6872 rm -f conftest.$ac_objext conftest$ac_exeext
6873 if { (ac_try="$ac_link"
6875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876 *) ac_try_echo=$ac_try;;
6878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6879 (eval "$ac_link") 2>conftest.er1
6881 grep -v '^ *+' conftest.er1 >conftest.err
6883 cat conftest.err >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest$ac_exeext &&
6889 $as_test_x conftest$ac_exeext; then
6890 ac_cv_lib_z_uncompress=yes
6892 echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6895 ac_cv_lib_z_uncompress=no
6898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6899 conftest$ac_exeext conftest.$ac_ext
6900 LIBS=$ac_check_lib_save_LIBS
6902 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
6903 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
6904 if test $ac_cv_lib_z_uncompress = yes; then
6905 cat >>confdefs.h <<_ACEOF
6913 echo "Zlib (libz.so) could not be found, but is required."
6921 { echo "$as_me:$LINENO: checking for GTK" >&5
6922 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
6924 if test -n "$PKG_CONFIG"; then
6925 if test -n "$GTK_CFLAGS"; then
6926 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
6928 if test -n "$PKG_CONFIG" && \
6929 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
6930 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; then
6934 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
6942 if test -n "$PKG_CONFIG"; then
6943 if test -n "$GTK_LIBS"; then
6944 pkg_cv_GTK_LIBS="$GTK_LIBS"
6946 if test -n "$PKG_CONFIG" && \
6947 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
6948 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; then
6952 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
6963 if test $pkg_failed = yes; then
6965 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6966 _pkg_short_errors_supported=yes
6968 _pkg_short_errors_supported=no
6970 if test $_pkg_short_errors_supported = yes; then
6971 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
6973 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
6975 # Put the nasty error message in config.log where it belongs
6976 echo "$GTK_PKG_ERRORS" >&5
6978 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
6982 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6983 installed software in a non-standard prefix.
6985 Alternatively, you may set the environment variables GTK_CFLAGS
6986 and GTK_LIBS to avoid the need to call pkg-config.
6987 See the pkg-config man page for more details.
6989 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
6993 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6994 installed software in a non-standard prefix.
6996 Alternatively, you may set the environment variables GTK_CFLAGS
6997 and GTK_LIBS to avoid the need to call pkg-config.
6998 See the pkg-config man page for more details.
7000 { (exit 1); exit 1; }; }
7001 elif test $pkg_failed = untried; then
7002 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7003 is in your PATH or set the PKG_CONFIG environment variable to the full
7006 Alternatively, you may set the environment variables GTK_CFLAGS
7007 and GTK_LIBS to avoid the need to call pkg-config.
7008 See the pkg-config man page for more details.
7010 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7011 See \`config.log' for more details." >&5
7012 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7013 is in your PATH or set the PKG_CONFIG environment variable to the full
7016 Alternatively, you may set the environment variables GTK_CFLAGS
7017 and GTK_LIBS to avoid the need to call pkg-config.
7018 See the pkg-config man page for more details.
7020 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7021 See \`config.log' for more details." >&2;}
7022 { (exit 1); exit 1; }; }
7024 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7025 GTK_LIBS=$pkg_cv_GTK_LIBS
7026 { echo "$as_me:$LINENO: result: yes" >&5
7027 echo "${ECHO_T}yes" >&6; }
7031 cat >>confdefs.h <<\_ACEOF
7039 if test "$HAVE_GTK" = 'yes'; then
7048 LIBS="$LIBS $GTK_LIBS"
7049 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
7050 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
7051 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 cat >conftest.$ac_ext <<_ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
7061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7062 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
7064 /* System header to define __stub macros and hopefully few prototypes,
7065 which can conflict with char gdk_x11_display_get_xdisplay (); below.
7066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7067 <limits.h> exists even on freestanding compilers. */
7070 # include <limits.h>
7072 # include <assert.h>
7075 #undef gdk_x11_display_get_xdisplay
7077 /* Override any GCC internal prototype to avoid an error.
7078 Use char because int might match the return type of a GCC
7079 builtin and then its argument prototype would still apply. */
7083 char gdk_x11_display_get_xdisplay ();
7084 /* The GNU C library defines this for functions which it implements
7085 to always fail with ENOSYS. Some functions are actually named
7086 something starting with __ and the normal name is an alias. */
7087 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
7094 return gdk_x11_display_get_xdisplay ();
7099 rm -f conftest.$ac_objext conftest$ac_exeext
7100 if { (ac_try="$ac_link"
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7106 (eval "$ac_link") 2>conftest.er1
7108 grep -v '^ *+' conftest.er1 >conftest.err
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && {
7113 test -z "$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7115 } && test -s conftest$ac_exeext &&
7116 $as_test_x conftest$ac_exeext; then
7117 ac_cv_func_gdk_x11_display_get_xdisplay=yes
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7122 ac_cv_func_gdk_x11_display_get_xdisplay=no
7125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7126 conftest$ac_exeext conftest.$ac_ext
7128 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
7129 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
7130 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
7134 cat >>confdefs.h <<\_ACEOF
7135 #define HAVE_GTK_X11 1
7140 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
7141 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
7142 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 cat >conftest.$ac_ext <<_ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
7152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7153 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
7155 /* System header to define __stub macros and hopefully few prototypes,
7156 which can conflict with char gdk_quartz_window_get_nsview (); below.
7157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7158 <limits.h> exists even on freestanding compilers. */
7161 # include <limits.h>
7163 # include <assert.h>
7166 #undef gdk_quartz_window_get_nsview
7168 /* Override any GCC internal prototype to avoid an error.
7169 Use char because int might match the return type of a GCC
7170 builtin and then its argument prototype would still apply. */
7174 char gdk_quartz_window_get_nsview ();
7175 /* The GNU C library defines this for functions which it implements
7176 to always fail with ENOSYS. Some functions are actually named
7177 something starting with __ and the normal name is an alias. */
7178 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
7185 return gdk_quartz_window_get_nsview ();
7190 rm -f conftest.$ac_objext conftest$ac_exeext
7191 if { (ac_try="$ac_link"
7193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_link") 2>conftest.er1
7199 grep -v '^ *+' conftest.er1 >conftest.err
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest$ac_exeext &&
7207 $as_test_x conftest$ac_exeext; then
7208 ac_cv_func_gdk_quartz_window_get_nsview=yes
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 ac_cv_func_gdk_quartz_window_get_nsview=no
7216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7217 conftest$ac_exeext conftest.$ac_ext
7219 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
7220 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
7221 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
7225 cat >>confdefs.h <<\_ACEOF
7226 #define HAVE_GTK_OSX 1
7232 if test "x$with_osmesa" != xno; then
7236 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
7237 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
7238 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 ac_check_lib_save_LIBS=$LIBS
7242 LIBS="-lOSMesa $LIBS"
7243 cat >conftest.$ac_ext <<_ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7250 /* Override any GCC internal prototype to avoid an error.
7251 Use char because int might match the return type of a GCC
7252 builtin and then its argument prototype would still apply. */
7256 char OSMesaCreateContext ();
7260 return OSMesaCreateContext ();
7265 rm -f conftest.$ac_objext conftest$ac_exeext
7266 if { (ac_try="$ac_link"
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272 (eval "$ac_link") 2>conftest.er1
7274 grep -v '^ *+' conftest.er1 >conftest.err
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest$ac_exeext &&
7282 $as_test_x conftest$ac_exeext; then
7283 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7288 ac_cv_lib_OSMesa_OSMesaCreateContext=no
7291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7292 conftest$ac_exeext conftest.$ac_ext
7293 LIBS=$ac_check_lib_save_LIBS
7295 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
7296 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
7297 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
7298 cat >>confdefs.h <<_ACEOF
7299 #define HAVE_LIBOSMESA 1
7302 LIBS="-lOSMesa $LIBS"
7305 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
7306 See \`config.log' for more details." >&5
7307 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
7308 See \`config.log' for more details." >&2;}
7309 { (exit 1); exit 1; }; }
7312 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7313 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7314 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
7315 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7319 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
7321 # Is the header compilable?
7322 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
7323 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
7324 cat >conftest.$ac_ext <<_ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7330 $ac_includes_default
7331 #include <GL/osmesa.h>
7333 rm -f conftest.$ac_objext
7334 if { (ac_try="$ac_compile"
7336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7337 *) ac_try_echo=$ac_try;;
7339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7340 (eval "$ac_compile") 2>conftest.er1
7342 grep -v '^ *+' conftest.er1 >conftest.err
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } && {
7347 test -z "$ac_c_werror_flag" ||
7348 test ! -s conftest.err
7349 } && test -s conftest.$ac_objext; then
7350 ac_header_compiler=yes
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7355 ac_header_compiler=no
7358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7360 echo "${ECHO_T}$ac_header_compiler" >&6; }
7362 # Is the header present?
7363 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
7364 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
7365 cat >conftest.$ac_ext <<_ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 #include <GL/osmesa.h>
7373 if { (ac_try="$ac_cpp conftest.$ac_ext"
7375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7376 *) ac_try_echo=$ac_try;;
7378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7381 grep -v '^ *+' conftest.er1 >conftest.err
7383 cat conftest.err >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } >/dev/null && {
7386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7387 test ! -s conftest.err
7389 ac_header_preproc=yes
7391 echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7394 ac_header_preproc=no
7397 rm -f conftest.err conftest.$ac_ext
7398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7399 echo "${ECHO_T}$ac_header_preproc" >&6; }
7401 # So? What about this header?
7402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7404 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
7405 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7406 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
7407 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
7408 ac_header_preproc=yes
7411 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
7412 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
7413 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
7414 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
7416 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
7417 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
7418 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
7419 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
7420 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
7421 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
7422 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
7426 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7427 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
7428 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 ac_cv_header_GL_osmesa_h=$ac_header_preproc
7433 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7434 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
7437 if test $ac_cv_header_GL_osmesa_h = yes; then
7440 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
7441 See \`config.log' for more details." >&5
7442 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
7443 See \`config.log' for more details." >&2;}
7444 { (exit 1); exit 1; }; }
7450 cat >>confdefs.h <<\_ACEOF
7451 #define HAVE_OSMESA 1
7457 if test "x$APPLE_BUILD" != 'xyes'; then
7459 { echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
7460 echo $ECHO_N "checking for glVertex3f in -lGL... $ECHO_C" >&6; }
7461 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 ac_check_lib_save_LIBS=$LIBS
7466 cat >conftest.$ac_ext <<_ACEOF
7469 cat confdefs.h >>conftest.$ac_ext
7470 cat >>conftest.$ac_ext <<_ACEOF
7471 /* end confdefs.h. */
7473 /* Override any GCC internal prototype to avoid an error.
7474 Use char because int might match the return type of a GCC
7475 builtin and then its argument prototype would still apply. */
7483 return glVertex3f ();
7488 rm -f conftest.$ac_objext conftest$ac_exeext
7489 if { (ac_try="$ac_link"
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_link") 2>conftest.er1
7497 grep -v '^ *+' conftest.er1 >conftest.err
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest$ac_exeext &&
7505 $as_test_x conftest$ac_exeext; then
7506 ac_cv_lib_GL_glVertex3f=yes
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7511 ac_cv_lib_GL_glVertex3f=no
7514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7515 conftest$ac_exeext conftest.$ac_ext
7516 LIBS=$ac_check_lib_save_LIBS
7518 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
7519 echo "${ECHO_T}$ac_cv_lib_GL_glVertex3f" >&6; }
7520 if test $ac_cv_lib_GL_glVertex3f = yes; then
7521 cat >>confdefs.h <<_ACEOF
7522 #define HAVE_LIBGL 1
7529 { { echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7530 See \`config.log' for more details." >&5
7531 echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7532 See \`config.log' for more details." >&2;}
7533 { (exit 1); exit 1; }; }
7536 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7537 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7538 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
7539 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7543 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
7545 # Is the header compilable?
7546 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
7547 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
7548 cat >conftest.$ac_ext <<_ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 $ac_includes_default
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564 (eval "$ac_compile") 2>conftest.er1
7566 grep -v '^ *+' conftest.er1 >conftest.err
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } && {
7571 test -z "$ac_c_werror_flag" ||
7572 test ! -s conftest.err
7573 } && test -s conftest.$ac_objext; then
7574 ac_header_compiler=yes
7576 echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7579 ac_header_compiler=no
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7584 echo "${ECHO_T}$ac_header_compiler" >&6; }
7586 # Is the header present?
7587 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
7588 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
7589 cat >conftest.$ac_ext <<_ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7597 if { (ac_try="$ac_cpp conftest.$ac_ext"
7599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7600 *) ac_try_echo=$ac_try;;
7602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7605 grep -v '^ *+' conftest.er1 >conftest.err
7607 cat conftest.err >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } >/dev/null && {
7610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7611 test ! -s conftest.err
7613 ac_header_preproc=yes
7615 echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7618 ac_header_preproc=no
7621 rm -f conftest.err conftest.$ac_ext
7622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7623 echo "${ECHO_T}$ac_header_preproc" >&6; }
7625 # So? What about this header?
7626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7628 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7629 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7630 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
7631 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
7632 ac_header_preproc=yes
7635 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
7636 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
7637 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
7638 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
7639 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
7640 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
7641 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
7642 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7643 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
7644 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
7645 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
7646 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
7650 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7651 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
7652 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 ac_cv_header_GL_gl_h=$ac_header_preproc
7657 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7658 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
7661 if test $ac_cv_header_GL_gl_h = yes; then
7665 { { echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
7666 See \`config.log' for more details." >&5
7667 echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
7668 See \`config.log' for more details." >&2;}
7669 { (exit 1); exit 1; }; }
7675 if test "x$HAVE_GTK_X11" = "xyes"; then
7676 if test "x$APPLE_BUILD" = "xyes"; then
7677 LIBS="$LIBS -L/usr/X11/lib -lGL"
7679 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
7680 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
7681 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 cat >conftest.$ac_ext <<_ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
7691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7692 #define glXQueryVersion innocuous_glXQueryVersion
7694 /* System header to define __stub macros and hopefully few prototypes,
7695 which can conflict with char glXQueryVersion (); below.
7696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7697 <limits.h> exists even on freestanding compilers. */
7700 # include <limits.h>
7702 # include <assert.h>
7705 #undef glXQueryVersion
7707 /* Override any GCC internal prototype to avoid an error.
7708 Use char because int might match the return type of a GCC
7709 builtin and then its argument prototype would still apply. */
7713 char glXQueryVersion ();
7714 /* The GNU C library defines this for functions which it implements
7715 to always fail with ENOSYS. Some functions are actually named
7716 something starting with __ and the normal name is an alias. */
7717 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
7724 return glXQueryVersion ();
7729 rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (ac_try="$ac_link"
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736 (eval "$ac_link") 2>conftest.er1
7738 grep -v '^ *+' conftest.er1 >conftest.err
7740 cat conftest.err >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && {
7743 test -z "$ac_c_werror_flag" ||
7744 test ! -s conftest.err
7745 } && test -s conftest$ac_exeext &&
7746 $as_test_x conftest$ac_exeext; then
7747 ac_cv_func_glXQueryVersion=yes
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7752 ac_cv_func_glXQueryVersion=no
7755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7756 conftest$ac_exeext conftest.$ac_ext
7758 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
7759 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
7760 if test $ac_cv_func_glXQueryVersion = yes; then
7764 cat >>confdefs.h <<\_ACEOF
7770 elif test "x$HAVE_GTK_OSX" = "xyes"; then
7771 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
7772 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
7773 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 cat >conftest.$ac_ext <<_ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7782 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
7783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7784 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
7786 /* System header to define __stub macros and hopefully few prototypes,
7787 which can conflict with char NSOpenGLGetVersion (); below.
7788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7789 <limits.h> exists even on freestanding compilers. */
7792 # include <limits.h>
7794 # include <assert.h>
7797 #undef NSOpenGLGetVersion
7799 /* Override any GCC internal prototype to avoid an error.
7800 Use char because int might match the return type of a GCC
7801 builtin and then its argument prototype would still apply. */
7805 char NSOpenGLGetVersion ();
7806 /* The GNU C library defines this for functions which it implements
7807 to always fail with ENOSYS. Some functions are actually named
7808 something starting with __ and the normal name is an alias. */
7809 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
7816 return NSOpenGLGetVersion ();
7821 rm -f conftest.$ac_objext conftest$ac_exeext
7822 if { (ac_try="$ac_link"
7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_link") 2>conftest.er1
7830 grep -v '^ *+' conftest.er1 >conftest.err
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } && {
7835 test -z "$ac_c_werror_flag" ||
7836 test ! -s conftest.err
7837 } && test -s conftest$ac_exeext &&
7838 $as_test_x conftest$ac_exeext; then
7839 ac_cv_func_NSOpenGLGetVersion=yes
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 ac_cv_func_NSOpenGLGetVersion=no
7847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7848 conftest$ac_exeext conftest.$ac_ext
7850 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
7851 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
7852 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
7856 cat >>confdefs.h <<\_ACEOF
7869 if test "x$HAVE_OSMESA" = "x" -a "x$HAVE_GLX" = "x" -a "x$HAVE_NSGL" = "x"; then
7870 echo "Warning: Building with no video support"
7875 if test "x$HAVE_OSMESA" = "xyes"; then
7877 VIDEO_OSMESA_FALSE='#'
7879 VIDEO_OSMESA_TRUE='#'
7885 if test "x$HAVE_GLX" = "xyes"; then
7895 if test "x$HAVE_NSGL" = "xyes"; then
7897 VIDEO_NSGL_FALSE='#'
7904 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
7905 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
7906 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 cat >conftest.$ac_ext <<_ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
7916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7917 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
7919 /* System header to define __stub macros and hopefully few prototypes,
7920 which can conflict with char glGenFramebuffersEXT (); below.
7921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7922 <limits.h> exists even on freestanding compilers. */
7925 # include <limits.h>
7927 # include <assert.h>
7930 #undef glGenFramebuffersEXT
7932 /* Override any GCC internal prototype to avoid an error.
7933 Use char because int might match the return type of a GCC
7934 builtin and then its argument prototype would still apply. */
7938 char glGenFramebuffersEXT ();
7939 /* The GNU C library defines this for functions which it implements
7940 to always fail with ENOSYS. Some functions are actually named
7941 something starting with __ and the normal name is an alias. */
7942 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
7949 return glGenFramebuffersEXT ();
7954 rm -f conftest.$ac_objext conftest$ac_exeext
7955 if { (ac_try="$ac_link"
7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958 *) ac_try_echo=$ac_try;;
7960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961 (eval "$ac_link") 2>conftest.er1
7963 grep -v '^ *+' conftest.er1 >conftest.err
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } && {
7968 test -z "$ac_c_werror_flag" ||
7969 test ! -s conftest.err
7970 } && test -s conftest$ac_exeext &&
7971 $as_test_x conftest$ac_exeext; then
7972 ac_cv_func_glGenFramebuffersEXT=yes
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 ac_cv_func_glGenFramebuffersEXT=no
7980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7981 conftest$ac_exeext conftest.$ac_ext
7983 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
7984 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
7985 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
7987 cat >>confdefs.h <<\_ACEOF
7988 #define HAVE_OPENGL_FBO 1
7993 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
7994 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
7995 if test "${ac_cv_func_glCreateShader+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 cat >conftest.$ac_ext <<_ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8004 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
8005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8006 #define glCreateShader innocuous_glCreateShader
8008 /* System header to define __stub macros and hopefully few prototypes,
8009 which can conflict with char glCreateShader (); below.
8010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8011 <limits.h> exists even on freestanding compilers. */
8014 # include <limits.h>
8016 # include <assert.h>
8019 #undef glCreateShader
8021 /* Override any GCC internal prototype to avoid an error.
8022 Use char because int might match the return type of a GCC
8023 builtin and then its argument prototype would still apply. */
8027 char glCreateShader ();
8028 /* The GNU C library defines this for functions which it implements
8029 to always fail with ENOSYS. Some functions are actually named
8030 something starting with __ and the normal name is an alias. */
8031 #if defined __stub_glCreateShader || defined __stub___glCreateShader
8038 return glCreateShader ();
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (ac_try="$ac_link"
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_link") 2>conftest.er1
8052 grep -v '^ *+' conftest.er1 >conftest.err
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest$ac_exeext &&
8060 $as_test_x conftest$ac_exeext; then
8061 ac_cv_func_glCreateShader=yes
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 ac_cv_func_glCreateShader=no
8069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8070 conftest$ac_exeext conftest.$ac_ext
8072 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
8073 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
8074 if test $ac_cv_func_glCreateShader = yes; then
8076 cat >>confdefs.h <<\_ACEOF
8077 #define HAVE_OPENGL_SHADER 1
8082 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
8083 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
8084 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 cat >conftest.$ac_ext <<_ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8093 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
8094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8095 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
8097 /* System header to define __stub macros and hopefully few prototypes,
8098 which can conflict with char glCreateShaderObjectARB (); below.
8099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8100 <limits.h> exists even on freestanding compilers. */
8103 # include <limits.h>
8105 # include <assert.h>
8108 #undef glCreateShaderObjectARB
8110 /* Override any GCC internal prototype to avoid an error.
8111 Use char because int might match the return type of a GCC
8112 builtin and then its argument prototype would still apply. */
8116 char glCreateShaderObjectARB ();
8117 /* The GNU C library defines this for functions which it implements
8118 to always fail with ENOSYS. Some functions are actually named
8119 something starting with __ and the normal name is an alias. */
8120 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
8127 return glCreateShaderObjectARB ();
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (ac_try="$ac_link"
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_link") 2>conftest.er1
8141 grep -v '^ *+' conftest.er1 >conftest.err
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } && {
8146 test -z "$ac_c_werror_flag" ||
8147 test ! -s conftest.err
8148 } && test -s conftest$ac_exeext &&
8149 $as_test_x conftest$ac_exeext; then
8150 ac_cv_func_glCreateShaderObjectARB=yes
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8155 ac_cv_func_glCreateShaderObjectARB=no
8158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8159 conftest$ac_exeext conftest.$ac_ext
8161 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
8162 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
8163 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
8165 cat >>confdefs.h <<\_ACEOF
8166 #define HAVE_OPENGL_SHADER_ARB 1
8174 i386|i486|i586|i686|x86_64)
8175 SH4_TRANSLATOR="x86"
8177 cat >>confdefs.h <<_ACEOF
8178 #define SH4_TRANSLATOR TARGET_X86
8182 echo "Warning: No translator available for $host. Building emulation core only";;
8186 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
8188 BUILD_SH4X86_FALSE='#'
8190 BUILD_SH4X86_TRUE='#'
8196 if test "$SH4_TRANSLATOR" = "x86_64"; then
8198 BUILD_X86_64_FALSE='#'
8200 BUILD_X86_64_TRUE='#'
8207 { echo "$as_me:$LINENO: checking for PULSE" >&5
8208 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
8210 if test -n "$PKG_CONFIG"; then
8211 if test -n "$PULSE_CFLAGS"; then
8212 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
8214 if test -n "$PKG_CONFIG" && \
8215 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8216 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; then
8220 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
8228 if test -n "$PKG_CONFIG"; then
8229 if test -n "$PULSE_LIBS"; then
8230 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
8232 if test -n "$PKG_CONFIG" && \
8233 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8234 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; then
8238 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
8249 if test $pkg_failed = yes; then
8251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8252 _pkg_short_errors_supported=yes
8254 _pkg_short_errors_supported=no
8256 if test $_pkg_short_errors_supported = yes; then
8257 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
8259 PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
8261 # Put the nasty error message in config.log where it belongs
8262 echo "$PULSE_PKG_ERRORS" >&5
8264 { echo "$as_me:$LINENO: result: no" >&5
8265 echo "${ECHO_T}no" >&6; }
8267 elif test $pkg_failed = untried; then
8270 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
8271 PULSE_LIBS=$pkg_cv_PULSE_LIBS
8272 { echo "$as_me:$LINENO: result: yes" >&5
8273 echo "${ECHO_T}yes" >&6; }
8277 cat >>confdefs.h <<\_ACEOF
8278 #define HAVE_PULSE 1
8284 if test "$HAVE_PULSE" = 'yes' ; then
8286 AUDIO_PULSE_FALSE='#'
8288 AUDIO_PULSE_TRUE='#'
8295 { echo "$as_me:$LINENO: checking for ESOUND" >&5
8296 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
8298 if test -n "$PKG_CONFIG"; then
8299 if test -n "$ESOUND_CFLAGS"; then
8300 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
8302 if test -n "$PKG_CONFIG" && \
8303 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8304 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; then
8308 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
8316 if test -n "$PKG_CONFIG"; then
8317 if test -n "$ESOUND_LIBS"; then
8318 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
8320 if test -n "$PKG_CONFIG" && \
8321 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8322 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; then
8326 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
8337 if test $pkg_failed = yes; then
8339 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8340 _pkg_short_errors_supported=yes
8342 _pkg_short_errors_supported=no
8344 if test $_pkg_short_errors_supported = yes; then
8345 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
8347 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
8349 # Put the nasty error message in config.log where it belongs
8350 echo "$ESOUND_PKG_ERRORS" >&5
8352 { echo "$as_me:$LINENO: result: no" >&5
8353 echo "${ECHO_T}no" >&6; }
8355 elif test $pkg_failed = untried; then
8358 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
8359 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
8360 { echo "$as_me:$LINENO: result: yes" >&5
8361 echo "${ECHO_T}yes" >&6; }
8365 cat >>confdefs.h <<\_ACEOF
8366 #define HAVE_ESOUND 1
8372 if test "$HAVE_ESOUND" = 'yes' ; then
8374 AUDIO_ESOUND_FALSE='#'
8376 AUDIO_ESOUND_TRUE='#'
8383 { echo "$as_me:$LINENO: checking for ALSA" >&5
8384 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
8386 if test -n "$PKG_CONFIG"; then
8387 if test -n "$ALSA_CFLAGS"; then
8388 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
8390 if test -n "$PKG_CONFIG" && \
8391 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
8392 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; then
8396 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
8404 if test -n "$PKG_CONFIG"; then
8405 if test -n "$ALSA_LIBS"; then
8406 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
8408 if test -n "$PKG_CONFIG" && \
8409 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
8410 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; then
8414 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
8425 if test $pkg_failed = yes; then
8427 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8428 _pkg_short_errors_supported=yes
8430 _pkg_short_errors_supported=no
8432 if test $_pkg_short_errors_supported = yes; then
8433 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
8435 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
8437 # Put the nasty error message in config.log where it belongs
8438 echo "$ALSA_PKG_ERRORS" >&5
8440 { echo "$as_me:$LINENO: result: no" >&5
8441 echo "${ECHO_T}no" >&6; }
8443 elif test $pkg_failed = untried; then
8446 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
8447 ALSA_LIBS=$pkg_cv_ALSA_LIBS
8448 { echo "$as_me:$LINENO: result: yes" >&5
8449 echo "${ECHO_T}yes" >&6; }
8453 cat >>confdefs.h <<\_ACEOF
8460 if test "$HAVE_ALSA" = 'yes' ; then
8462 AUDIO_ALSA_FALSE='#'
8469 if test "x$HAVE_ESOUND" = "x" -a "x$HAVE_ALSA" = "x" -a "x$HAVE_PULSE" = "x"; then
8470 echo "Warning: Building without audio support"
8473 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8474 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
8475 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
8476 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
8480 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
8482 # Is the header compilable?
8483 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
8484 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
8485 cat >conftest.$ac_ext <<_ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8491 $ac_includes_default
8492 #include <linux/cdrom.h>
8494 rm -f conftest.$ac_objext
8495 if { (ac_try="$ac_compile"
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_compile") 2>conftest.er1
8503 grep -v '^ *+' conftest.er1 >conftest.err
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_c_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest.$ac_objext; then
8511 ac_header_compiler=yes
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 ac_header_compiler=no
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8521 echo "${ECHO_T}$ac_header_compiler" >&6; }
8523 # Is the header present?
8524 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
8525 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
8526 cat >conftest.$ac_ext <<_ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 #include <linux/cdrom.h>
8534 if { (ac_try="$ac_cpp conftest.$ac_ext"
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8542 grep -v '^ *+' conftest.er1 >conftest.err
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } >/dev/null && {
8547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8548 test ! -s conftest.err
8550 ac_header_preproc=yes
8552 echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8555 ac_header_preproc=no
8558 rm -f conftest.err conftest.$ac_ext
8559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8560 echo "${ECHO_T}$ac_header_preproc" >&6; }
8562 # So? What about this header?
8563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8565 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
8566 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
8568 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
8569 ac_header_preproc=yes
8572 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
8573 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
8575 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
8576 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
8577 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
8579 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
8581 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
8583 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
8587 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
8588 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
8589 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 ac_cv_header_linux_cdrom_h=$ac_header_preproc
8594 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
8595 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
8598 if test $ac_cv_header_linux_cdrom_h = yes; then
8599 HAVE_LINUX_CDROM_H=yes
8602 echo "Linux CDROM support not found, building without it."
8608 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
8610 CDROM_LINUX_FALSE='#'
8612 CDROM_LINUX_TRUE='#'
8617 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8618 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
8619 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
8620 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
8624 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
8626 # Is the header compilable?
8627 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
8628 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
8629 cat >conftest.$ac_ext <<_ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635 $ac_includes_default
8636 #include <linux/joystick.h>
8638 rm -f conftest.$ac_objext
8639 if { (ac_try="$ac_compile"
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645 (eval "$ac_compile") 2>conftest.er1
8647 grep -v '^ *+' conftest.er1 >conftest.err
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } && {
8652 test -z "$ac_c_werror_flag" ||
8653 test ! -s conftest.err
8654 } && test -s conftest.$ac_objext; then
8655 ac_header_compiler=yes
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 ac_header_compiler=no
8663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8665 echo "${ECHO_T}$ac_header_compiler" >&6; }
8667 # Is the header present?
8668 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
8669 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
8670 cat >conftest.$ac_ext <<_ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8676 #include <linux/joystick.h>
8678 if { (ac_try="$ac_cpp conftest.$ac_ext"
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8686 grep -v '^ *+' conftest.er1 >conftest.err
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } >/dev/null && {
8691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8692 test ! -s conftest.err
8694 ac_header_preproc=yes
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_header_preproc=no
8702 rm -f conftest.err conftest.$ac_ext
8703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8704 echo "${ECHO_T}$ac_header_preproc" >&6; }
8706 # So? What about this header?
8707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8709 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
8710 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
8712 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
8713 ac_header_preproc=yes
8716 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
8717 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
8718 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
8719 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
8720 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
8721 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
8723 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
8725 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
8727 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
8731 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
8732 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
8733 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 ac_cv_header_linux_joystick_h=$ac_header_preproc
8738 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
8739 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
8742 if test $ac_cv_header_linux_joystick_h = yes; then
8744 HAVE_LINUX_JOYSTICK_H=yes
8746 cat >>confdefs.h <<\_ACEOF
8747 #define HAVE_LINUX_JOYSTICK 1
8751 echo "Linux Joystick support not found, building without it."
8757 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
8766 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
8767 set dummy sh-elf-gcc; ac_word=$2
8768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8770 if test "${ac_cv_path_SHCC+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782 test -z "$as_dir" && as_dir=.
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8785 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
8786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 SHCC=$ac_cv_path_SHCC
8797 if test -n "$SHCC"; then
8798 { echo "$as_me:$LINENO: result: $SHCC" >&5
8799 echo "${ECHO_T}$SHCC" >&6; }
8801 { echo "$as_me:$LINENO: result: no" >&5
8802 echo "${ECHO_T}no" >&6; }
8806 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
8807 set dummy sh-elf-ld; ac_word=$2
8808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8810 if test "${ac_cv_path_SHLD+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 test -z "$as_dir" && as_dir=.
8823 for ac_exec_ext in '' $ac_executable_extensions; do
8824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8825 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
8826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8836 SHLD=$ac_cv_path_SHLD
8837 if test -n "$SHLD"; then
8838 { echo "$as_me:$LINENO: result: $SHLD" >&5
8839 echo "${ECHO_T}$SHLD" >&6; }
8841 { echo "$as_me:$LINENO: result: no" >&5
8842 echo "${ECHO_T}no" >&6; }
8846 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
8847 set dummy sh-elf-objcopy; ac_word=$2
8848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8850 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8855 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8865 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
8866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
8877 if test -n "$SHOBJCOPY"; then
8878 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
8879 echo "${ECHO_T}$SHOBJCOPY" >&6; }
8881 { echo "$as_me:$LINENO: result: no" >&5
8882 echo "${ECHO_T}no" >&6; }
8886 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
8887 set dummy arm-elf-gcc; ac_word=$2
8888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8890 if test "${ac_cv_path_ARMCC+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8905 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
8906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8916 ARMCC=$ac_cv_path_ARMCC
8917 if test -n "$ARMCC"; then
8918 { echo "$as_me:$LINENO: result: $ARMCC" >&5
8919 echo "${ECHO_T}$ARMCC" >&6; }
8921 { echo "$as_me:$LINENO: result: no" >&5
8922 echo "${ECHO_T}no" >&6; }
8926 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
8927 set dummy arm-elf-ld; ac_word=$2
8928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8930 if test "${ac_cv_path_ARMLD+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942 test -z "$as_dir" && as_dir=.
8943 for ac_exec_ext in '' $ac_executable_extensions; do
8944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8945 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
8946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8956 ARMLD=$ac_cv_path_ARMLD
8957 if test -n "$ARMLD"; then
8958 { echo "$as_me:$LINENO: result: $ARMLD" >&5
8959 echo "${ECHO_T}$ARMLD" >&6; }
8961 { echo "$as_me:$LINENO: result: no" >&5
8962 echo "${ECHO_T}no" >&6; }
8966 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
8967 set dummy arm-elf-objcopy; ac_word=$2
8968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8970 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8982 test -z "$as_dir" && as_dir=.
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8985 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
8986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8996 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
8997 if test -n "$ARMOBJCOPY"; then
8998 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
8999 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
9001 { echo "$as_me:$LINENO: result: no" >&5
9002 echo "${ECHO_T}no" >&6; }
9007 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
9009 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
9013 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
9015 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
9021 if test "$BUILD_SH" = "yes"; then
9023 BUILD_SYSTEST_FALSE='#'
9025 BUILD_SYSTEST_TRUE='#'
9026 BUILD_SYSTEST_FALSE=
9031 if test "$BUILD_ARM" = "yes"; then
9033 BUILD_ARMTEST_FALSE='#'
9035 BUILD_ARMTEST_TRUE='#'
9036 BUILD_ARMTEST_FALSE=
9041 GETTEXT_PACKAGE=lxdream
9044 cat >>confdefs.h <<_ACEOF
9045 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
9049 ALL_LINGUAS="de es it pt_BR"
9052 for ac_header in locale.h
9054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9061 ac_res=`eval echo '${'$as_ac_Header'}'`
9062 { echo "$as_me:$LINENO: result: $ac_res" >&5
9063 echo "${ECHO_T}$ac_res" >&6; }
9065 # Is the header compilable?
9066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9068 cat >conftest.$ac_ext <<_ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9074 $ac_includes_default
9075 #include <$ac_header>
9077 rm -f conftest.$ac_objext
9078 if { (ac_try="$ac_compile"
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_compile") 2>conftest.er1
9086 grep -v '^ *+' conftest.er1 >conftest.err
9088 cat conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } && {
9091 test -z "$ac_c_werror_flag" ||
9092 test ! -s conftest.err
9093 } && test -s conftest.$ac_objext; then
9094 ac_header_compiler=yes
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9099 ac_header_compiler=no
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9104 echo "${ECHO_T}$ac_header_compiler" >&6; }
9106 # Is the header present?
9107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9109 cat >conftest.$ac_ext <<_ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9115 #include <$ac_header>
9117 if { (ac_try="$ac_cpp conftest.$ac_ext"
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9125 grep -v '^ *+' conftest.er1 >conftest.err
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } >/dev/null && {
9130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9133 ac_header_preproc=yes
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_header_preproc=no
9141 rm -f conftest.err conftest.$ac_ext
9142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9143 echo "${ECHO_T}$ac_header_preproc" >&6; }
9145 # So? What about this header?
9146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9152 ac_header_preproc=yes
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 eval "$as_ac_Header=\$ac_header_preproc"
9177 ac_res=`eval echo '${'$as_ac_Header'}'`
9178 { echo "$as_me:$LINENO: result: $ac_res" >&5
9179 echo "${ECHO_T}$ac_res" >&6; }
9182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9183 cat >>confdefs.h <<_ACEOF
9184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9191 if test $ac_cv_header_locale_h = yes; then
9192 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9193 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9194 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 cat >conftest.$ac_ext <<_ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9212 rm -f conftest.$ac_objext conftest$ac_exeext
9213 if { (ac_try="$ac_link"
9215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216 *) ac_try_echo=$ac_try;;
9218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9219 (eval "$ac_link") 2>conftest.er1
9221 grep -v '^ *+' conftest.er1 >conftest.err
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && {
9226 test -z "$ac_c_werror_flag" ||
9227 test ! -s conftest.err
9228 } && test -s conftest$ac_exeext &&
9229 $as_test_x conftest$ac_exeext; then
9230 am_cv_val_LC_MESSAGES=yes
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9235 am_cv_val_LC_MESSAGES=no
9238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9239 conftest$ac_exeext conftest.$ac_ext
9241 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9242 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9243 if test $am_cv_val_LC_MESSAGES = yes; then
9245 cat >>confdefs.h <<\_ACEOF
9246 #define HAVE_LC_MESSAGES 1
9254 gt_cv_have_gettext=no
9260 if test "${ac_cv_header_libintl_h+set}" = set; then
9261 { echo "$as_me:$LINENO: checking for libintl.h" >&5
9262 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
9263 if test "${ac_cv_header_libintl_h+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9267 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
9269 # Is the header compilable?
9270 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
9271 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
9272 cat >conftest.$ac_ext <<_ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9278 $ac_includes_default
9279 #include <libintl.h>
9281 rm -f conftest.$ac_objext
9282 if { (ac_try="$ac_compile"
9284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285 *) ac_try_echo=$ac_try;;
9287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9288 (eval "$ac_compile") 2>conftest.er1
9290 grep -v '^ *+' conftest.er1 >conftest.err
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } && {
9295 test -z "$ac_c_werror_flag" ||
9296 test ! -s conftest.err
9297 } && test -s conftest.$ac_objext; then
9298 ac_header_compiler=yes
9300 echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.$ac_ext >&5
9303 ac_header_compiler=no
9306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9308 echo "${ECHO_T}$ac_header_compiler" >&6; }
9310 # Is the header present?
9311 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
9312 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
9313 cat >conftest.$ac_ext <<_ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9319 #include <libintl.h>
9321 if { (ac_try="$ac_cpp conftest.$ac_ext"
9323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324 *) ac_try_echo=$ac_try;;
9326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9329 grep -v '^ *+' conftest.er1 >conftest.err
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } >/dev/null && {
9334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9335 test ! -s conftest.err
9337 ac_header_preproc=yes
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9342 ac_header_preproc=no
9345 rm -f conftest.err conftest.$ac_ext
9346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9347 echo "${ECHO_T}$ac_header_preproc" >&6; }
9349 # So? What about this header?
9350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9352 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9353 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9354 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
9355 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
9356 ac_header_preproc=yes
9359 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
9360 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
9361 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
9362 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
9363 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
9364 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
9365 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
9366 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9367 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
9368 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
9369 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
9370 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
9374 { echo "$as_me:$LINENO: checking for libintl.h" >&5
9375 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
9376 if test "${ac_cv_header_libintl_h+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 ac_cv_header_libintl_h=$ac_header_preproc
9381 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9382 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
9385 if test $ac_cv_header_libintl_h = yes; then
9386 gt_cv_func_dgettext_libintl="no"
9387 libintl_extra_libs=""
9390 # First check in libc
9392 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
9393 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
9394 if test "${gt_cv_func_ngettext_libc+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9397 cat >conftest.$ac_ext <<_ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9404 #include <libintl.h>
9409 return !ngettext ("","", 1)
9414 rm -f conftest.$ac_objext conftest$ac_exeext
9415 if { (ac_try="$ac_link"
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_link") 2>conftest.er1
9423 grep -v '^ *+' conftest.er1 >conftest.err
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } && {
9428 test -z "$ac_c_werror_flag" ||
9429 test ! -s conftest.err
9430 } && test -s conftest$ac_exeext &&
9431 $as_test_x conftest$ac_exeext; then
9432 gt_cv_func_ngettext_libc=yes
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9437 gt_cv_func_ngettext_libc=no
9440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9441 conftest$ac_exeext conftest.$ac_ext
9444 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
9445 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
9447 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9448 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
9449 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
9450 if test "${gt_cv_func_dgettext_libc+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 cat >conftest.$ac_ext <<_ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h. */
9460 #include <libintl.h>
9465 return !dgettext ("","")
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (ac_try="$ac_link"
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_link") 2>conftest.er1
9479 grep -v '^ *+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && {
9484 test -z "$ac_c_werror_flag" ||
9485 test ! -s conftest.err
9486 } && test -s conftest$ac_exeext &&
9487 $as_test_x conftest$ac_exeext; then
9488 gt_cv_func_dgettext_libc=yes
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9493 gt_cv_func_dgettext_libc=no
9496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9497 conftest$ac_exeext conftest.$ac_ext
9500 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
9501 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
9504 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9506 for ac_func in bind_textdomain_codeset
9508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9522 #define $ac_func innocuous_$ac_func
9524 /* System header to define __stub macros and hopefully few prototypes,
9525 which can conflict with char $ac_func (); below.
9526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9527 <limits.h> exists even on freestanding compilers. */
9530 # include <limits.h>
9532 # include <assert.h>
9537 /* Override any GCC internal prototype to avoid an error.
9538 Use char because int might match the return type of a GCC
9539 builtin and then its argument prototype would still apply. */
9544 /* The GNU C library defines this for functions which it implements
9545 to always fail with ENOSYS. Some functions are actually named
9546 something starting with __ and the normal name is an alias. */
9547 #if defined __stub_$ac_func || defined __stub___$ac_func
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (ac_try="$ac_link"
9562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563 *) ac_try_echo=$ac_try;;
9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566 (eval "$ac_link") 2>conftest.er1
9568 grep -v '^ *+' conftest.er1 >conftest.err
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && {
9573 test -z "$ac_c_werror_flag" ||
9574 test ! -s conftest.err
9575 } && test -s conftest$ac_exeext &&
9576 $as_test_x conftest$ac_exeext; then
9577 eval "$as_ac_var=yes"
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9582 eval "$as_ac_var=no"
9585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9586 conftest$ac_exeext conftest.$ac_ext
9588 ac_res=`eval echo '${'$as_ac_var'}'`
9589 { echo "$as_me:$LINENO: result: $ac_res" >&5
9590 echo "${ECHO_T}$ac_res" >&6; }
9591 if test `eval echo '${'$as_ac_var'}'` = yes; then
9592 cat >>confdefs.h <<_ACEOF
9593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9602 # If we don't have everything we want, check in libintl
9604 if test "$gt_cv_func_dgettext_libc" != "yes" \
9605 || test "$gt_cv_func_ngettext_libc" != "yes" \
9606 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
9608 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
9609 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
9610 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 ac_check_lib_save_LIBS=$LIBS
9615 cat >conftest.$ac_ext <<_ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9622 /* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
9628 char bindtextdomain ();
9632 return bindtextdomain ();
9637 rm -f conftest.$ac_objext conftest$ac_exeext
9638 if { (ac_try="$ac_link"
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_link") 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } && {
9651 test -z "$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9653 } && test -s conftest$ac_exeext &&
9654 $as_test_x conftest$ac_exeext; then
9655 ac_cv_lib_intl_bindtextdomain=yes
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9660 ac_cv_lib_intl_bindtextdomain=no
9663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9664 conftest$ac_exeext conftest.$ac_ext
9665 LIBS=$ac_check_lib_save_LIBS
9667 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
9668 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
9669 if test $ac_cv_lib_intl_bindtextdomain = yes; then
9670 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
9671 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
9672 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 ac_check_lib_save_LIBS=$LIBS
9677 cat >conftest.$ac_ext <<_ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9684 /* Override any GCC internal prototype to avoid an error.
9685 Use char because int might match the return type of a GCC
9686 builtin and then its argument prototype would still apply. */
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (ac_try="$ac_link"
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706 (eval "$ac_link") 2>conftest.er1
9708 grep -v '^ *+' conftest.er1 >conftest.err
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } && {
9713 test -z "$ac_c_werror_flag" ||
9714 test ! -s conftest.err
9715 } && test -s conftest$ac_exeext &&
9716 $as_test_x conftest$ac_exeext; then
9717 ac_cv_lib_intl_ngettext=yes
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 ac_cv_lib_intl_ngettext=no
9725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9726 conftest$ac_exeext conftest.$ac_ext
9727 LIBS=$ac_check_lib_save_LIBS
9729 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
9730 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
9731 if test $ac_cv_lib_intl_ngettext = yes; then
9732 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
9733 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
9734 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 ac_check_lib_save_LIBS=$LIBS
9739 cat >conftest.$ac_ext <<_ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9746 /* Override any GCC internal prototype to avoid an error.
9747 Use char because int might match the return type of a GCC
9748 builtin and then its argument prototype would still apply. */
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_link") 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } && {
9775 test -z "$ac_c_werror_flag" ||
9776 test ! -s conftest.err
9777 } && test -s conftest$ac_exeext &&
9778 $as_test_x conftest$ac_exeext; then
9779 ac_cv_lib_intl_dgettext=yes
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9784 ac_cv_lib_intl_dgettext=no
9787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9788 conftest$ac_exeext conftest.$ac_ext
9789 LIBS=$ac_check_lib_save_LIBS
9791 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
9792 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
9793 if test $ac_cv_lib_intl_dgettext = yes; then
9794 gt_cv_func_dgettext_libintl=yes
9802 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
9803 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
9804 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
9805 { echo "$as_me:$LINENO: result: " >&5
9806 echo "${ECHO_T}" >&6; }
9807 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
9808 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
9809 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 ac_check_lib_save_LIBS=$LIBS
9813 LIBS="-lintl -liconv $LIBS"
9814 cat >conftest.$ac_ext <<_ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9821 /* Override any GCC internal prototype to avoid an error.
9822 Use char because int might match the return type of a GCC
9823 builtin and then its argument prototype would still apply. */
9836 rm -f conftest.$ac_objext conftest$ac_exeext
9837 if { (ac_try="$ac_link"
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_link") 2>conftest.er1
9845 grep -v '^ *+' conftest.er1 >conftest.err
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && {
9850 test -z "$ac_c_werror_flag" ||
9851 test ! -s conftest.err
9852 } && test -s conftest$ac_exeext &&
9853 $as_test_x conftest$ac_exeext; then
9854 ac_cv_lib_intl_ngettext=yes
9856 echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9859 ac_cv_lib_intl_ngettext=no
9862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9863 conftest$ac_exeext conftest.$ac_ext
9864 LIBS=$ac_check_lib_save_LIBS
9866 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
9867 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
9868 if test $ac_cv_lib_intl_ngettext = yes; then
9869 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
9870 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
9871 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 ac_check_lib_save_LIBS=$LIBS
9875 LIBS="-lintl -liconv $LIBS"
9876 cat >conftest.$ac_ext <<_ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9883 /* Override any GCC internal prototype to avoid an error.
9884 Use char because int might match the return type of a GCC
9885 builtin and then its argument prototype would still apply. */
9893 return dcgettext ();
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (ac_try="$ac_link"
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_link") 2>conftest.er1
9907 grep -v '^ *+' conftest.er1 >conftest.err
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } && {
9912 test -z "$ac_c_werror_flag" ||
9913 test ! -s conftest.err
9914 } && test -s conftest$ac_exeext &&
9915 $as_test_x conftest$ac_exeext; then
9916 ac_cv_lib_intl_dcgettext=yes
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9921 ac_cv_lib_intl_dcgettext=no
9924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9925 conftest$ac_exeext conftest.$ac_ext
9926 LIBS=$ac_check_lib_save_LIBS
9928 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
9929 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
9930 if test $ac_cv_lib_intl_dcgettext = yes; then
9931 gt_cv_func_dgettext_libintl=yes
9932 libintl_extra_libs=-liconv
9944 # If we found libintl, then check in it for bind_textdomain_codeset();
9945 # we'll prefer libc if neither have bind_textdomain_codeset(),
9946 # and both have dgettext and ngettext
9948 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
9949 glib_save_LIBS="$LIBS"
9950 LIBS="$LIBS -lintl $libintl_extra_libs"
9951 unset ac_cv_func_bind_textdomain_codeset
9953 for ac_func in bind_textdomain_codeset
9955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9969 #define $ac_func innocuous_$ac_func
9971 /* System header to define __stub macros and hopefully few prototypes,
9972 which can conflict with char $ac_func (); below.
9973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9974 <limits.h> exists even on freestanding compilers. */
9977 # include <limits.h>
9979 # include <assert.h>
9984 /* Override any GCC internal prototype to avoid an error.
9985 Use char because int might match the return type of a GCC
9986 builtin and then its argument prototype would still apply. */
9991 /* The GNU C library defines this for functions which it implements
9992 to always fail with ENOSYS. Some functions are actually named
9993 something starting with __ and the normal name is an alias. */
9994 #if defined __stub_$ac_func || defined __stub___$ac_func
10001 return $ac_func ();
10006 rm -f conftest.$ac_objext conftest$ac_exeext
10007 if { (ac_try="$ac_link"
10008 case "(($ac_try" in
10009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010 *) ac_try_echo=$ac_try;;
10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013 (eval "$ac_link") 2>conftest.er1
10015 grep -v '^ *+' conftest.er1 >conftest.err
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } && {
10020 test -z "$ac_c_werror_flag" ||
10021 test ! -s conftest.err
10022 } && test -s conftest$ac_exeext &&
10023 $as_test_x conftest$ac_exeext; then
10024 eval "$as_ac_var=yes"
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10029 eval "$as_ac_var=no"
10032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10033 conftest$ac_exeext conftest.$ac_ext
10035 ac_res=`eval echo '${'$as_ac_var'}'`
10036 { echo "$as_me:$LINENO: result: $ac_res" >&5
10037 echo "${ECHO_T}$ac_res" >&6; }
10038 if test `eval echo '${'$as_ac_var'}'` = yes; then
10039 cat >>confdefs.h <<_ACEOF
10040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10046 LIBS="$glib_save_LIBS"
10048 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
10049 gt_cv_func_dgettext_libc=no
10051 if test "$gt_cv_func_dgettext_libc" = "yes" \
10052 && test "$gt_cv_func_ngettext_libc" = "yes"; then
10053 gt_cv_func_dgettext_libintl=no
10059 if test "$gt_cv_func_dgettext_libc" = "yes" \
10060 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10061 gt_cv_have_gettext=yes
10064 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10065 INTLLIBS="-lintl $libintl_extra_libs"
10068 if test "$gt_cv_have_gettext" = "yes"; then
10070 cat >>confdefs.h <<\_ACEOF
10071 #define HAVE_GETTEXT 1
10074 # Extract the first word of "msgfmt", so it can be a program name with args.
10075 set dummy msgfmt; ac_word=$2
10076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10078 if test "${ac_cv_path_MSGFMT+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10087 for ac_dir in $PATH; do
10088 test -z "$ac_dir" && ac_dir=.
10089 if test -f $ac_dir/$ac_word; then
10090 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
10091 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10097 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
10101 MSGFMT="$ac_cv_path_MSGFMT"
10102 if test "$MSGFMT" != "no"; then
10103 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
10104 echo "${ECHO_T}$MSGFMT" >&6; }
10106 { echo "$as_me:$LINENO: result: no" >&5
10107 echo "${ECHO_T}no" >&6; }
10109 if test "$MSGFMT" != "no"; then
10110 glib_save_LIBS="$LIBS"
10111 LIBS="$LIBS $INTLLIBS"
10113 for ac_func in dcgettext
10115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 cat >conftest.$ac_ext <<_ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10129 #define $ac_func innocuous_$ac_func
10131 /* System header to define __stub macros and hopefully few prototypes,
10132 which can conflict with char $ac_func (); below.
10133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10134 <limits.h> exists even on freestanding compilers. */
10137 # include <limits.h>
10139 # include <assert.h>
10144 /* Override any GCC internal prototype to avoid an error.
10145 Use char because int might match the return type of a GCC
10146 builtin and then its argument prototype would still apply. */
10151 /* The GNU C library defines this for functions which it implements
10152 to always fail with ENOSYS. Some functions are actually named
10153 something starting with __ and the normal name is an alias. */
10154 #if defined __stub_$ac_func || defined __stub___$ac_func
10161 return $ac_func ();
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (ac_try="$ac_link"
10168 case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_link") 2>conftest.er1
10175 grep -v '^ *+' conftest.er1 >conftest.err
10177 cat conftest.err >&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } && {
10180 test -z "$ac_c_werror_flag" ||
10181 test ! -s conftest.err
10182 } && test -s conftest$ac_exeext &&
10183 $as_test_x conftest$ac_exeext; then
10184 eval "$as_ac_var=yes"
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10189 eval "$as_ac_var=no"
10192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193 conftest$ac_exeext conftest.$ac_ext
10195 ac_res=`eval echo '${'$as_ac_var'}'`
10196 { echo "$as_me:$LINENO: result: $ac_res" >&5
10197 echo "${ECHO_T}$ac_res" >&6; }
10198 if test `eval echo '${'$as_ac_var'}'` = yes; then
10199 cat >>confdefs.h <<_ACEOF
10200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10207 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
10208 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
10209 cat >conftest.foo <<_ACEOF
10213 "Content-Type: text/plain; charset=UTF-8\n"
10214 "Project-Id-Version: test 1.0\n"
10215 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
10216 "Last-Translator: test <foo@bar.xx>\n"
10217 "Language-Team: C <LL@li.org>\n"
10218 "MIME-Version: 1.0\n"
10219 "Content-Transfer-Encoding: 8bit\n"
10222 if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
10223 (msgfmt -c -o /dev/null conftest.foo) 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; then
10227 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
10228 echo "${ECHO_T}yes" >&6; }
10229 else { echo "$as_me:$LINENO: result: no" >&5
10230 echo "${ECHO_T}no" >&6; }
10231 echo "$as_me: failed input was:" >&5
10232 sed 's/^/| /' conftest.foo >&5
10235 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10236 set dummy gmsgfmt; ac_word=$2
10237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10239 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10251 test -z "$as_dir" && as_dir=.
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10254 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10262 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10266 GMSGFMT=$ac_cv_path_GMSGFMT
10267 if test -n "$GMSGFMT"; then
10268 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10269 echo "${ECHO_T}$GMSGFMT" >&6; }
10271 { echo "$as_me:$LINENO: result: no" >&5
10272 echo "${ECHO_T}no" >&6; }
10276 # Extract the first word of "xgettext", so it can be a program name with args.
10277 set dummy xgettext; ac_word=$2
10278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10280 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 case "$XGETTEXT" in
10285 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10289 for ac_dir in $PATH; do
10290 test -z "$ac_dir" && ac_dir=.
10291 if test -f $ac_dir/$ac_word; then
10292 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
10293 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
10299 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10303 XGETTEXT="$ac_cv_path_XGETTEXT"
10304 if test "$XGETTEXT" != ":"; then
10305 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10306 echo "${ECHO_T}$XGETTEXT" >&6; }
10308 { echo "$as_me:$LINENO: result: no" >&5
10309 echo "${ECHO_T}no" >&6; }
10312 cat >conftest.$ac_ext <<_ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h. */
10322 extern int _nl_msg_cat_cntr;
10323 return _nl_msg_cat_cntr
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (ac_try="$ac_link"
10330 case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_link") 2>conftest.er1
10337 grep -v '^ *+' conftest.er1 >conftest.err
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && {
10342 test -z "$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 } && test -s conftest$ac_exeext &&
10345 $as_test_x conftest$ac_exeext; then
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10354 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
10355 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
10356 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 cat >conftest.$ac_ext <<_ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10365 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
10366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10367 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
10369 /* System header to define __stub macros and hopefully few prototypes,
10370 which can conflict with char bind_textdomain_codeset (); below.
10371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10372 <limits.h> exists even on freestanding compilers. */
10375 # include <limits.h>
10377 # include <assert.h>
10380 #undef bind_textdomain_codeset
10382 /* Override any GCC internal prototype to avoid an error.
10383 Use char because int might match the return type of a GCC
10384 builtin and then its argument prototype would still apply. */
10388 char bind_textdomain_codeset ();
10389 /* The GNU C library defines this for functions which it implements
10390 to always fail with ENOSYS. Some functions are actually named
10391 something starting with __ and the normal name is an alias. */
10392 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
10399 return bind_textdomain_codeset ();
10404 rm -f conftest.$ac_objext conftest$ac_exeext
10405 if { (ac_try="$ac_link"
10406 case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_link") 2>conftest.er1
10413 grep -v '^ *+' conftest.er1 >conftest.err
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } && {
10418 test -z "$ac_c_werror_flag" ||
10419 test ! -s conftest.err
10420 } && test -s conftest$ac_exeext &&
10421 $as_test_x conftest$ac_exeext; then
10422 ac_cv_func_bind_textdomain_codeset=yes
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10427 ac_cv_func_bind_textdomain_codeset=no
10430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10431 conftest$ac_exeext conftest.$ac_ext
10433 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
10434 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
10435 if test $ac_cv_func_bind_textdomain_codeset = yes; then
10451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10452 conftest$ac_exeext conftest.$ac_ext
10453 LIBS="$glib_save_LIBS"
10456 gt_cv_have_gettext=no
10464 if test "$gt_cv_have_gettext" = "yes" ; then
10466 cat >>confdefs.h <<\_ACEOF
10467 #define ENABLE_NLS 1
10472 if test "$XGETTEXT" != ":"; then
10473 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
10476 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10477 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
10482 # We need to process the po/ directory.
10485 ac_config_commands="$ac_config_commands default-1"
10488 for lang in $ALL_LINGUAS; do
10489 GMOFILES="$GMOFILES $lang.gmo"
10490 POFILES="$POFILES $lang.po"
10505 if test "$gt_cv_have_gettext" = "yes"; then
10506 if test "x$ALL_LINGUAS" = "x"; then
10509 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10510 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
10512 for presentlang in $ALL_LINGUAS; do
10514 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
10515 desiredlanguages="$LINGUAS"
10517 desiredlanguages="$ALL_LINGUAS"
10519 for desiredlang in $desiredlanguages; do
10520 # Use the presentlang catalog if desiredlang is
10521 # a. equal to presentlang, or
10522 # b. a variant of presentlang (because in this case,
10523 # presentlang can be used as a fallback for messages
10524 # which are not translated in the desiredlang catalog).
10525 case "$desiredlang" in
10526 "$presentlang"*) useit=yes;;
10529 if test $useit = yes; then
10530 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
10533 LINGUAS=$NEW_LINGUAS
10534 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
10535 echo "${ECHO_T}$LINGUAS" >&6; }
10538 if test -n "$LINGUAS"; then
10539 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
10544 if test -n "$ac_aux_dir"; then
10545 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10547 if test -z "$MKINSTALLDIRS"; then
10548 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10552 test -d po || mkdir po
10553 if test "x$srcdir" != "x."; then
10554 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10555 posrcprefix="$srcdir/"
10557 posrcprefix="../$srcdir/"
10563 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10564 < $srcdir/po/POTFILES.in > po/POTFILES
10567 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
10569 cat >confcache <<\_ACEOF
10570 # This file is a shell script that caches the results of configure
10571 # tests run on this system so they can be shared between configure
10572 # scripts and configure runs, see configure's option --config-cache.
10573 # It is not useful on other systems. If it contains results you don't
10574 # want to keep, you may remove or edit it.
10576 # config.status only pays attention to the cache file if you give it
10577 # the --recheck option to rerun configure.
10579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10581 # following values.
10585 # The following way of writing the cache mishandles newlines in values,
10586 # but we know of no workaround that is simple, portable, and efficient.
10587 # So, we kill variables containing newlines.
10588 # Ultrix sh set writes to stderr and can't be redirected directly,
10589 # and sets the high bit in the cache file unless we assign to the vars.
10591 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10592 eval ac_val=\$$ac_var
10596 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10597 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10600 _ | IFS | as_nl) ;; #(
10601 *) $as_unset $ac_var ;;
10607 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10608 *${as_nl}ac_space=\ *)
10609 # `set' does not quote correctly, so add quotes (double-quote
10610 # substitution turns \\\\ into \\, and sed turns \\ into \).
10613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10616 # `set' quotes correctly as required by POSIX, so do not add quotes.
10617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10628 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10630 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10631 if test -w "$cache_file"; then
10632 test "x$cache_file" != "x/dev/null" &&
10633 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10634 echo "$as_me: updating cache $cache_file" >&6;}
10635 cat confcache >$cache_file
10637 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10638 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10643 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10644 # Let make expand exec_prefix.
10645 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10647 DEFS=-DHAVE_CONFIG_H
10651 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10652 # 1. Remove the extension, and $U if already installed.
10653 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10654 ac_i=`echo "$ac_i" | sed "$ac_script"`
10655 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10656 # will be set to the directory where LIBOBJS objects are built.
10657 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10658 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10660 LIBOBJS=$ac_libobjs
10662 LTLIBOBJS=$ac_ltlibobjs
10665 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10666 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10667 Usually this means the macro was only invoked conditionally." >&5
10668 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10669 Usually this means the macro was only invoked conditionally." >&2;}
10670 { (exit 1); exit 1; }; }
10672 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10673 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10674 Usually this means the macro was only invoked conditionally." >&5
10675 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10676 Usually this means the macro was only invoked conditionally." >&2;}
10677 { (exit 1); exit 1; }; }
10679 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10680 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10681 Usually this means the macro was only invoked conditionally." >&5
10682 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10683 Usually this means the macro was only invoked conditionally." >&2;}
10684 { (exit 1); exit 1; }; }
10686 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10687 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10688 Usually this means the macro was only invoked conditionally." >&5
10689 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10690 Usually this means the macro was only invoked conditionally." >&2;}
10691 { (exit 1); exit 1; }; }
10693 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10694 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10695 Usually this means the macro was only invoked conditionally." >&5
10696 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10697 Usually this means the macro was only invoked conditionally." >&2;}
10698 { (exit 1); exit 1; }; }
10700 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
10701 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
10702 Usually this means the macro was only invoked conditionally." >&5
10703 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
10704 Usually this means the macro was only invoked conditionally." >&2;}
10705 { (exit 1); exit 1; }; }
10707 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
10708 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
10709 Usually this means the macro was only invoked conditionally." >&5
10710 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
10711 Usually this means the macro was only invoked conditionally." >&2;}
10712 { (exit 1); exit 1; }; }
10714 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
10715 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
10716 Usually this means the macro was only invoked conditionally." >&5
10717 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
10718 Usually this means the macro was only invoked conditionally." >&2;}
10719 { (exit 1); exit 1; }; }
10721 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
10722 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
10723 Usually this means the macro was only invoked conditionally." >&5
10724 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
10725 Usually this means the macro was only invoked conditionally." >&2;}
10726 { (exit 1); exit 1; }; }
10728 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
10729 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
10730 Usually this means the macro was only invoked conditionally." >&5
10731 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
10732 Usually this means the macro was only invoked conditionally." >&2;}
10733 { (exit 1); exit 1; }; }
10735 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
10736 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
10737 Usually this means the macro was only invoked conditionally." >&5
10738 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
10739 Usually this means the macro was only invoked conditionally." >&2;}
10740 { (exit 1); exit 1; }; }
10742 if test -z "${BUILD_X86_64_TRUE}" && test -z "${BUILD_X86_64_FALSE}"; then
10743 { { echo "$as_me:$LINENO: error: conditional \"BUILD_X86_64\" was never defined.
10744 Usually this means the macro was only invoked conditionally." >&5
10745 echo "$as_me: error: conditional \"BUILD_X86_64\" was never defined.
10746 Usually this means the macro was only invoked conditionally." >&2;}
10747 { (exit 1); exit 1; }; }
10749 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
10750 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
10751 Usually this means the macro was only invoked conditionally." >&5
10752 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
10753 Usually this means the macro was only invoked conditionally." >&2;}
10754 { (exit 1); exit 1; }; }
10756 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
10757 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
10758 Usually this means the macro was only invoked conditionally." >&5
10759 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
10760 Usually this means the macro was only invoked conditionally." >&2;}
10761 { (exit 1); exit 1; }; }
10763 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
10764 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
10765 Usually this means the macro was only invoked conditionally." >&5
10766 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
10767 Usually this means the macro was only invoked conditionally." >&2;}
10768 { (exit 1); exit 1; }; }
10770 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
10771 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
10772 Usually this means the macro was only invoked conditionally." >&5
10773 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
10774 Usually this means the macro was only invoked conditionally." >&2;}
10775 { (exit 1); exit 1; }; }
10777 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
10778 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
10779 Usually this means the macro was only invoked conditionally." >&5
10780 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
10781 Usually this means the macro was only invoked conditionally." >&2;}
10782 { (exit 1); exit 1; }; }
10784 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
10785 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
10786 Usually this means the macro was only invoked conditionally." >&5
10787 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
10788 Usually this means the macro was only invoked conditionally." >&2;}
10789 { (exit 1); exit 1; }; }
10791 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
10792 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
10793 Usually this means the macro was only invoked conditionally." >&5
10794 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
10795 Usually this means the macro was only invoked conditionally." >&2;}
10796 { (exit 1); exit 1; }; }
10799 : ${CONFIG_STATUS=./config.status}
10800 ac_clean_files_save=$ac_clean_files
10801 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10802 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10803 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10804 cat >$CONFIG_STATUS <<_ACEOF
10806 # Generated by $as_me.
10807 # Run this file to recreate the current configuration.
10808 # Compiler output produced by configure, useful for debugging
10809 # configure, is in config.log if it exists.
10812 ac_cs_recheck=false
10814 SHELL=\${CONFIG_SHELL-$SHELL}
10817 cat >>$CONFIG_STATUS <<\_ACEOF
10818 ## --------------------- ##
10819 ## M4sh Initialization. ##
10820 ## --------------------- ##
10822 # Be more Bourne compatible
10823 DUALCASE=1; export DUALCASE # for MKS sh
10824 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10827 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10828 # is contrary to our usage. Disable this feature.
10829 alias -g '${1+"$@"}'='"$@"'
10830 setopt NO_GLOB_SUBST
10832 case `(set -o) 2>/dev/null` in
10833 *posix*) set -o posix ;;
10842 # Avoid depending upon Character Ranges.
10843 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10844 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10845 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10846 as_cr_digits='0123456789'
10847 as_cr_alnum=$as_cr_Letters$as_cr_digits
10849 # The user is always right.
10850 if test "${PATH_SEPARATOR+set}" != set; then
10851 echo "#! /bin/sh" >conf$$.sh
10852 echo "exit 0" >>conf$$.sh
10854 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10862 # Support unset when possible.
10863 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10871 # We need space, tab and new line, in precisely that order. Quoting is
10872 # there to prevent editors from complaining about space-tab.
10873 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10874 # splitting by setting IFS to empty value.)
10879 # Find who we are. Look in the path if we contain no directory separator.
10881 *[\\/]* ) as_myself=$0 ;;
10882 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883 for as_dir in $PATH
10886 test -z "$as_dir" && as_dir=.
10887 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10893 # We did not find ourselves, most probably we were run as `sh COMMAND'
10894 # in which case we are not to be found in the path.
10895 if test "x$as_myself" = x; then
10898 if test ! -f "$as_myself"; then
10899 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10900 { (exit 1); exit 1; }
10903 # Work around bugs in pre-3.0 UWIN ksh.
10904 for as_var in ENV MAIL MAILPATH
10905 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10913 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10914 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10915 LC_TELEPHONE LC_TIME
10917 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10918 eval $as_var=C; export $as_var
10920 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10924 # Required to use basename.
10925 if expr a : '\(a\)' >/dev/null 2>&1 &&
10926 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10932 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10933 as_basename=basename
10939 # Name of the executable.
10940 as_me=`$as_basename -- "$0" ||
10941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10942 X"$0" : 'X\(//\)$' \| \
10943 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10945 sed '/^.*\/\([^/][^/]*\)\/*$/{
10964 as_lineno_1=$LINENO
10965 as_lineno_2=$LINENO
10966 test "x$as_lineno_1" != "x$as_lineno_2" &&
10967 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10969 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10970 # uniformly replaced by the line number. The first 'sed' inserts a
10971 # line-number line after each line using $LINENO; the second 'sed'
10972 # does the real work. The second script uses 'N' to pair each
10973 # line-number line with the line containing $LINENO, and appends
10974 # trailing '-' during substitution so that $LINENO is not a special
10975 # case at line end.
10976 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10977 # scripts with optimization help from Paolo Bonzini. Blame Lee
10978 # E. McMahon (1931-1989) for sed's syntax. :-)
10990 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10993 ' >$as_me.lineno &&
10994 chmod +x "$as_me.lineno" ||
10995 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10996 { (exit 1); exit 1; }; }
10998 # Don't try to exec as it changes $[0], causing all sort of problems
10999 # (the dirname of $[0] is not the place where we might find the
11000 # original and so on. Autoconf is especially sensitive to this).
11001 . "./$as_me.lineno"
11002 # Exit status is that of the last command.
11007 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11013 ECHO_C= ECHO_N= ECHO_T=
11014 case `echo -n x` in
11016 case `echo 'x\c'` in
11017 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11024 if expr a : '\(a\)' >/dev/null 2>&1 &&
11025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11031 rm -f conf$$ conf$$.exe conf$$.file
11032 if test -d conf$$.dir; then
11033 rm -f conf$$.dir/conf$$.file
11039 if ln -s conf$$.file conf$$ 2>/dev/null; then
11041 # ... but there are two gotchas:
11042 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11043 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11044 # In both cases, we have to default to `cp -p'.
11045 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11047 elif ln conf$$.file conf$$ 2>/dev/null; then
11052 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11053 rmdir conf$$.dir 2>/dev/null
11055 if mkdir -p . 2>/dev/null; then
11058 test -d ./-p && rmdir ./-p
11062 if test -x / >/dev/null 2>&1; then
11063 as_test_x='test -x'
11065 if ls -dL / >/dev/null 2>&1; then
11072 if test -d "$1"; then
11078 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11079 ???[sx]*):;;*)false;;esac;fi
11083 as_executable_p=$as_test_x
11085 # Sed expression to map a string onto a valid CPP name.
11086 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11088 # Sed expression to map a string onto a valid variable name.
11089 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11094 # Save the log message, to keep $[0] and so on meaningful, and to
11095 # report actual input values of CONFIG_FILES etc. instead of their
11096 # values after options handling.
11098 This file was extended by $as_me, which was
11099 generated by GNU Autoconf 2.61. Invocation command line was
11101 CONFIG_FILES = $CONFIG_FILES
11102 CONFIG_HEADERS = $CONFIG_HEADERS
11103 CONFIG_LINKS = $CONFIG_LINKS
11104 CONFIG_COMMANDS = $CONFIG_COMMANDS
11107 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11112 cat >>$CONFIG_STATUS <<_ACEOF
11113 # Files that config.status was made for.
11114 config_files="$ac_config_files"
11115 config_headers="$ac_config_headers"
11116 config_commands="$ac_config_commands"
11120 cat >>$CONFIG_STATUS <<\_ACEOF
11122 \`$as_me' instantiates files from templates according to the
11123 current configuration.
11125 Usage: $0 [OPTIONS] [FILE]...
11127 -h, --help print this help, then exit
11128 -V, --version print version number and configuration settings, then exit
11129 -q, --quiet do not print progress messages
11130 -d, --debug don't remove temporary files
11131 --recheck update $as_me by reconfiguring in the same conditions
11132 --file=FILE[:TEMPLATE]
11133 instantiate the configuration file FILE
11134 --header=FILE[:TEMPLATE]
11135 instantiate the configuration header FILE
11137 Configuration files:
11140 Configuration headers:
11143 Configuration commands:
11146 Report bugs to <bug-autoconf@gnu.org>."
11149 cat >>$CONFIG_STATUS <<_ACEOF
11152 configured by $0, generated by GNU Autoconf 2.61,
11153 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11155 Copyright (C) 2006 Free Software Foundation, Inc.
11156 This config.status script is free software; the Free Software Foundation
11157 gives unlimited permission to copy, distribute and modify it."
11164 cat >>$CONFIG_STATUS <<\_ACEOF
11165 # If no file are specified by the user, then we need to provide default
11166 # value. By we need to know if files were specified by the user.
11172 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11173 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11184 # Handling of the options.
11185 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11187 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11188 echo "$ac_cs_version"; exit ;;
11189 --debug | --debu | --deb | --de | --d | -d )
11191 --file | --fil | --fi | --f )
11193 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11194 ac_need_defaults=false;;
11195 --header | --heade | --head | --hea )
11197 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11198 ac_need_defaults=false;;
11200 # Conflict between --help and --header
11201 { echo "$as_me: error: ambiguous option: $1
11202 Try \`$0 --help' for more information." >&2
11203 { (exit 1); exit 1; }; };;
11204 --help | --hel | -h )
11205 echo "$ac_cs_usage"; exit ;;
11206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11207 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11210 # This is an error.
11211 -*) { echo "$as_me: error: unrecognized option: $1
11212 Try \`$0 --help' for more information." >&2
11213 { (exit 1); exit 1; }; } ;;
11215 *) ac_config_targets="$ac_config_targets $1"
11216 ac_need_defaults=false ;;
11222 ac_configure_extra_args=
11224 if $ac_cs_silent; then
11226 ac_configure_extra_args="$ac_configure_extra_args --silent"
11230 cat >>$CONFIG_STATUS <<_ACEOF
11231 if \$ac_cs_recheck; then
11232 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11233 CONFIG_SHELL=$SHELL
11234 export CONFIG_SHELL
11235 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11239 cat >>$CONFIG_STATUS <<\_ACEOF
11243 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11244 ## Running $as_me. ##
11250 cat >>$CONFIG_STATUS <<_ACEOF
11254 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11259 cat >>$CONFIG_STATUS <<\_ACEOF
11261 # Handling of arguments.
11262 for ac_config_target in $ac_config_targets
11264 case $ac_config_target in
11265 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11266 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11267 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11268 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11269 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11270 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11271 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11273 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11274 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11275 { (exit 1); exit 1; }; };;
11280 # If the user did not use the arguments to specify the items to instantiate,
11281 # then the envvar interface is used. Set only those that are not.
11282 # We use the long form for the default assignment because of an extremely
11283 # bizarre bug on SunOS 4.1.3.
11284 if $ac_need_defaults; then
11285 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11286 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11287 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11290 # Have a temporary directory for convenience. Make it in the build tree
11291 # simply because there is no reason against having it here, and in addition,
11292 # creating and moving files from /tmp can sometimes cause problems.
11293 # Hook for its removal unless debugging.
11294 # Note that there is a small window in which the directory will not be cleaned:
11295 # after its creation but before its name has been assigned to `$tmp'.
11299 trap 'exit_status=$?
11300 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11302 trap '{ (exit 1); exit 1; }' 1 2 13 15
11304 # Create a (secure) tmp directory for tmp files.
11307 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11308 test -n "$tmp" && test -d "$tmp"
11311 tmp=./conf$$-$RANDOM
11312 (umask 077 && mkdir "$tmp")
11315 echo "$me: cannot create a temporary directory in ." >&2
11316 { (exit 1); exit 1; }
11320 # Set up the sed scripts for CONFIG_FILES section.
11323 # No need to generate the scripts if there are no CONFIG_FILES.
11324 # This happens for instance when ./config.status config.h
11325 if test -n "$CONFIG_FILES"; then
11332 for ac_last_try in false false false false false :; do
11333 cat >conf$$subs.sed <<_ACEOF
11334 SHELL!$SHELL$ac_delim
11335 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11336 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11337 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11338 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11339 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11340 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11341 exec_prefix!$exec_prefix$ac_delim
11342 prefix!$prefix$ac_delim
11343 program_transform_name!$program_transform_name$ac_delim
11344 bindir!$bindir$ac_delim
11345 sbindir!$sbindir$ac_delim
11346 libexecdir!$libexecdir$ac_delim
11347 datarootdir!$datarootdir$ac_delim
11348 datadir!$datadir$ac_delim
11349 sysconfdir!$sysconfdir$ac_delim
11350 sharedstatedir!$sharedstatedir$ac_delim
11351 localstatedir!$localstatedir$ac_delim
11352 includedir!$includedir$ac_delim
11353 oldincludedir!$oldincludedir$ac_delim
11354 docdir!$docdir$ac_delim
11355 infodir!$infodir$ac_delim
11356 htmldir!$htmldir$ac_delim
11357 dvidir!$dvidir$ac_delim
11358 pdfdir!$pdfdir$ac_delim
11359 psdir!$psdir$ac_delim
11360 libdir!$libdir$ac_delim
11361 localedir!$localedir$ac_delim
11362 mandir!$mandir$ac_delim
11363 DEFS!$DEFS$ac_delim
11364 ECHO_C!$ECHO_C$ac_delim
11365 ECHO_N!$ECHO_N$ac_delim
11366 ECHO_T!$ECHO_T$ac_delim
11367 LIBS!$LIBS$ac_delim
11368 build_alias!$build_alias$ac_delim
11369 host_alias!$host_alias$ac_delim
11370 target_alias!$target_alias$ac_delim
11371 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11372 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11373 INSTALL_DATA!$INSTALL_DATA$ac_delim
11374 CYGPATH_W!$CYGPATH_W$ac_delim
11375 PACKAGE!$PACKAGE$ac_delim
11376 VERSION!$VERSION$ac_delim
11377 ACLOCAL!$ACLOCAL$ac_delim
11378 AUTOCONF!$AUTOCONF$ac_delim
11379 AUTOMAKE!$AUTOMAKE$ac_delim
11380 AUTOHEADER!$AUTOHEADER$ac_delim
11381 MAKEINFO!$MAKEINFO$ac_delim
11382 install_sh!$install_sh$ac_delim
11383 STRIP!$STRIP$ac_delim
11384 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11385 mkdir_p!$mkdir_p$ac_delim
11387 SET_MAKE!$SET_MAKE$ac_delim
11388 am__leading_dot!$am__leading_dot$ac_delim
11389 AMTAR!$AMTAR$ac_delim
11390 am__tar!$am__tar$ac_delim
11391 am__untar!$am__untar$ac_delim
11392 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
11393 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
11394 MAINT!$MAINT$ac_delim
11396 CFLAGS!$CFLAGS$ac_delim
11397 LDFLAGS!$LDFLAGS$ac_delim
11398 CPPFLAGS!$CPPFLAGS$ac_delim
11399 ac_ct_CC!$ac_ct_CC$ac_delim
11400 EXEEXT!$EXEEXT$ac_delim
11401 OBJEXT!$OBJEXT$ac_delim
11402 DEPDIR!$DEPDIR$ac_delim
11403 am__include!$am__include$ac_delim
11404 am__quote!$am__quote$ac_delim
11405 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11406 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11407 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11408 CCDEPMODE!$CCDEPMODE$ac_delim
11409 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
11410 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
11411 CCAS!$CCAS$ac_delim
11412 CCASFLAGS!$CCASFLAGS$ac_delim
11414 GREP!$GREP$ac_delim
11415 EGREP!$EGREP$ac_delim
11416 build!$build$ac_delim
11417 build_cpu!$build_cpu$ac_delim
11418 build_vendor!$build_vendor$ac_delim
11419 build_os!$build_os$ac_delim
11420 host!$host$ac_delim
11421 host_cpu!$host_cpu$ac_delim
11422 host_vendor!$host_vendor$ac_delim
11423 host_os!$host_os$ac_delim
11424 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
11425 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
11426 PKG_CONFIG!$PKG_CONFIG$ac_delim
11427 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
11428 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
11429 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
11430 GTK_LIBS!$GTK_LIBS$ac_delim
11433 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11435 elif $ac_last_try; then
11436 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11437 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11438 { (exit 1); exit 1; }; }
11440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11444 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11445 if test -n "$ac_eof"; then
11446 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11447 ac_eof=`expr $ac_eof + 1`
11450 cat >>$CONFIG_STATUS <<_ACEOF
11451 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11452 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11455 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11456 s/^/s,@/; s/!/@,|#_!!_#|/
11459 s/'"$ac_delim"'$/,g/; t
11461 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11462 ' >>$CONFIG_STATUS <conf$$subs.sed
11463 rm -f conf$$subs.sed
11464 cat >>$CONFIG_STATUS <<_ACEOF
11470 for ac_last_try in false false false false false :; do
11471 cat >conf$$subs.sed <<_ACEOF
11472 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
11473 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
11474 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
11475 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
11476 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
11477 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
11478 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
11479 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
11480 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
11481 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
11482 BUILD_X86_64_TRUE!$BUILD_X86_64_TRUE$ac_delim
11483 BUILD_X86_64_FALSE!$BUILD_X86_64_FALSE$ac_delim
11484 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
11485 PULSE_LIBS!$PULSE_LIBS$ac_delim
11486 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
11487 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
11488 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
11489 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
11490 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
11491 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
11492 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
11493 ALSA_LIBS!$ALSA_LIBS$ac_delim
11494 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
11495 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
11496 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
11497 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
11498 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
11499 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
11500 SHCC!$SHCC$ac_delim
11501 SHLD!$SHLD$ac_delim
11502 SHOBJCOPY!$SHOBJCOPY$ac_delim
11503 ARMCC!$ARMCC$ac_delim
11504 ARMLD!$ARMLD$ac_delim
11505 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
11506 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
11507 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
11508 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
11509 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
11510 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
11511 USE_NLS!$USE_NLS$ac_delim
11512 MSGFMT!$MSGFMT$ac_delim
11513 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
11514 GMSGFMT!$GMSGFMT$ac_delim
11515 XGETTEXT!$XGETTEXT$ac_delim
11516 CATALOGS!$CATALOGS$ac_delim
11517 CATOBJEXT!$CATOBJEXT$ac_delim
11518 DATADIRNAME!$DATADIRNAME$ac_delim
11519 GMOFILES!$GMOFILES$ac_delim
11520 INSTOBJEXT!$INSTOBJEXT$ac_delim
11521 INTLLIBS!$INTLLIBS$ac_delim
11522 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
11523 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
11524 POFILES!$POFILES$ac_delim
11525 POSUB!$POSUB$ac_delim
11526 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
11527 LIBOBJS!$LIBOBJS$ac_delim
11528 LTLIBOBJS!$LTLIBOBJS$ac_delim
11531 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
11533 elif $ac_last_try; then
11534 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11535 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11536 { (exit 1); exit 1; }; }
11538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11542 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11543 if test -n "$ac_eof"; then
11544 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11545 ac_eof=`expr $ac_eof + 1`
11548 cat >>$CONFIG_STATUS <<_ACEOF
11549 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11553 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11554 s/^/s,@/; s/!/@,|#_!!_#|/
11557 s/'"$ac_delim"'$/,g/; t
11559 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11560 ' >>$CONFIG_STATUS <conf$$subs.sed
11561 rm -f conf$$subs.sed
11562 cat >>$CONFIG_STATUS <<_ACEOF
11569 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11570 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11571 # trailing colons and then remove the whole line if VPATH becomes empty
11572 # (actually we leave an empty line to preserve line numbers).
11573 if test "x$srcdir" = x.; then
11574 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11575 s/:*\$(srcdir):*/:/
11576 s/:*\${srcdir}:*/:/
11578 s/^\([^=]*=[ ]*\):*/\1/
11584 cat >>$CONFIG_STATUS <<\_ACEOF
11585 fi # test -n "$CONFIG_FILES"
11588 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11591 :[FHLC]) ac_mode=$ac_tag; continue;;
11593 case $ac_mode$ac_tag in
11595 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11596 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11597 { (exit 1); exit 1; }; };;
11598 :[FH]-) ac_tag=-:-;;
11599 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11616 -) ac_f="$tmp/stdin";;
11617 *) # Look for the file first in the build tree, then in the source tree
11618 # (if the path is not absolute). The absolute path cannot be DOS-style,
11619 # because $ac_f cannot contain `:'.
11623 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11625 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11626 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11627 { (exit 1); exit 1; }; };;
11629 ac_file_inputs="$ac_file_inputs $ac_f"
11632 # Let's still pretend it is `configure' which instantiates (i.e., don't
11633 # use $as_me), people would be surprised to read:
11634 # /* config.h. Generated by config.status. */
11635 configure_input="Generated from "`IFS=:
11636 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11637 if test x"$ac_file" != x-; then
11638 configure_input="$ac_file. $configure_input"
11639 { echo "$as_me:$LINENO: creating $ac_file" >&5
11640 echo "$as_me: creating $ac_file" >&6;}
11644 *:-:* | *:-) cat >"$tmp/stdin";;
11649 ac_dir=`$as_dirname -- "$ac_file" ||
11650 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11651 X"$ac_file" : 'X\(//\)[^/]' \| \
11652 X"$ac_file" : 'X\(//\)$' \| \
11653 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11659 /^X\(\/\/\)[^/].*/{
11674 -*) as_dir=./$as_dir;;
11676 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11680 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11681 *) as_qdir=$as_dir;;
11683 as_dirs="'$as_qdir' $as_dirs"
11684 as_dir=`$as_dirname -- "$as_dir" ||
11685 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11686 X"$as_dir" : 'X\(//\)[^/]' \| \
11687 X"$as_dir" : 'X\(//\)$' \| \
11688 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11694 /^X\(\/\/\)[^/].*/{
11707 test -d "$as_dir" && break
11709 test -z "$as_dirs" || eval "mkdir $as_dirs"
11710 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11711 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11712 { (exit 1); exit 1; }; }; }
11716 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11718 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11719 # A ".." for each directory in $ac_dir_suffix.
11720 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11721 case $ac_top_builddir_sub in
11722 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11723 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11726 ac_abs_top_builddir=$ac_pwd
11727 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11728 # for backward compatibility:
11729 ac_top_builddir=$ac_top_build_prefix
11732 .) # We are building in place.
11734 ac_top_srcdir=$ac_top_builddir_sub
11735 ac_abs_top_srcdir=$ac_pwd ;;
11736 [\\/]* | ?:[\\/]* ) # Absolute name.
11737 ac_srcdir=$srcdir$ac_dir_suffix;
11738 ac_top_srcdir=$srcdir
11739 ac_abs_top_srcdir=$srcdir ;;
11740 *) # Relative name.
11741 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11742 ac_top_srcdir=$ac_top_build_prefix$srcdir
11743 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11745 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11755 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11756 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11760 cat >>$CONFIG_STATUS <<\_ACEOF
11761 # If the template does not know about datarootdir, expand it.
11762 # FIXME: This hack should be removed a few years after 2.60.
11763 ac_datarootdir_hack=; ac_datarootdir_seen=
11765 case `sed -n '/datarootdir/ {
11774 ' $ac_file_inputs` in
11775 *datarootdir*) ac_datarootdir_seen=yes;;
11776 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11777 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11778 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11780 cat >>$CONFIG_STATUS <<_ACEOF
11781 ac_datarootdir_hack='
11782 s&@datadir@&$datadir&g
11783 s&@docdir@&$docdir&g
11784 s&@infodir@&$infodir&g
11785 s&@localedir@&$localedir&g
11786 s&@mandir@&$mandir&g
11787 s&\\\${datarootdir}&$datarootdir&g' ;;
11791 # Neutralize VPATH when `$srcdir' = `.'.
11792 # Shell code in configure.ac might set extrasub.
11793 # FIXME: do we really want to maintain this feature?
11794 cat >>$CONFIG_STATUS <<_ACEOF
11798 cat >>$CONFIG_STATUS <<\_ACEOF
11800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11801 s&@configure_input@&$configure_input&;t t
11802 s&@top_builddir@&$ac_top_builddir_sub&;t t
11803 s&@srcdir@&$ac_srcdir&;t t
11804 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11805 s&@top_srcdir@&$ac_top_srcdir&;t t
11806 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11807 s&@builddir@&$ac_builddir&;t t
11808 s&@abs_builddir@&$ac_abs_builddir&;t t
11809 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11810 s&@INSTALL@&$ac_INSTALL&;t t
11811 $ac_datarootdir_hack
11812 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11814 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11815 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11816 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11817 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11818 which seems to be undefined. Please make sure it is defined." >&5
11819 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11820 which seems to be undefined. Please make sure it is defined." >&2;}
11824 -) cat "$tmp/out"; rm -f "$tmp/out";;
11825 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11834 # Transform confdefs.h into a sed script `conftest.defines', that
11835 # substitutes the proper values into config.h.in to produce config.h.
11836 rm -f conftest.defines conftest.tail
11837 # First, append a space to every undef/define line, to ease matching.
11838 echo 's/$/ /' >conftest.defines
11839 # Then, protect against being on the right side of a sed subst, or in
11840 # an unquoted here document, in config.status. If some macros were
11841 # called several times there might be several #defines for the same
11842 # symbol, which is useless. But do not sort them, since the last
11843 # AC_DEFINE must be honored.
11844 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11845 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11846 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11847 # PARAMS is the parameter list in the macro definition--in most cases, it's
11848 # just an empty string.
11849 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11850 ac_dB='\\)[ (].*,\\1define\\2'
11858 s/^[ ]*#[ ]*define[ ][ ]*//
11863 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11864 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11865 ' >>conftest.defines
11867 # Remove the space that was appended to ease matching.
11868 # Then replace #undef with comments. This is necessary, for
11869 # example, in the case of _POSIX_SOURCE, which is predefined and required
11870 # on some systems where configure will not decide to define it.
11871 # (The regexp can be short, since the line contains either #define or #undef.)
11873 s,^[ #]*u.*,/* & */,' >>conftest.defines
11875 # Break up conftest.defines:
11876 ac_max_sed_lines=50
11878 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11879 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11880 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11882 ac_in='$ac_file_inputs'
11883 ac_out='"$tmp/out1"'
11884 ac_nxt='"$tmp/out2"'
11888 # Write a here document:
11889 cat >>$CONFIG_STATUS <<_ACEOF
11890 # First, check the format of the line:
11891 cat >"\$tmp/defines.sed" <<\\CEOF
11892 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11893 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11897 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11899 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11900 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11901 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11902 grep . conftest.tail >/dev/null || break
11903 rm -f conftest.defines
11904 mv conftest.tail conftest.defines
11906 rm -f conftest.defines conftest.tail
11908 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11909 cat >>$CONFIG_STATUS <<\_ACEOF
11910 if test x"$ac_file" != x-; then
11911 echo "/* $configure_input */" >"$tmp/config.h"
11912 cat "$ac_result" >>"$tmp/config.h"
11913 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11914 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11915 echo "$as_me: $ac_file is unchanged" >&6;}
11918 mv "$tmp/config.h" $ac_file
11921 echo "/* $configure_input */"
11925 # Compute $ac_file's index in $config_headers.
11927 for _am_header in $config_headers :; do
11928 case $_am_header in
11929 $ac_file | $ac_file:* )
11932 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11935 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
11936 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11937 X$ac_file : 'X\(//\)[^/]' \| \
11938 X$ac_file : 'X\(//\)$' \| \
11939 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
11941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11945 /^X\(\/\/\)[^/].*/{
11957 s/.*/./; q'`/stamp-h$_am_stamp_count
11960 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11961 echo "$as_me: executing $ac_file commands" >&6;}
11966 case $ac_file$ac_mode in
11967 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11968 # Strip MF so we end up with the name of the file.
11969 mf=`echo "$mf" | sed -e 's/:.*$//'`
11970 # Check whether this is an Automake generated Makefile or not.
11971 # We used to match only the files named `Makefile.in', but
11972 # some people rename them; so instead we look at the file content.
11973 # Grep'ing the first line is not enough: some people post-process
11974 # each Makefile.in and add a new line on top of each file to say so.
11975 # So let's grep whole file.
11976 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11977 dirpart=`$as_dirname -- "$mf" ||
11978 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11979 X"$mf" : 'X\(//\)[^/]' \| \
11980 X"$mf" : 'X\(//\)$' \| \
11981 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11987 /^X\(\/\/\)[^/].*/{
12003 # Extract the definition of DEPDIR, am__include, and am__quote
12004 # from the Makefile without running `make'.
12005 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12006 test -z "$DEPDIR" && continue
12007 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12008 test -z "am__include" && continue
12009 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12010 # When using ansi2knr, U may be empty or an underscore; expand it
12011 U=`sed -n 's/^U = //p' < "$mf"`
12012 # Find all dependency output files, they are included files with
12013 # $(DEPDIR) in their names. We invoke sed twice because it is the
12014 # simplest approach to changing $(DEPDIR) to its actual value in the
12016 for file in `sed -n "
12017 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12018 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12019 # Make sure the directory exists.
12020 test -f "$dirpart/$file" && continue
12021 fdir=`$as_dirname -- "$file" ||
12022 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12023 X"$file" : 'X\(//\)[^/]' \| \
12024 X"$file" : 'X\(//\)$' \| \
12025 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12031 /^X\(\/\/\)[^/].*/{
12044 { as_dir=$dirpart/$fdir
12046 -*) as_dir=./$as_dir;;
12048 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12052 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12053 *) as_qdir=$as_dir;;
12055 as_dirs="'$as_qdir' $as_dirs"
12056 as_dir=`$as_dirname -- "$as_dir" ||
12057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12058 X"$as_dir" : 'X\(//\)[^/]' \| \
12059 X"$as_dir" : 'X\(//\)$' \| \
12060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12066 /^X\(\/\/\)[^/].*/{
12079 test -d "$as_dir" && break
12081 test -z "$as_dirs" || eval "mkdir $as_dirs"
12082 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12083 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12084 { (exit 1); exit 1; }; }; }
12085 # echo "creating $dirpart/$file"
12086 echo '# dummy' > "$dirpart/$file"
12090 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
12091 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
12098 { (exit 0); exit 0; }
12100 chmod +x $CONFIG_STATUS
12101 ac_clean_files=$ac_clean_files_save
12104 # configure is writing to config.log, and then calls config.status.
12105 # config.status does its own redirection, appending to config.log.
12106 # Unfortunately, on DOS this fails, as config.log is still kept open
12107 # by configure, so config.status won't be able to write to it; its
12108 # output is simply discarded. So we exec the FD to /dev/null,
12109 # effectively closing config.log, so it can be properly (re)opened and
12110 # appended to by config.status. When coming back to configure, we
12111 # need to make the FD available again.
12112 if test "$no_create" != yes; then
12114 ac_config_status_args=
12115 test "$silent" = yes &&
12116 ac_config_status_args="$ac_config_status_args --quiet"
12118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12121 # would make configure fail if this is the last instruction.
12122 $ac_cs_success || { (exit 1); exit 1; }
.