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 # Make sure we can run config.sub.
5634 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5635 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5636 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5637 { (exit 1); exit 1; }; }
5639 { echo "$as_me:$LINENO: checking build system type" >&5
5640 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5641 if test "${ac_cv_build+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 ac_build_alias=$build_alias
5645 test "x$ac_build_alias" = x &&
5646 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5647 test "x$ac_build_alias" = x &&
5648 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5649 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5650 { (exit 1); exit 1; }; }
5651 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5652 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5653 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5654 { (exit 1); exit 1; }; }
5657 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5658 echo "${ECHO_T}$ac_cv_build" >&6; }
5659 case $ac_cv_build in
5661 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5662 echo "$as_me: error: invalid value of canonical build" >&2;}
5663 { (exit 1); exit 1; }; };;
5666 ac_save_IFS=$IFS; IFS='-'
5672 # Remember, the first character of IFS is used to create $*,
5673 # except with old shells:
5676 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5679 { echo "$as_me:$LINENO: checking host system type" >&5
5680 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5681 if test "${ac_cv_host+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 if test "x$host_alias" = x; then
5685 ac_cv_host=$ac_cv_build
5687 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5688 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5689 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5690 { (exit 1); exit 1; }; }
5694 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5695 echo "${ECHO_T}$ac_cv_host" >&6; }
5698 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5699 echo "$as_me: error: invalid value of canonical host" >&2;}
5700 { (exit 1); exit 1; }; };;
5703 ac_save_IFS=$IFS; IFS='-'
5709 # Remember, the first character of IFS is used to create $*,
5710 # except with old shells:
5713 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5716 # Check whether --enable-trace was given.
5717 if test "${enable_trace+set}" = set; then
5718 enableval=$enable_trace; if test "$enableval" == "yes"; then
5720 cat >>confdefs.h <<\_ACEOF
5721 #define ENABLE_TRACE_IO 1
5727 # Check whether --enable-watch was given.
5728 if test "${enable_watch+set}" = set; then
5729 enableval=$enable_watch; if test "$enableval" == "yes"; then
5731 cat >>confdefs.h <<\_ACEOF
5732 #define ENABLE_WATCH 1
5738 # Check whether --enable-sh4stats was given.
5739 if test "${enable_sh4stats+set}" = set; then
5740 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
5742 cat >>confdefs.h <<\_ACEOF
5743 #define ENABLE_SH4STATS 1
5750 # Check whether --with-osmesa was given.
5751 if test "${with_osmesa+set}" = set; then
5752 withval=$with_osmesa;
5760 lxdream_save_cppflags="$CPPFLAGS"
5761 CPPFLAGS="$CPPFLAGS -x objective-c"
5762 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5772 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5773 inttypes.h stdint.h unistd.h
5775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 cat >conftest.$ac_ext <<_ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 $ac_includes_default
5789 #include <$ac_header>
5791 rm -f conftest.$ac_objext
5792 if { (ac_try="$ac_compile"
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798 (eval "$ac_compile") 2>conftest.er1
5800 grep -v '^ *+' conftest.er1 >conftest.err
5802 cat conftest.err >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } && {
5805 test -z "$ac_c_werror_flag" ||
5806 test ! -s conftest.err
5807 } && test -s conftest.$ac_objext; then
5808 eval "$as_ac_Header=yes"
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 eval "$as_ac_Header=no"
5816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 ac_res=`eval echo '${'$as_ac_Header'}'`
5819 { echo "$as_me:$LINENO: result: $ac_res" >&5
5820 echo "${ECHO_T}$ac_res" >&6; }
5821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5822 cat >>confdefs.h <<_ACEOF
5823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5831 cat >conftest.$ac_ext <<_ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5846 rm -f conftest.$ac_objext
5847 if { (ac_try="$ac_compile"
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_compile") 2>conftest.er1
5855 grep -v '^ *+' conftest.er1 >conftest.err
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } && {
5860 test -z "$ac_c_werror_flag" ||
5861 test ! -s conftest.err
5862 } && test -s conftest.$ac_objext; then
5865 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
5866 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
5867 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
5868 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
5872 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
5874 # Is the header compilable?
5875 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
5876 echo $ECHO_N "checking Cocoa/Cocoa.h usability... $ECHO_C" >&6; }
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 $ac_includes_default
5884 #include <Cocoa/Cocoa.h>
5886 rm -f conftest.$ac_objext
5887 if { (ac_try="$ac_compile"
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_compile") 2>conftest.er1
5895 grep -v '^ *+' conftest.er1 >conftest.err
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } && {
5900 test -z "$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5902 } && test -s conftest.$ac_objext; then
5903 ac_header_compiler=yes
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5908 ac_header_compiler=no
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5913 echo "${ECHO_T}$ac_header_compiler" >&6; }
5915 # Is the header present?
5916 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
5917 echo $ECHO_N "checking Cocoa/Cocoa.h presence... $ECHO_C" >&6; }
5918 cat >conftest.$ac_ext <<_ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 #include <Cocoa/Cocoa.h>
5926 if { (ac_try="$ac_cpp conftest.$ac_ext"
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5934 grep -v '^ *+' conftest.er1 >conftest.err
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } >/dev/null && {
5939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5942 ac_header_preproc=yes
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 ac_header_preproc=no
5950 rm -f conftest.err conftest.$ac_ext
5951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5952 echo "${ECHO_T}$ac_header_preproc" >&6; }
5954 # So? What about this header?
5955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5957 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
5958 echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5959 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
5960 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
5961 ac_header_preproc=yes
5964 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
5965 echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
5966 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
5967 echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
5968 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
5969 echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
5970 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
5971 echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
5972 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
5973 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
5975 echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
5979 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
5980 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
5981 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
5986 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
5987 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
5990 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
5994 LIBS="$LIBS -framework AppKit"
5995 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"
5997 cat >>confdefs.h <<\_ACEOF
5998 #define HAVE_COCOA 1
6002 cat >>confdefs.h <<\_ACEOF
6003 #define APPLE_BUILD 1
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016 CPPFLAGS="$lxdream_save_cppflags"
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 if test "$HAVE_COCOA" = 'yes'; then
6033 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6034 if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6039 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6066 if test -n "$PKG_CONFIG"; then
6067 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6068 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6076 if test -z "$ac_cv_path_PKG_CONFIG"; then
6077 ac_pt_PKG_CONFIG=$PKG_CONFIG
6078 # Extract the first word of "pkg-config", so it can be a program name with args.
6079 set dummy pkg-config; ac_word=$2
6080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 case $ac_pt_PKG_CONFIG in
6087 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6097 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6109 if test -n "$ac_pt_PKG_CONFIG"; then
6110 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6111 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
6113 { echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6; }
6117 if test "x$ac_pt_PKG_CONFIG" = x; then
6120 case $cross_compiling:$ac_tool_warned in
6122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6123 whose name does not start with the host triplet. If you think this
6124 configuration is useful to you, please write to autoconf@gnu.org." >&5
6125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6126 whose name does not start with the host triplet. If you think this
6127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6128 ac_tool_warned=yes ;;
6130 PKG_CONFIG=$ac_pt_PKG_CONFIG
6133 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6137 if test -n "$PKG_CONFIG"; then
6138 _pkg_min_version=0.9.0
6139 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6140 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
6141 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6142 { echo "$as_me:$LINENO: result: yes" >&5
6143 echo "${ECHO_T}yes" >&6; }
6145 { echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6; }
6153 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
6154 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
6156 if test -n "$PKG_CONFIG"; then
6157 if test -n "$LIBPNG_CFLAGS"; then
6158 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
6160 if test -n "$PKG_CONFIG" && \
6161 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6162 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; then
6166 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
6174 if test -n "$PKG_CONFIG"; then
6175 if test -n "$LIBPNG_LIBS"; then
6176 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
6178 if test -n "$PKG_CONFIG" && \
6179 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6180 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; then
6184 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
6195 if test $pkg_failed = yes; then
6197 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6198 _pkg_short_errors_supported=yes
6200 _pkg_short_errors_supported=no
6202 if test $_pkg_short_errors_supported = yes; then
6203 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
6205 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
6207 # Put the nasty error message in config.log where it belongs
6208 echo "$LIBPNG_PKG_ERRORS" >&5
6210 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
6214 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6215 installed software in a non-standard prefix.
6217 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6218 and LIBPNG_LIBS to avoid the need to call pkg-config.
6219 See the pkg-config man page for more details.
6221 echo "$as_me: error: Package requirements (libpng ) were not met:
6225 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6226 installed software in a non-standard prefix.
6228 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6229 and LIBPNG_LIBS to avoid the need to call pkg-config.
6230 See the pkg-config man page for more details.
6232 { (exit 1); exit 1; }; }
6233 elif test $pkg_failed = untried; then
6234 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6235 is in your PATH or set the PKG_CONFIG environment variable to the full
6238 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6239 and LIBPNG_LIBS to avoid the need to call pkg-config.
6240 See the pkg-config man page for more details.
6242 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6243 See \`config.log' for more details." >&5
6244 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6245 is in your PATH or set the PKG_CONFIG environment variable to the full
6248 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6249 and LIBPNG_LIBS to avoid the need to call pkg-config.
6250 See the pkg-config man page for more details.
6252 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6253 See \`config.log' for more details." >&2;}
6254 { (exit 1); exit 1; }; }
6256 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
6257 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
6258 { echo "$as_me:$LINENO: result: yes" >&5
6259 echo "${ECHO_T}yes" >&6; }
6264 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
6265 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
6266 if test "${ac_cv_lib_z_uncompress+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 ac_check_lib_save_LIBS=$LIBS
6271 cat >conftest.$ac_ext <<_ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6278 /* Override any GCC internal prototype to avoid an error.
6279 Use char because int might match the return type of a GCC
6280 builtin and then its argument prototype would still apply. */
6288 return uncompress ();
6293 rm -f conftest.$ac_objext conftest$ac_exeext
6294 if { (ac_try="$ac_link"
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300 (eval "$ac_link") 2>conftest.er1
6302 grep -v '^ *+' conftest.er1 >conftest.err
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } && {
6307 test -z "$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 } && test -s conftest$ac_exeext &&
6310 $as_test_x conftest$ac_exeext; then
6311 ac_cv_lib_z_uncompress=yes
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6316 ac_cv_lib_z_uncompress=no
6319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6320 conftest$ac_exeext conftest.$ac_ext
6321 LIBS=$ac_check_lib_save_LIBS
6323 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
6324 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
6325 if test $ac_cv_lib_z_uncompress = yes; then
6326 cat >>confdefs.h <<_ACEOF
6334 echo "Zlib (libz.so) could not be found, but is required."
6342 { echo "$as_me:$LINENO: checking for GTK" >&5
6343 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
6345 if test -n "$PKG_CONFIG"; then
6346 if test -n "$GTK_CFLAGS"; then
6347 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
6349 if test -n "$PKG_CONFIG" && \
6350 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
6351 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; then
6355 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
6363 if test -n "$PKG_CONFIG"; then
6364 if test -n "$GTK_LIBS"; then
6365 pkg_cv_GTK_LIBS="$GTK_LIBS"
6367 if test -n "$PKG_CONFIG" && \
6368 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
6369 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; then
6373 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
6384 if test $pkg_failed = yes; then
6386 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6387 _pkg_short_errors_supported=yes
6389 _pkg_short_errors_supported=no
6391 if test $_pkg_short_errors_supported = yes; then
6392 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
6394 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
6396 # Put the nasty error message in config.log where it belongs
6397 echo "$GTK_PKG_ERRORS" >&5
6399 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
6403 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6404 installed software in a non-standard prefix.
6406 Alternatively, you may set the environment variables GTK_CFLAGS
6407 and GTK_LIBS to avoid the need to call pkg-config.
6408 See the pkg-config man page for more details.
6410 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
6414 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6415 installed software in a non-standard prefix.
6417 Alternatively, you may set the environment variables GTK_CFLAGS
6418 and GTK_LIBS to avoid the need to call pkg-config.
6419 See the pkg-config man page for more details.
6421 { (exit 1); exit 1; }; }
6422 elif test $pkg_failed = untried; then
6423 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6424 is in your PATH or set the PKG_CONFIG environment variable to the full
6427 Alternatively, you may set the environment variables GTK_CFLAGS
6428 and GTK_LIBS to avoid the need to call pkg-config.
6429 See the pkg-config man page for more details.
6431 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6432 See \`config.log' for more details." >&5
6433 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6434 is in your PATH or set the PKG_CONFIG environment variable to the full
6437 Alternatively, you may set the environment variables GTK_CFLAGS
6438 and GTK_LIBS to avoid the need to call pkg-config.
6439 See the pkg-config man page for more details.
6441 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6442 See \`config.log' for more details." >&2;}
6443 { (exit 1); exit 1; }; }
6445 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
6446 GTK_LIBS=$pkg_cv_GTK_LIBS
6447 { echo "$as_me:$LINENO: result: yes" >&5
6448 echo "${ECHO_T}yes" >&6; }
6452 cat >>confdefs.h <<\_ACEOF
6460 if test "$HAVE_GTK" = 'yes'; then
6469 LIBS="$LIBS $GTK_LIBS"
6470 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
6471 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
6472 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 cat >conftest.$ac_ext <<_ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6481 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
6482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6483 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
6485 /* System header to define __stub macros and hopefully few prototypes,
6486 which can conflict with char gdk_x11_display_get_xdisplay (); below.
6487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6488 <limits.h> exists even on freestanding compilers. */
6491 # include <limits.h>
6493 # include <assert.h>
6496 #undef gdk_x11_display_get_xdisplay
6498 /* Override any GCC internal prototype to avoid an error.
6499 Use char because int might match the return type of a GCC
6500 builtin and then its argument prototype would still apply. */
6504 char gdk_x11_display_get_xdisplay ();
6505 /* The GNU C library defines this for functions which it implements
6506 to always fail with ENOSYS. Some functions are actually named
6507 something starting with __ and the normal name is an alias. */
6508 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
6515 return gdk_x11_display_get_xdisplay ();
6520 rm -f conftest.$ac_objext conftest$ac_exeext
6521 if { (ac_try="$ac_link"
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527 (eval "$ac_link") 2>conftest.er1
6529 grep -v '^ *+' conftest.er1 >conftest.err
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } && {
6534 test -z "$ac_c_werror_flag" ||
6535 test ! -s conftest.err
6536 } && test -s conftest$ac_exeext &&
6537 $as_test_x conftest$ac_exeext; then
6538 ac_cv_func_gdk_x11_display_get_xdisplay=yes
6540 echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6543 ac_cv_func_gdk_x11_display_get_xdisplay=no
6546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6547 conftest$ac_exeext conftest.$ac_ext
6549 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
6550 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
6551 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
6555 cat >>confdefs.h <<\_ACEOF
6556 #define HAVE_GTK_X11 1
6561 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
6562 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
6563 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 cat >conftest.$ac_ext <<_ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
6573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6574 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
6576 /* System header to define __stub macros and hopefully few prototypes,
6577 which can conflict with char gdk_quartz_window_get_nsview (); below.
6578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6579 <limits.h> exists even on freestanding compilers. */
6582 # include <limits.h>
6584 # include <assert.h>
6587 #undef gdk_quartz_window_get_nsview
6589 /* Override any GCC internal prototype to avoid an error.
6590 Use char because int might match the return type of a GCC
6591 builtin and then its argument prototype would still apply. */
6595 char gdk_quartz_window_get_nsview ();
6596 /* The GNU C library defines this for functions which it implements
6597 to always fail with ENOSYS. Some functions are actually named
6598 something starting with __ and the normal name is an alias. */
6599 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
6606 return gdk_quartz_window_get_nsview ();
6611 rm -f conftest.$ac_objext conftest$ac_exeext
6612 if { (ac_try="$ac_link"
6614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615 *) ac_try_echo=$ac_try;;
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618 (eval "$ac_link") 2>conftest.er1
6620 grep -v '^ *+' conftest.er1 >conftest.err
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } && {
6625 test -z "$ac_c_werror_flag" ||
6626 test ! -s conftest.err
6627 } && test -s conftest$ac_exeext &&
6628 $as_test_x conftest$ac_exeext; then
6629 ac_cv_func_gdk_quartz_window_get_nsview=yes
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6634 ac_cv_func_gdk_quartz_window_get_nsview=no
6637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6638 conftest$ac_exeext conftest.$ac_ext
6640 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
6641 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
6642 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
6646 cat >>confdefs.h <<\_ACEOF
6647 #define HAVE_GTK_OSX 1
6653 if test "x$with_osmesa" != xno; then
6657 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
6658 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
6659 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 ac_check_lib_save_LIBS=$LIBS
6663 LIBS="-lOSMesa $LIBS"
6664 cat >conftest.$ac_ext <<_ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6671 /* Override any GCC internal prototype to avoid an error.
6672 Use char because int might match the return type of a GCC
6673 builtin and then its argument prototype would still apply. */
6677 char OSMesaCreateContext ();
6681 return OSMesaCreateContext ();
6686 rm -f conftest.$ac_objext conftest$ac_exeext
6687 if { (ac_try="$ac_link"
6689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690 *) ac_try_echo=$ac_try;;
6692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693 (eval "$ac_link") 2>conftest.er1
6695 grep -v '^ *+' conftest.er1 >conftest.err
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && {
6700 test -z "$ac_c_werror_flag" ||
6701 test ! -s conftest.err
6702 } && test -s conftest$ac_exeext &&
6703 $as_test_x conftest$ac_exeext; then
6704 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
6706 echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6709 ac_cv_lib_OSMesa_OSMesaCreateContext=no
6712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6713 conftest$ac_exeext conftest.$ac_ext
6714 LIBS=$ac_check_lib_save_LIBS
6716 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
6717 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
6718 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
6719 cat >>confdefs.h <<_ACEOF
6720 #define HAVE_LIBOSMESA 1
6723 LIBS="-lOSMesa $LIBS"
6726 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
6727 See \`config.log' for more details." >&5
6728 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
6729 See \`config.log' for more details." >&2;}
6730 { (exit 1); exit 1; }; }
6733 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
6734 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
6735 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
6736 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
6740 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
6742 # Is the header compilable?
6743 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
6744 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
6745 cat >conftest.$ac_ext <<_ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6751 $ac_includes_default
6752 #include <GL/osmesa.h>
6754 rm -f conftest.$ac_objext
6755 if { (ac_try="$ac_compile"
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_compile") 2>conftest.er1
6763 grep -v '^ *+' conftest.er1 >conftest.err
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $