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
760 ac_precious_vars='build_alias
780 # Initialize some variables set by options.
782 ac_init_version=false
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name=s,x,x,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE}'
817 infodir='${datarootdir}/info'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885 { (exit 1); exit 1; }; }
886 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
887 eval enable_$ac_feature=no ;;
889 -docdir | --docdir | --docdi | --doc | --do)
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 -enable-* | --enable-*)
900 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
903 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
904 { (exit 1); exit 1; }; }
905 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
906 eval enable_$ac_feature=\$ac_optarg ;;
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
921 -help | --help | --hel | --he | -h)
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 htmldir=$ac_optarg ;;
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
951 -libdir | --libdir | --libdi | --libd)
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
963 -localedir | --localedir | --localedi | --localed | --locale)
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 # Obsolete; use --without-fp.
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1042 -psdir | --psdir | --psdi | --psd | --ps)
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 sbindir=$ac_optarg ;;
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 sharedstatedir=$ac_optarg ;;
1068 -site | --site | --sit)
1070 -site=* | --site=* | --sit=*)
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1097 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid package name: $ac_package" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1103 eval with_$ac_package=\$ac_optarg ;;
1105 -without-* | --without-*)
1106 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid package name: $ac_package" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1112 eval with_$ac_package=no ;;
1115 # Obsolete; use --with-x.
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1132 -*) { echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134 { (exit 1); exit 1; }; }
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142 { (exit 1); exit 1; }; }
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 { echo "$as_me: error: missing argument to $ac_option" >&2
1160 { (exit 1); exit 1; }; }
1163 # Be sure to have absolute directory names.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val=\$$ac_var
1171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175 { (exit 1); exit 1; }; }
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1183 target=$target_alias
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187 if test "x$build_alias" = x; then
1188 cross_compiling=maybe
1189 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199 test "$silent" = yes && exec 6>/dev/null
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 { echo "$as_me: error: Working directory cannot be determined" >&2
1206 { (exit 1); exit 1; }; }
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 { echo "$as_me: error: pwd does not report name of working directory" >&2
1209 { (exit 1); exit 1; }; }
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214 ac_srcdir_defaulted=yes
1215 # Try the directory containing this script, then the parent directory.
1216 ac_confdir=`$as_dirname -- "$0" ||
1217 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$0" : 'X\(//\)[^/]' \| \
1219 X"$0" : 'X\(//\)$' \| \
1220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1244 ac_srcdir_defaulted=no
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1249 { (exit 1); exit 1; }; }
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1254 { (exit 1); exit 1; }; }
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 for ac_var in $ac_precious_vars; do
1267 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_${ac_var}_value=\$${ac_var}
1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1280 \`configure' configures this package to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1338 --program-prefix=PREFIX prepend PREFIX to installed program names
1339 --program-suffix=SUFFIX append SUFFIX to installed program names
1340 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1343 --build=BUILD configure for building on BUILD [guessed]
1344 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1348 if test -n "$ac_init_help"; then
1353 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1354 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1355 --enable-maintainer-mode enable make rules and dependencies not useful
1356 (and sometimes confusing) to the casual installer
1357 --disable-dependency-tracking Speeds up one-time builds
1358 --enable-dependency-tracking Do not reject slow dependency extractors
1359 --enable-trace Enable generation of IO traces (warning: hurts
1361 --enable-watch Enable watchpoints in the debugger (warning: hurts
1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1367 --with-osmesa Build with the osmesa GL library (software
1370 Some influential environment variables:
1371 CC C compiler command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1374 nonstandard directory <lib dir>
1375 LIBS libraries to pass to the linker, e.g. -l<library>
1376 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1377 you have headers in a nonstandard directory <include dir>
1379 PKG_CONFIG path to pkg-config utility
1381 C compiler flags for LIBPNG, overriding pkg-config
1382 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1383 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1384 GTK_LIBS linker flags for GTK, overriding pkg-config
1386 C compiler flags for ESOUND, overriding pkg-config
1387 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1388 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1389 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1391 Use these variables to override the choices made by `configure' or to help
1392 it to find libraries and programs with nonstandard names/locations.
1398 if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
1400 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1401 test -d "$ac_dir" || continue
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1421 .) # We are building in place.
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
1426 ac_srcdir=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1445 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 cd "$ac_pwd" || { ac_status=$?; break; }
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1455 generated by GNU Autoconf 2.61
1457 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1458 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1459 This configure script is free software; the Free Software Foundation
1460 gives unlimited permission to copy, distribute and modify it.
1464 cat >config.log <<_ACEOF
1465 This file contains any messages produced by compilers while
1466 running configure, to aid debugging if configure makes a mistake.
1468 It was created by $as_me, which was
1469 generated by GNU Autoconf 2.61. Invocation command line was
1481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1488 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1490 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1491 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1493 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1494 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1495 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1496 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 test -z "$as_dir" && as_dir=.
1505 echo "PATH: $as_dir"
1521 # Keep a trace of the command line.
1522 # Strip out --no-create and --no-recursion so they do not pile up.
1523 # Strip out --silent because we don't want to record it for future runs.
1524 # Also quote any args containing shell meta-characters.
1525 # Make two passes to allow for proper duplicate-argument suppression.
1529 ac_must_keep_next=false
1535 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1537 | -silent | --silent | --silen | --sile | --sil)
1540 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1543 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1545 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1546 if test $ac_must_keep_next = true; then
1547 ac_must_keep_next=false # Got value, back to normal.
1550 *=* | --config-cache | -C | -disable-* | --disable-* \
1551 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1552 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1553 | -with-* | --with-* | -without-* | --without-* | --x)
1554 case "$ac_configure_args0 " in
1555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1558 -* ) ac_must_keep_next=true ;;
1561 ac_configure_args="$ac_configure_args '$ac_arg'"
1566 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1567 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1569 # When interrupted or exit'd, cleanup temporary files, and complete
1570 # config.log. We remove comments because anyway the quotes in there
1571 # would cause problems or look ugly.
1572 # WARNING: Use '\'' to represent an apostrophe within the trap.
1573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1574 trap 'exit_status=$?
1575 # Save into config.log some information that might help in debugging.
1580 ## ---------------- ##
1581 ## Cache variables. ##
1582 ## ---------------- ##
1585 # The following way of writing the cache mishandles newlines in values,
1587 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1588 eval ac_val=\$$ac_var
1592 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1596 _ | IFS | as_nl) ;; #(
1597 *) $as_unset $ac_var ;;
1602 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1603 *${as_nl}ac_space=\ *)
1605 "s/'\''/'\''\\\\'\'''\''/g;
1606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1617 ## ----------------- ##
1618 ## Output variables. ##
1619 ## ----------------- ##
1622 for ac_var in $ac_subst_vars
1624 eval ac_val=\$$ac_var
1626 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 echo "$ac_var='\''$ac_val'\''"
1632 if test -n "$ac_subst_files"; then
1634 ## ------------------- ##
1635 ## File substitutions. ##
1636 ## ------------------- ##
1639 for ac_var in $ac_subst_files
1641 eval ac_val=\$$ac_var
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645 echo "$ac_var='\''$ac_val'\''"
1650 if test -s confdefs.h; then
1660 test "$ac_signal" != 0 &&
1661 echo "$as_me: caught signal $ac_signal"
1662 echo "$as_me: exit $exit_status"
1664 rm -f core *.core core.conftest.* &&
1665 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1668 for ac_signal in 1 2 13 15; do
1669 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1673 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1674 rm -f -r conftest* confdefs.h
1676 # Predefined preprocessor variables.
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_NAME "$PACKAGE_NAME"
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_STRING "$PACKAGE_STRING"
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1703 # Let the site file select an alternate cache file if it wants to.
1704 # Prefer explicitly selected file to automatically selected ones.
1705 if test -n "$CONFIG_SITE"; then
1706 set x "$CONFIG_SITE"
1707 elif test "x$prefix" != xNONE; then
1708 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1710 set x "$ac_default_prefix/share/config.site" \
1711 "$ac_default_prefix/etc/config.site"
1716 if test -r "$ac_site_file"; then
1717 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1718 echo "$as_me: loading site script $ac_site_file" >&6;}
1719 sed 's/^/| /' "$ac_site_file" >&5
1724 if test -r "$cache_file"; then
1725 # Some versions of bash will fail to source /dev/null (special
1726 # files actually), so we avoid doing that.
1727 if test -f "$cache_file"; then
1728 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1729 echo "$as_me: loading cache $cache_file" >&6;}
1731 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1732 *) . "./$cache_file";;
1736 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1737 echo "$as_me: creating cache $cache_file" >&6;}
1741 # Check that the precious variables saved in the cache have kept the same
1743 ac_cache_corrupted=false
1744 for ac_var in $ac_precious_vars; do
1745 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1746 eval ac_new_set=\$ac_env_${ac_var}_set
1747 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1748 eval ac_new_val=\$ac_env_${ac_var}_value
1749 case $ac_old_set,$ac_new_set in
1751 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1752 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1753 ac_cache_corrupted=: ;;
1755 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1756 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1757 ac_cache_corrupted=: ;;
1760 if test "x$ac_old_val" != "x$ac_new_val"; then
1761 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1762 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1763 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1764 echo "$as_me: former value: $ac_old_val" >&2;}
1765 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1766 echo "$as_me: current value: $ac_new_val" >&2;}
1767 ac_cache_corrupted=:
1770 # Pass precious variables to config.status.
1771 if test "$ac_new_set" = set; then
1773 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1774 *) ac_arg=$ac_var=$ac_new_val ;;
1776 case " $ac_configure_args " in
1777 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1778 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1782 if $ac_cache_corrupted; then
1783 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1784 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1785 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1786 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1787 { (exit 1); exit 1; }; }
1807 ac_cpp='$CPP $CPPFLAGS'
1808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813 am__api_version="1.7"
1815 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1816 if test -f "$ac_dir/install-sh"; then
1818 ac_install_sh="$ac_aux_dir/install-sh -c"
1820 elif test -f "$ac_dir/install.sh"; then
1822 ac_install_sh="$ac_aux_dir/install.sh -c"
1824 elif test -f "$ac_dir/shtool"; then
1826 ac_install_sh="$ac_aux_dir/shtool install -c"
1830 if test -z "$ac_aux_dir"; then
1831 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1832 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1833 { (exit 1); exit 1; }; }
1836 # These three variables are undocumented and unsupported,
1837 # and are intended to be withdrawn in a future Autoconf release.
1838 # They can cause serious problems if a builder's source tree is in a directory
1839 # whose full name contains unusual characters.
1840 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1841 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1842 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1845 # Find a good install program. We prefer a C program (faster),
1846 # so one script is as good as another. But avoid the broken or
1847 # incompatible versions:
1848 # SysV /etc/install, /usr/sbin/install
1849 # SunOS /usr/etc/install
1850 # IRIX /sbin/install
1852 # AmigaOS /C/install, which installs bootblocks on floppy discs
1853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1856 # OS/2's system install, which has a completely different semantic
1857 # ./install, which can be erroneously created by make from ./install.sh.
1858 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1859 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1860 if test -z "$INSTALL"; then
1861 if test "${ac_cv_path_install+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 test -z "$as_dir" && as_dir=.
1869 # Account for people who put trailing slashes in PATH elements.
1871 ./ | .// | /cC/* | \
1872 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1873 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1876 # OSF1 and SCO ODT 3.0 have their own names for install.
1877 # Don't use installbsd from OSF since it installs stuff as root
1879 for ac_prog in ginstall scoinst install; do
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1882 if test $ac_prog = install &&
1883 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1884 # AIX install. It has an incompatible calling convention.
1886 elif test $ac_prog = install &&
1887 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1888 # program-specific install script used by HP pwplus--don't use.
1891 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1904 if test "${ac_cv_path_install+set}" = set; then
1905 INSTALL=$ac_cv_path_install
1907 # As a last resort, use the slow shell script. Don't cache a
1908 # value for INSTALL within a source directory, because that will
1909 # break other packages using the cache if that directory is
1910 # removed, or if the value is a relative name.
1911 INSTALL=$ac_install_sh
1914 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1915 echo "${ECHO_T}$INSTALL" >&6; }
1917 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1918 # It thinks the first close brace ends the variable substitution.
1919 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1921 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1923 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1925 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1926 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1929 echo timestamp > conftest.file
1930 # Do `set' in a subshell so we don't clobber the current shell's
1931 # arguments. Must try -L first in case configure is actually a
1932 # symlink; some systems play weird games with the mod time of symlinks
1933 # (eg FreeBSD returns the mod time of the symlink's containing
1936 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1937 if test "$*" = "X"; then
1939 set X `ls -t $srcdir/configure conftest.file`
1942 if test "$*" != "X $srcdir/configure conftest.file" \
1943 && test "$*" != "X conftest.file $srcdir/configure"; then
1945 # If neither matched, then we have a broken ls. This can happen
1946 # if, for instance, CONFIG_SHELL is bash and it inherits a
1947 # broken ls alias from the environment. This has actually
1948 # happened. Such a system could not be considered "sane".
1949 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1950 alias in your environment" >&5
1951 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1952 alias in your environment" >&2;}
1953 { (exit 1); exit 1; }; }
1956 test "$2" = conftest.file
1962 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1963 Check your system clock" >&5
1964 echo "$as_me: error: newly created file is older than distributed files!
1965 Check your system clock" >&2;}
1966 { (exit 1); exit 1; }; }
1968 { echo "$as_me:$LINENO: result: yes" >&5
1969 echo "${ECHO_T}yes" >&6; }
1970 test "$program_prefix" != NONE &&
1971 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1972 # Use a double $ so make ignores it.
1973 test "$program_suffix" != NONE &&
1974 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1975 # Double any \ or $. echo might interpret backslashes.
1976 # By default was `s,x,x', remove it if useless.
1977 cat <<\_ACEOF >conftest.sed
1978 s/[\\$]/&&/g;s/;s,x,x,$//
1980 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1984 # expand $ac_aux_dir to an absolute path
1985 am_aux_dir=`cd $ac_aux_dir && pwd`
1987 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1988 # Use eval to expand $SHELL
1989 if eval "$MISSING --run true"; then
1990 am_missing_run="$MISSING --run "
1993 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1994 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1997 for ac_prog in gawk mawk nawk awk
1999 # Extract the first word of "$ac_prog", so it can be a program name with args.
2000 set dummy $ac_prog; ac_word=$2
2001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2003 if test "${ac_cv_prog_AWK+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$AWK"; then
2007 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2016 ac_cv_prog_AWK="$ac_prog"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 if test -n "$AWK"; then
2028 { echo "$as_me:$LINENO: result: $AWK" >&5
2029 echo "${ECHO_T}$AWK" >&6; }
2031 { echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6; }
2036 test -n "$AWK" && break
2039 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2040 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2041 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2042 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 cat >conftest.make <<\_ACEOF
2048 @echo '@@@%%%=$(MAKE)=@@@%%%'
2050 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2051 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2053 eval ac_cv_prog_make_${ac_make}_set=yes;;
2055 eval ac_cv_prog_make_${ac_make}_set=no;;
2059 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2060 { echo "$as_me:$LINENO: result: yes" >&5
2061 echo "${ECHO_T}yes" >&6; }
2064 { echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6; }
2066 SET_MAKE="MAKE=${MAKE-make}"
2069 rm -rf .tst 2>/dev/null
2070 mkdir .tst 2>/dev/null
2071 if test -d .tst; then
2076 rmdir .tst 2>/dev/null
2078 # test to see if srcdir already configured
2079 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2080 test -f $srcdir/config.status; then
2081 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2082 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2083 { (exit 1); exit 1; }; }
2086 # test whether we have cygpath
2087 if test -z "$CYGPATH_W"; then
2088 if (cygpath --version) >/dev/null 2>/dev/null; then
2089 CYGPATH_W='cygpath -w'
2096 # Define the identity of the package.
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE "$PACKAGE"
2106 cat >>confdefs.h <<_ACEOF
2107 #define VERSION "$VERSION"
2110 # Some tools Automake needs.
2112 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2115 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2118 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2121 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2124 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2127 AMTAR=${AMTAR-"${am_missing_run}tar"}
2129 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2131 # Installed binaries are usually stripped using `strip' when the user
2132 # run `make install-strip'. However `strip' might not be the right
2133 # tool to use in cross-compilation environments, therefore Automake
2134 # will honor the `STRIP' environment variable to overrule this program.
2135 if test "$cross_compiling" != no; then
2136 if test -n "$ac_tool_prefix"; then
2137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2138 set dummy ${ac_tool_prefix}strip; ac_word=$2
2139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2141 if test "${ac_cv_prog_STRIP+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 if test -n "$STRIP"; then
2145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 test -z "$as_dir" && as_dir=.
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2154 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 STRIP=$ac_cv_prog_STRIP
2165 if test -n "$STRIP"; then
2166 { echo "$as_me:$LINENO: result: $STRIP" >&5
2167 echo "${ECHO_T}$STRIP" >&6; }
2169 { echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6; }
2175 if test -z "$ac_cv_prog_STRIP"; then
2177 # Extract the first word of "strip", so it can be a program name with args.
2178 set dummy strip; ac_word=$2
2179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2181 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 if test -n "$ac_ct_STRIP"; then
2185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2194 ac_cv_prog_ac_ct_STRIP="strip"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2205 if test -n "$ac_ct_STRIP"; then
2206 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2207 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2209 { echo "$as_me:$LINENO: result: no" >&5
2210 echo "${ECHO_T}no" >&6; }
2213 if test "x$ac_ct_STRIP" = x; then
2216 case $cross_compiling:$ac_tool_warned in
2218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2219 whose name does not start with the host triplet. If you think this
2220 configuration is useful to you, please write to autoconf@gnu.org." >&5
2221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet. If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2224 ac_tool_warned=yes ;;
2229 STRIP="$ac_cv_prog_STRIP"
2233 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2235 # We need awk for the "check" target. The system "awk" is bad on
2240 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2241 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2242 # Check whether --enable-maintainer-mode was given.
2243 if test "${enable_maintainer_mode+set}" = set; then
2244 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2246 USE_MAINTAINER_MODE=no
2249 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2250 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2253 if test $USE_MAINTAINER_MODE = yes; then
2254 MAINTAINER_MODE_TRUE=
2255 MAINTAINER_MODE_FALSE='#'
2257 MAINTAINER_MODE_TRUE='#'
2258 MAINTAINER_MODE_FALSE=
2261 MAINT=$MAINTAINER_MODE_TRUE
2264 ac_config_headers="$ac_config_headers config.h"
2267 DEPDIR="${am__leading_dot}deps"
2269 ac_config_commands="$ac_config_commands depfiles"
2272 am_make=${MAKE-make}
2273 cat > confinc << 'END'
2278 # If we don't find an include directive, just comment out the code.
2279 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2280 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2284 # First try GNU make style include.
2285 echo "include confinc" > confmf
2286 # We grep out `Entering directory' and `Leaving directory'
2287 # messages which can occur if `w' ends up in MAKEFLAGS.
2288 # In particular we don't look at `^make:' because GNU make might
2289 # be invoked under some other name (usually "gmake"), in which
2290 # case it prints its new name instead of `make'.
2291 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2296 # Now try BSD make style include.
2297 if test "$am__include" = "#"; then
2298 echo '.include "confinc"' > confmf
2299 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2300 am__include=.include
2307 { echo "$as_me:$LINENO: result: $_am_result" >&5
2308 echo "${ECHO_T}$_am_result" >&6; }
2309 rm -f confinc confmf
2311 # Check whether --enable-dependency-tracking was given.
2312 if test "${enable_dependency_tracking+set}" = set; then
2313 enableval=$enable_dependency_tracking;
2316 if test "x$enable_dependency_tracking" != xno; then
2317 am_depcomp="$ac_aux_dir/depcomp"
2322 if test "x$enable_dependency_tracking" != xno; then
2333 ac_cpp='$CPP $CPPFLAGS'
2334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337 if test -n "$ac_tool_prefix"; then
2338 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2339 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342 if test "${ac_cv_prog_CC+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 if test -n "$CC"; then
2346 ac_cv_prog_CC="$CC" # Let the user override the test.
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 if test -n "$CC"; then
2367 { echo "$as_me:$LINENO: result: $CC" >&5
2368 echo "${ECHO_T}$CC" >&6; }
2370 { echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6; }
2376 if test -z "$ac_cv_prog_CC"; then
2378 # Extract the first word of "gcc", so it can be a program name with args.
2379 set dummy gcc; ac_word=$2
2380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 if test -n "$ac_ct_CC"; then
2386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2395 ac_cv_prog_ac_ct_CC="gcc"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2406 if test -n "$ac_ct_CC"; then
2407 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2408 echo "${ECHO_T}$ac_ct_CC" >&6; }
2410 { echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6; }
2414 if test "x$ac_ct_CC" = x; then
2417 case $cross_compiling:$ac_tool_warned in
2419 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet. If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&5
2422 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2423 whose name does not start with the host triplet. If you think this
2424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2425 ac_tool_warned=yes ;;
2433 if test -z "$CC"; then
2434 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}cc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_CC="${ac_tool_prefix}cc"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 if test -n "$CC"; then
2464 { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2467 { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2474 if test -z "$CC"; then
2475 # Extract the first word of "cc", so it can be a program name with args.
2476 set dummy cc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$CC"; then
2483 ac_cv_prog_CC="$CC" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2494 ac_prog_rejected=yes
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 if test $ac_prog_rejected = yes; then
2506 # We found a bogon in the path, so make sure we never use it.
2507 set dummy $ac_cv_prog_CC
2509 if test $# != 0; then
2510 # We chose a different compiler from the bogus one.
2511 # However, it has the same basename, so the bogon will be chosen
2512 # first if we set CC to just the basename; use the full file name.
2514 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2520 if test -n "$CC"; then
2521 { echo "$as_me:$LINENO: result: $CC" >&5
2522 echo "${ECHO_T}$CC" >&6; }
2524 { echo "$as_me:$LINENO: result: no" >&5
2525 echo "${ECHO_T}no" >&6; }
2530 if test -z "$CC"; then
2531 if test -n "$ac_tool_prefix"; then
2532 for ac_prog in cl.exe
2534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 if test -n "$CC"; then
2563 { echo "$as_me:$LINENO: result: $CC" >&5
2564 echo "${ECHO_T}$CC" >&6; }
2566 { echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6; }
2571 test -n "$CC" && break
2574 if test -z "$CC"; then
2576 for ac_prog in cl.exe
2578 # Extract the first word of "$ac_prog", so it can be a program name with args.
2579 set dummy $ac_prog; ac_word=$2
2580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 if test -n "$ac_ct_CC"; then
2586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 ac_cv_prog_ac_ct_CC="$ac_prog"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2606 if test -n "$ac_ct_CC"; then
2607 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2608 echo "${ECHO_T}$ac_ct_CC" >&6; }
2610 { echo "$as_me:$LINENO: result: no" >&5
2611 echo "${ECHO_T}no" >&6; }
2615 test -n "$ac_ct_CC" && break
2618 if test "x$ac_ct_CC" = x; then
2621 case $cross_compiling:$ac_tool_warned in
2623 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2624 whose name does not start with the host triplet. If you think this
2625 configuration is useful to you, please write to autoconf@gnu.org." >&5
2626 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet. If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2629 ac_tool_warned=yes ;;
2638 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: no acceptable C compiler found in \$PATH
2641 See \`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }
2644 # Provide some information about the compiler.
2645 echo "$as_me:$LINENO: checking for C compiler version" >&5
2646 ac_compiler=`set X $ac_compile; echo $2`
2647 { (ac_try="$ac_compiler --version >&5"
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653 (eval "$ac_compiler --version >&5") 2>&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }
2657 { (ac_try="$ac_compiler -v >&5"
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_compiler -v >&5") 2>&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }
2667 { (ac_try="$ac_compiler -V >&5"
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 (eval "$ac_compiler -V >&5") 2>&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2693 ac_clean_files_save=$ac_clean_files
2694 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2695 # Try to create an executable without -o first, disregard a.out.
2696 # It will help us diagnose broken compilers, and finding out an intuition
2698 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2699 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2700 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2702 # List of possible output files, starting from the most likely.
2703 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2704 # only as a last resort. b.out is created by i960 compilers.
2705 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2707 # The IRIX 6 linker writes into existing files which may not be
2708 # executable, retaining their permissions. Remove them first so a
2709 # subsequent execution test works.
2711 for ac_file in $ac_files
2714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2715 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2720 if { (ac_try="$ac_link_default"
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_link_default") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; then
2730 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2731 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2732 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2733 # so that the user can short-circuit this test for compilers unknown to
2735 for ac_file in $ac_files ''
2737 test -f "$ac_file" || continue
2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2742 # We found the default executable, but exeext='' is most
2746 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2748 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2750 # We set ac_cv_exeext here because the later test for it is not
2751 # safe: cross compilers may not add the suffix if given an `-o'
2752 # argument, so we may need to know it at that point already.
2753 # Even if this section looks crufty: it has the advantage of
2760 test "$ac_cv_exeext" = no && ac_cv_exeext=
2766 { echo "$as_me:$LINENO: result: $ac_file" >&5
2767 echo "${ECHO_T}$ac_file" >&6; }
2768 if test -z "$ac_file"; then
2769 echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2772 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2773 See \`config.log' for more details." >&5
2774 echo "$as_me: error: C compiler cannot create executables
2775 See \`config.log' for more details." >&2;}
2776 { (exit 77); exit 77; }; }
2779 ac_exeext=$ac_cv_exeext
2781 # Check that the compiler produces executables we can run. If not, either
2782 # the compiler is broken, or we cross compile.
2783 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2784 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2785 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2786 # If not cross compiling, check that we can run a simple program.
2787 if test "$cross_compiling" != yes; then
2788 if { ac_try='./$ac_file'
2789 { (case "(($ac_try" in
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794 (eval "$ac_try") 2>&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2800 if test "$cross_compiling" = maybe; then
2803 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2804 If you meant to cross compile, use \`--host'.
2805 See \`config.log' for more details." >&5
2806 echo "$as_me: error: cannot run C compiled programs.
2807 If you meant to cross compile, use \`--host'.
2808 See \`config.log' for more details." >&2;}
2809 { (exit 1); exit 1; }; }
2813 { echo "$as_me:$LINENO: result: yes" >&5
2814 echo "${ECHO_T}yes" >&6; }
2816 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2817 ac_clean_files=$ac_clean_files_save
2818 # Check that the compiler produces executables we can run. If not, either
2819 # the compiler is broken, or we cross compile.
2820 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2821 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2822 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2823 echo "${ECHO_T}$cross_compiling" >&6; }
2825 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2826 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2827 if { (ac_try="$ac_link"
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833 (eval "$ac_link") 2>&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; then
2837 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2838 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2839 # work properly (i.e., refer to `conftest.exe'), while it won't with
2841 for ac_file in conftest.exe conftest conftest.*; do
2842 test -f "$ac_file" || continue
2844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2852 See \`config.log' for more details." >&5
2853 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2854 See \`config.log' for more details." >&2;}
2855 { (exit 1); exit 1; }; }
2858 rm -f conftest$ac_cv_exeext
2859 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2860 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2862 rm -f conftest.$ac_ext
2863 EXEEXT=$ac_cv_exeext
2865 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2866 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2867 if test "${ac_cv_objext+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 cat >conftest.$ac_ext <<_ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2885 rm -f conftest.o conftest.obj
2886 if { (ac_try="$ac_compile"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compile") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; then
2896 for ac_file in conftest.o conftest.obj conftest.*; do
2897 test -f "$ac_file" || continue;
2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2900 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2909 See \`config.log' for more details." >&5
2910 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2911 See \`config.log' for more details." >&2;}
2912 { (exit 1); exit 1; }; }
2915 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2917 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2918 echo "${ECHO_T}$ac_cv_objext" >&6; }
2919 OBJEXT=$ac_cv_objext
2921 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2922 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2923 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2944 rm -f conftest.$ac_objext
2945 if { (ac_try="$ac_compile"
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_compile") 2>conftest.er1
2953 grep -v '^ *+' conftest.er1 >conftest.err
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } && {
2958 test -z "$ac_c_werror_flag" ||
2959 test ! -s conftest.err
2960 } && test -s conftest.$ac_objext; then
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2973 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2974 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2975 GCC=`test $ac_compiler_gnu = yes && echo yes`
2976 ac_test_CFLAGS=${CFLAGS+set}
2977 ac_save_CFLAGS=$CFLAGS
2978 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2979 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_cc_g+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 ac_save_c_werror_flag=$ac_c_werror_flag
2984 ac_c_werror_flag=yes
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3011 grep -v '^ *+' conftest.er1 >conftest.err
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } && {
3016 test -z "$ac_c_werror_flag" ||
3017 test ! -s conftest.err
3018 } && test -s conftest.$ac_objext; then
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3025 cat >conftest.$ac_ext <<_ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
3049 grep -v '^ *+' conftest.er1 >conftest.err
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } && {
3054 test -z "$ac_c_werror_flag" ||
3055 test ! -s conftest.err
3056 } && test -s conftest.$ac_objext; then
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 ac_c_werror_flag=$ac_save_c_werror_flag
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } && {
3093 test -z "$ac_c_werror_flag" ||
3094 test ! -s conftest.err
3095 } && test -s conftest.$ac_objext; then
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 ac_c_werror_flag=$ac_save_c_werror_flag
3113 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3114 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3115 if test "$ac_test_CFLAGS" = set; then
3116 CFLAGS=$ac_save_CFLAGS
3117 elif test $ac_cv_prog_cc_g = yes; then
3118 if test "$GCC" = yes; then
3124 if test "$GCC" = yes; then
3130 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3131 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3132 if test "${ac_cv_prog_cc_c89+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 ac_cv_prog_cc_c89=no
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3145 #include <sys/types.h>
3146 #include <sys/stat.h>
3147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3148 struct buf { int x; };
3149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3150 static char *e (p, i)
3156 static char *f (char * (*g) (char **, int), char **p, ...)
3161 s = g (p, va_arg (v,int));
3166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3167 function prototypes and stuff, but not '\xHH' hex character constants.
3168 These don't provoke an error unfortunately, instead are silently treated
3169 as 'x'. The following induces an error, until -std is added to get
3170 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3171 array size at least. It's necessary to write '\x00'==0 to get something
3172 that's true only with -std. */
3173 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3175 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3176 inside strings and character constants. */
3178 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3180 int test (int i, double x);
3181 struct s1 {int (*f) (int a);};
3182 struct s2 {int (*f) (double a);};
3183 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3189 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3194 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3195 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3197 CC="$ac_save_CC $ac_arg"
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3207 grep -v '^ *+' conftest.er1 >conftest.err
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } && {
3212 test -z "$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 } && test -s conftest.$ac_objext; then
3215 ac_cv_prog_cc_c89=$ac_arg
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3223 rm -f core conftest.err conftest.$ac_objext
3224 test "x$ac_cv_prog_cc_c89" != "xno" && break
3226 rm -f conftest.$ac_ext
3231 case "x$ac_cv_prog_cc_c89" in
3233 { echo "$as_me:$LINENO: result: none needed" >&5
3234 echo "${ECHO_T}none needed" >&6; } ;;
3236 { echo "$as_me:$LINENO: result: unsupported" >&5
3237 echo "${ECHO_T}unsupported" >&6; } ;;
3239 CC="$CC $ac_cv_prog_cc_c89"
3240 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3241 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251 depcc="$CC" am_compiler_list=
3253 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3254 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3255 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3259 # We make a subdir and do the tests there. Otherwise we can end up
3260 # making bogus files that we don't know about and never remove. For
3261 # instance it was reported that on HP-UX the gcc test will end up
3262 # making a dummy file named `D' -- because `-MD' means `put the output
3265 # Copy depcomp to subdir because otherwise we won't find it if we're
3266 # using a relative directory.
3267 cp "$am_depcomp" conftest.dir
3269 # We will build objects and dependencies in a subdirectory because
3270 # it helps to detect inapplicable dependency modes. For instance
3271 # both Tru64's cc and ICC support -MD to output dependencies as a
3272 # side effect of compilation, but ICC will put the dependencies in
3273 # the current directory while Tru64 will put them in the object
3277 am_cv_CC_dependencies_compiler_type=none
3278 if test "$am_compiler_list" = ""; then
3279 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3281 for depmode in $am_compiler_list; do
3282 # Setup a source with many dependencies, because some compilers
3283 # like to wrap large dependency lists on column 80 (with \), and
3284 # we should not choose a depcomp mode which is confused by this.
3286 # We need to recreate these files for each test, as the compiler may
3287 # overwrite some of them when testing with obscure command lines.
3288 # This happens at least with the AIX C compiler.
3290 for i in 1 2 3 4 5 6; do
3291 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3294 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3298 # after this tag, mechanisms are not by side-effect, so they'll
3299 # only be used when explicitly requested
3300 if test "x$enable_dependency_tracking" = xyes; then
3308 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3309 # mode. It turns out that the SunPro C++ compiler does not properly
3310 # handle `-M -o', and we need to detect this.
3311 if depmode=$depmode \
3312 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3313 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3314 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3315 >/dev/null 2>conftest.err &&
3316 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3317 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3318 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3319 # icc doesn't choke on unknown options, it will just issue warnings
3320 # (even with -Werror). So we grep stderr for any message
3321 # that says an option was ignored.
3322 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3323 am_cv_CC_dependencies_compiler_type=$depmode
3332 am_cv_CC_dependencies_compiler_type=none
3336 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3337 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3338 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3343 test "x$enable_dependency_tracking" != xno \
3344 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3346 am__fastdepCC_FALSE='#'
3348 am__fastdepCC_TRUE='#'
3349 am__fastdepCC_FALSE=
3354 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3355 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3356 if test "${ac_cv_search_strerror+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 ac_func_search_save_LIBS=$LIBS
3360 cat >conftest.$ac_ext <<_ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3367 /* Override any GCC internal prototype to avoid an error.
3368 Use char because int might match the return type of a GCC
3369 builtin and then its argument prototype would still apply. */
3382 for ac_lib in '' cposix; do
3383 if test -z "$ac_lib"; then
3384 ac_res="none required"
3387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3389 rm -f conftest.$ac_objext conftest$ac_exeext
3390 if { (ac_try="$ac_link"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_link") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } && {
3403 test -z "$ac_c_werror_flag" ||
3404 test ! -s conftest.err
3405 } && test -s conftest$ac_exeext &&
3406 $as_test_x conftest$ac_exeext; then
3407 ac_cv_search_strerror=$ac_res
3409 echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3417 if test "${ac_cv_search_strerror+set}" = set; then
3421 if test "${ac_cv_search_strerror+set}" = set; then
3424 ac_cv_search_strerror=no
3427 LIBS=$ac_func_search_save_LIBS
3429 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3430 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3431 ac_res=$ac_cv_search_strerror
3432 if test "$ac_res" != no; then
3433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3438 ac_cpp='$CPP $CPPFLAGS'
3439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442 if test -n "$ac_tool_prefix"; then
3443 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3444 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3447 if test "${ac_cv_prog_CC+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 if test -n "$CC"; then
3451 ac_cv_prog_CC="$CC" # Let the user override the test.
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3460 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 if test -n "$CC"; then
3472 { echo "$as_me:$LINENO: result: $CC" >&5
3473 echo "${ECHO_T}$CC" >&6; }
3475 { echo "$as_me:$LINENO: result: no" >&5
3476 echo "${ECHO_T}no" >&6; }
3481 if test -z "$ac_cv_prog_CC"; then
3483 # Extract the first word of "gcc", so it can be a program name with args.
3484 set dummy gcc; ac_word=$2
3485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 if test -n "$ac_ct_CC"; then
3491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_ac_ct_CC="gcc"
3501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3511 if test -n "$ac_ct_CC"; then
3512 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3513 echo "${ECHO_T}$ac_ct_CC" >&6; }
3515 { echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6; }
3519 if test "x$ac_ct_CC" = x; then
3522 case $cross_compiling:$ac_tool_warned in
3524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3525 whose name does not start with the host triplet. If you think this
3526 configuration is useful to you, please write to autoconf@gnu.org." >&5
3527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3528 whose name does not start with the host triplet. If you think this
3529 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3530 ac_tool_warned=yes ;;
3538 if test -z "$CC"; then
3539 if test -n "$ac_tool_prefix"; then
3540 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3541 set dummy ${ac_tool_prefix}cc; ac_word=$2
3542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3544 if test "${ac_cv_prog_CC+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557 ac_cv_prog_CC="${ac_tool_prefix}cc"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 if test -n "$CC"; then
3569 { echo "$as_me:$LINENO: result: $CC" >&5
3570 echo "${ECHO_T}$CC" >&6; }
3572 { echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6; }
3579 if test -z "$CC"; then
3580 # Extract the first word of "cc", so it can be a program name with args.
3581 set dummy cc; ac_word=$2
3582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3584 if test "${ac_cv_prog_CC+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 if test -n "$CC"; then
3588 ac_cv_prog_CC="$CC" # Let the user override the test.
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3599 ac_prog_rejected=yes
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 if test $ac_prog_rejected = yes; then
3611 # We found a bogon in the path, so make sure we never use it.
3612 set dummy $ac_cv_prog_CC
3614 if test $# != 0; then
3615 # We chose a different compiler from the bogus one.
3616 # However, it has the same basename, so the bogon will be chosen
3617 # first if we set CC to just the basename; use the full file name.
3619 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3625 if test -n "$CC"; then
3626 { echo "$as_me:$LINENO: result: $CC" >&5
3627 echo "${ECHO_T}$CC" >&6; }
3629 { echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6; }
3635 if test -z "$CC"; then
3636 if test -n "$ac_tool_prefix"; then
3637 for ac_prog in cl.exe
3639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3640 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3643 if test "${ac_cv_prog_CC+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC="$CC" # Let the user override the test.
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3656 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 if test -n "$CC"; then
3668 { echo "$as_me:$LINENO: result: $CC" >&5
3669 echo "${ECHO_T}$CC" >&6; }
3671 { echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6; }
3676 test -n "$CC" && break
3679 if test -z "$CC"; then
3681 for ac_prog in cl.exe
3683 # Extract the first word of "$ac_prog", so it can be a program name with args.
3684 set dummy $ac_prog; ac_word=$2
3685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 if test -n "$ac_ct_CC"; then
3691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700 ac_cv_prog_ac_ct_CC="$ac_prog"
3701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3711 if test -n "$ac_ct_CC"; then
3712 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3713 echo "${ECHO_T}$ac_ct_CC" >&6; }
3715 { echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6; }
3720 test -n "$ac_ct_CC" && break
3723 if test "x$ac_ct_CC" = x; then
3726 case $cross_compiling:$ac_tool_warned in
3728 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3729 whose name does not start with the host triplet. If you think this
3730 configuration is useful to you, please write to autoconf@gnu.org." >&5
3731 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3732 whose name does not start with the host triplet. If you think this
3733 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3734 ac_tool_warned=yes ;;
3743 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3744 See \`config.log' for more details." >&5
3745 echo "$as_me: error: no acceptable C compiler found in \$PATH
3746 See \`config.log' for more details." >&2;}
3747 { (exit 1); exit 1; }; }
3749 # Provide some information about the compiler.
3750 echo "$as_me:$LINENO: checking for C compiler version" >&5
3751 ac_compiler=`set X $ac_compile; echo $2`
3752 { (ac_try="$ac_compiler --version >&5"
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3758 (eval "$ac_compiler --version >&5") 2>&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }
3762 { (ac_try="$ac_compiler -v >&5"
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_compiler -v >&5") 2>&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }
3772 { (ac_try="$ac_compiler -V >&5"
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3778 (eval "$ac_compiler -V >&5") 2>&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }
3783 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3784 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3785 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 cat >conftest.$ac_ext <<_ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3806 rm -f conftest.$ac_objext
3807 if { (ac_try="$ac_compile"
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813 (eval "$ac_compile") 2>conftest.er1
3815 grep -v '^ *+' conftest.er1 >conftest.err
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } && {
3820 test -z "$ac_c_werror_flag" ||
3821 test ! -s conftest.err
3822 } && test -s conftest.$ac_objext; then
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3835 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3836 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3837 GCC=`test $ac_compiler_gnu = yes && echo yes`
3838 ac_test_CFLAGS=${CFLAGS+set}
3839 ac_save_CFLAGS=$CFLAGS
3840 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3841 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3842 if test "${ac_cv_prog_cc_g+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 ac_save_c_werror_flag=$ac_c_werror_flag
3846 ac_c_werror_flag=yes
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3864 rm -f conftest.$ac_objext
3865 if { (ac_try="$ac_compile"
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871 (eval "$ac_compile") 2>conftest.er1
3873 grep -v '^ *+' conftest.er1 >conftest.err
3875 cat conftest.err >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } && {
3878 test -z "$ac_c_werror_flag" ||
3879 test ! -s conftest.err
3880 } && test -s conftest.$ac_objext; then
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3887 cat >conftest.$ac_ext <<_ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3902 rm -f conftest.$ac_objext
3903 if { (ac_try="$ac_compile"
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3909 (eval "$ac_compile") 2>conftest.er1
3911 grep -v '^ *+' conftest.er1 >conftest.err
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 ac_c_werror_flag=$ac_save_c_werror_flag
3926 cat >conftest.$ac_ext <<_ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3941 rm -f conftest.$ac_objext
3942 if { (ac_try="$ac_compile"
3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3948 (eval "$ac_compile") 2>conftest.er1
3950 grep -v '^ *+' conftest.er1 >conftest.err
3952 cat conftest.err >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } && {
3955 test -z "$ac_c_werror_flag" ||
3956 test ! -s conftest.err
3957 } && test -s conftest.$ac_objext; then
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 ac_c_werror_flag=$ac_save_c_werror_flag
3975 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3976 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3977 if test "$ac_test_CFLAGS" = set; then
3978 CFLAGS=$ac_save_CFLAGS
3979 elif test $ac_cv_prog_cc_g = yes; then
3980 if test "$GCC" = yes; then
3986 if test "$GCC" = yes; then
3992 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3993 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3994 if test "${ac_cv_prog_cc_c89+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 ac_cv_prog_cc_c89=no
3999 cat >conftest.$ac_ext <<_ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4007 #include <sys/types.h>
4008 #include <sys/stat.h>
4009 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4010 struct buf { int x; };
4011 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4012 static char *e (p, i)
4018 static char *f (char * (*g) (char **, int), char **p, ...)
4023 s = g (p, va_arg (v,int));
4028 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4029 function prototypes and stuff, but not '\xHH' hex character constants.
4030 These don't provoke an error unfortunately, instead are silently treated
4031 as 'x'. The following induces an error, until -std is added to get
4032 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4033 array size at least. It's necessary to write '\x00'==0 to get something
4034 that's true only with -std. */
4035 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4037 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4038 inside strings and character constants. */
4040 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4042 int test (int i, double x);
4043 struct s1 {int (*f) (int a);};
4044 struct s2 {int (*f) (double a);};
4045 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4051 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4056 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4057 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4059 CC="$ac_save_CC $ac_arg"
4060 rm -f conftest.$ac_objext
4061 if { (ac_try="$ac_compile"
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_compile") 2>conftest.er1
4069 grep -v '^ *+' conftest.er1 >conftest.err
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } && {
4074 test -z "$ac_c_werror_flag" ||
4075 test ! -s conftest.err
4076 } && test -s conftest.$ac_objext; then
4077 ac_cv_prog_cc_c89=$ac_arg
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4085 rm -f core conftest.err conftest.$ac_objext
4086 test "x$ac_cv_prog_cc_c89" != "xno" && break
4088 rm -f conftest.$ac_ext
4093 case "x$ac_cv_prog_cc_c89" in
4095 { echo "$as_me:$LINENO: result: none needed" >&5
4096 echo "${ECHO_T}none needed" >&6; } ;;
4098 { echo "$as_me:$LINENO: result: unsupported" >&5
4099 echo "${ECHO_T}unsupported" >&6; } ;;
4101 CC="$CC $ac_cv_prog_cc_c89"
4102 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4103 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4108 ac_cpp='$CPP $CPPFLAGS'
4109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113 depcc="$CC" am_compiler_list=
4115 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4116 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4117 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4121 # We make a subdir and do the tests there. Otherwise we can end up
4122 # making bogus files that we don't know about and never remove. For
4123 # instance it was reported that on HP-UX the gcc test will end up
4124 # making a dummy file named `D' -- because `-MD' means `put the output
4127 # Copy depcomp to subdir because otherwise we won't find it if we're
4128 # using a relative directory.
4129 cp "$am_depcomp" conftest.dir
4131 # We will build objects and dependencies in a subdirectory because
4132 # it helps to detect inapplicable dependency modes. For instance
4133 # both Tru64's cc and ICC support -MD to output dependencies as a
4134 # side effect of compilation, but ICC will put the dependencies in
4135 # the current directory while Tru64 will put them in the object
4139 am_cv_CC_dependencies_compiler_type=none
4140 if test "$am_compiler_list" = ""; then
4141 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4143 for depmode in $am_compiler_list; do
4144 # Setup a source with many dependencies, because some compilers
4145 # like to wrap large dependency lists on column 80 (with \), and
4146 # we should not choose a depcomp mode which is confused by this.
4148 # We need to recreate these files for each test, as the compiler may
4149 # overwrite some of them when testing with obscure command lines.
4150 # This happens at least with the AIX C compiler.
4152 for i in 1 2 3 4 5 6; do
4153 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4156 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4160 # after this tag, mechanisms are not by side-effect, so they'll
4161 # only be used when explicitly requested
4162 if test "x$enable_dependency_tracking" = xyes; then
4170 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4171 # mode. It turns out that the SunPro C++ compiler does not properly
4172 # handle `-M -o', and we need to detect this.
4173 if depmode=$depmode \
4174 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4175 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4176 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4177 >/dev/null 2>conftest.err &&
4178 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4179 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4180 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4181 # icc doesn't choke on unknown options, it will just issue warnings
4182 # (even with -Werror). So we grep stderr for any message
4183 # that says an option was ignored.
4184 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4185 am_cv_CC_dependencies_compiler_type=$depmode
4194 am_cv_CC_dependencies_compiler_type=none
4198 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4199 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4200 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4205 test "x$enable_dependency_tracking" != xno \
4206 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4208 am__fastdepCC_FALSE='#'
4210 am__fastdepCC_TRUE='#'
4211 am__fastdepCC_FALSE=
4218 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4219 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4220 if test "${am_cv_prog_cc_stdc+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 am_cv_prog_cc_stdc=no
4225 # Don't try gcc -ansi; that turns off useful extensions and
4226 # breaks some systems' header files.
4227 # AIX -qlanglvl=ansi
4228 # Ultrix and OSF/1 -std1
4229 # HP-UX 10.20 and later -Ae
4230 # HP-UX older versions -Aa -D_HPUX_SOURCE
4231 # SVR4 -Xc -D__EXTENSIONS__
4232 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4234 CC="$ac_save_CC $ac_arg"
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4243 #include <sys/types.h>
4244 #include <sys/stat.h>
4245 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4246 struct buf { int x; };
4247 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4248 static char *e (p, i)
4254 static char *f (char * (*g) (char **, int), char **p, ...)
4259 s = g (p, va_arg (v,int));
4263 int test (int i, double x);
4264 struct s1 {int (*f) (int a);};
4265 struct s2 {int (*f) (double a);};
4266 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4274 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4280 rm -f conftest.$ac_objext
4281 if { (ac_try="$ac_compile"
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_compile") 2>conftest.er1
4289 grep -v '^ *+' conftest.er1 >conftest.err
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } && {
4294 test -z "$ac_c_werror_flag" ||
4295 test ! -s conftest.err
4296 } && test -s conftest.$ac_objext; then
4297 am_cv_prog_cc_stdc="$ac_arg"; break
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 if test -z "$am_cv_prog_cc_stdc"; then
4312 { echo "$as_me:$LINENO: result: none needed" >&5
4313 echo "${ECHO_T}none needed" >&6; }
4315 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4316 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
4318 case "x$am_cv_prog_cc_stdc" in
4320 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4323 # By default we simply use the C compiler to build assembly code.
4326 # Set ASFLAGS if not already set.
4327 : ${CCASFLAGS='$(CFLAGS)'}
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4336 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4337 # On Suns, sometimes $CPP names a directory.
4338 if test -n "$CPP" && test -d "$CPP"; then
4341 if test -z "$CPP"; then
4342 if test "${ac_cv_prog_CPP+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 # Double quotes because CPP needs to be expanded
4346 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4349 for ac_c_preproc_warn_flag in '' yes
4351 # Use a header file that comes with gcc, so configuring glibc
4352 # with a fresh cross-compiler works.
4353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4354 # <limits.h> exists even on freestanding compilers.
4355 # On the NeXT, cc -E runs the code through the compiler's parser,
4356 # not just through cpp. "Syntax error" is here to catch this case.
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4364 # include <limits.h>
4366 # include <assert.h>
4370 if { (ac_try="$ac_cpp conftest.$ac_ext"
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4378 grep -v '^ *+' conftest.er1 >conftest.err
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } >/dev/null && {
4383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4384 test ! -s conftest.err
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4391 # Broken: fails on valid input.
4395 rm -f conftest.err conftest.$ac_ext
4397 # OK, works on sane cases. Now check whether nonexistent headers
4398 # can be detected and how.
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <ac_nonexistent.h>
4407 if { (ac_try="$ac_cpp conftest.$ac_ext"
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4415 grep -v '^ *+' conftest.er1 >conftest.err
4417 cat conftest.err >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } >/dev/null && {
4420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4421 test ! -s conftest.err
4423 # Broken: success on invalid input.
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 # Passes both tests.
4434 rm -f conftest.err conftest.$ac_ext
4437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4438 rm -f conftest.err conftest.$ac_ext
4439 if $ac_preproc_ok; then
4451 { echo "$as_me:$LINENO: result: $CPP" >&5
4452 echo "${ECHO_T}$CPP" >&6; }
4454 for ac_c_preproc_warn_flag in '' yes
4456 # Use a header file that comes with gcc, so configuring glibc
4457 # with a fresh cross-compiler works.
4458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4459 # <limits.h> exists even on freestanding compilers.
4460 # On the NeXT, cc -E runs the code through the compiler's parser,
4461 # not just through cpp. "Syntax error" is here to catch this case.
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4469 # include <limits.h>
4471 # include <assert.h>
4475 if { (ac_try="$ac_cpp conftest.$ac_ext"
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4483 grep -v '^ *+' conftest.er1 >conftest.err
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } >/dev/null && {
4488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4489 test ! -s conftest.err
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4496 # Broken: fails on valid input.
4500 rm -f conftest.err conftest.$ac_ext
4502 # OK, works on sane cases. Now check whether nonexistent headers
4503 # can be detected and how.
4504 cat >conftest.$ac_ext <<_ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h. */
4510 #include <ac_nonexistent.h>
4512 if { (ac_try="$ac_cpp conftest.$ac_ext"
4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4520 grep -v '^ *+' conftest.er1 >conftest.err
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } >/dev/null && {
4525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4526 test ! -s conftest.err
4528 # Broken: success on invalid input.
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 # Passes both tests.
4539 rm -f conftest.err conftest.$ac_ext
4542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4543 rm -f conftest.err conftest.$ac_ext
4544 if $ac_preproc_ok; then
4547 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4548 See \`config.log' for more details." >&5
4549 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4550 See \`config.log' for more details." >&2;}
4551 { (exit 1); exit 1; }; }
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4561 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4562 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4563 if test "${ac_cv_path_GREP+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 # Extract the first word of "grep ggrep" to use in msg output
4567 if test -z "$GREP"; then
4568 set dummy grep ggrep; ac_prog_name=$2
4569 if test "${ac_cv_path_GREP+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 ac_path_GREP_found=false
4573 # Loop through the user's path and test for each of PROGNAME-LIST
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4578 test -z "$as_dir" && as_dir=.
4579 for ac_prog in grep ggrep; do
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4582 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4583 # Check for GNU ac_path_GREP and select it if it is found.
4584 # Check for GNU $ac_path_GREP
4585 case `"$ac_path_GREP" --version 2>&1` in
4587 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4590 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4593 cat "conftest.in" "conftest.in" >"conftest.tmp"
4594 mv "conftest.tmp" "conftest.in"
4595 cp "conftest.in" "conftest.nl"
4596 echo 'GREP' >> "conftest.nl"
4597 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4599 ac_count=`expr $ac_count + 1`
4600 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4601 # Best one so far, save it but keep looking for a better one
4602 ac_cv_path_GREP="$ac_path_GREP"
4603 ac_path_GREP_max=$ac_count
4605 # 10*(2^10) chars as input seems more than enough
4606 test $ac_count -gt 10 && break
4608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4612 $ac_path_GREP_found && break 3
4622 GREP="$ac_cv_path_GREP"
4623 if test -z "$GREP"; then
4624 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4625 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4626 { (exit 1); exit 1; }; }
4630 ac_cv_path_GREP=$GREP
4635 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4636 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4637 GREP="$ac_cv_path_GREP"
4640 { echo "$as_me:$LINENO: checking for egrep" >&5
4641 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4642 if test "${ac_cv_path_EGREP+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4646 then ac_cv_path_EGREP="$GREP -E"
4648 # Extract the first word of "egrep" to use in msg output
4649 if test -z "$EGREP"; then
4650 set dummy egrep; ac_prog_name=$2
4651 if test "${ac_cv_path_EGREP+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 ac_path_EGREP_found=false
4655 # Loop through the user's path and test for each of PROGNAME-LIST
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4660 test -z "$as_dir" && as_dir=.
4661 for ac_prog in egrep; do
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4664 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4665 # Check for GNU ac_path_EGREP and select it if it is found.
4666 # Check for GNU $ac_path_EGREP
4667 case `"$ac_path_EGREP" --version 2>&1` in
4669 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4672 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4675 cat "conftest.in" "conftest.in" >"conftest.tmp"
4676 mv "conftest.tmp" "conftest.in"
4677 cp "conftest.in" "conftest.nl"
4678 echo 'EGREP' >> "conftest.nl"
4679 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681 ac_count=`expr $ac_count + 1`
4682 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4683 # Best one so far, save it but keep looking for a better one
4684 ac_cv_path_EGREP="$ac_path_EGREP"
4685 ac_path_EGREP_max=$ac_count
4687 # 10*(2^10) chars as input seems more than enough
4688 test $ac_count -gt 10 && break
4690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4694 $ac_path_EGREP_found && break 3
4704 EGREP="$ac_cv_path_EGREP"
4705 if test -z "$EGREP"; then
4706 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4707 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4708 { (exit 1); exit 1; }; }
4712 ac_cv_path_EGREP=$EGREP
4718 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4719 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4720 EGREP="$ac_cv_path_EGREP"
4723 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4724 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4725 if test "${ac_cv_header_stdc+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 cat >conftest.$ac_ext <<_ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4747 rm -f conftest.$ac_objext
4748 if { (ac_try="$ac_compile"
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_compile") 2>conftest.er1
4756 grep -v '^ *+' conftest.er1 >conftest.err
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } && {
4761 test -z "$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4763 } && test -s conftest.$ac_objext; then
4764 ac_cv_header_stdc=yes
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4769 ac_cv_header_stdc=no
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 if test $ac_cv_header_stdc = yes; then
4775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4776 cat >conftest.$ac_ext <<_ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4786 $EGREP "memchr" >/dev/null 2>&1; then
4789 ac_cv_header_stdc=no
4795 if test $ac_cv_header_stdc = yes; then
4796 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4797 cat >conftest.$ac_ext <<_ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4807 $EGREP "free" >/dev/null 2>&1; then
4810 ac_cv_header_stdc=no
4816 if test $ac_cv_header_stdc = yes; then
4817 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4818 if test "$cross_compiling" = yes; then
4821 cat >conftest.$ac_ext <<_ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4829 #if ((' ' & 0x0FF) == 0x020)
4830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4833 # define ISLOWER(c) \
4834 (('a' <= (c) && (c) <= 'i') \
4835 || ('j' <= (c) && (c) <= 'r') \
4836 || ('s' <= (c) && (c) <= 'z'))
4837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4845 for (i = 0; i < 256; i++)
4846 if (XOR (islower (i), ISLOWER (i))
4847 || toupper (i) != TOUPPER (i))
4852 rm -f conftest$ac_exeext
4853 if { (ac_try="$ac_link"
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_link") 2>&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4863 { (case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_try") 2>&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4874 echo "$as_me: program exited with status $ac_status" >&5
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4879 ac_cv_header_stdc=no
4881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4887 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4888 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4889 if test $ac_cv_header_stdc = yes; then
4891 cat >>confdefs.h <<\_ACEOF
4892 #define STDC_HEADERS 1
4897 # Make sure we can run config.sub.
4898 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4899 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4900 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4901 { (exit 1); exit 1; }; }
4903 { echo "$as_me:$LINENO: checking build system type" >&5
4904 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4905 if test "${ac_cv_build+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 ac_build_alias=$build_alias
4909 test "x$ac_build_alias" = x &&
4910 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4911 test "x$ac_build_alias" = x &&
4912 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4913 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4914 { (exit 1); exit 1; }; }
4915 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4916 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4917 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4918 { (exit 1); exit 1; }; }
4921 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4922 echo "${ECHO_T}$ac_cv_build" >&6; }
4923 case $ac_cv_build in
4925 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4926 echo "$as_me: error: invalid value of canonical build" >&2;}
4927 { (exit 1); exit 1; }; };;
4930 ac_save_IFS=$IFS; IFS='-'
4936 # Remember, the first character of IFS is used to create $*,
4937 # except with old shells:
4940 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4943 { echo "$as_me:$LINENO: checking host system type" >&5
4944 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4945 if test "${ac_cv_host+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 if test "x$host_alias" = x; then
4949 ac_cv_host=$ac_cv_build
4951 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4952 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4953 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4954 { (exit 1); exit 1; }; }
4958 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4959 echo "${ECHO_T}$ac_cv_host" >&6; }
4962 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4963 echo "$as_me: error: invalid value of canonical host" >&2;}
4964 { (exit 1); exit 1; }; };;
4967 ac_save_IFS=$IFS; IFS='-'
4973 # Remember, the first character of IFS is used to create $*,
4974 # except with old shells:
4977 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4980 # Check whether --enable-trace was given.
4981 if test "${enable_trace+set}" = set; then
4982 enableval=$enable_trace; if test "$enableval" == "yes"; then
4984 cat >>confdefs.h <<\_ACEOF
4985 #define ENABLE_TRACE_IO 1
4991 # Check whether --enable-watch was given.
4992 if test "${enable_watch+set}" = set; then
4993 enableval=$enable_watch; if test "$enableval" == "yes"; then
4995 cat >>confdefs.h <<\_ACEOF
4996 #define ENABLE_WATCH 1
5003 # Check whether --with-osmesa was given.
5004 if test "${with_osmesa+set}" = set; then
5005 withval=$with_osmesa;
5011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5021 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5022 inttypes.h stdint.h unistd.h
5024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 cat >conftest.$ac_ext <<_ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 $ac_includes_default
5038 #include <$ac_header>
5040 rm -f conftest.$ac_objext
5041 if { (ac_try="$ac_compile"
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_compile") 2>conftest.er1
5049 grep -v '^ *+' conftest.er1 >conftest.err
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && {
5054 test -z "$ac_c_werror_flag" ||
5055 test ! -s conftest.err
5056 } && test -s conftest.$ac_objext; then
5057 eval "$as_ac_Header=yes"
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5062 eval "$as_ac_Header=no"
5065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 ac_res=`eval echo '${'$as_ac_Header'}'`
5068 { echo "$as_me:$LINENO: result: $ac_res" >&5
5069 echo "${ECHO_T}$ac_res" >&6; }
5070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5071 cat >>confdefs.h <<_ACEOF
5072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5080 if test "x$with_osmesa" != xno; then
5083 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
5084 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
5085 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 ac_check_lib_save_LIBS=$LIBS
5089 LIBS="-lOSMesa $LIBS"
5090 cat >conftest.$ac_ext <<_ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5097 /* Override any GCC internal prototype to avoid an error.
5098 Use char because int might match the return type of a GCC
5099 builtin and then its argument prototype would still apply. */
5103 char OSMesaCreateContext ();
5107 return OSMesaCreateContext ();
5112 rm -f conftest.$ac_objext conftest$ac_exeext
5113 if { (ac_try="$ac_link"
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119 (eval "$ac_link") 2>conftest.er1
5121 grep -v '^ *+' conftest.er1 >conftest.err
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } && {
5126 test -z "$ac_c_werror_flag" ||
5127 test ! -s conftest.err
5128 } && test -s conftest$ac_exeext &&
5129 $as_test_x conftest$ac_exeext; then
5130 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5135 ac_cv_lib_OSMesa_OSMesaCreateContext=no
5138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5139 conftest$ac_exeext conftest.$ac_ext
5140 LIBS=$ac_check_lib_save_LIBS
5142 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
5143 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
5144 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
5145 cat >>confdefs.h <<_ACEOF
5146 #define HAVE_LIBOSMESA 1
5149 LIBS="-lOSMesa $LIBS"
5152 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
5153 See \`config.log' for more details." >&5
5154 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
5155 See \`config.log' for more details." >&2;}
5156 { (exit 1); exit 1; }; }
5159 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
5160 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
5161 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
5162 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
5166 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
5168 # Is the header compilable?
5169 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
5170 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
5171 cat >conftest.$ac_ext <<_ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5177 $ac_includes_default
5178 #include <GL/osmesa.h>
5180 rm -f conftest.$ac_objext
5181 if { (ac_try="$ac_compile"
5183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184 *) ac_try_echo=$ac_try;;
5186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187 (eval "$ac_compile") 2>conftest.er1
5189 grep -v '^ *+' conftest.er1 >conftest.err
5191 cat conftest.err >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } && {
5194 test -z "$ac_c_werror_flag" ||
5195 test ! -s conftest.err
5196 } && test -s conftest.$ac_objext; then
5197 ac_header_compiler=yes
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5202 ac_header_compiler=no
5205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5207 echo "${ECHO_T}$ac_header_compiler" >&6; }
5209 # Is the header present?
5210 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
5211 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
5212 cat >conftest.$ac_ext <<_ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218 #include <GL/osmesa.h>
5220 if { (ac_try="$ac_cpp conftest.$ac_ext"
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5228 grep -v '^ *+' conftest.er1 >conftest.err
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } >/dev/null && {
5233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5234 test ! -s conftest.err
5236 ac_header_preproc=yes
5238 echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.$ac_ext >&5
5241 ac_header_preproc=no
5244 rm -f conftest.err conftest.$ac_ext
5245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5246 echo "${ECHO_T}$ac_header_preproc" >&6; }
5248 # So? What about this header?
5249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5251 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
5252 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
5254 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
5255 ac_header_preproc=yes
5258 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
5259 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
5260 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
5261 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
5262 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
5263 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
5264 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
5265 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
5266 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
5267 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
5268 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
5269 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
5273 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
5274 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
5275 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 ac_cv_header_GL_osmesa_h=$ac_header_preproc
5280 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
5281 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
5284 if test $ac_cv_header_GL_osmesa_h = yes; then
5287 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
5288 See \`config.log' for more details." >&5
5289 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
5290 See \`config.log' for more details." >&2;}
5291 { (exit 1); exit 1; }; }
5300 if test "x$with_osmesa" != xno; then
5302 OSMESA_DRIVER_FALSE='#'
5304 OSMESA_DRIVER_TRUE='#'
5305 OSMESA_DRIVER_FALSE=
5309 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5310 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
5311 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
5312 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
5316 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
5318 # Is the header compilable?
5319 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
5320 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
5321 cat >conftest.$ac_ext <<_ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 $ac_includes_default
5328 #include <Carbon/Carbon.h>
5330 rm -f conftest.$ac_objext
5331 if { (ac_try="$ac_compile"
5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334 *) ac_try_echo=$ac_try;;
5336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5337 (eval "$ac_compile") 2>conftest.er1
5339 grep -v '^ *+' conftest.er1 >conftest.err
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } && {
5344 test -z "$ac_c_werror_flag" ||
5345 test ! -s conftest.err
5346 } && test -s conftest.$ac_objext; then
5347 ac_header_compiler=yes
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5352 ac_header_compiler=no
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5357 echo "${ECHO_T}$ac_header_compiler" >&6; }
5359 # Is the header present?
5360 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
5361 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 #include <Carbon/Carbon.h>
5370 if { (ac_try="$ac_cpp conftest.$ac_ext"
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5378 grep -v '^ *+' conftest.er1 >conftest.err
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } >/dev/null && {
5383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5384 test ! -s conftest.err
5386 ac_header_preproc=yes
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 ac_header_preproc=no
5394 rm -f conftest.err conftest.$ac_ext
5395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5396 echo "${ECHO_T}$ac_header_preproc" >&6; }
5398 # So? What about this header?
5399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5401 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
5402 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5403 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
5404 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
5405 ac_header_preproc=yes
5408 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
5409 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
5411 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
5413 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
5415 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
5417 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
5419 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
5423 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
5424 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
5425 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
5430 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
5431 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
5434 if test $ac_cv_header_Carbon_Carbon_h = yes; then
5438 LIBS="$LIBS -framework OpenGL -framework AGL -framework Carbon -L/usr/X11R6/lib -lGL"
5440 cat >>confdefs.h <<\_ACEOF
5441 #define HAVE_CARBON 1
5445 cat >>confdefs.h <<\_ACEOF
5446 #define APPLE_BUILD 1
5456 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5457 if test -n "$ac_tool_prefix"; then
5458 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5459 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5462 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5489 if test -n "$PKG_CONFIG"; then
5490 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5491 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5493 { echo "$as_me:$LINENO: result: no" >&5
5494 echo "${ECHO_T}no" >&6; }
5499 if test -z "$ac_cv_path_PKG_CONFIG"; then
5500 ac_pt_PKG_CONFIG=$PKG_CONFIG
5501 # Extract the first word of "pkg-config", so it can be a program name with args.
5502 set dummy pkg-config; ac_word=$2
5503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5505 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 case $ac_pt_PKG_CONFIG in
5510 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5532 if test -n "$ac_pt_PKG_CONFIG"; then
5533 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5534 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5536 { echo "$as_me:$LINENO: result: no" >&5
5537 echo "${ECHO_T}no" >&6; }
5540 if test "x$ac_pt_PKG_CONFIG" = x; then
5543 case $cross_compiling:$ac_tool_warned in
5545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5546 whose name does not start with the host triplet. If you think this
5547 configuration is useful to you, please write to autoconf@gnu.org." >&5
5548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5549 whose name does not start with the host triplet. If you think this
5550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5551 ac_tool_warned=yes ;;
5553 PKG_CONFIG=$ac_pt_PKG_CONFIG
5556 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5560 if test -n "$PKG_CONFIG"; then
5561 _pkg_min_version=0.9.0
5562 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5563 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5564 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5565 { echo "$as_me:$LINENO: result: yes" >&5
5566 echo "${ECHO_T}yes" >&6; }
5568 { echo "$as_me:$LINENO: result: no" >&5
5569 echo "${ECHO_T}no" >&6; }
5576 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
5577 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
5579 if test -n "$PKG_CONFIG"; then
5580 if test -n "$LIBPNG_CFLAGS"; then
5581 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
5583 if test -n "$PKG_CONFIG" && \
5584 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
5585 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; then
5589 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
5597 if test -n "$PKG_CONFIG"; then
5598 if test -n "$LIBPNG_LIBS"; then
5599 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
5601 if test -n "$PKG_CONFIG" && \
5602 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
5603 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; then
5607 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
5618 if test $pkg_failed = yes; then
5620 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5621 _pkg_short_errors_supported=yes
5623 _pkg_short_errors_supported=no
5625 if test $_pkg_short_errors_supported = yes; then
5626 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
5628 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
5630 # Put the nasty error message in config.log where it belongs
5631 echo "$LIBPNG_PKG_ERRORS" >&5
5633 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
5637 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5638 installed software in a non-standard prefix.
5640 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5641 and LIBPNG_LIBS to avoid the need to call pkg-config.
5642 See the pkg-config man page for more details.
5644 echo "$as_me: error: Package requirements (libpng ) were not met:
5648 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5649 installed software in a non-standard prefix.
5651 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5652 and LIBPNG_LIBS to avoid the need to call pkg-config.
5653 See the pkg-config man page for more details.
5655 { (exit 1); exit 1; }; }
5656 elif test $pkg_failed = untried; then
5657 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5658 is in your PATH or set the PKG_CONFIG environment variable to the full
5661 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5662 and LIBPNG_LIBS to avoid the need to call pkg-config.
5663 See the pkg-config man page for more details.
5665 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5666 See \`config.log' for more details." >&5
5667 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5668 is in your PATH or set the PKG_CONFIG environment variable to the full
5671 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5672 and LIBPNG_LIBS to avoid the need to call pkg-config.
5673 See the pkg-config man page for more details.
5675 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5676 See \`config.log' for more details." >&2;}
5677 { (exit 1); exit 1; }; }
5679 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
5680 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
5681 { echo "$as_me:$LINENO: result: yes" >&5
5682 echo "${ECHO_T}yes" >&6; }
5687 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
5688 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
5689 if test "${ac_cv_lib_z_uncompress+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 ac_check_lib_save_LIBS=$LIBS
5694 cat >conftest.$ac_ext <<_ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5701 /* Override any GCC internal prototype to avoid an error.
5702 Use char because int might match the return type of a GCC
5703 builtin and then its argument prototype would still apply. */
5711 return uncompress ();
5716 rm -f conftest.$ac_objext conftest$ac_exeext
5717 if { (ac_try="$ac_link"
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_link") 2>conftest.er1
5725 grep -v '^ *+' conftest.er1 >conftest.err
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && {
5730 test -z "$ac_c_werror_flag" ||
5731 test ! -s conftest.err
5732 } && test -s conftest$ac_exeext &&
5733 $as_test_x conftest$ac_exeext; then
5734 ac_cv_lib_z_uncompress=yes
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 ac_cv_lib_z_uncompress=no
5742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5743 conftest$ac_exeext conftest.$ac_ext
5744 LIBS=$ac_check_lib_save_LIBS
5746 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
5747 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
5748 if test $ac_cv_lib_z_uncompress = yes; then
5749 cat >>confdefs.h <<_ACEOF
5757 echo "Zlib (libz.so) could not be found, but is required."
5762 if test "$APPLE_BUILD" != 'yes'; then
5763 if test "x$with_osmesa" == "xno"; then
5765 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
5766 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
5767 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 ac_check_lib_save_LIBS=$LIBS
5772 cat >conftest.$ac_ext <<_ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5779 /* Override any GCC internal prototype to avoid an error.
5780 Use char because int might match the return type of a GCC
5781 builtin and then its argument prototype would still apply. */
5785 char glXQueryVersion ();
5789 return glXQueryVersion ();
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (ac_try="$ac_link"
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_link") 2>conftest.er1
5803 grep -v '^ *+' conftest.er1 >conftest.err
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } && {
5808 test -z "$ac_c_werror_flag" ||
5809 test ! -s conftest.err
5810 } && test -s conftest$ac_exeext &&
5811 $as_test_x conftest$ac_exeext; then
5812 ac_cv_lib_GL_glXQueryVersion=yes
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5817 ac_cv_lib_GL_glXQueryVersion=no
5820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5821 conftest$ac_exeext conftest.$ac_ext
5822 LIBS=$ac_check_lib_save_LIBS
5824 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
5825 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
5826 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
5827 cat >>confdefs.h <<_ACEOF
5828 #define HAVE_LIBGL 1
5835 echo "The OpenGL library (libGL.so) could not be found, but is required."
5839 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5840 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5841 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5842 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5846 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5848 # Is the header compilable?
5849 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
5850 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
5851 cat >conftest.$ac_ext <<_ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 $ac_includes_default
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compile") 2>conftest.er1
5869 grep -v '^ *+' conftest.er1 >conftest.err
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } && {
5874 test -z "$ac_c_werror_flag" ||
5875 test ! -s conftest.err
5876 } && test -s conftest.$ac_objext; then
5877 ac_header_compiler=yes
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5882 ac_header_compiler=no
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5887 echo "${ECHO_T}$ac_header_compiler" >&6; }
5889 # Is the header present?
5890 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
5891 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
5892 cat >conftest.$ac_ext <<_ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5900 if { (ac_try="$ac_cpp conftest.$ac_ext"
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5908 grep -v '^ *+' conftest.er1 >conftest.err
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } >/dev/null && {
5913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5914 test ! -s conftest.err
5916 ac_header_preproc=yes
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5921 ac_header_preproc=no
5924 rm -f conftest.err conftest.$ac_ext
5925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5926 echo "${ECHO_T}$ac_header_preproc" >&6; }
5928 # So? What about this header?
5929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5931 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5932 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5933 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
5934 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
5935 ac_header_preproc=yes
5938 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
5939 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
5940 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
5941 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
5942 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
5943 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
5944 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
5945 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5946 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
5947 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
5948 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
5949 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
5953 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5954 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5955 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 ac_cv_header_GL_gl_h=$ac_header_preproc
5960 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5961 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5964 if test $ac_cv_header_GL_gl_h = yes; then
5968 echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
5976 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
5977 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
5978 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 cat >conftest.$ac_ext <<_ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
5988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5989 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
5991 /* System header to define __stub macros and hopefully few prototypes,
5992 which can conflict with char glGenFramebuffersEXT (); below.
5993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5994 <limits.h> exists even on freestanding compilers. */
5997 # include <limits.h>
5999 # include <assert.h>
6002 #undef glGenFramebuffersEXT
6004 /* Override any GCC internal prototype to avoid an error.
6005 Use char because int might match the return type of a GCC
6006 builtin and then its argument prototype would still apply. */
6010 char glGenFramebuffersEXT ();
6011 /* The GNU C library defines this for functions which it implements
6012 to always fail with ENOSYS. Some functions are actually named
6013 something starting with __ and the normal name is an alias. */
6014 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
6021 return glGenFramebuffersEXT ();
6026 rm -f conftest.$ac_objext conftest$ac_exeext
6027 if { (ac_try="$ac_link"
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033 (eval "$ac_link") 2>conftest.er1
6035 grep -v '^ *+' conftest.er1 >conftest.err
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } && {
6040 test -z "$ac_c_werror_flag" ||
6041 test ! -s conftest.err
6042 } && test -s conftest$ac_exeext &&
6043 $as_test_x conftest$ac_exeext; then
6044 ac_cv_func_glGenFramebuffersEXT=yes
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6049 ac_cv_func_glGenFramebuffersEXT=no
6052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6053 conftest$ac_exeext conftest.$ac_ext
6055 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
6056 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
6057 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
6059 cat >>confdefs.h <<\_ACEOF
6060 #define HAVE_OPENGL_FBO 1
6065 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
6066 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
6067 if test "${ac_cv_func_glCreateShader+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 cat >conftest.$ac_ext <<_ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6076 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
6077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6078 #define glCreateShader innocuous_glCreateShader
6080 /* System header to define __stub macros and hopefully few prototypes,
6081 which can conflict with char glCreateShader (); below.
6082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6083 <limits.h> exists even on freestanding compilers. */
6086 # include <limits.h>
6088 # include <assert.h>
6091 #undef glCreateShader
6093 /* Override any GCC internal prototype to avoid an error.
6094 Use char because int might match the return type of a GCC
6095 builtin and then its argument prototype would still apply. */
6099 char glCreateShader ();
6100 /* The GNU C library defines this for functions which it implements
6101 to always fail with ENOSYS. Some functions are actually named
6102 something starting with __ and the normal name is an alias. */
6103 #if defined __stub_glCreateShader || defined __stub___glCreateShader
6110 return glCreateShader ();
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (ac_try="$ac_link"
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_link") 2>conftest.er1
6124 grep -v '^ *+' conftest.er1 >conftest.err
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } && {
6129 test -z "$ac_c_werror_flag" ||
6130 test ! -s conftest.err
6131 } && test -s conftest$ac_exeext &&
6132 $as_test_x conftest$ac_exeext; then
6133 ac_cv_func_glCreateShader=yes
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 ac_cv_func_glCreateShader=no
6141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6142 conftest$ac_exeext conftest.$ac_ext
6144 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
6145 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
6146 if test $ac_cv_func_glCreateShader = yes; then
6148 cat >>confdefs.h <<\_ACEOF
6149 #define HAVE_OPENGL_SHADER 1
6154 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
6155 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
6156 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 cat >conftest.$ac_ext <<_ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
6166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6167 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
6169 /* System header to define __stub macros and hopefully few prototypes,
6170 which can conflict with char glCreateShaderObjectARB (); below.
6171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6172 <limits.h> exists even on freestanding compilers. */
6175 # include <limits.h>
6177 # include <assert.h>
6180 #undef glCreateShaderObjectARB
6182 /* Override any GCC internal prototype to avoid an error.
6183 Use char because int might match the return type of a GCC
6184 builtin and then its argument prototype would still apply. */
6188 char glCreateShaderObjectARB ();
6189 /* The GNU C library defines this for functions which it implements
6190 to always fail with ENOSYS. Some functions are actually named
6191 something starting with __ and the normal name is an alias. */
6192 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
6199 return glCreateShaderObjectARB ();
6204 rm -f conftest.$ac_objext conftest$ac_exeext
6205 if { (ac_try="$ac_link"
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_link") 2>conftest.er1
6213 grep -v '^ *+' conftest.er1 >conftest.err
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } && {
6218 test -z "$ac_c_werror_flag" ||
6219 test ! -s conftest.err
6220 } && test -s conftest$ac_exeext &&
6221 $as_test_x conftest$ac_exeext; then
6222 ac_cv_func_glCreateShaderObjectARB=yes
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 ac_cv_func_glCreateShaderObjectARB=no
6230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6231 conftest$ac_exeext conftest.$ac_ext
6233 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
6234 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
6235 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
6237 cat >>confdefs.h <<\_ACEOF
6238 #define HAVE_OPENGL_SHADER_ARB 1
6246 { echo "$as_me:$LINENO: checking for GTK" >&5
6247 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
6249 if test -n "$PKG_CONFIG"; then
6250 if test -n "$GTK_CFLAGS"; then
6251 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
6253 if test -n "$PKG_CONFIG" && \
6254 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
6255 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; then
6259 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
6267 if test -n "$PKG_CONFIG"; then
6268 if test -n "$GTK_LIBS"; then
6269 pkg_cv_GTK_LIBS="$GTK_LIBS"
6271 if test -n "$PKG_CONFIG" && \
6272 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
6273 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; then
6277 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
6288 if test $pkg_failed = yes; then
6290 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6291 _pkg_short_errors_supported=yes
6293 _pkg_short_errors_supported=no
6295 if test $_pkg_short_errors_supported = yes; then
6296 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
6298 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
6300 # Put the nasty error message in config.log where it belongs
6301 echo "$GTK_PKG_ERRORS" >&5
6303 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
6307 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6308 installed software in a non-standard prefix.
6310 Alternatively, you may set the environment variables GTK_CFLAGS
6311 and GTK_LIBS to avoid the need to call pkg-config.
6312 See the pkg-config man page for more details.
6314 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
6318 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6319 installed software in a non-standard prefix.
6321 Alternatively, you may set the environment variables GTK_CFLAGS
6322 and GTK_LIBS to avoid the need to call pkg-config.
6323 See the pkg-config man page for more details.
6325 { (exit 1); exit 1; }; }
6326 elif test $pkg_failed = untried; then
6327 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6328 is in your PATH or set the PKG_CONFIG environment variable to the full
6331 Alternatively, you may set the environment variables GTK_CFLAGS
6332 and GTK_LIBS to avoid the need to call pkg-config.
6333 See the pkg-config man page for more details.
6335 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
6336 See \`config.log' for more details." >&5
6337 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6338 is in your PATH or set the PKG_CONFIG environment variable to the full
6341 Alternatively, you may set the environment variables GTK_CFLAGS
6342 and GTK_LIBS to avoid the need to call pkg-config.
6343 See the pkg-config man page for more details.
6345 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
6346 See \`config.log' for more details." >&2;}
6347 { (exit 1); exit 1; }; }
6349 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
6350 GTK_LIBS=$pkg_cv_GTK_LIBS
6351 { echo "$as_me:$LINENO: result: yes" >&5
6352 echo "${ECHO_T}yes" >&6; }
6356 cat >>confdefs.h <<\_ACEOF
6365 if test "$HAVE_CARBON" = 'yes'; then
6367 GUI_CARBON_FALSE='#'
6375 if test "$HAVE_GTK" = 'yes'; then
6385 i386|i486|i586|i686)
6386 SH4_TRANSLATOR="x86"
6388 cat >>confdefs.h <<_ACEOF
6389 #define SH4_TRANSLATOR TARGET_X86
6393 SH4_TRANSLATOR="x86_64"
6395 cat >>confdefs.h <<_ACEOF
6396 #define SH4_TRANSLATOR TARGET_X86_64
6400 echo "Warning: No translator available for $host. Building emulation core only";;
6404 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
6406 BUILD_SH4X86_FALSE='#'
6408 BUILD_SH4X86_TRUE='#'
6414 if test "$SH4_TRANSLATOR" = "x86_64"; then
6416 BUILD_X86_64_FALSE='#'
6418 BUILD_X86_64_TRUE='#'
6425 { echo "$as_me:$LINENO: checking for ESOUND" >&5
6426 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
6428 if test -n "$PKG_CONFIG"; then
6429 if test -n "$ESOUND_CFLAGS"; then
6430 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
6432 if test -n "$PKG_CONFIG" && \
6433 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
6434 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; then
6438 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
6446 if test -n "$PKG_CONFIG"; then
6447 if test -n "$ESOUND_LIBS"; then
6448 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
6450 if test -n "$PKG_CONFIG" && \
6451 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
6452 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; then
6456 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
6467 if test $pkg_failed = yes; then
6469 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6470 _pkg_short_errors_supported=yes
6472 _pkg_short_errors_supported=no
6474 if test $_pkg_short_errors_supported = yes; then
6475 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
6477 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
6479 # Put the nasty error message in config.log where it belongs
6480 echo "$ESOUND_PKG_ERRORS" >&5
6482 { echo "$as_me:$LINENO: result: no" >&5
6483 echo "${ECHO_T}no" >&6; }
6484 echo "Warning: esound not found - building without esd audio support"
6485 elif test $pkg_failed = untried; then
6486 echo "Warning: esound not found - building without esd audio support"
6488 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
6489 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
6490 { echo "$as_me:$LINENO: result: yes" >&5
6491 echo "${ECHO_T}yes" >&6; }
6495 cat >>confdefs.h <<\_ACEOF
6496 #define HAVE_ESOUND 1
6502 if test "$HAVE_ESOUND" = 'yes' ; then
6504 AUDIO_ESOUND_FALSE='#'
6506 AUDIO_ESOUND_TRUE='#'
6513 { echo "$as_me:$LINENO: checking for ALSA" >&5
6514 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
6516 if test -n "$PKG_CONFIG"; then
6517 if test -n "$ALSA_CFLAGS"; then
6518 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
6520 if test -n "$PKG_CONFIG" && \
6521 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
6522 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; then
6526 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
6534 if test -n "$PKG_CONFIG"; then
6535 if test -n "$ALSA_LIBS"; then
6536 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
6538 if test -n "$PKG_CONFIG" && \
6539 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
6540 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; then
6544 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
6555 if test $pkg_failed = yes; then
6557 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6558 _pkg_short_errors_supported=yes
6560 _pkg_short_errors_supported=no
6562 if test $_pkg_short_errors_supported = yes; then
6563 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
6565 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
6567 # Put the nasty error message in config.log where it belongs
6568 echo "$ALSA_PKG_ERRORS" >&5
6570 { echo "$as_me:$LINENO: result: no" >&5
6571 echo "${ECHO_T}no" >&6; }
6572 echo "Warning: alsa not found - building without alsa audio support"
6573 elif test $pkg_failed = untried; then
6574 echo "Warning: alsa not found - building without alsa audio support"
6576 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
6577 ALSA_LIBS=$pkg_cv_ALSA_LIBS
6578 { echo "$as_me:$LINENO: result: yes" >&5
6579 echo "${ECHO_T}yes" >&6; }
6583 cat >>confdefs.h <<\_ACEOF
6590 if test "$HAVE_ALSA" = 'yes' ; then
6592 AUDIO_ALSA_FALSE='#'
6599 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
6600 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
6601 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
6602 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
6606 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
6608 # Is the header compilable?
6609 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
6610 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
6611 cat >conftest.$ac_ext <<_ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6617 $ac_includes_default
6618 #include <linux/cdrom.h>
6620 rm -f conftest.$ac_objext
6621 if { (ac_try="$ac_compile"
6623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6627 (eval "$ac_compile") 2>conftest.er1
6629 grep -v '^ *+' conftest.er1 >conftest.err
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } && {
6634 test -z "$ac_c_werror_flag" ||
6635 test ! -s conftest.err
6636 } && test -s conftest.$ac_objext; then
6637 ac_header_compiler=yes
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6642 ac_header_compiler=no
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6647 echo "${ECHO_T}$ac_header_compiler" >&6; }
6649 # Is the header present?
6650 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
6651 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
6652 cat >conftest.$ac_ext <<_ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 #include <linux/cdrom.h>
6660 if { (ac_try="$ac_cpp conftest.$ac_ext"
6662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663 *) ac_try_echo=$ac_try;;
6665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6668 grep -v '^ *+' conftest.er1 >conftest.err
6670 cat conftest.err >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } >/dev/null && {
6673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6674 test ! -s conftest.err
6676 ac_header_preproc=yes
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6681 ac_header_preproc=no
6684 rm -f conftest.err conftest.$ac_ext
6685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6686 echo "${ECHO_T}$ac_header_preproc" >&6; }
6688 # So? What about this header?
6689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6691 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
6692 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6693 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
6694 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
6695 ac_header_preproc=yes
6698 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
6699 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
6700 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
6701 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
6702 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
6703 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
6704 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
6705 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
6706 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
6707 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
6708 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
6709 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
6713 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
6714 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
6715 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 ac_cv_header_linux_cdrom_h=$ac_header_preproc
6720 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
6721 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
6724 if test $ac_cv_header_linux_cdrom_h = yes; then
6725 HAVE_LINUX_CDROM_H=yes
6728 echo "Linux CDROM support not found, building without it."
6734 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
6736 CDROM_LINUX_FALSE='#'
6738 CDROM_LINUX_TRUE='#'
6743 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
6744 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
6745 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
6746 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
6750 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
6752 # Is the header compilable?
6753 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
6754 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }