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
667 INSTALL_STRIP_PROGRAM
672 MAINTAINER_MODE_FALSE
756 ac_precious_vars='build_alias
774 # Initialize some variables set by options.
776 ac_init_version=false
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
786 program_transform_name=s,x,x,
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE}'
811 infodir='${datarootdir}/info'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
832 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
860 cache_file=config.cache ;;
862 -datadir | --datadir | --datadi | --datad)
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
874 -disable-* | --disable-*)
875 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 { (exit 1); exit 1; }; }
880 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
881 eval enable_$ac_feature=no ;;
883 -docdir | --docdir | --docdi | --doc | --do)
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 -enable-* | --enable-*)
894 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
897 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
898 { (exit 1); exit 1; }; }
899 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
900 eval enable_$ac_feature=\$ac_optarg ;;
902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904 | --exec | --exe | --ex)
905 ac_prev=exec_prefix ;;
906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908 | --exec=* | --exe=* | --ex=*)
909 exec_prefix=$ac_optarg ;;
911 -gas | --gas | --ga | --g)
912 # Obsolete; use --with-gas.
915 -help | --help | --hel | --he | -h)
917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918 ac_init_help=recursive ;;
919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920 ac_init_help=short ;;
922 -host | --host | --hos | --ho)
923 ac_prev=host_alias ;;
924 -host=* | --host=* | --hos=* | --ho=*)
925 host_alias=$ac_optarg ;;
927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931 htmldir=$ac_optarg ;;
933 -includedir | --includedir | --includedi | --included | --include \
934 | --includ | --inclu | --incl | --inc)
935 ac_prev=includedir ;;
936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937 | --includ=* | --inclu=* | --incl=* | --inc=*)
938 includedir=$ac_optarg ;;
940 -infodir | --infodir | --infodi | --infod | --info | --inf)
942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943 infodir=$ac_optarg ;;
945 -libdir | --libdir | --libdi | --libd)
947 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951 | --libexe | --libex | --libe)
952 ac_prev=libexecdir ;;
953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954 | --libexe=* | --libex=* | --libe=*)
955 libexecdir=$ac_optarg ;;
957 -localedir | --localedir | --localedi | --localed | --locale)
959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960 localedir=$ac_optarg ;;
962 -localstatedir | --localstatedir | --localstatedi | --localstated \
963 | --localstate | --localstat | --localsta | --localst | --locals)
964 ac_prev=localstatedir ;;
965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967 localstatedir=$ac_optarg ;;
969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975 # Obsolete; use --without-fp.
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979 | --no-cr | --no-c | -n)
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988 | --oldin | --oldi | --old | --ol | --o)
989 ac_prev=oldincludedir ;;
990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993 oldincludedir=$ac_optarg ;;
995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001 | --program-pre | --program-pr | --program-p)
1002 ac_prev=program_prefix ;;
1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005 program_prefix=$ac_optarg ;;
1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008 | --program-suf | --program-su | --program-s)
1009 ac_prev=program_suffix ;;
1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012 program_suffix=$ac_optarg ;;
1014 -program-transform-name | --program-transform-name \
1015 | --program-transform-nam | --program-transform-na \
1016 | --program-transform-n | --program-transform- \
1017 | --program-transform | --program-transfor \
1018 | --program-transfo | --program-transf \
1019 | --program-trans | --program-tran \
1020 | --progr-tra | --program-tr | --program-t)
1021 ac_prev=program_transform_name ;;
1022 -program-transform-name=* | --program-transform-name=* \
1023 | --program-transform-nam=* | --program-transform-na=* \
1024 | --program-transform-n=* | --program-transform-=* \
1025 | --program-transform=* | --program-transfor=* \
1026 | --program-transfo=* | --program-transf=* \
1027 | --program-trans=* | --program-tran=* \
1028 | --progr-tra=* | --program-tr=* | --program-t=*)
1029 program_transform_name=$ac_optarg ;;
1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034 pdfdir=$ac_optarg ;;
1036 -psdir | --psdir | --psdi | --psd | --ps)
1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049 sbindir=$ac_optarg ;;
1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053 | --sharedst | --shareds | --shared | --share | --shar \
1055 ac_prev=sharedstatedir ;;
1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060 sharedstatedir=$ac_optarg ;;
1062 -site | --site | --sit)
1064 -site=* | --site=* | --sit=*)
1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070 srcdir=$ac_optarg ;;
1072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073 | --syscon | --sysco | --sysc | --sys | --sy)
1074 ac_prev=sysconfdir ;;
1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077 sysconfdir=$ac_optarg ;;
1079 -target | --target | --targe | --targ | --tar | --ta | --t)
1080 ac_prev=target_alias ;;
1081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082 target_alias=$ac_optarg ;;
1084 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 -version | --version | --versio | --versi | --vers | -V)
1088 ac_init_version=: ;;
1091 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094 { echo "$as_me: error: invalid package name: $ac_package" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1097 eval with_$ac_package=\$ac_optarg ;;
1099 -without-* | --without-*)
1100 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 { echo "$as_me: error: invalid package name: $ac_package" >&2
1104 { (exit 1); exit 1; }; }
1105 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1106 eval with_$ac_package=no ;;
1109 # Obsolete; use --with-x.
1112 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1113 | --x-incl | --x-inc | --x-in | --x-i)
1114 ac_prev=x_includes ;;
1115 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1116 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1117 x_includes=$ac_optarg ;;
1119 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1120 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1121 ac_prev=x_libraries ;;
1122 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1123 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1124 x_libraries=$ac_optarg ;;
1126 -*) { echo "$as_me: error: unrecognized option: $ac_option
1127 Try \`$0 --help' for more information." >&2
1128 { (exit 1); exit 1; }; }
1132 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1135 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1136 { (exit 1); exit 1; }; }
1137 eval $ac_envvar=\$ac_optarg
1138 export $ac_envvar ;;
1141 # FIXME: should be removed in autoconf 3.0.
1142 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1143 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1144 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1145 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1151 if test -n "$ac_prev"; then
1152 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1153 { echo "$as_me: error: missing argument to $ac_option" >&2
1154 { (exit 1); exit 1; }; }
1157 # Be sure to have absolute directory names.
1158 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1159 datadir sysconfdir sharedstatedir localstatedir includedir \
1160 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1161 libdir localedir mandir
1163 eval ac_val=\$$ac_var
1165 [\\/$]* | ?:[\\/]* ) continue;;
1166 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1168 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1169 { (exit 1); exit 1; }; }
1172 # There might be people who depend on the old broken behavior: `$host'
1173 # used to hold the argument of --host etc.
1174 # FIXME: To remove some day.
1177 target=$target_alias
1179 # FIXME: To remove some day.
1180 if test "x$host_alias" != x; then
1181 if test "x$build_alias" = x; then
1182 cross_compiling=maybe
1183 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1184 If a cross compiler is detected then cross compile mode will be used." >&2
1185 elif test "x$build_alias" != "x$host_alias"; then
1191 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1193 test "$silent" = yes && exec 6>/dev/null
1196 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1197 ac_ls_di=`ls -di .` &&
1198 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1199 { echo "$as_me: error: Working directory cannot be determined" >&2
1200 { (exit 1); exit 1; }; }
1201 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1202 { echo "$as_me: error: pwd does not report name of working directory" >&2
1203 { (exit 1); exit 1; }; }
1206 # Find the source files, if location was not specified.
1207 if test -z "$srcdir"; then
1208 ac_srcdir_defaulted=yes
1209 # Try the directory containing this script, then the parent directory.
1210 ac_confdir=`$as_dirname -- "$0" ||
1211 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1212 X"$0" : 'X\(//\)[^/]' \| \
1213 X"$0" : 'X\(//\)$' \| \
1214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234 if test ! -r "$srcdir/$ac_unique_file"; then
1238 ac_srcdir_defaulted=no
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1241 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1242 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1243 { (exit 1); exit 1; }; }
1245 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1247 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1248 { (exit 1); exit 1; }; }
1250 # When building in place, set srcdir=.
1251 if test "$ac_abs_confdir" = "$ac_pwd"; then
1254 # Remove unnecessary trailing slashes from srcdir.
1255 # Double slashes in file names in object file debugging info
1256 # mess up M-x gdb in Emacs.
1258 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1260 for ac_var in $ac_precious_vars; do
1261 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1262 eval ac_env_${ac_var}_value=\$${ac_var}
1263 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1264 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1268 # Report the --help message.
1270 if test "$ac_init_help" = "long"; then
1271 # Omit some internal or obsolete options to make the list less imposing.
1272 # This message is too long to be a string in the A/UX 3.1 sh.
1274 \`configure' configures this package to adapt to many kinds of systems.
1276 Usage: $0 [OPTION]... [VAR=VALUE]...
1278 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1279 VAR=VALUE. See below for descriptions of some of the useful variables.
1281 Defaults for the options are specified in brackets.
1284 -h, --help display this help and exit
1285 --help=short display options specific to this package
1286 --help=recursive display the short help of all the included packages
1287 -V, --version display version information and exit
1288 -q, --quiet, --silent do not print \`checking...' messages
1289 --cache-file=FILE cache test results in FILE [disabled]
1290 -C, --config-cache alias for \`--cache-file=config.cache'
1291 -n, --no-create do not create output files
1292 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1294 Installation directories:
1295 --prefix=PREFIX install architecture-independent files in PREFIX
1296 [$ac_default_prefix]
1297 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1300 By default, \`make install' will install all the files in
1301 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1302 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1303 for instance \`--prefix=\$HOME'.
1305 For better control, use the options below.
1307 Fine tuning of the installation directories:
1308 --bindir=DIR user executables [EPREFIX/bin]
1309 --sbindir=DIR system admin executables [EPREFIX/sbin]
1310 --libexecdir=DIR program executables [EPREFIX/libexec]
1311 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1312 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1313 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1314 --libdir=DIR object code libraries [EPREFIX/lib]
1315 --includedir=DIR C header files [PREFIX/include]
1316 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1317 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1318 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1319 --infodir=DIR info documentation [DATAROOTDIR/info]
1320 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1321 --mandir=DIR man documentation [DATAROOTDIR/man]
1322 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1323 --htmldir=DIR html documentation [DOCDIR]
1324 --dvidir=DIR dvi documentation [DOCDIR]
1325 --pdfdir=DIR pdf documentation [DOCDIR]
1326 --psdir=DIR ps documentation [DOCDIR]
1332 --program-prefix=PREFIX prepend PREFIX to installed program names
1333 --program-suffix=SUFFIX append SUFFIX to installed program names
1334 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1337 --build=BUILD configure for building on BUILD [guessed]
1338 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1342 if test -n "$ac_init_help"; then
1347 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1348 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1349 --enable-maintainer-mode enable make rules and dependencies not useful
1350 (and sometimes confusing) to the casual installer
1351 --disable-dependency-tracking Speeds up one-time builds
1352 --enable-dependency-tracking Do not reject slow dependency extractors
1353 --enable-trace Enable generation of IO traces (warning: hurts
1355 --enable-watch Enable watchpoints in the debugger (warning: hurts
1359 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1360 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1361 --with-osmesa Build with the osmesa GL library (software
1364 Some influential environment variables:
1365 CC C compiler command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1373 PKG_CONFIG path to pkg-config utility
1375 C compiler flags for LIBPNG, overriding pkg-config
1376 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1377 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1378 GTK_LIBS linker flags for GTK, overriding pkg-config
1380 C compiler flags for ESOUND, overriding pkg-config
1381 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1383 Use these variables to override the choices made by `configure' or to help
1384 it to find libraries and programs with nonstandard names/locations.
1390 if test "$ac_init_help" = "recursive"; then
1391 # If there are subdirs, report their specific --help.
1392 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1393 test -d "$ac_dir" || continue
1397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1400 # A ".." for each directory in $ac_dir_suffix.
1401 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1402 case $ac_top_builddir_sub in
1403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407 ac_abs_top_builddir=$ac_pwd
1408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1409 # for backward compatibility:
1410 ac_top_builddir=$ac_top_build_prefix
1413 .) # We are building in place.
1415 ac_top_srcdir=$ac_top_builddir_sub
1416 ac_abs_top_srcdir=$ac_pwd ;;
1417 [\\/]* | ?:[\\/]* ) # Absolute name.
1418 ac_srcdir=$srcdir$ac_dir_suffix;
1419 ac_top_srcdir=$srcdir
1420 ac_abs_top_srcdir=$srcdir ;;
1422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1423 ac_top_srcdir=$ac_top_build_prefix$srcdir
1424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1428 cd "$ac_dir" || { ac_status=$?; continue; }
1429 # Check for guested configure.
1430 if test -f "$ac_srcdir/configure.gnu"; then
1432 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433 elif test -f "$ac_srcdir/configure"; then
1435 $SHELL "$ac_srcdir/configure" --help=recursive
1437 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1439 cd "$ac_pwd" || { ac_status=$?; break; }
1443 test -n "$ac_init_help" && exit $ac_status
1444 if $ac_init_version; then
1447 generated by GNU Autoconf 2.61
1449 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1450 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1451 This configure script is free software; the Free Software Foundation
1452 gives unlimited permission to copy, distribute and modify it.
1456 cat >config.log <<_ACEOF
1457 This file contains any messages produced by compilers while
1458 running configure, to aid debugging if configure makes a mistake.
1460 It was created by $as_me, which was
1461 generated by GNU Autoconf 2.61. Invocation command line was
1473 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1474 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1475 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1476 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1477 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1479 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1480 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1482 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1483 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1484 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1485 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1486 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1487 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1488 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 test -z "$as_dir" && as_dir=.
1497 echo "PATH: $as_dir"
1513 # Keep a trace of the command line.
1514 # Strip out --no-create and --no-recursion so they do not pile up.
1515 # Strip out --silent because we don't want to record it for future runs.
1516 # Also quote any args containing shell meta-characters.
1517 # Make two passes to allow for proper duplicate-argument suppression.
1521 ac_must_keep_next=false
1527 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1529 | -silent | --silent | --silen | --sile | --sil)
1532 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1535 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1537 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1538 if test $ac_must_keep_next = true; then
1539 ac_must_keep_next=false # Got value, back to normal.
1542 *=* | --config-cache | -C | -disable-* | --disable-* \
1543 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1544 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1545 | -with-* | --with-* | -without-* | --without-* | --x)
1546 case "$ac_configure_args0 " in
1547 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1550 -* ) ac_must_keep_next=true ;;
1553 ac_configure_args="$ac_configure_args '$ac_arg'"
1558 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1559 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1561 # When interrupted or exit'd, cleanup temporary files, and complete
1562 # config.log. We remove comments because anyway the quotes in there
1563 # would cause problems or look ugly.
1564 # WARNING: Use '\'' to represent an apostrophe within the trap.
1565 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1566 trap 'exit_status=$?
1567 # Save into config.log some information that might help in debugging.
1572 ## ---------------- ##
1573 ## Cache variables. ##
1574 ## ---------------- ##
1577 # The following way of writing the cache mishandles newlines in values,
1579 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1580 eval ac_val=\$$ac_var
1584 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1585 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1588 _ | IFS | as_nl) ;; #(
1589 *) $as_unset $ac_var ;;
1594 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1595 *${as_nl}ac_space=\ *)
1597 "s/'\''/'\''\\\\'\'''\''/g;
1598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1609 ## ----------------- ##
1610 ## Output variables. ##
1611 ## ----------------- ##
1614 for ac_var in $ac_subst_vars
1616 eval ac_val=\$$ac_var
1618 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1620 echo "$ac_var='\''$ac_val'\''"
1624 if test -n "$ac_subst_files"; then
1626 ## ------------------- ##
1627 ## File substitutions. ##
1628 ## ------------------- ##
1631 for ac_var in $ac_subst_files
1633 eval ac_val=\$$ac_var
1635 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1637 echo "$ac_var='\''$ac_val'\''"
1642 if test -s confdefs.h; then
1652 test "$ac_signal" != 0 &&
1653 echo "$as_me: caught signal $ac_signal"
1654 echo "$as_me: exit $exit_status"
1656 rm -f core *.core core.conftest.* &&
1657 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1660 for ac_signal in 1 2 13 15; do
1661 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1665 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1666 rm -f -r conftest* confdefs.h
1668 # Predefined preprocessor variables.
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_NAME "$PACKAGE_NAME"
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_STRING "$PACKAGE_STRING"
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1695 # Let the site file select an alternate cache file if it wants to.
1696 # Prefer explicitly selected file to automatically selected ones.
1697 if test -n "$CONFIG_SITE"; then
1698 set x "$CONFIG_SITE"
1699 elif test "x$prefix" != xNONE; then
1700 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1702 set x "$ac_default_prefix/share/config.site" \
1703 "$ac_default_prefix/etc/config.site"
1708 if test -r "$ac_site_file"; then
1709 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1710 echo "$as_me: loading site script $ac_site_file" >&6;}
1711 sed 's/^/| /' "$ac_site_file" >&5
1716 if test -r "$cache_file"; then
1717 # Some versions of bash will fail to source /dev/null (special
1718 # files actually), so we avoid doing that.
1719 if test -f "$cache_file"; then
1720 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1721 echo "$as_me: loading cache $cache_file" >&6;}
1723 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1724 *) . "./$cache_file";;
1728 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1729 echo "$as_me: creating cache $cache_file" >&6;}
1733 # Check that the precious variables saved in the cache have kept the same
1735 ac_cache_corrupted=false
1736 for ac_var in $ac_precious_vars; do
1737 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1738 eval ac_new_set=\$ac_env_${ac_var}_set
1739 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1740 eval ac_new_val=\$ac_env_${ac_var}_value
1741 case $ac_old_set,$ac_new_set in
1743 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1744 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1747 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1748 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1749 ac_cache_corrupted=: ;;
1752 if test "x$ac_old_val" != "x$ac_new_val"; then
1753 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1754 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1755 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1756 echo "$as_me: former value: $ac_old_val" >&2;}
1757 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1758 echo "$as_me: current value: $ac_new_val" >&2;}
1759 ac_cache_corrupted=:
1762 # Pass precious variables to config.status.
1763 if test "$ac_new_set" = set; then
1765 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1766 *) ac_arg=$ac_var=$ac_new_val ;;
1768 case " $ac_configure_args " in
1769 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1770 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1774 if $ac_cache_corrupted; then
1775 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1776 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1777 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1778 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1779 { (exit 1); exit 1; }; }
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805 am__api_version="1.7"
1807 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1808 if test -f "$ac_dir/install-sh"; then
1810 ac_install_sh="$ac_aux_dir/install-sh -c"
1812 elif test -f "$ac_dir/install.sh"; then
1814 ac_install_sh="$ac_aux_dir/install.sh -c"
1816 elif test -f "$ac_dir/shtool"; then
1818 ac_install_sh="$ac_aux_dir/shtool install -c"
1822 if test -z "$ac_aux_dir"; then
1823 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1824 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1825 { (exit 1); exit 1; }; }
1828 # These three variables are undocumented and unsupported,
1829 # and are intended to be withdrawn in a future Autoconf release.
1830 # They can cause serious problems if a builder's source tree is in a directory
1831 # whose full name contains unusual characters.
1832 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1833 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1834 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1837 # Find a good install program. We prefer a C program (faster),
1838 # so one script is as good as another. But avoid the broken or
1839 # incompatible versions:
1840 # SysV /etc/install, /usr/sbin/install
1841 # SunOS /usr/etc/install
1842 # IRIX /sbin/install
1844 # AmigaOS /C/install, which installs bootblocks on floppy discs
1845 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1846 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1847 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1848 # OS/2's system install, which has a completely different semantic
1849 # ./install, which can be erroneously created by make from ./install.sh.
1850 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1851 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1852 if test -z "$INSTALL"; then
1853 if test "${ac_cv_path_install+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 test -z "$as_dir" && as_dir=.
1861 # Account for people who put trailing slashes in PATH elements.
1863 ./ | .// | /cC/* | \
1864 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1865 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1868 # OSF1 and SCO ODT 3.0 have their own names for install.
1869 # Don't use installbsd from OSF since it installs stuff as root
1871 for ac_prog in ginstall scoinst install; do
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1874 if test $ac_prog = install &&
1875 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1876 # AIX install. It has an incompatible calling convention.
1878 elif test $ac_prog = install &&
1879 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1880 # program-specific install script used by HP pwplus--don't use.
1883 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1896 if test "${ac_cv_path_install+set}" = set; then
1897 INSTALL=$ac_cv_path_install
1899 # As a last resort, use the slow shell script. Don't cache a
1900 # value for INSTALL within a source directory, because that will
1901 # break other packages using the cache if that directory is
1902 # removed, or if the value is a relative name.
1903 INSTALL=$ac_install_sh
1906 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1907 echo "${ECHO_T}$INSTALL" >&6; }
1909 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1910 # It thinks the first close brace ends the variable substitution.
1911 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1913 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1915 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1917 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1918 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1921 echo timestamp > conftest.file
1922 # Do `set' in a subshell so we don't clobber the current shell's
1923 # arguments. Must try -L first in case configure is actually a
1924 # symlink; some systems play weird games with the mod time of symlinks
1925 # (eg FreeBSD returns the mod time of the symlink's containing
1928 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1929 if test "$*" = "X"; then
1931 set X `ls -t $srcdir/configure conftest.file`
1934 if test "$*" != "X $srcdir/configure conftest.file" \
1935 && test "$*" != "X conftest.file $srcdir/configure"; then
1937 # If neither matched, then we have a broken ls. This can happen
1938 # if, for instance, CONFIG_SHELL is bash and it inherits a
1939 # broken ls alias from the environment. This has actually
1940 # happened. Such a system could not be considered "sane".
1941 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1942 alias in your environment" >&5
1943 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1944 alias in your environment" >&2;}
1945 { (exit 1); exit 1; }; }
1948 test "$2" = conftest.file
1954 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1955 Check your system clock" >&5
1956 echo "$as_me: error: newly created file is older than distributed files!
1957 Check your system clock" >&2;}
1958 { (exit 1); exit 1; }; }
1960 { echo "$as_me:$LINENO: result: yes" >&5
1961 echo "${ECHO_T}yes" >&6; }
1962 test "$program_prefix" != NONE &&
1963 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1964 # Use a double $ so make ignores it.
1965 test "$program_suffix" != NONE &&
1966 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1967 # Double any \ or $. echo might interpret backslashes.
1968 # By default was `s,x,x', remove it if useless.
1969 cat <<\_ACEOF >conftest.sed
1970 s/[\\$]/&&/g;s/;s,x,x,$//
1972 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1976 # expand $ac_aux_dir to an absolute path
1977 am_aux_dir=`cd $ac_aux_dir && pwd`
1979 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1980 # Use eval to expand $SHELL
1981 if eval "$MISSING --run true"; then
1982 am_missing_run="$MISSING --run "
1985 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1986 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1989 for ac_prog in gawk mawk nawk awk
1991 # Extract the first word of "$ac_prog", so it can be a program name with args.
1992 set dummy $ac_prog; ac_word=$2
1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1995 if test "${ac_cv_prog_AWK+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 if test -n "$AWK"; then
1999 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2008 ac_cv_prog_AWK="$ac_prog"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 if test -n "$AWK"; then
2020 { echo "$as_me:$LINENO: result: $AWK" >&5
2021 echo "${ECHO_T}$AWK" >&6; }
2023 { echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6; }
2028 test -n "$AWK" && break
2031 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2032 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2033 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2034 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 cat >conftest.make <<\_ACEOF
2040 @echo '@@@%%%=$(MAKE)=@@@%%%'
2042 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2043 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2045 eval ac_cv_prog_make_${ac_make}_set=yes;;
2047 eval ac_cv_prog_make_${ac_make}_set=no;;
2051 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2052 { echo "$as_me:$LINENO: result: yes" >&5
2053 echo "${ECHO_T}yes" >&6; }
2056 { echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6; }
2058 SET_MAKE="MAKE=${MAKE-make}"
2061 rm -rf .tst 2>/dev/null
2062 mkdir .tst 2>/dev/null
2063 if test -d .tst; then
2068 rmdir .tst 2>/dev/null
2070 # test to see if srcdir already configured
2071 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2072 test -f $srcdir/config.status; then
2073 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2074 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2075 { (exit 1); exit 1; }; }
2078 # test whether we have cygpath
2079 if test -z "$CYGPATH_W"; then
2080 if (cygpath --version) >/dev/null 2>/dev/null; then
2081 CYGPATH_W='cygpath -w'
2088 # Define the identity of the package.
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE "$PACKAGE"
2098 cat >>confdefs.h <<_ACEOF
2099 #define VERSION "$VERSION"
2102 # Some tools Automake needs.
2104 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2107 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2110 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2113 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2116 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2119 AMTAR=${AMTAR-"${am_missing_run}tar"}
2121 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2123 # Installed binaries are usually stripped using `strip' when the user
2124 # run `make install-strip'. However `strip' might not be the right
2125 # tool to use in cross-compilation environments, therefore Automake
2126 # will honor the `STRIP' environment variable to overrule this program.
2127 if test "$cross_compiling" != no; then
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2130 set dummy ${ac_tool_prefix}strip; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_STRIP+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$STRIP"; then
2137 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 STRIP=$ac_cv_prog_STRIP
2157 if test -n "$STRIP"; then
2158 { echo "$as_me:$LINENO: result: $STRIP" >&5
2159 echo "${ECHO_T}$STRIP" >&6; }
2161 { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2167 if test -z "$ac_cv_prog_STRIP"; then
2169 # Extract the first word of "strip", so it can be a program name with args.
2170 set dummy strip; ac_word=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$ac_ct_STRIP"; then
2177 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2186 ac_cv_prog_ac_ct_STRIP="strip"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2197 if test -n "$ac_ct_STRIP"; then
2198 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2199 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2201 { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2205 if test "x$ac_ct_STRIP" = x; then
2208 case $cross_compiling:$ac_tool_warned in
2210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2211 whose name does not start with the host triplet. If you think this
2212 configuration is useful to you, please write to autoconf@gnu.org." >&5
2213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2214 whose name does not start with the host triplet. If you think this
2215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2216 ac_tool_warned=yes ;;
2221 STRIP="$ac_cv_prog_STRIP"
2225 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2227 # We need awk for the "check" target. The system "awk" is bad on
2232 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2233 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2234 # Check whether --enable-maintainer-mode was given.
2235 if test "${enable_maintainer_mode+set}" = set; then
2236 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2238 USE_MAINTAINER_MODE=no
2241 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2242 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2245 if test $USE_MAINTAINER_MODE = yes; then
2246 MAINTAINER_MODE_TRUE=
2247 MAINTAINER_MODE_FALSE='#'
2249 MAINTAINER_MODE_TRUE='#'
2250 MAINTAINER_MODE_FALSE=
2253 MAINT=$MAINTAINER_MODE_TRUE
2256 ac_config_headers="$ac_config_headers config.h"
2259 DEPDIR="${am__leading_dot}deps"
2261 ac_config_commands="$ac_config_commands depfiles"
2264 am_make=${MAKE-make}
2265 cat > confinc << 'END'
2270 # If we don't find an include directive, just comment out the code.
2271 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2272 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2276 # First try GNU make style include.
2277 echo "include confinc" > confmf
2278 # We grep out `Entering directory' and `Leaving directory'
2279 # messages which can occur if `w' ends up in MAKEFLAGS.
2280 # In particular we don't look at `^make:' because GNU make might
2281 # be invoked under some other name (usually "gmake"), in which
2282 # case it prints its new name instead of `make'.
2283 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2288 # Now try BSD make style include.
2289 if test "$am__include" = "#"; then
2290 echo '.include "confinc"' > confmf
2291 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2292 am__include=.include
2299 { echo "$as_me:$LINENO: result: $_am_result" >&5
2300 echo "${ECHO_T}$_am_result" >&6; }
2301 rm -f confinc confmf
2303 # Check whether --enable-dependency-tracking was given.
2304 if test "${enable_dependency_tracking+set}" = set; then
2305 enableval=$enable_dependency_tracking;
2308 if test "x$enable_dependency_tracking" != xno; then
2309 am_depcomp="$ac_aux_dir/depcomp"
2314 if test "x$enable_dependency_tracking" != xno; then
2325 ac_cpp='$CPP $CPPFLAGS'
2326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2329 if test -n "$ac_tool_prefix"; then
2330 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2331 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334 if test "${ac_cv_prog_CC+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 if test -n "$CC"; then
2338 ac_cv_prog_CC="$CC" # Let the user override the test.
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 if test -n "$CC"; then
2359 { echo "$as_me:$LINENO: result: $CC" >&5
2360 echo "${ECHO_T}$CC" >&6; }
2362 { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2368 if test -z "$ac_cv_prog_CC"; then
2370 # Extract the first word of "gcc", so it can be a program name with args.
2371 set dummy gcc; ac_word=$2
2372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2374 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 if test -n "$ac_ct_CC"; then
2378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 test -z "$as_dir" && as_dir=.
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2387 ac_cv_prog_ac_ct_CC="gcc"
2388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2398 if test -n "$ac_ct_CC"; then
2399 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2400 echo "${ECHO_T}$ac_ct_CC" >&6; }
2402 { echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6; }
2406 if test "x$ac_ct_CC" = x; then
2409 case $cross_compiling:$ac_tool_warned in
2411 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2412 whose name does not start with the host triplet. If you think this
2413 configuration is useful to you, please write to autoconf@gnu.org." >&5
2414 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2415 whose name does not start with the host triplet. If you think this
2416 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2417 ac_tool_warned=yes ;;
2425 if test -z "$CC"; then
2426 if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2428 set dummy ${ac_tool_prefix}cc; ac_word=$2
2429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2431 if test "${ac_cv_prog_CC+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 if test -n "$CC"; then
2435 ac_cv_prog_CC="$CC" # Let the user override the test.
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2444 ac_cv_prog_CC="${ac_tool_prefix}cc"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 if test -n "$CC"; then
2456 { echo "$as_me:$LINENO: result: $CC" >&5
2457 echo "${ECHO_T}$CC" >&6; }
2459 { echo "$as_me:$LINENO: result: no" >&5
2460 echo "${ECHO_T}no" >&6; }
2466 if test -z "$CC"; then
2467 # Extract the first word of "cc", so it can be a program name with args.
2468 set dummy cc; ac_word=$2
2469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2471 if test "${ac_cv_prog_CC+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 if test -n "$CC"; then
2475 ac_cv_prog_CC="$CC" # Let the user override the test.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2486 ac_prog_rejected=yes
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 if test $ac_prog_rejected = yes; then
2498 # We found a bogon in the path, so make sure we never use it.
2499 set dummy $ac_cv_prog_CC
2501 if test $# != 0; then
2502 # We chose a different compiler from the bogus one.
2503 # However, it has the same basename, so the bogon will be chosen
2504 # first if we set CC to just the basename; use the full file name.
2506 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2512 if test -n "$CC"; then
2513 { echo "$as_me:$LINENO: result: $CC" >&5
2514 echo "${ECHO_T}$CC" >&6; }
2516 { echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6; }
2522 if test -z "$CC"; then
2523 if test -n "$ac_tool_prefix"; then
2524 for ac_prog in cl.exe
2526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 if test -n "$CC"; then
2534 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 if test -n "$CC"; then
2555 { echo "$as_me:$LINENO: result: $CC" >&5
2556 echo "${ECHO_T}$CC" >&6; }
2558 { echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6; }
2563 test -n "$CC" && break
2566 if test -z "$CC"; then
2568 for ac_prog in cl.exe
2570 # Extract the first word of "$ac_prog", so it can be a program name with args.
2571 set dummy $ac_prog; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 if test -n "$ac_ct_CC"; then
2578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_ac_ct_CC="$ac_prog"
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2598 if test -n "$ac_ct_CC"; then
2599 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2600 echo "${ECHO_T}$ac_ct_CC" >&6; }
2602 { echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6; }
2607 test -n "$ac_ct_CC" && break
2610 if test "x$ac_ct_CC" = x; then
2613 case $cross_compiling:$ac_tool_warned in
2615 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2616 whose name does not start with the host triplet. If you think this
2617 configuration is useful to you, please write to autoconf@gnu.org." >&5
2618 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2619 whose name does not start with the host triplet. If you think this
2620 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2621 ac_tool_warned=yes ;;
2630 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2631 See \`config.log' for more details." >&5
2632 echo "$as_me: error: no acceptable C compiler found in \$PATH
2633 See \`config.log' for more details." >&2;}
2634 { (exit 1); exit 1; }; }
2636 # Provide some information about the compiler.
2637 echo "$as_me:$LINENO: checking for C compiler version" >&5
2638 ac_compiler=`set X $ac_compile; echo $2`
2639 { (ac_try="$ac_compiler --version >&5"
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compiler --version >&5") 2>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }
2649 { (ac_try="$ac_compiler -v >&5"
2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652 *) ac_try_echo=$ac_try;;
2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655 (eval "$ac_compiler -v >&5") 2>&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }
2659 { (ac_try="$ac_compiler -V >&5"
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665 (eval "$ac_compiler -V >&5") 2>&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2685 ac_clean_files_save=$ac_clean_files
2686 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2687 # Try to create an executable without -o first, disregard a.out.
2688 # It will help us diagnose broken compilers, and finding out an intuition
2690 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2691 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2692 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2694 # List of possible output files, starting from the most likely.
2695 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2696 # only as a last resort. b.out is created by i960 compilers.
2697 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2699 # The IRIX 6 linker writes into existing files which may not be
2700 # executable, retaining their permissions. Remove them first so a
2701 # subsequent execution test works.
2703 for ac_file in $ac_files
2706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2707 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2712 if { (ac_try="$ac_link_default"
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_link_default") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; then
2722 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2723 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2724 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2725 # so that the user can short-circuit this test for compilers unknown to
2727 for ac_file in $ac_files ''
2729 test -f "$ac_file" || continue
2731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2734 # We found the default executable, but exeext='' is most
2738 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2740 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2742 # We set ac_cv_exeext here because the later test for it is not
2743 # safe: cross compilers may not add the suffix if given an `-o'
2744 # argument, so we may need to know it at that point already.
2745 # Even if this section looks crufty: it has the advantage of
2752 test "$ac_cv_exeext" = no && ac_cv_exeext=
2758 { echo "$as_me:$LINENO: result: $ac_file" >&5
2759 echo "${ECHO_T}$ac_file" >&6; }
2760 if test -z "$ac_file"; then
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2764 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2765 See \`config.log' for more details." >&5
2766 echo "$as_me: error: C compiler cannot create executables
2767 See \`config.log' for more details." >&2;}
2768 { (exit 77); exit 77; }; }
2771 ac_exeext=$ac_cv_exeext
2773 # Check that the compiler produces executables we can run. If not, either
2774 # the compiler is broken, or we cross compile.
2775 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2776 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2777 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2778 # If not cross compiling, check that we can run a simple program.
2779 if test "$cross_compiling" != yes; then
2780 if { ac_try='./$ac_file'
2781 { (case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_try") 2>&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2792 if test "$cross_compiling" = maybe; then
2795 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2796 If you meant to cross compile, use \`--host'.
2797 See \`config.log' for more details." >&5
2798 echo "$as_me: error: cannot run C compiled programs.
2799 If you meant to cross compile, use \`--host'.
2800 See \`config.log' for more details." >&2;}
2801 { (exit 1); exit 1; }; }
2805 { echo "$as_me:$LINENO: result: yes" >&5
2806 echo "${ECHO_T}yes" >&6; }
2808 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2809 ac_clean_files=$ac_clean_files_save
2810 # Check that the compiler produces executables we can run. If not, either
2811 # the compiler is broken, or we cross compile.
2812 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2813 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2814 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2815 echo "${ECHO_T}$cross_compiling" >&6; }
2817 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2818 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2819 if { (ac_try="$ac_link"
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_link") 2>&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; then
2829 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2830 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2831 # work properly (i.e., refer to `conftest.exe'), while it won't with
2833 for ac_file in conftest.exe conftest conftest.*; do
2834 test -f "$ac_file" || continue
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2837 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2843 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2844 See \`config.log' for more details." >&5
2845 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2846 See \`config.log' for more details." >&2;}
2847 { (exit 1); exit 1; }; }
2850 rm -f conftest$ac_cv_exeext
2851 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2852 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2854 rm -f conftest.$ac_ext
2855 EXEEXT=$ac_cv_exeext
2857 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2858 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2859 if test "${ac_cv_objext+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 cat >conftest.$ac_ext <<_ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2877 rm -f conftest.o conftest.obj
2878 if { (ac_try="$ac_compile"
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_compile") 2>&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 for ac_file in conftest.o conftest.obj conftest.*; do
2889 test -f "$ac_file" || continue;
2891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2892 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2901 See \`config.log' for more details." >&5
2902 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2903 See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
2907 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2909 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2910 echo "${ECHO_T}$ac_cv_objext" >&6; }
2911 OBJEXT=$ac_cv_objext
2913 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2914 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2915 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } && {
2950 test -z "$ac_c_werror_flag" ||
2951 test ! -s conftest.err
2952 } && test -s conftest.$ac_objext; then
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2965 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2966 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2967 GCC=`test $ac_compiler_gnu = yes && echo yes`
2968 ac_test_CFLAGS=${CFLAGS+set}
2969 ac_save_CFLAGS=$CFLAGS
2970 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2971 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2972 if test "${ac_cv_prog_cc_g+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 ac_save_c_werror_flag=$ac_c_werror_flag
2976 ac_c_werror_flag=yes
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>conftest.er1
3003 grep -v '^ *+' conftest.er1 >conftest.err
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } && {
3008 test -z "$ac_c_werror_flag" ||
3009 test ! -s conftest.err
3010 } && test -s conftest.$ac_objext; then
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3032 rm -f conftest.$ac_objext
3033 if { (ac_try="$ac_compile"
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_compile") 2>conftest.er1
3041 grep -v '^ *+' conftest.er1 >conftest.err
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } && {
3046 test -z "$ac_c_werror_flag" ||
3047 test ! -s conftest.err
3048 } && test -s conftest.$ac_objext; then
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 ac_c_werror_flag=$ac_save_c_werror_flag
3056 cat >conftest.$ac_ext <<_ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3071 rm -f conftest.$ac_objext
3072 if { (ac_try="$ac_compile"
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_compile") 2>conftest.er1
3080 grep -v '^ *+' conftest.er1 >conftest.err
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } && {
3085 test -z "$ac_c_werror_flag" ||
3086 test ! -s conftest.err
3087 } && test -s conftest.$ac_objext; then
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3103 ac_c_werror_flag=$ac_save_c_werror_flag
3105 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3107 if test "$ac_test_CFLAGS" = set; then
3108 CFLAGS=$ac_save_CFLAGS
3109 elif test $ac_cv_prog_cc_g = yes; then
3110 if test "$GCC" = yes; then
3116 if test "$GCC" = yes; then
3122 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3123 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3124 if test "${ac_cv_prog_cc_c89+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 ac_cv_prog_cc_c89=no
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3137 #include <sys/types.h>
3138 #include <sys/stat.h>
3139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3140 struct buf { int x; };
3141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3142 static char *e (p, i)
3148 static char *f (char * (*g) (char **, int), char **p, ...)
3153 s = g (p, va_arg (v,int));
3158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3159 function prototypes and stuff, but not '\xHH' hex character constants.
3160 These don't provoke an error unfortunately, instead are silently treated
3161 as 'x'. The following induces an error, until -std is added to get
3162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3163 array size at least. It's necessary to write '\x00'==0 to get something
3164 that's true only with -std. */
3165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3167 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3168 inside strings and character constants. */
3170 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3172 int test (int i, double x);
3173 struct s1 {int (*f) (int a);};
3174 struct s2 {int (*f) (double a);};
3175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3181 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3187 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3189 CC="$ac_save_CC $ac_arg"
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compile") 2>conftest.er1
3199 grep -v '^ *+' conftest.er1 >conftest.err
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } && {
3204 test -z "$ac_c_werror_flag" ||
3205 test ! -s conftest.err
3206 } && test -s conftest.$ac_objext; then
3207 ac_cv_prog_cc_c89=$ac_arg
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3215 rm -f core conftest.err conftest.$ac_objext
3216 test "x$ac_cv_prog_cc_c89" != "xno" && break
3218 rm -f conftest.$ac_ext
3223 case "x$ac_cv_prog_cc_c89" in
3225 { echo "$as_me:$LINENO: result: none needed" >&5
3226 echo "${ECHO_T}none needed" >&6; } ;;
3228 { echo "$as_me:$LINENO: result: unsupported" >&5
3229 echo "${ECHO_T}unsupported" >&6; } ;;
3231 CC="$CC $ac_cv_prog_cc_c89"
3232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 depcc="$CC" am_compiler_list=
3245 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3246 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3247 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3251 # We make a subdir and do the tests there. Otherwise we can end up
3252 # making bogus files that we don't know about and never remove. For
3253 # instance it was reported that on HP-UX the gcc test will end up
3254 # making a dummy file named `D' -- because `-MD' means `put the output
3257 # Copy depcomp to subdir because otherwise we won't find it if we're
3258 # using a relative directory.
3259 cp "$am_depcomp" conftest.dir
3261 # We will build objects and dependencies in a subdirectory because
3262 # it helps to detect inapplicable dependency modes. For instance
3263 # both Tru64's cc and ICC support -MD to output dependencies as a
3264 # side effect of compilation, but ICC will put the dependencies in
3265 # the current directory while Tru64 will put them in the object
3269 am_cv_CC_dependencies_compiler_type=none
3270 if test "$am_compiler_list" = ""; then
3271 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3273 for depmode in $am_compiler_list; do
3274 # Setup a source with many dependencies, because some compilers
3275 # like to wrap large dependency lists on column 80 (with \), and
3276 # we should not choose a depcomp mode which is confused by this.
3278 # We need to recreate these files for each test, as the compiler may
3279 # overwrite some of them when testing with obscure command lines.
3280 # This happens at least with the AIX C compiler.
3282 for i in 1 2 3 4 5 6; do
3283 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3286 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3290 # after this tag, mechanisms are not by side-effect, so they'll
3291 # only be used when explicitly requested
3292 if test "x$enable_dependency_tracking" = xyes; then
3300 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3301 # mode. It turns out that the SunPro C++ compiler does not properly
3302 # handle `-M -o', and we need to detect this.
3303 if depmode=$depmode \
3304 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3305 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3306 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3307 >/dev/null 2>conftest.err &&
3308 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3309 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3310 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3311 # icc doesn't choke on unknown options, it will just issue warnings
3312 # (even with -Werror). So we grep stderr for any message
3313 # that says an option was ignored.
3314 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3315 am_cv_CC_dependencies_compiler_type=$depmode
3324 am_cv_CC_dependencies_compiler_type=none
3328 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3329 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3330 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3335 test "x$enable_dependency_tracking" != xno \
3336 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3338 am__fastdepCC_FALSE='#'
3340 am__fastdepCC_TRUE='#'
3341 am__fastdepCC_FALSE=
3346 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3347 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3348 if test "${ac_cv_search_strerror+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 ac_func_search_save_LIBS=$LIBS
3352 cat >conftest.$ac_ext <<_ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3359 /* Override any GCC internal prototype to avoid an error.
3360 Use char because int might match the return type of a GCC
3361 builtin and then its argument prototype would still apply. */
3374 for ac_lib in '' cposix; do
3375 if test -z "$ac_lib"; then
3376 ac_res="none required"
3379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3381 rm -f conftest.$ac_objext conftest$ac_exeext
3382 if { (ac_try="$ac_link"
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_link") 2>conftest.er1
3390 grep -v '^ *+' conftest.er1 >conftest.err
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } && {
3395 test -z "$ac_c_werror_flag" ||
3396 test ! -s conftest.err
3397 } && test -s conftest$ac_exeext &&
3398 $as_test_x conftest$ac_exeext; then
3399 ac_cv_search_strerror=$ac_res
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3409 if test "${ac_cv_search_strerror+set}" = set; then
3413 if test "${ac_cv_search_strerror+set}" = set; then
3416 ac_cv_search_strerror=no
3419 LIBS=$ac_func_search_save_LIBS
3421 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3422 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3423 ac_res=$ac_cv_search_strerror
3424 if test "$ac_res" != no; then
3425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3430 ac_cpp='$CPP $CPPFLAGS'
3431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434 if test -n "$ac_tool_prefix"; then
3435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3439 if test "${ac_cv_prog_CC+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 if test -n "$CC"; then
3464 { echo "$as_me:$LINENO: result: $CC" >&5
3465 echo "${ECHO_T}$CC" >&6; }
3467 { echo "$as_me:$LINENO: result: no" >&5
3468 echo "${ECHO_T}no" >&6; }
3473 if test -z "$ac_cv_prog_CC"; then
3475 # Extract the first word of "gcc", so it can be a program name with args.
3476 set dummy gcc; ac_word=$2
3477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 if test -n "$ac_ct_CC"; then
3483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 test -z "$as_dir" && as_dir=.
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3492 ac_cv_prog_ac_ct_CC="gcc"
3493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3503 if test -n "$ac_ct_CC"; then
3504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3505 echo "${ECHO_T}$ac_ct_CC" >&6; }
3507 { echo "$as_me:$LINENO: result: no" >&5
3508 echo "${ECHO_T}no" >&6; }
3511 if test "x$ac_ct_CC" = x; then
3514 case $cross_compiling:$ac_tool_warned in
3516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3517 whose name does not start with the host triplet. If you think this
3518 configuration is useful to you, please write to autoconf@gnu.org." >&5
3519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3520 whose name does not start with the host triplet. If you think this
3521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3522 ac_tool_warned=yes ;;
3530 if test -z "$CC"; then
3531 if test -n "$ac_tool_prefix"; then
3532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3533 set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 if test -n "$CC"; then
3540 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
3550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 if test -n "$CC"; then
3561 { echo "$as_me:$LINENO: result: $CC" >&5
3562 echo "${ECHO_T}$CC" >&6; }
3564 { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3571 if test -z "$CC"; then
3572 # Extract the first word of "cc", so it can be a program name with args.
3573 set dummy cc; ac_word=$2
3574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3576 if test "${ac_cv_prog_CC+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3591 ac_prog_rejected=yes
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 if test $ac_prog_rejected = yes; then
3603 # We found a bogon in the path, so make sure we never use it.
3604 set dummy $ac_cv_prog_CC
3606 if test $# != 0; then
3607 # We chose a different compiler from the bogus one.
3608 # However, it has the same basename, so the bogon will be chosen
3609 # first if we set CC to just the basename; use the full file name.
3611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
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; }
3627 if test -z "$CC"; then
3628 if test -n "$ac_tool_prefix"; then
3629 for ac_prog in cl.exe
3631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3635 if test "${ac_cv_prog_CC+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 if test -n "$CC"; then
3660 { echo "$as_me:$LINENO: result: $CC" >&5
3661 echo "${ECHO_T}$CC" >&6; }
3663 { echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6; }
3668 test -n "$CC" && break
3671 if test -z "$CC"; then
3673 for ac_prog in cl.exe
3675 # Extract the first word of "$ac_prog", so it can be a program name with args.
3676 set dummy $ac_prog; ac_word=$2
3677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 if test -n "$ac_ct_CC"; then
3683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_ac_ct_CC="$ac_prog"
3693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3703 if test -n "$ac_ct_CC"; then
3704 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3705 echo "${ECHO_T}$ac_ct_CC" >&6; }
3707 { echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6; }
3712 test -n "$ac_ct_CC" && break
3715 if test "x$ac_ct_CC" = x; then
3718 case $cross_compiling:$ac_tool_warned in
3720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3721 whose name does not start with the host triplet. If you think this
3722 configuration is useful to you, please write to autoconf@gnu.org." >&5
3723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3724 whose name does not start with the host triplet. If you think this
3725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3726 ac_tool_warned=yes ;;
3735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3736 See \`config.log' for more details." >&5
3737 echo "$as_me: error: no acceptable C compiler found in \$PATH
3738 See \`config.log' for more details." >&2;}
3739 { (exit 1); exit 1; }; }
3741 # Provide some information about the compiler.
3742 echo "$as_me:$LINENO: checking for C compiler version" >&5
3743 ac_compiler=`set X $ac_compile; echo $2`
3744 { (ac_try="$ac_compiler --version >&5"
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750 (eval "$ac_compiler --version >&5") 2>&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }
3754 { (ac_try="$ac_compiler -v >&5"
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3760 (eval "$ac_compiler -v >&5") 2>&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }
3764 { (ac_try="$ac_compiler -V >&5"
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3770 (eval "$ac_compiler -V >&5") 2>&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }
3775 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3776 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3777 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 cat >conftest.$ac_ext <<_ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3798 rm -f conftest.$ac_objext
3799 if { (ac_try="$ac_compile"
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805 (eval "$ac_compile") 2>conftest.er1
3807 grep -v '^ *+' conftest.er1 >conftest.err
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } && {
3812 test -z "$ac_c_werror_flag" ||
3813 test ! -s conftest.err
3814 } && test -s conftest.$ac_objext; then
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3827 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3828 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3829 GCC=`test $ac_compiler_gnu = yes && echo yes`
3830 ac_test_CFLAGS=${CFLAGS+set}
3831 ac_save_CFLAGS=$CFLAGS
3832 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3833 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3834 if test "${ac_cv_prog_cc_g+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 ac_save_c_werror_flag=$ac_c_werror_flag
3838 ac_c_werror_flag=yes
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3856 rm -f conftest.$ac_objext
3857 if { (ac_try="$ac_compile"
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_compile") 2>conftest.er1
3865 grep -v '^ *+' conftest.er1 >conftest.err
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && {
3870 test -z "$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3872 } && test -s conftest.$ac_objext; then
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3879 cat >conftest.$ac_ext <<_ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3894 rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_compile") 2>conftest.er1
3903 grep -v '^ *+' conftest.er1 >conftest.err
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } && {
3908 test -z "$ac_c_werror_flag" ||
3909 test ! -s conftest.err
3910 } && test -s conftest.$ac_objext; then
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 ac_c_werror_flag=$ac_save_c_werror_flag
3918 cat >conftest.$ac_ext <<_ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3933 rm -f conftest.$ac_objext
3934 if { (ac_try="$ac_compile"
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_compile") 2>conftest.er1
3942 grep -v '^ *+' conftest.er1 >conftest.err
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } && {
3947 test -z "$ac_c_werror_flag" ||
3948 test ! -s conftest.err
3949 } && test -s conftest.$ac_objext; then
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 ac_c_werror_flag=$ac_save_c_werror_flag
3967 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3968 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3969 if test "$ac_test_CFLAGS" = set; then
3970 CFLAGS=$ac_save_CFLAGS
3971 elif test $ac_cv_prog_cc_g = yes; then
3972 if test "$GCC" = yes; then
3978 if test "$GCC" = yes; then
3984 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3985 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3986 if test "${ac_cv_prog_cc_c89+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 ac_cv_prog_cc_c89=no
3991 cat >conftest.$ac_ext <<_ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3999 #include <sys/types.h>
4000 #include <sys/stat.h>
4001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4002 struct buf { int x; };
4003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4004 static char *e (p, i)
4010 static char *f (char * (*g) (char **, int), char **p, ...)
4015 s = g (p, va_arg (v,int));
4020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4021 function prototypes and stuff, but not '\xHH' hex character constants.
4022 These don't provoke an error unfortunately, instead are silently treated
4023 as 'x'. The following induces an error, until -std is added to get
4024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4025 array size at least. It's necessary to write '\x00'==0 to get something
4026 that's true only with -std. */
4027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4030 inside strings and character constants. */
4032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4034 int test (int i, double x);
4035 struct s1 {int (*f) (int a);};
4036 struct s2 {int (*f) (double a);};
4037 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4043 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4049 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4051 CC="$ac_save_CC $ac_arg"
4052 rm -f conftest.$ac_objext
4053 if { (ac_try="$ac_compile"
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4061 grep -v '^ *+' conftest.er1 >conftest.err
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && {
4066 test -z "$ac_c_werror_flag" ||
4067 test ! -s conftest.err
4068 } && test -s conftest.$ac_objext; then
4069 ac_cv_prog_cc_c89=$ac_arg
4071 echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4077 rm -f core conftest.err conftest.$ac_objext
4078 test "x$ac_cv_prog_cc_c89" != "xno" && break
4080 rm -f conftest.$ac_ext
4085 case "x$ac_cv_prog_cc_c89" in
4087 { echo "$as_me:$LINENO: result: none needed" >&5
4088 echo "${ECHO_T}none needed" >&6; } ;;
4090 { echo "$as_me:$LINENO: result: unsupported" >&5
4091 echo "${ECHO_T}unsupported" >&6; } ;;
4093 CC="$CC $ac_cv_prog_cc_c89"
4094 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4095 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4100 ac_cpp='$CPP $CPPFLAGS'
4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105 depcc="$CC" am_compiler_list=
4107 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4108 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4109 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4113 # We make a subdir and do the tests there. Otherwise we can end up
4114 # making bogus files that we don't know about and never remove. For
4115 # instance it was reported that on HP-UX the gcc test will end up
4116 # making a dummy file named `D' -- because `-MD' means `put the output
4119 # Copy depcomp to subdir because otherwise we won't find it if we're
4120 # using a relative directory.
4121 cp "$am_depcomp" conftest.dir
4123 # We will build objects and dependencies in a subdirectory because
4124 # it helps to detect inapplicable dependency modes. For instance
4125 # both Tru64's cc and ICC support -MD to output dependencies as a
4126 # side effect of compilation, but ICC will put the dependencies in
4127 # the current directory while Tru64 will put them in the object
4131 am_cv_CC_dependencies_compiler_type=none
4132 if test "$am_compiler_list" = ""; then
4133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4135 for depmode in $am_compiler_list; do
4136 # Setup a source with many dependencies, because some compilers
4137 # like to wrap large dependency lists on column 80 (with \), and
4138 # we should not choose a depcomp mode which is confused by this.
4140 # We need to recreate these files for each test, as the compiler may
4141 # overwrite some of them when testing with obscure command lines.
4142 # This happens at least with the AIX C compiler.
4144 for i in 1 2 3 4 5 6; do
4145 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4148 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4152 # after this tag, mechanisms are not by side-effect, so they'll
4153 # only be used when explicitly requested
4154 if test "x$enable_dependency_tracking" = xyes; then
4162 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4163 # mode. It turns out that the SunPro C++ compiler does not properly
4164 # handle `-M -o', and we need to detect this.
4165 if depmode=$depmode \
4166 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4167 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4168 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4169 >/dev/null 2>conftest.err &&
4170 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4171 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4172 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4173 # icc doesn't choke on unknown options, it will just issue warnings
4174 # (even with -Werror). So we grep stderr for any message
4175 # that says an option was ignored.
4176 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4177 am_cv_CC_dependencies_compiler_type=$depmode
4186 am_cv_CC_dependencies_compiler_type=none
4190 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4191 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4192 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4197 test "x$enable_dependency_tracking" != xno \
4198 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4200 am__fastdepCC_FALSE='#'
4202 am__fastdepCC_TRUE='#'
4203 am__fastdepCC_FALSE=
4210 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4211 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4212 if test "${am_cv_prog_cc_stdc+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 am_cv_prog_cc_stdc=no
4217 # Don't try gcc -ansi; that turns off useful extensions and
4218 # breaks some systems' header files.
4219 # AIX -qlanglvl=ansi
4220 # Ultrix and OSF/1 -std1
4221 # HP-UX 10.20 and later -Ae
4222 # HP-UX older versions -Aa -D_HPUX_SOURCE
4223 # SVR4 -Xc -D__EXTENSIONS__
4224 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4226 CC="$ac_save_CC $ac_arg"
4227 cat >conftest.$ac_ext <<_ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4235 #include <sys/types.h>
4236 #include <sys/stat.h>
4237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4238 struct buf { int x; };
4239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4240 static char *e (p, i)
4246 static char *f (char * (*g) (char **, int), char **p, ...)
4251 s = g (p, va_arg (v,int));
4255 int test (int i, double x);
4256 struct s1 {int (*f) (int a);};
4257 struct s2 {int (*f) (double a);};
4258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4266 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_compile") 2>conftest.er1
4281 grep -v '^ *+' conftest.er1 >conftest.err
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && {
4286 test -z "$ac_c_werror_flag" ||
4287 test ! -s conftest.err
4288 } && test -s conftest.$ac_objext; then
4289 am_cv_prog_cc_stdc="$ac_arg"; break
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 if test -z "$am_cv_prog_cc_stdc"; then
4304 { echo "$as_me:$LINENO: result: none needed" >&5
4305 echo "${ECHO_T}none needed" >&6; }
4307 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4308 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
4310 case "x$am_cv_prog_cc_stdc" in
4312 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4315 # By default we simply use the C compiler to build assembly code.
4318 # Set ASFLAGS if not already set.
4319 : ${CCASFLAGS='$(CFLAGS)'}
4323 ac_cpp='$CPP $CPPFLAGS'
4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4328 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4329 # On Suns, sometimes $CPP names a directory.
4330 if test -n "$CPP" && test -d "$CPP"; then
4333 if test -z "$CPP"; then
4334 if test "${ac_cv_prog_CPP+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 # Double quotes because CPP needs to be expanded
4338 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4341 for ac_c_preproc_warn_flag in '' yes
4343 # Use a header file that comes with gcc, so configuring glibc
4344 # with a fresh cross-compiler works.
4345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4346 # <limits.h> exists even on freestanding compilers.
4347 # On the NeXT, cc -E runs the code through the compiler's parser,
4348 # not just through cpp. "Syntax error" is here to catch this case.
4349 cat >conftest.$ac_ext <<_ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4356 # include <limits.h>
4358 # include <assert.h>
4362 if { (ac_try="$ac_cpp conftest.$ac_ext"
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } >/dev/null && {
4375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4376 test ! -s conftest.err
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4383 # Broken: fails on valid input.
4387 rm -f conftest.err conftest.$ac_ext
4389 # OK, works on sane cases. Now check whether nonexistent headers
4390 # can be detected and how.
4391 cat >conftest.$ac_ext <<_ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 #include <ac_nonexistent.h>
4399 if { (ac_try="$ac_cpp conftest.$ac_ext"
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4407 grep -v '^ *+' conftest.er1 >conftest.err
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } >/dev/null && {
4412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4413 test ! -s conftest.err
4415 # Broken: success on invalid input.
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 # Passes both tests.
4426 rm -f conftest.err conftest.$ac_ext
4429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4430 rm -f conftest.err conftest.$ac_ext
4431 if $ac_preproc_ok; then
4443 { echo "$as_me:$LINENO: result: $CPP" >&5
4444 echo "${ECHO_T}$CPP" >&6; }
4446 for ac_c_preproc_warn_flag in '' yes
4448 # Use a header file that comes with gcc, so configuring glibc
4449 # with a fresh cross-compiler works.
4450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4451 # <limits.h> exists even on freestanding compilers.
4452 # On the NeXT, cc -E runs the code through the compiler's parser,
4453 # not just through cpp. "Syntax error" is here to catch this case.
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4461 # include <limits.h>
4463 # include <assert.h>
4467 if { (ac_try="$ac_cpp conftest.$ac_ext"
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4475 grep -v '^ *+' conftest.er1 >conftest.err
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } >/dev/null && {
4480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4481 test ! -s conftest.err
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4488 # Broken: fails on valid input.
4492 rm -f conftest.err conftest.$ac_ext
4494 # OK, works on sane cases. Now check whether nonexistent headers
4495 # can be detected and how.
4496 cat >conftest.$ac_ext <<_ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 #include <ac_nonexistent.h>
4504 if { (ac_try="$ac_cpp conftest.$ac_ext"
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4512 grep -v '^ *+' conftest.er1 >conftest.err
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } >/dev/null && {
4517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4518 test ! -s conftest.err
4520 # Broken: success on invalid input.
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 # Passes both tests.
4531 rm -f conftest.err conftest.$ac_ext
4534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4535 rm -f conftest.err conftest.$ac_ext
4536 if $ac_preproc_ok; then
4539 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4540 See \`config.log' for more details." >&5
4541 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4542 See \`config.log' for more details." >&2;}
4543 { (exit 1); exit 1; }; }
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4554 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4555 if test "${ac_cv_path_GREP+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 # Extract the first word of "grep ggrep" to use in msg output
4559 if test -z "$GREP"; then
4560 set dummy grep ggrep; ac_prog_name=$2
4561 if test "${ac_cv_path_GREP+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 ac_path_GREP_found=false
4565 # Loop through the user's path and test for each of PROGNAME-LIST
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4570 test -z "$as_dir" && as_dir=.
4571 for ac_prog in grep ggrep; do
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4574 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4575 # Check for GNU ac_path_GREP and select it if it is found.
4576 # Check for GNU $ac_path_GREP
4577 case `"$ac_path_GREP" --version 2>&1` in
4579 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4582 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4585 cat "conftest.in" "conftest.in" >"conftest.tmp"
4586 mv "conftest.tmp" "conftest.in"
4587 cp "conftest.in" "conftest.nl"
4588 echo 'GREP' >> "conftest.nl"
4589 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4591 ac_count=`expr $ac_count + 1`
4592 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4593 # Best one so far, save it but keep looking for a better one
4594 ac_cv_path_GREP="$ac_path_GREP"
4595 ac_path_GREP_max=$ac_count
4597 # 10*(2^10) chars as input seems more than enough
4598 test $ac_count -gt 10 && break
4600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 $ac_path_GREP_found && break 3
4614 GREP="$ac_cv_path_GREP"
4615 if test -z "$GREP"; then
4616 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4617 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4618 { (exit 1); exit 1; }; }
4622 ac_cv_path_GREP=$GREP
4627 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4628 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4629 GREP="$ac_cv_path_GREP"
4632 { echo "$as_me:$LINENO: checking for egrep" >&5
4633 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4634 if test "${ac_cv_path_EGREP+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4638 then ac_cv_path_EGREP="$GREP -E"
4640 # Extract the first word of "egrep" to use in msg output
4641 if test -z "$EGREP"; then
4642 set dummy egrep; ac_prog_name=$2
4643 if test "${ac_cv_path_EGREP+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 ac_path_EGREP_found=false
4647 # Loop through the user's path and test for each of PROGNAME-LIST
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4652 test -z "$as_dir" && as_dir=.
4653 for ac_prog in egrep; do
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4656 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4657 # Check for GNU ac_path_EGREP and select it if it is found.
4658 # Check for GNU $ac_path_EGREP
4659 case `"$ac_path_EGREP" --version 2>&1` in
4661 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4664 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4667 cat "conftest.in" "conftest.in" >"conftest.tmp"
4668 mv "conftest.tmp" "conftest.in"
4669 cp "conftest.in" "conftest.nl"
4670 echo 'EGREP' >> "conftest.nl"
4671 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4673 ac_count=`expr $ac_count + 1`
4674 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4675 # Best one so far, save it but keep looking for a better one
4676 ac_cv_path_EGREP="$ac_path_EGREP"
4677 ac_path_EGREP_max=$ac_count
4679 # 10*(2^10) chars as input seems more than enough
4680 test $ac_count -gt 10 && break
4682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686 $ac_path_EGREP_found && break 3
4696 EGREP="$ac_cv_path_EGREP"
4697 if test -z "$EGREP"; then
4698 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4699 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4700 { (exit 1); exit 1; }; }
4704 ac_cv_path_EGREP=$EGREP
4710 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4711 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4712 EGREP="$ac_cv_path_EGREP"
4715 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4716 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4717 if test "${ac_cv_header_stdc+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4739 rm -f conftest.$ac_objext
4740 if { (ac_try="$ac_compile"
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_compile") 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } && {
4753 test -z "$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4755 } && test -s conftest.$ac_objext; then
4756 ac_cv_header_stdc=yes
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4761 ac_cv_header_stdc=no
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 if test $ac_cv_header_stdc = yes; then
4767 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4768 cat >conftest.$ac_ext <<_ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4778 $EGREP "memchr" >/dev/null 2>&1; then
4781 ac_cv_header_stdc=no
4787 if test $ac_cv_header_stdc = yes; then
4788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799 $EGREP "free" >/dev/null 2>&1; then
4802 ac_cv_header_stdc=no
4808 if test $ac_cv_header_stdc = yes; then
4809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4810 if test "$cross_compiling" = yes; then
4813 cat >conftest.$ac_ext <<_ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4821 #if ((' ' & 0x0FF) == 0x020)
4822 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4823 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4825 # define ISLOWER(c) \
4826 (('a' <= (c) && (c) <= 'i') \
4827 || ('j' <= (c) && (c) <= 'r') \
4828 || ('s' <= (c) && (c) <= 'z'))
4829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4837 for (i = 0; i < 256; i++)
4838 if (XOR (islower (i), ISLOWER (i))
4839 || toupper (i) != TOUPPER (i))
4844 rm -f conftest$ac_exeext
4845 if { (ac_try="$ac_link"
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4851 (eval "$ac_link") 2>&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4855 { (case "(($ac_try" in
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860 (eval "$ac_try") 2>&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4866 echo "$as_me: program exited with status $ac_status" >&5
4867 echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4871 ac_cv_header_stdc=no
4873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4879 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4880 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4881 if test $ac_cv_header_stdc = yes; then
4883 cat >>confdefs.h <<\_ACEOF
4884 #define STDC_HEADERS 1
4889 # Make sure we can run config.sub.
4890 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4891 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4892 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4893 { (exit 1); exit 1; }; }
4895 { echo "$as_me:$LINENO: checking build system type" >&5
4896 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4897 if test "${ac_cv_build+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 ac_build_alias=$build_alias
4901 test "x$ac_build_alias" = x &&
4902 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4903 test "x$ac_build_alias" = x &&
4904 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4905 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4906 { (exit 1); exit 1; }; }
4907 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4908 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4909 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4910 { (exit 1); exit 1; }; }
4913 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4914 echo "${ECHO_T}$ac_cv_build" >&6; }
4915 case $ac_cv_build in
4917 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4918 echo "$as_me: error: invalid value of canonical build" >&2;}
4919 { (exit 1); exit 1; }; };;
4922 ac_save_IFS=$IFS; IFS='-'
4928 # Remember, the first character of IFS is used to create $*,
4929 # except with old shells:
4932 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4935 { echo "$as_me:$LINENO: checking host system type" >&5
4936 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4937 if test "${ac_cv_host+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 if test "x$host_alias" = x; then
4941 ac_cv_host=$ac_cv_build
4943 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4944 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4945 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4946 { (exit 1); exit 1; }; }
4950 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4951 echo "${ECHO_T}$ac_cv_host" >&6; }
4954 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4955 echo "$as_me: error: invalid value of canonical host" >&2;}
4956 { (exit 1); exit 1; }; };;
4959 ac_save_IFS=$IFS; IFS='-'
4965 # Remember, the first character of IFS is used to create $*,
4966 # except with old shells:
4969 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4972 # Check whether --enable-trace was given.
4973 if test "${enable_trace+set}" = set; then
4974 enableval=$enable_trace; if test "$enableval" == "yes"; then
4976 cat >>confdefs.h <<\_ACEOF
4977 #define ENABLE_TRACE_IO 1
4983 # Check whether --enable-watch was given.
4984 if test "${enable_watch+set}" = set; then
4985 enableval=$enable_watch; if test "$enableval" == "yes"; then
4987 cat >>confdefs.h <<\_ACEOF
4988 #define ENABLE_WATCH 1
4995 # Check whether --with-osmesa was given.
4996 if test "${with_osmesa+set}" = set; then
4997 withval=$with_osmesa;
5003 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5013 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5014 inttypes.h stdint.h unistd.h
5016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 cat >conftest.$ac_ext <<_ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 $ac_includes_default
5030 #include <$ac_header>
5032 rm -f conftest.$ac_objext
5033 if { (ac_try="$ac_compile"
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039 (eval "$ac_compile") 2>conftest.er1
5041 grep -v '^ *+' conftest.er1 >conftest.err
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } && {
5046 test -z "$ac_c_werror_flag" ||
5047 test ! -s conftest.err
5048 } && test -s conftest.$ac_objext; then
5049 eval "$as_ac_Header=yes"
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 eval "$as_ac_Header=no"
5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059 ac_res=`eval echo '${'$as_ac_Header'}'`
5060 { echo "$as_me:$LINENO: result: $ac_res" >&5
5061 echo "${ECHO_T}$ac_res" >&6; }
5062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5063 cat >>confdefs.h <<_ACEOF
5064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5072 if test "x$with_osmesa" != xno; then
5075 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
5076 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
5077 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 ac_check_lib_save_LIBS=$LIBS
5081 LIBS="-lOSMesa $LIBS"
5082 cat >conftest.$ac_ext <<_ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5089 /* Override any GCC internal prototype to avoid an error.
5090 Use char because int might match the return type of a GCC
5091 builtin and then its argument prototype would still apply. */
5095 char OSMesaCreateContext ();
5099 return OSMesaCreateContext ();
5104 rm -f conftest.$ac_objext conftest$ac_exeext
5105 if { (ac_try="$ac_link"
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_link") 2>conftest.er1
5113 grep -v '^ *+' conftest.er1 >conftest.err
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } && {
5118 test -z "$ac_c_werror_flag" ||
5119 test ! -s conftest.err
5120 } && test -s conftest$ac_exeext &&
5121 $as_test_x conftest$ac_exeext; then
5122 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5127 ac_cv_lib_OSMesa_OSMesaCreateContext=no
5130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5131 conftest$ac_exeext conftest.$ac_ext
5132 LIBS=$ac_check_lib_save_LIBS
5134 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
5135 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
5136 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
5137 cat >>confdefs.h <<_ACEOF
5138 #define HAVE_LIBOSMESA 1
5141 LIBS="-lOSMesa $LIBS"
5144 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
5145 See \`config.log' for more details." >&5
5146 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
5147 See \`config.log' for more details." >&2;}
5148 { (exit 1); exit 1; }; }
5151 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
5152 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
5153 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
5154 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
5158 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
5160 # Is the header compilable?
5161 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
5162 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
5163 cat >conftest.$ac_ext <<_ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5169 $ac_includes_default
5170 #include <GL/osmesa.h>
5172 rm -f conftest.$ac_objext
5173 if { (ac_try="$ac_compile"
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179 (eval "$ac_compile") 2>conftest.er1
5181 grep -v '^ *+' conftest.er1 >conftest.err
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } && {
5186 test -z "$ac_c_werror_flag" ||
5187 test ! -s conftest.err
5188 } && test -s conftest.$ac_objext; then
5189 ac_header_compiler=yes
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5194 ac_header_compiler=no
5197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5199 echo "${ECHO_T}$ac_header_compiler" >&6; }
5201 # Is the header present?
5202 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
5203 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
5204 cat >conftest.$ac_ext <<_ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 #include <GL/osmesa.h>
5212 if { (ac_try="$ac_cpp conftest.$ac_ext"
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5220 grep -v '^ *+' conftest.er1 >conftest.err
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } >/dev/null && {
5225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5226 test ! -s conftest.err
5228 ac_header_preproc=yes
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5233 ac_header_preproc=no
5236 rm -f conftest.err conftest.$ac_ext
5237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5238 echo "${ECHO_T}$ac_header_preproc" >&6; }
5240 # So? What about this header?
5241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5243 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
5244 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5245 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
5246 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
5247 ac_header_preproc=yes
5250 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
5251 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
5252 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
5253 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
5254 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
5255 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
5256 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
5257 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
5258 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
5259 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
5260 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
5261 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
5265 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
5266 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
5267 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 ac_cv_header_GL_osmesa_h=$ac_header_preproc
5272 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
5273 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
5276 if test $ac_cv_header_GL_osmesa_h = yes; then
5279 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
5280 See \`config.log' for more details." >&5
5281 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
5282 See \`config.log' for more details." >&2;}
5283 { (exit 1); exit 1; }; }
5292 if test "x$with_osmesa" != xno; then
5294 OSMESA_DRIVER_FALSE='#'
5296 OSMESA_DRIVER_TRUE='#'
5297 OSMESA_DRIVER_FALSE=
5301 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5302 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
5303 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
5304 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
5308 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
5310 # Is the header compilable?
5311 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
5312 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
5313 cat >conftest.$ac_ext <<_ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 $ac_includes_default
5320 #include <Carbon/Carbon.h>
5322 rm -f conftest.$ac_objext
5323 if { (ac_try="$ac_compile"
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_compile") 2>conftest.er1
5331 grep -v '^ *+' conftest.er1 >conftest.err
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } && {
5336 test -z "$ac_c_werror_flag" ||
5337 test ! -s conftest.err
5338 } && test -s conftest.$ac_objext; then
5339 ac_header_compiler=yes
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5344 ac_header_compiler=no
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5349 echo "${ECHO_T}$ac_header_compiler" >&6; }
5351 # Is the header present?
5352 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
5353 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
5354 cat >conftest.$ac_ext <<_ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 #include <Carbon/Carbon.h>
5362 if { (ac_try="$ac_cpp conftest.$ac_ext"
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5370 grep -v '^ *+' conftest.er1 >conftest.err
5372 cat conftest.err >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } >/dev/null && {
5375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5376 test ! -s conftest.err
5378 ac_header_preproc=yes
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_header_preproc=no
5386 rm -f conftest.err conftest.$ac_ext
5387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5388 echo "${ECHO_T}$ac_header_preproc" >&6; }
5390 # So? What about this header?
5391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5393 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
5394 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
5396 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
5397 ac_header_preproc=yes
5400 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
5401 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
5403 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
5404 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
5405 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
5407 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
5408 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
5409 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
5411 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
5415 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
5416 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
5417 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
5422 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
5423 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
5426 if test $ac_cv_header_Carbon_Carbon_h = yes; then
5430 LIBS="$LIBS -framework OpenGL -framework AGL -framework Carbon -L/usr/X11R6/lib -lGL"
5432 cat >>confdefs.h <<\_ACEOF
5433 #define HAVE_CARBON 1
5437 cat >>confdefs.h <<\_ACEOF
5438 #define APPLE_BUILD 1
5448 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5449 if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5451 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5454 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5481 if test -n "$PKG_CONFIG"; then
5482 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5483 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5485 { echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6; }
5491 if test -z "$ac_cv_path_PKG_CONFIG"; then
5492 ac_pt_PKG_CONFIG=$PKG_CONFIG
5493 # Extract the first word of "pkg-config", so it can be a program name with args.
5494 set dummy pkg-config; ac_word=$2
5495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5497 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 case $ac_pt_PKG_CONFIG in
5502 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5524 if test -n "$ac_pt_PKG_CONFIG"; then
5525 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5526 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5528 { echo "$as_me:$LINENO: result: no" >&5
5529 echo "${ECHO_T}no" >&6; }
5532 if test "x$ac_pt_PKG_CONFIG" = x; then
5535 case $cross_compiling:$ac_tool_warned in
5537 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5538 whose name does not start with the host triplet. If you think this
5539 configuration is useful to you, please write to autoconf@gnu.org." >&5
5540 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5541 whose name does not start with the host triplet. If you think this
5542 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5543 ac_tool_warned=yes ;;
5545 PKG_CONFIG=$ac_pt_PKG_CONFIG
5548 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5552 if test -n "$PKG_CONFIG"; then
5553 _pkg_min_version=0.9.0
5554 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5555 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5556 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5557 { echo "$as_me:$LINENO: result: yes" >&5
5558 echo "${ECHO_T}yes" >&6; }
5560 { echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6; }
5568 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
5569 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
5571 if test -n "$PKG_CONFIG"; then
5572 if test -n "$LIBPNG_CFLAGS"; then
5573 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
5575 if test -n "$PKG_CONFIG" && \
5576 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
5577 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; then
5581 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
5589 if test -n "$PKG_CONFIG"; then
5590 if test -n "$LIBPNG_LIBS"; then
5591 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
5593 if test -n "$PKG_CONFIG" && \
5594 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
5595 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; then
5599 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
5610 if test $pkg_failed = yes; then
5612 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5613 _pkg_short_errors_supported=yes
5615 _pkg_short_errors_supported=no
5617 if test $_pkg_short_errors_supported = yes; then
5618 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
5620 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
5622 # Put the nasty error message in config.log where it belongs
5623 echo "$LIBPNG_PKG_ERRORS" >&5
5625 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
5629 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5630 installed software in a non-standard prefix.
5632 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5633 and LIBPNG_LIBS to avoid the need to call pkg-config.
5634 See the pkg-config man page for more details.
5636 echo "$as_me: error: Package requirements (libpng ) were not met:
5640 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5641 installed software in a non-standard prefix.
5643 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5644 and LIBPNG_LIBS to avoid the need to call pkg-config.
5645 See the pkg-config man page for more details.
5647 { (exit 1); exit 1; }; }
5648 elif test $pkg_failed = untried; then
5649 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5650 is in your PATH or set the PKG_CONFIG environment variable to the full
5653 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5654 and LIBPNG_LIBS to avoid the need to call pkg-config.
5655 See the pkg-config man page for more details.
5657 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5658 See \`config.log' for more details." >&5
5659 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5660 is in your PATH or set the PKG_CONFIG environment variable to the full
5663 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5664 and LIBPNG_LIBS to avoid the need to call pkg-config.
5665 See the pkg-config man page for more details.
5667 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5668 See \`config.log' for more details." >&2;}
5669 { (exit 1); exit 1; }; }
5671 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
5672 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
5673 { echo "$as_me:$LINENO: result: yes" >&5
5674 echo "${ECHO_T}yes" >&6; }
5679 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
5680 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
5681 if test "${ac_cv_lib_z_uncompress+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 ac_check_lib_save_LIBS=$LIBS
5686 cat >conftest.$ac_ext <<_ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5693 /* Override any GCC internal prototype to avoid an error.
5694 Use char because int might match the return type of a GCC
5695 builtin and then its argument prototype would still apply. */
5703 return uncompress ();
5708 rm -f conftest.$ac_objext conftest$ac_exeext
5709 if { (ac_try="$ac_link"
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_link") 2>conftest.er1
5717 grep -v '^ *+' conftest.er1 >conftest.err
5719 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } && {
5722 test -z "$ac_c_werror_flag" ||
5723 test ! -s conftest.err
5724 } && test -s conftest$ac_exeext &&
5725 $as_test_x conftest$ac_exeext; then
5726 ac_cv_lib_z_uncompress=yes
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ac_cv_lib_z_uncompress=no
5734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5735 conftest$ac_exeext conftest.$ac_ext
5736 LIBS=$ac_check_lib_save_LIBS
5738 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
5739 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
5740 if test $ac_cv_lib_z_uncompress = yes; then
5741 cat >>confdefs.h <<_ACEOF
5749 echo "Zlib (libz.so) could not be found, but is required."
5754 if test "$APPLE_BUILD" != 'yes'; then
5755 if test "x$with_osmesa" == "xno"; then
5757 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
5758 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
5759 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 ac_check_lib_save_LIBS=$LIBS
5764 cat >conftest.$ac_ext <<_ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5771 /* Override any GCC internal prototype to avoid an error.
5772 Use char because int might match the return type of a GCC
5773 builtin and then its argument prototype would still apply. */
5777 char glXQueryVersion ();
5781 return glXQueryVersion ();
5786 rm -f conftest.$ac_objext conftest$ac_exeext
5787 if { (ac_try="$ac_link"
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_link") 2>conftest.er1
5795 grep -v '^ *+' conftest.er1 >conftest.err
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && {
5800 test -z "$ac_c_werror_flag" ||
5801 test ! -s conftest.err
5802 } && test -s conftest$ac_exeext &&
5803 $as_test_x conftest$ac_exeext; then
5804 ac_cv_lib_GL_glXQueryVersion=yes
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 ac_cv_lib_GL_glXQueryVersion=no
5812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5813 conftest$ac_exeext conftest.$ac_ext
5814 LIBS=$ac_check_lib_save_LIBS
5816 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
5817 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
5818 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
5819 cat >>confdefs.h <<_ACEOF
5820 #define HAVE_LIBGL 1
5827 echo "The OpenGL library (libGL.so) could not be found, but is required."
5831 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5832 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5833 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5834 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5838 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5840 # Is the header compilable?
5841 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
5842 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
5843 cat >conftest.$ac_ext <<_ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5849 $ac_includes_default
5852 rm -f conftest.$ac_objext
5853 if { (ac_try="$ac_compile"
5855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856 *) ac_try_echo=$ac_try;;
5858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859 (eval "$ac_compile") 2>conftest.er1
5861 grep -v '^ *+' conftest.er1 >conftest.err
5863 cat conftest.err >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } && {
5866 test -z "$ac_c_werror_flag" ||
5867 test ! -s conftest.err
5868 } && test -s conftest.$ac_objext; then
5869 ac_header_compiler=yes
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 ac_header_compiler=no
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5879 echo "${ECHO_T}$ac_header_compiler" >&6; }
5881 # Is the header present?
5882 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
5883 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
5884 cat >conftest.$ac_ext <<_ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5892 if { (ac_try="$ac_cpp conftest.$ac_ext"
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5900 grep -v '^ *+' conftest.er1 >conftest.err
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } >/dev/null && {
5905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5906 test ! -s conftest.err
5908 ac_header_preproc=yes
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 ac_header_preproc=no
5916 rm -f conftest.err conftest.$ac_ext
5917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5918 echo "${ECHO_T}$ac_header_preproc" >&6; }
5920 # So? What about this header?
5921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5923 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5924 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5925 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
5926 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
5927 ac_header_preproc=yes
5930 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
5931 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
5932 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
5933 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
5934 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
5935 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
5936 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
5937 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5938 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
5939 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
5940 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
5941 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
5945 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5946 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5947 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 ac_cv_header_GL_gl_h=$ac_header_preproc
5952 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5953 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5956 if test $ac_cv_header_GL_gl_h = yes; then
5960 echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
5970 { echo "$as_me:$LINENO: checking for GTK" >&5
5971 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
5973 if test -n "$PKG_CONFIG"; then
5974 if test -n "$GTK_CFLAGS"; then
5975 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
5977 if test -n "$PKG_CONFIG" && \
5978 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
5979 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; then
5983 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
5991 if test -n "$PKG_CONFIG"; then
5992 if test -n "$GTK_LIBS"; then
5993 pkg_cv_GTK_LIBS="$GTK_LIBS"
5995 if test -n "$PKG_CONFIG" && \
5996 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
5997 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; then
6001 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
6012 if test $pkg_failed = yes; then
6014 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6015 _pkg_short_errors_supported=yes
6017 _pkg_short_errors_supported=no
6019 if test $_pkg_short_errors_supported = yes; then
6020 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
6022 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
6024 # Put the nasty error message in config.log where it belongs
6025 echo "$GTK_PKG_ERRORS" >&5
6027 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
6031 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6032 installed software in a non-standard prefix.
6034 Alternatively, you may set the environment variables GTK_CFLAGS
6035 and GTK_LIBS to avoid the need to call pkg-config.
6036 See the pkg-config man page for more details.
6038 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
6042 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6043 installed software in a non-standard prefix.
6045 Alternatively, you may set the environment variables GTK_CFLAGS
6046 and GTK_LIBS to avoid the need to call pkg-config.
6047 See the pkg-config man page for more details.
6049 { (exit 1); exit 1; }; }
6050 elif test $pkg_failed = untried; then
6051 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6052 is in your PATH or set the PKG_CONFIG environment variable to the full
6055 Alternatively, you may set the environment variables GTK_CFLAGS
6056 and GTK_LIBS to avoid the need to call pkg-config.
6057 See the pkg-config man page for more details.
6059 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
6060 See \`config.log' for more details." >&5
6061 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6062 is in your PATH or set the PKG_CONFIG environment variable to the full
6065 Alternatively, you may set the environment variables GTK_CFLAGS
6066 and GTK_LIBS to avoid the need to call pkg-config.
6067 See the pkg-config man page for more details.
6069 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
6070 See \`config.log' for more details." >&2;}
6071 { (exit 1); exit 1; }; }
6073 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
6074 GTK_LIBS=$pkg_cv_GTK_LIBS
6075 { echo "$as_me:$LINENO: result: yes" >&5
6076 echo "${ECHO_T}yes" >&6; }
6080 cat >>confdefs.h <<\_ACEOF
6089 if test "$HAVE_CARBON" = 'yes'; then
6091 GUI_CARBON_FALSE='#'
6099 if test "$HAVE_GTK" = 'yes'; then
6109 i386|i486|i586|i686)
6110 SH4_TRANSLATOR="x86"
6112 cat >>confdefs.h <<_ACEOF
6113 #define SH4_TRANSLATOR TARGET_X86
6117 SH4_TRANSLATOR="x86_64"
6119 cat >>confdefs.h <<_ACEOF
6120 #define SH4_TRANSLATOR TARGET_X86_64
6124 echo "Warning: No translator available for $host. Building emulation core only";;
6128 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
6130 BUILD_SH4X86_FALSE='#'
6132 BUILD_SH4X86_TRUE='#'
6138 if test "$SH4_TRANSLATOR" = "x86_64"; then
6140 BUILD_X86_64_FALSE='#'
6142 BUILD_X86_64_TRUE='#'
6149 { echo "$as_me:$LINENO: checking for ESOUND" >&5
6150 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
6152 if test -n "$PKG_CONFIG"; then
6153 if test -n "$ESOUND_CFLAGS"; then
6154 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
6156 if test -n "$PKG_CONFIG" && \
6157 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
6158 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; then
6162 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
6170 if test -n "$PKG_CONFIG"; then
6171 if test -n "$ESOUND_LIBS"; then
6172 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
6174 if test -n "$PKG_CONFIG" && \
6175 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
6176 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; then
6180 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
6191 if test $pkg_failed = yes; then
6193 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6194 _pkg_short_errors_supported=yes
6196 _pkg_short_errors_supported=no
6198 if test $_pkg_short_errors_supported = yes; then
6199 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
6201 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
6203 # Put the nasty error message in config.log where it belongs
6204 echo "$ESOUND_PKG_ERRORS" >&5
6206 { echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6; }
6208 echo "Warning: esound not found - building without audio support"
6209 elif test $pkg_failed = untried; then
6210 echo "Warning: esound not found - building without audio support"
6212 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
6213 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
6214 { echo "$as_me:$LINENO: result: yes" >&5
6215 echo "${ECHO_T}yes" >&6; }
6219 cat >>confdefs.h <<\_ACEOF
6220 #define HAVE_ESOUND 1
6226 if test "$HAVE_ESOUND" = 'yes' ; then
6228 AUDIO_ESOUND_FALSE='#'
6230 AUDIO_ESOUND_TRUE='#'
6235 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
6236 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
6237 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
6238 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
6242 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
6244 # Is the header compilable?
6245 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
6246 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
6247 cat >conftest.$ac_ext <<_ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 $ac_includes_default
6254 #include <linux/cdrom.h>
6256 rm -f conftest.$ac_objext
6257 if { (ac_try="$ac_compile"
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6265 grep -v '^ *+' conftest.er1 >conftest.err
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest.$ac_objext; then
6273 ac_header_compiler=yes
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 ac_header_compiler=no
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6283 echo "${ECHO_T}$ac_header_compiler" >&6; }
6285 # Is the header present?
6286 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
6287 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
6288 cat >conftest.$ac_ext <<_ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 #include <linux/cdrom.h>
6296 if { (ac_try="$ac_cpp conftest.$ac_ext"
6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299 *) ac_try_echo=$ac_try;;
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6304 grep -v '^ *+' conftest.er1 >conftest.err
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } >/dev/null && {
6309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6310 test ! -s conftest.err
6312 ac_header_preproc=yes
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 ac_header_preproc=no
6320 rm -f conftest.err conftest.$ac_ext
6321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6322 echo "${ECHO_T}$ac_header_preproc" >&6; }
6324 # So? What about this header?
6325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6327 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
6328 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6329 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
6330 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
6331 ac_header_preproc=yes
6334 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
6335 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
6337 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
6339 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
6341 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
6342 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
6343 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
6344 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
6345 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
6349 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
6350 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
6351 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 ac_cv_header_linux_cdrom_h=$ac_header_preproc
6356 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
6357 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
6360 if test $ac_cv_header_linux_cdrom_h = yes; then
6361 HAVE_LINUX_CDROM_H=yes
6364 echo "Linux CDROM support not found, building without it."
6370 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
6372 CDROM_LINUX_FALSE='#'
6374 CDROM_LINUX_TRUE='#'
6379 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
6380 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
6381 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
6382 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
6386 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
6388 # Is the header compilable?
6389 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
6390 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
6391 cat >conftest.$ac_ext <<_ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 $ac_includes_default
6398 #include <linux/joystick.h>
6400 rm -f conftest.$ac_objext
6401 if { (ac_try="$ac_compile"
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_compile") 2>conftest.er1
6409 grep -v '^ *+' conftest.er1 >conftest.err
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } && {
6414 test -z "$ac_c_werror_flag" ||
6415 test ! -s conftest.err
6416 } && test -s conftest.$ac_objext; then
6417 ac_header_compiler=yes
6419 echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6422 ac_header_compiler=no
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6427 echo "${ECHO_T}$ac_header_compiler" >&6; }
6429 # Is the header present?
6430 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
6431 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
6432 cat >conftest.$ac_ext <<_ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 #include <linux/joystick.h>
6440 if { (ac_try="$ac_cpp conftest.$ac_ext"
6442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443 *) ac_try_echo=$ac_try;;
6445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6448 grep -v '^ *+' conftest.er1 >conftest.err
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } >/dev/null && {
6453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6454 test ! -s conftest.err
6456 ac_header_preproc=yes
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6461 ac_header_preproc=no
6464 rm -f conftest.err conftest.$ac_ext
6465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6466 echo "${ECHO_T}$ac_header_preproc" >&6; }
6468 # So? What about this header?
6469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6471 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
6472 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
6474 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
6475 ac_header_preproc=yes
6478 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
6479 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
6481 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
6482 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
6483 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
6484 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
6485 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
6487 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
6489 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
6493 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
6494 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
6495 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 ac_cv_header_linux_joystick_h=$ac_header_preproc
6500 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
6501 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
6504 if test $ac_cv_header_linux_joystick_h = yes; then
6506 HAVE_LINUX_JOYSTICK_H=yes
6508 cat >>confdefs.h <<\_ACEOF
6509 #define HAVE_LINUX_JOYSTICK 1
6513 echo "Linux Joystick support not found, building without it."
6519 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
6528 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
6529 set dummy sh-elf-gcc; ac_word=$2
6530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6532 if test "${ac_cv_path_SHCC+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
6548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 SHCC=$ac_cv_path_SHCC
6559 if test -n "$SHCC"; then
6560 { echo "$as_me:$LINENO: result: $SHCC" >&5
6561 echo "${ECHO_T}$SHCC" >&6; }
6563 { echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6; }
6568 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
6569 set dummy sh-elf-ld; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_path_SHLD+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 SHLD=$ac_cv_path_SHLD
6599 if test -n "$SHLD"; then
6600 { echo "$as_me:$LINENO: result: $SHLD" >&5
6601 echo "${ECHO_T}$SHLD" >&6; }
6603 { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6608 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
6609 set dummy sh-elf-objcopy; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
6628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
6639 if test -n "$SHOBJCOPY"; then
6640 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
6641 echo "${ECHO_T}$SHOBJCOPY" >&6; }
6643 { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6648 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
6649 set dummy arm-elf-gcc; ac_word=$2
6650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652 if test "${ac_cv_path_ARMCC+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
6668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 ARMCC=$ac_cv_path_ARMCC
6679 if test -n "$ARMCC"; then
6680 { echo "$as_me:$LINENO: result: $ARMCC" >&5
6681 echo "${ECHO_T}$ARMCC" >&6; }
6683 { echo "$as_me:$LINENO: result: no" >&5
6684 echo "${ECHO_T}no" >&6; }
6688 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
6689 set dummy arm-elf-ld; ac_word=$2
6690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6692 if test "${ac_cv_path_ARMLD+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
6708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 ARMLD=$ac_cv_path_ARMLD
6719 if test -n "$ARMLD"; then
6720 { echo "$as_me:$LINENO: result: $ARMLD" >&5
6721 echo "${ECHO_T}$ARMLD" >&6; }
6723 { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6728 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
6729 set dummy arm-elf-objcopy; ac_word=$2
6730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6732 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word