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
764 ac_precious_vars='build_alias
786 # Initialize some variables set by options.
788 ac_init_version=false
789 # The variables have the same names as the options, with
790 # dashes changed to underlines.
798 program_transform_name=s,x,x,
806 # Installation directory options.
807 # These are left unexpanded so users can "make install exec_prefix=/foo"
808 # and all the variables that are supposed to be based on exec_prefix
809 # by default will actually change.
810 # Use braces instead of parens because sh, perl, etc. also accept them.
811 # (The list follows the same order as the GNU Coding Standards.)
812 bindir='${exec_prefix}/bin'
813 sbindir='${exec_prefix}/sbin'
814 libexecdir='${exec_prefix}/libexec'
815 datarootdir='${prefix}/share'
816 datadir='${datarootdir}'
817 sysconfdir='${prefix}/etc'
818 sharedstatedir='${prefix}/com'
819 localstatedir='${prefix}/var'
820 includedir='${prefix}/include'
821 oldincludedir='/usr/include'
822 docdir='${datarootdir}/doc/${PACKAGE}'
823 infodir='${datarootdir}/info'
828 libdir='${exec_prefix}/lib'
829 localedir='${datarootdir}/locale'
830 mandir='${datarootdir}/man'
836 # If the previous option needs an argument, assign it.
837 if test -n "$ac_prev"; then
838 eval $ac_prev=\$ac_option
844 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 # Accept the important Cygnus configure options, so we can diagnose typos.
850 case $ac_dashdash$ac_option in
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
872 cache_file=config.cache ;;
874 -datadir | --datadir | --datadi | --datad)
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
886 -disable-* | --disable-*)
887 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
890 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
891 { (exit 1); exit 1; }; }
892 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
893 eval enable_$ac_feature=no ;;
895 -docdir | --docdir | --docdi | --doc | --do)
897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 -enable-* | --enable-*)
906 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
909 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910 { (exit 1); exit 1; }; }
911 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
912 eval enable_$ac_feature=\$ac_optarg ;;
914 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916 | --exec | --exe | --ex)
917 ac_prev=exec_prefix ;;
918 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920 | --exec=* | --exe=* | --ex=*)
921 exec_prefix=$ac_optarg ;;
923 -gas | --gas | --ga | --g)
924 # Obsolete; use --with-gas.
927 -help | --help | --hel | --he | -h)
929 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930 ac_init_help=recursive ;;
931 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932 ac_init_help=short ;;
934 -host | --host | --hos | --ho)
935 ac_prev=host_alias ;;
936 -host=* | --host=* | --hos=* | --ho=*)
937 host_alias=$ac_optarg ;;
939 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
941 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
943 htmldir=$ac_optarg ;;
945 -includedir | --includedir | --includedi | --included | --include \
946 | --includ | --inclu | --incl | --inc)
947 ac_prev=includedir ;;
948 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949 | --includ=* | --inclu=* | --incl=* | --inc=*)
950 includedir=$ac_optarg ;;
952 -infodir | --infodir | --infodi | --infod | --info | --inf)
954 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955 infodir=$ac_optarg ;;
957 -libdir | --libdir | --libdi | --libd)
959 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963 | --libexe | --libex | --libe)
964 ac_prev=libexecdir ;;
965 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966 | --libexe=* | --libex=* | --libe=*)
967 libexecdir=$ac_optarg ;;
969 -localedir | --localedir | --localedi | --localed | --locale)
971 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972 localedir=$ac_optarg ;;
974 -localstatedir | --localstatedir | --localstatedi | --localstated \
975 | --localstate | --localstat | --localsta | --localst | --locals)
976 ac_prev=localstatedir ;;
977 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979 localstatedir=$ac_optarg ;;
981 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
983 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 # Obsolete; use --without-fp.
990 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991 | --no-cr | --no-c | -n)
994 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000 | --oldin | --oldi | --old | --ol | --o)
1001 ac_prev=oldincludedir ;;
1002 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005 oldincludedir=$ac_optarg ;;
1007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010 prefix=$ac_optarg ;;
1012 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013 | --program-pre | --program-pr | --program-p)
1014 ac_prev=program_prefix ;;
1015 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017 program_prefix=$ac_optarg ;;
1019 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020 | --program-suf | --program-su | --program-s)
1021 ac_prev=program_suffix ;;
1022 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024 program_suffix=$ac_optarg ;;
1026 -program-transform-name | --program-transform-name \
1027 | --program-transform-nam | --program-transform-na \
1028 | --program-transform-n | --program-transform- \
1029 | --program-transform | --program-transfor \
1030 | --program-transfo | --program-transf \
1031 | --program-trans | --program-tran \
1032 | --progr-tra | --program-tr | --program-t)
1033 ac_prev=program_transform_name ;;
1034 -program-transform-name=* | --program-transform-name=* \
1035 | --program-transform-nam=* | --program-transform-na=* \
1036 | --program-transform-n=* | --program-transform-=* \
1037 | --program-transform=* | --program-transfor=* \
1038 | --program-transfo=* | --program-transf=* \
1039 | --program-trans=* | --program-tran=* \
1040 | --progr-tra=* | --program-tr=* | --program-t=*)
1041 program_transform_name=$ac_optarg ;;
1043 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1045 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046 pdfdir=$ac_optarg ;;
1048 -psdir | --psdir | --psdi | --psd | --ps)
1050 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1057 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061 sbindir=$ac_optarg ;;
1063 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065 | --sharedst | --shareds | --shared | --share | --shar \
1067 ac_prev=sharedstatedir ;;
1068 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072 sharedstatedir=$ac_optarg ;;
1074 -site | --site | --sit)
1076 -site=* | --site=* | --sit=*)
1079 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082 srcdir=$ac_optarg ;;
1084 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085 | --syscon | --sysco | --sysc | --sys | --sy)
1086 ac_prev=sysconfdir ;;
1087 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089 sysconfdir=$ac_optarg ;;
1091 -target | --target | --targe | --targ | --tar | --ta | --t)
1092 ac_prev=target_alias ;;
1093 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094 target_alias=$ac_optarg ;;
1096 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 -version | --version | --versio | --versi | --vers | -V)
1100 ac_init_version=: ;;
1103 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid package name: $ac_package" >&2
1107 { (exit 1); exit 1; }; }
1108 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1109 eval with_$ac_package=\$ac_optarg ;;
1111 -without-* | --without-*)
1112 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118 eval with_$ac_package=no ;;
1121 # Obsolete; use --with-x.
1124 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125 | --x-incl | --x-inc | --x-in | --x-i)
1126 ac_prev=x_includes ;;
1127 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129 x_includes=$ac_optarg ;;
1131 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133 ac_prev=x_libraries ;;
1134 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136 x_libraries=$ac_optarg ;;
1138 -*) { echo "$as_me: error: unrecognized option: $ac_option
1139 Try \`$0 --help' for more information." >&2
1140 { (exit 1); exit 1; }; }
1144 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1148 { (exit 1); exit 1; }; }
1149 eval $ac_envvar=\$ac_optarg
1150 export $ac_envvar ;;
1153 # FIXME: should be removed in autoconf 3.0.
1154 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1163 if test -n "$ac_prev"; then
1164 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165 { echo "$as_me: error: missing argument to $ac_option" >&2
1166 { (exit 1); exit 1; }; }
1169 # Be sure to have absolute directory names.
1170 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1171 datadir sysconfdir sharedstatedir localstatedir includedir \
1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1173 libdir localedir mandir
1175 eval ac_val=\$$ac_var
1177 [\\/$]* | ?:[\\/]* ) continue;;
1178 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1180 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1181 { (exit 1); exit 1; }; }
1184 # There might be people who depend on the old broken behavior: `$host'
1185 # used to hold the argument of --host etc.
1186 # FIXME: To remove some day.
1189 target=$target_alias
1191 # FIXME: To remove some day.
1192 if test "x$host_alias" != x; then
1193 if test "x$build_alias" = x; then
1194 cross_compiling=maybe
1195 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1196 If a cross compiler is detected then cross compile mode will be used." >&2
1197 elif test "x$build_alias" != "x$host_alias"; then
1203 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1205 test "$silent" = yes && exec 6>/dev/null
1208 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1209 ac_ls_di=`ls -di .` &&
1210 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211 { echo "$as_me: error: Working directory cannot be determined" >&2
1212 { (exit 1); exit 1; }; }
1213 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1214 { echo "$as_me: error: pwd does not report name of working directory" >&2
1215 { (exit 1); exit 1; }; }
1218 # Find the source files, if location was not specified.
1219 if test -z "$srcdir"; then
1220 ac_srcdir_defaulted=yes
1221 # Try the directory containing this script, then the parent directory.
1222 ac_confdir=`$as_dirname -- "$0" ||
1223 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224 X"$0" : 'X\(//\)[^/]' \| \
1225 X"$0" : 'X\(//\)$' \| \
1226 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1250 ac_srcdir_defaulted=no
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1255 { (exit 1); exit 1; }; }
1257 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1259 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1260 { (exit 1); exit 1; }; }
1262 # When building in place, set srcdir=.
1263 if test "$ac_abs_confdir" = "$ac_pwd"; then
1266 # Remove unnecessary trailing slashes from srcdir.
1267 # Double slashes in file names in object file debugging info
1268 # mess up M-x gdb in Emacs.
1270 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272 for ac_var in $ac_precious_vars; do
1273 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1274 eval ac_env_${ac_var}_value=\$${ac_var}
1275 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280 # Report the --help message.
1282 if test "$ac_init_help" = "long"; then
1283 # Omit some internal or obsolete options to make the list less imposing.
1284 # This message is too long to be a string in the A/UX 3.1 sh.
1286 \`configure' configures this package to adapt to many kinds of systems.
1288 Usage: $0 [OPTION]... [VAR=VALUE]...
1290 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1291 VAR=VALUE. See below for descriptions of some of the useful variables.
1293 Defaults for the options are specified in brackets.
1296 -h, --help display this help and exit
1297 --help=short display options specific to this package
1298 --help=recursive display the short help of all the included packages
1299 -V, --version display version information and exit
1300 -q, --quiet, --silent do not print \`checking...' messages
1301 --cache-file=FILE cache test results in FILE [disabled]
1302 -C, --config-cache alias for \`--cache-file=config.cache'
1303 -n, --no-create do not create output files
1304 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1306 Installation directories:
1307 --prefix=PREFIX install architecture-independent files in PREFIX
1308 [$ac_default_prefix]
1309 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1312 By default, \`make install' will install all the files in
1313 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1314 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1315 for instance \`--prefix=\$HOME'.
1317 For better control, use the options below.
1319 Fine tuning of the installation directories:
1320 --bindir=DIR user executables [EPREFIX/bin]
1321 --sbindir=DIR system admin executables [EPREFIX/sbin]
1322 --libexecdir=DIR program executables [EPREFIX/libexec]
1323 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1324 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1325 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1326 --libdir=DIR object code libraries [EPREFIX/lib]
1327 --includedir=DIR C header files [PREFIX/include]
1328 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1329 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1330 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1331 --infodir=DIR info documentation [DATAROOTDIR/info]
1332 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1333 --mandir=DIR man documentation [DATAROOTDIR/man]
1334 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1335 --htmldir=DIR html documentation [DOCDIR]
1336 --dvidir=DIR dvi documentation [DOCDIR]
1337 --pdfdir=DIR pdf documentation [DOCDIR]
1338 --psdir=DIR ps documentation [DOCDIR]
1344 --program-prefix=PREFIX prepend PREFIX to installed program names
1345 --program-suffix=SUFFIX append SUFFIX to installed program names
1346 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1349 --build=BUILD configure for building on BUILD [guessed]
1350 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1354 if test -n "$ac_init_help"; then
1359 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1360 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1361 --enable-maintainer-mode enable make rules and dependencies not useful
1362 (and sometimes confusing) to the casual installer
1363 --disable-dependency-tracking Speeds up one-time builds
1364 --enable-dependency-tracking Do not reject slow dependency extractors
1365 --enable-trace Enable generation of IO traces (warning: hurts
1367 --enable-watch Enable watchpoints in the debugger (warning: hurts
1371 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1372 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1373 --with-osmesa Build with the osmesa GL library (software
1376 Some influential environment variables:
1377 CC C compiler command
1378 CFLAGS C compiler flags
1379 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1380 nonstandard directory <lib dir>
1381 LIBS libraries to pass to the linker, e.g. -l<library>
1382 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1383 you have headers in a nonstandard directory <include dir>
1385 PKG_CONFIG path to pkg-config utility
1387 C compiler flags for LIBPNG, overriding pkg-config
1388 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1389 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1390 GTK_LIBS linker flags for GTK, overriding pkg-config
1392 C compiler flags for PULSE, overriding pkg-config
1393 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1395 C compiler flags for ESOUND, overriding pkg-config
1396 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1397 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1398 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1400 Use these variables to override the choices made by `configure' or to help
1401 it to find libraries and programs with nonstandard names/locations.
1407 if test "$ac_init_help" = "recursive"; then
1408 # If there are subdirs, report their specific --help.
1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410 test -d "$ac_dir" || continue
1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1417 # A ".." for each directory in $ac_dir_suffix.
1418 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1419 case $ac_top_builddir_sub in
1420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 ac_abs_top_builddir=$ac_pwd
1425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426 # for backward compatibility:
1427 ac_top_builddir=$ac_top_build_prefix
1430 .) # We are building in place.
1432 ac_top_srcdir=$ac_top_builddir_sub
1433 ac_abs_top_srcdir=$ac_pwd ;;
1434 [\\/]* | ?:[\\/]* ) # Absolute name.
1435 ac_srcdir=$srcdir$ac_dir_suffix;
1436 ac_top_srcdir=$srcdir
1437 ac_abs_top_srcdir=$srcdir ;;
1439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440 ac_top_srcdir=$ac_top_build_prefix$srcdir
1441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1445 cd "$ac_dir" || { ac_status=$?; continue; }
1446 # Check for guested configure.
1447 if test -f "$ac_srcdir/configure.gnu"; then
1449 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450 elif test -f "$ac_srcdir/configure"; then
1452 $SHELL "$ac_srcdir/configure" --help=recursive
1454 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456 cd "$ac_pwd" || { ac_status=$?; break; }
1460 test -n "$ac_init_help" && exit $ac_status
1461 if $ac_init_version; then
1464 generated by GNU Autoconf 2.61
1466 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1467 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1468 This configure script is free software; the Free Software Foundation
1469 gives unlimited permission to copy, distribute and modify it.
1473 cat >config.log <<_ACEOF
1474 This file contains any messages produced by compilers while
1475 running configure, to aid debugging if configure makes a mistake.
1477 It was created by $as_me, which was
1478 generated by GNU Autoconf 2.61. Invocation command line was
1490 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1491 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1492 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1493 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1494 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1496 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1497 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1499 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1500 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1501 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1502 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1503 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1504 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1505 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513 test -z "$as_dir" && as_dir=.
1514 echo "PATH: $as_dir"
1530 # Keep a trace of the command line.
1531 # Strip out --no-create and --no-recursion so they do not pile up.
1532 # Strip out --silent because we don't want to record it for future runs.
1533 # Also quote any args containing shell meta-characters.
1534 # Make two passes to allow for proper duplicate-argument suppression.
1538 ac_must_keep_next=false
1544 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1546 | -silent | --silent | --silen | --sile | --sil)
1549 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1552 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1554 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1555 if test $ac_must_keep_next = true; then
1556 ac_must_keep_next=false # Got value, back to normal.
1559 *=* | --config-cache | -C | -disable-* | --disable-* \
1560 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1561 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1562 | -with-* | --with-* | -without-* | --without-* | --x)
1563 case "$ac_configure_args0 " in
1564 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1567 -* ) ac_must_keep_next=true ;;
1570 ac_configure_args="$ac_configure_args '$ac_arg'"
1575 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1576 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1578 # When interrupted or exit'd, cleanup temporary files, and complete
1579 # config.log. We remove comments because anyway the quotes in there
1580 # would cause problems or look ugly.
1581 # WARNING: Use '\'' to represent an apostrophe within the trap.
1582 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1583 trap 'exit_status=$?
1584 # Save into config.log some information that might help in debugging.
1589 ## ---------------- ##
1590 ## Cache variables. ##
1591 ## ---------------- ##
1594 # The following way of writing the cache mishandles newlines in values,
1596 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1597 eval ac_val=\$$ac_var
1601 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1602 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1605 _ | IFS | as_nl) ;; #(
1606 *) $as_unset $ac_var ;;
1611 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1612 *${as_nl}ac_space=\ *)
1614 "s/'\''/'\''\\\\'\'''\''/g;
1615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1618 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1626 ## ----------------- ##
1627 ## Output variables. ##
1628 ## ----------------- ##
1631 for ac_var in $ac_subst_vars
1633 eval ac_val=\$$ac_var
1635 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1637 echo "$ac_var='\''$ac_val'\''"
1641 if test -n "$ac_subst_files"; then
1643 ## ------------------- ##
1644 ## File substitutions. ##
1645 ## ------------------- ##
1648 for ac_var in $ac_subst_files
1650 eval ac_val=\$$ac_var
1652 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1654 echo "$ac_var='\''$ac_val'\''"
1659 if test -s confdefs.h; then
1669 test "$ac_signal" != 0 &&
1670 echo "$as_me: caught signal $ac_signal"
1671 echo "$as_me: exit $exit_status"
1673 rm -f core *.core core.conftest.* &&
1674 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1677 for ac_signal in 1 2 13 15; do
1678 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1682 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1683 rm -f -r conftest* confdefs.h
1685 # Predefined preprocessor variables.
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_NAME "$PACKAGE_NAME"
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_STRING "$PACKAGE_STRING"
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1712 # Let the site file select an alternate cache file if it wants to.
1713 # Prefer explicitly selected file to automatically selected ones.
1714 if test -n "$CONFIG_SITE"; then
1715 set x "$CONFIG_SITE"
1716 elif test "x$prefix" != xNONE; then
1717 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1719 set x "$ac_default_prefix/share/config.site" \
1720 "$ac_default_prefix/etc/config.site"
1725 if test -r "$ac_site_file"; then
1726 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1727 echo "$as_me: loading site script $ac_site_file" >&6;}
1728 sed 's/^/| /' "$ac_site_file" >&5
1733 if test -r "$cache_file"; then
1734 # Some versions of bash will fail to source /dev/null (special
1735 # files actually), so we avoid doing that.
1736 if test -f "$cache_file"; then
1737 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1738 echo "$as_me: loading cache $cache_file" >&6;}
1740 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1741 *) . "./$cache_file";;
1745 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1746 echo "$as_me: creating cache $cache_file" >&6;}
1750 # Check that the precious variables saved in the cache have kept the same
1752 ac_cache_corrupted=false
1753 for ac_var in $ac_precious_vars; do
1754 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1755 eval ac_new_set=\$ac_env_${ac_var}_set
1756 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1757 eval ac_new_val=\$ac_env_${ac_var}_value
1758 case $ac_old_set,$ac_new_set in
1760 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1761 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1762 ac_cache_corrupted=: ;;
1764 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1765 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1766 ac_cache_corrupted=: ;;
1769 if test "x$ac_old_val" != "x$ac_new_val"; then
1770 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1771 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1772 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1773 echo "$as_me: former value: $ac_old_val" >&2;}
1774 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1775 echo "$as_me: current value: $ac_new_val" >&2;}
1776 ac_cache_corrupted=:
1779 # Pass precious variables to config.status.
1780 if test "$ac_new_set" = set; then
1782 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1783 *) ac_arg=$ac_var=$ac_new_val ;;
1785 case " $ac_configure_args " in
1786 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1787 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1791 if $ac_cache_corrupted; then
1792 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1793 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1794 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1795 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1796 { (exit 1); exit 1; }; }
1816 ac_cpp='$CPP $CPPFLAGS'
1817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822 am__api_version="1.7"
1824 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1825 if test -f "$ac_dir/install-sh"; then
1827 ac_install_sh="$ac_aux_dir/install-sh -c"
1829 elif test -f "$ac_dir/install.sh"; then
1831 ac_install_sh="$ac_aux_dir/install.sh -c"
1833 elif test -f "$ac_dir/shtool"; then
1835 ac_install_sh="$ac_aux_dir/shtool install -c"
1839 if test -z "$ac_aux_dir"; then
1840 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1841 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1842 { (exit 1); exit 1; }; }
1845 # These three variables are undocumented and unsupported,
1846 # and are intended to be withdrawn in a future Autoconf release.
1847 # They can cause serious problems if a builder's source tree is in a directory
1848 # whose full name contains unusual characters.
1849 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1850 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1851 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1854 # Find a good install program. We prefer a C program (faster),
1855 # so one script is as good as another. But avoid the broken or
1856 # incompatible versions:
1857 # SysV /etc/install, /usr/sbin/install
1858 # SunOS /usr/etc/install
1859 # IRIX /sbin/install
1861 # AmigaOS /C/install, which installs bootblocks on floppy discs
1862 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1863 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1864 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1865 # OS/2's system install, which has a completely different semantic
1866 # ./install, which can be erroneously created by make from ./install.sh.
1867 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1868 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1869 if test -z "$INSTALL"; then
1870 if test "${ac_cv_path_install+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 test -z "$as_dir" && as_dir=.
1878 # Account for people who put trailing slashes in PATH elements.
1880 ./ | .// | /cC/* | \
1881 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1882 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1885 # OSF1 and SCO ODT 3.0 have their own names for install.
1886 # Don't use installbsd from OSF since it installs stuff as root
1888 for ac_prog in ginstall scoinst install; do
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1891 if test $ac_prog = install &&
1892 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1893 # AIX install. It has an incompatible calling convention.
1895 elif test $ac_prog = install &&
1896 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1897 # program-specific install script used by HP pwplus--don't use.
1900 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1913 if test "${ac_cv_path_install+set}" = set; then
1914 INSTALL=$ac_cv_path_install
1916 # As a last resort, use the slow shell script. Don't cache a
1917 # value for INSTALL within a source directory, because that will
1918 # break other packages using the cache if that directory is
1919 # removed, or if the value is a relative name.
1920 INSTALL=$ac_install_sh
1923 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1924 echo "${ECHO_T}$INSTALL" >&6; }
1926 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1927 # It thinks the first close brace ends the variable substitution.
1928 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1930 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1932 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1934 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1935 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1938 echo timestamp > conftest.file
1939 # Do `set' in a subshell so we don't clobber the current shell's
1940 # arguments. Must try -L first in case configure is actually a
1941 # symlink; some systems play weird games with the mod time of symlinks
1942 # (eg FreeBSD returns the mod time of the symlink's containing
1945 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1946 if test "$*" = "X"; then
1948 set X `ls -t $srcdir/configure conftest.file`
1951 if test "$*" != "X $srcdir/configure conftest.file" \
1952 && test "$*" != "X conftest.file $srcdir/configure"; then
1954 # If neither matched, then we have a broken ls. This can happen
1955 # if, for instance, CONFIG_SHELL is bash and it inherits a
1956 # broken ls alias from the environment. This has actually
1957 # happened. Such a system could not be considered "sane".
1958 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1959 alias in your environment" >&5
1960 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1961 alias in your environment" >&2;}
1962 { (exit 1); exit 1; }; }
1965 test "$2" = conftest.file
1971 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1972 Check your system clock" >&5
1973 echo "$as_me: error: newly created file is older than distributed files!
1974 Check your system clock" >&2;}
1975 { (exit 1); exit 1; }; }
1977 { echo "$as_me:$LINENO: result: yes" >&5
1978 echo "${ECHO_T}yes" >&6; }
1979 test "$program_prefix" != NONE &&
1980 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1981 # Use a double $ so make ignores it.
1982 test "$program_suffix" != NONE &&
1983 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1984 # Double any \ or $. echo might interpret backslashes.
1985 # By default was `s,x,x', remove it if useless.
1986 cat <<\_ACEOF >conftest.sed
1987 s/[\\$]/&&/g;s/;s,x,x,$//
1989 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1993 # expand $ac_aux_dir to an absolute path
1994 am_aux_dir=`cd $ac_aux_dir && pwd`
1996 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1997 # Use eval to expand $SHELL
1998 if eval "$MISSING --run true"; then
1999 am_missing_run="$MISSING --run "
2002 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2003 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2006 for ac_prog in gawk mawk nawk awk
2008 # Extract the first word of "$ac_prog", so it can be a program name with args.
2009 set dummy $ac_prog; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_AWK+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$AWK"; then
2016 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2025 ac_cv_prog_AWK="$ac_prog"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 if test -n "$AWK"; then
2037 { echo "$as_me:$LINENO: result: $AWK" >&5
2038 echo "${ECHO_T}$AWK" >&6; }
2040 { echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6; }
2045 test -n "$AWK" && break
2048 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2049 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2050 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2051 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 cat >conftest.make <<\_ACEOF
2057 @echo '@@@%%%=$(MAKE)=@@@%%%'
2059 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2060 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2062 eval ac_cv_prog_make_${ac_make}_set=yes;;
2064 eval ac_cv_prog_make_${ac_make}_set=no;;
2068 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2069 { echo "$as_me:$LINENO: result: yes" >&5
2070 echo "${ECHO_T}yes" >&6; }
2073 { echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6; }
2075 SET_MAKE="MAKE=${MAKE-make}"
2078 rm -rf .tst 2>/dev/null
2079 mkdir .tst 2>/dev/null
2080 if test -d .tst; then
2085 rmdir .tst 2>/dev/null
2087 # test to see if srcdir already configured
2088 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2089 test -f $srcdir/config.status; then
2090 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2091 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2092 { (exit 1); exit 1; }; }
2095 # test whether we have cygpath
2096 if test -z "$CYGPATH_W"; then
2097 if (cygpath --version) >/dev/null 2>/dev/null; then
2098 CYGPATH_W='cygpath -w'
2105 # Define the identity of the package.
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE "$PACKAGE"
2115 cat >>confdefs.h <<_ACEOF
2116 #define VERSION "$VERSION"
2119 # Some tools Automake needs.
2121 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2124 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2127 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2130 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2133 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2136 AMTAR=${AMTAR-"${am_missing_run}tar"}
2138 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2140 # Installed binaries are usually stripped using `strip' when the user
2141 # run `make install-strip'. However `strip' might not be the right
2142 # tool to use in cross-compilation environments, therefore Automake
2143 # will honor the `STRIP' environment variable to overrule this program.
2144 if test "$cross_compiling" != no; then
2145 if test -n "$ac_tool_prefix"; then
2146 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}strip; ac_word=$2
2148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2150 if test "${ac_cv_prog_STRIP+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 if test -n "$STRIP"; then
2154 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 STRIP=$ac_cv_prog_STRIP
2174 if test -n "$STRIP"; then
2175 { echo "$as_me:$LINENO: result: $STRIP" >&5
2176 echo "${ECHO_T}$STRIP" >&6; }
2178 { echo "$as_me:$LINENO: result: no" >&5
2179 echo "${ECHO_T}no" >&6; }
2184 if test -z "$ac_cv_prog_STRIP"; then
2186 # Extract the first word of "strip", so it can be a program name with args.
2187 set dummy strip; ac_word=$2
2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test -n "$ac_ct_STRIP"; then
2194 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_ac_ct_STRIP="strip"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2214 if test -n "$ac_ct_STRIP"; then
2215 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2216 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2222 if test "x$ac_ct_STRIP" = x; then
2225 case $cross_compiling:$ac_tool_warned in
2227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2228 whose name does not start with the host triplet. If you think this
2229 configuration is useful to you, please write to autoconf@gnu.org." >&5
2230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2231 whose name does not start with the host triplet. If you think this
2232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2233 ac_tool_warned=yes ;;
2238 STRIP="$ac_cv_prog_STRIP"
2242 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2244 # We need awk for the "check" target. The system "awk" is bad on
2249 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2250 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2251 # Check whether --enable-maintainer-mode was given.
2252 if test "${enable_maintainer_mode+set}" = set; then
2253 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2255 USE_MAINTAINER_MODE=no
2258 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2259 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2262 if test $USE_MAINTAINER_MODE = yes; then
2263 MAINTAINER_MODE_TRUE=
2264 MAINTAINER_MODE_FALSE='#'
2266 MAINTAINER_MODE_TRUE='#'
2267 MAINTAINER_MODE_FALSE=
2270 MAINT=$MAINTAINER_MODE_TRUE
2273 ac_config_headers="$ac_config_headers config.h"
2276 DEPDIR="${am__leading_dot}deps"
2278 ac_config_commands="$ac_config_commands depfiles"
2281 am_make=${MAKE-make}
2282 cat > confinc << 'END'
2287 # If we don't find an include directive, just comment out the code.
2288 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2289 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2293 # First try GNU make style include.
2294 echo "include confinc" > confmf
2295 # We grep out `Entering directory' and `Leaving directory'
2296 # messages which can occur if `w' ends up in MAKEFLAGS.
2297 # In particular we don't look at `^make:' because GNU make might
2298 # be invoked under some other name (usually "gmake"), in which
2299 # case it prints its new name instead of `make'.
2300 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2305 # Now try BSD make style include.
2306 if test "$am__include" = "#"; then
2307 echo '.include "confinc"' > confmf
2308 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2309 am__include=.include
2316 { echo "$as_me:$LINENO: result: $_am_result" >&5
2317 echo "${ECHO_T}$_am_result" >&6; }
2318 rm -f confinc confmf
2320 # Check whether --enable-dependency-tracking was given.
2321 if test "${enable_dependency_tracking+set}" = set; then
2322 enableval=$enable_dependency_tracking;
2325 if test "x$enable_dependency_tracking" != xno; then
2326 am_depcomp="$ac_aux_dir/depcomp"
2331 if test "x$enable_dependency_tracking" != xno; then
2342 ac_cpp='$CPP $CPPFLAGS'
2343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346 if test -n "$ac_tool_prefix"; then
2347 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_CC+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test -n "$CC"; then
2355 ac_cv_prog_CC="$CC" # Let the user override the test.
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 if test -n "$CC"; then
2376 { echo "$as_me:$LINENO: result: $CC" >&5
2377 echo "${ECHO_T}$CC" >&6; }
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2385 if test -z "$ac_cv_prog_CC"; then
2387 # Extract the first word of "gcc", so it can be a program name with args.
2388 set dummy gcc; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$ac_ct_CC"; then
2395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_ac_ct_CC="gcc"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2415 if test -n "$ac_ct_CC"; then
2416 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2417 echo "${ECHO_T}$ac_ct_CC" >&6; }
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2423 if test "x$ac_ct_CC" = x; then
2426 case $cross_compiling:$ac_tool_warned in
2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&5
2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434 ac_tool_warned=yes ;;
2442 if test -z "$CC"; then
2443 if test -n "$ac_tool_prefix"; then
2444 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2445 set dummy ${ac_tool_prefix}cc; ac_word=$2
2446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC="$CC" # Let the user override the test.
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2461 ac_cv_prog_CC="${ac_tool_prefix}cc"
2462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 if test -n "$CC"; then
2473 { echo "$as_me:$LINENO: result: $CC" >&5
2474 echo "${ECHO_T}$CC" >&6; }
2476 { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2483 if test -z "$CC"; then
2484 # Extract the first word of "cc", so it can be a program name with args.
2485 set dummy cc; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2503 ac_prog_rejected=yes
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 if test $ac_prog_rejected = yes; then
2515 # We found a bogon in the path, so make sure we never use it.
2516 set dummy $ac_cv_prog_CC
2518 if test $# != 0; then
2519 # We chose a different compiler from the bogus one.
2520 # However, it has the same basename, so the bogon will be chosen
2521 # first if we set CC to just the basename; use the full file name.
2523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2529 if test -n "$CC"; then
2530 { echo "$as_me:$LINENO: result: $CC" >&5
2531 echo "${ECHO_T}$CC" >&6; }
2533 { echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6; }
2539 if test -z "$CC"; then
2540 if test -n "$ac_tool_prefix"; then
2541 for ac_prog in cl.exe
2543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2547 if test "${ac_cv_prog_CC+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 if test -n "$CC"; then
2551 ac_cv_prog_CC="$CC" # Let the user override the test.
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2560 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 if test -n "$CC"; then
2572 { echo "$as_me:$LINENO: result: $CC" >&5
2573 echo "${ECHO_T}$CC" >&6; }
2575 { echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6; }
2580 test -n "$CC" && break
2583 if test -z "$CC"; then
2585 for ac_prog in cl.exe
2587 # Extract the first word of "$ac_prog", so it can be a program name with args.
2588 set dummy $ac_prog; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 if test -n "$ac_ct_CC"; then
2595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_ac_ct_CC="$ac_prog"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2615 if test -n "$ac_ct_CC"; then
2616 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2617 echo "${ECHO_T}$ac_ct_CC" >&6; }
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2624 test -n "$ac_ct_CC" && break
2627 if test "x$ac_ct_CC" = x; then
2630 case $cross_compiling:$ac_tool_warned in
2632 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2633 whose name does not start with the host triplet. If you think this
2634 configuration is useful to you, please write to autoconf@gnu.org." >&5
2635 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2636 whose name does not start with the host triplet. If you think this
2637 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2638 ac_tool_warned=yes ;;
2647 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2648 See \`config.log' for more details." >&5
2649 echo "$as_me: error: no acceptable C compiler found in \$PATH
2650 See \`config.log' for more details." >&2;}
2651 { (exit 1); exit 1; }; }
2653 # Provide some information about the compiler.
2654 echo "$as_me:$LINENO: checking for C compiler version" >&5
2655 ac_compiler=`set X $ac_compile; echo $2`
2656 { (ac_try="$ac_compiler --version >&5"
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compiler --version >&5") 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }
2666 { (ac_try="$ac_compiler -v >&5"
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compiler -v >&5") 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676 { (ac_try="$ac_compiler -V >&5"
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682 (eval "$ac_compiler -V >&5") 2>&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
2687 cat >conftest.$ac_ext <<_ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2702 ac_clean_files_save=$ac_clean_files
2703 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2704 # Try to create an executable without -o first, disregard a.out.
2705 # It will help us diagnose broken compilers, and finding out an intuition
2707 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2708 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2709 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2711 # List of possible output files, starting from the most likely.
2712 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2713 # only as a last resort. b.out is created by i960 compilers.
2714 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2716 # The IRIX 6 linker writes into existing files which may not be
2717 # executable, retaining their permissions. Remove them first so a
2718 # subsequent execution test works.
2720 for ac_file in $ac_files
2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2724 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2729 if { (ac_try="$ac_link_default"
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_link_default") 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; then
2739 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2740 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2741 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2742 # so that the user can short-circuit this test for compilers unknown to
2744 for ac_file in $ac_files ''
2746 test -f "$ac_file" || continue
2748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2751 # We found the default executable, but exeext='' is most
2755 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2757 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2759 # We set ac_cv_exeext here because the later test for it is not
2760 # safe: cross compilers may not add the suffix if given an `-o'
2761 # argument, so we may need to know it at that point already.
2762 # Even if this section looks crufty: it has the advantage of
2769 test "$ac_cv_exeext" = no && ac_cv_exeext=
2775 { echo "$as_me:$LINENO: result: $ac_file" >&5
2776 echo "${ECHO_T}$ac_file" >&6; }
2777 if test -z "$ac_file"; then
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2781 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2782 See \`config.log' for more details." >&5
2783 echo "$as_me: error: C compiler cannot create executables
2784 See \`config.log' for more details." >&2;}
2785 { (exit 77); exit 77; }; }
2788 ac_exeext=$ac_cv_exeext
2790 # Check that the compiler produces executables we can run. If not, either
2791 # the compiler is broken, or we cross compile.
2792 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2793 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2794 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2795 # If not cross compiling, check that we can run a simple program.
2796 if test "$cross_compiling" != yes; then
2797 if { ac_try='./$ac_file'
2798 { (case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_try") 2>&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2809 if test "$cross_compiling" = maybe; then
2812 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2813 If you meant to cross compile, use \`--host'.
2814 See \`config.log' for more details." >&5
2815 echo "$as_me: error: cannot run C compiled programs.
2816 If you meant to cross compile, use \`--host'.
2817 See \`config.log' for more details." >&2;}
2818 { (exit 1); exit 1; }; }
2822 { echo "$as_me:$LINENO: result: yes" >&5
2823 echo "${ECHO_T}yes" >&6; }
2825 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2826 ac_clean_files=$ac_clean_files_save
2827 # Check that the compiler produces executables we can run. If not, either
2828 # the compiler is broken, or we cross compile.
2829 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2830 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2831 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2832 echo "${ECHO_T}$cross_compiling" >&6; }
2834 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2835 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2836 if { (ac_try="$ac_link"
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_link") 2>&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; then
2846 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2847 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2848 # work properly (i.e., refer to `conftest.exe'), while it won't with
2850 for ac_file in conftest.exe conftest conftest.*; do
2851 test -f "$ac_file" || continue
2853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2854 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2860 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2863 See \`config.log' for more details." >&2;}
2864 { (exit 1); exit 1; }; }
2867 rm -f conftest$ac_cv_exeext
2868 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2869 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2871 rm -f conftest.$ac_ext
2872 EXEEXT=$ac_cv_exeext
2874 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2875 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2876 if test "${ac_cv_objext+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 cat >conftest.$ac_ext <<_ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2894 rm -f conftest.o conftest.obj
2895 if { (ac_try="$ac_compile"
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compile") 2>&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; then
2905 for ac_file in conftest.o conftest.obj conftest.*; do
2906 test -f "$ac_file" || continue;
2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2909 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2918 See \`config.log' for more details." >&5
2919 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2920 See \`config.log' for more details." >&2;}
2921 { (exit 1); exit 1; }; }
2924 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2926 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2927 echo "${ECHO_T}$ac_cv_objext" >&6; }
2928 OBJEXT=$ac_cv_objext
2930 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2931 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2932 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 cat >conftest.$ac_ext <<_ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2953 rm -f conftest.$ac_objext
2954 if { (ac_try="$ac_compile"
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_compile") 2>conftest.er1
2962 grep -v '^ *+' conftest.er1 >conftest.err
2964 cat conftest.err >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } && {
2967 test -z "$ac_c_werror_flag" ||
2968 test ! -s conftest.err
2969 } && test -s conftest.$ac_objext; then
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2982 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2983 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2984 GCC=`test $ac_compiler_gnu = yes && echo yes`
2985 ac_test_CFLAGS=${CFLAGS+set}
2986 ac_save_CFLAGS=$CFLAGS
2987 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2988 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2989 if test "${ac_cv_prog_cc_g+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 ac_save_c_werror_flag=$ac_c_werror_flag
2993 ac_c_werror_flag=yes
2996 cat >conftest.$ac_ext <<_ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3020 grep -v '^ *+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } && {
3025 test -z "$ac_c_werror_flag" ||
3026 test ! -s conftest.err
3027 } && test -s conftest.$ac_objext; then
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3034 cat >conftest.$ac_ext <<_ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3049 rm -f conftest.$ac_objext
3050 if { (ac_try="$ac_compile"
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_compile") 2>conftest.er1
3058 grep -v '^ *+' conftest.er1 >conftest.err
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } && {
3063 test -z "$ac_c_werror_flag" ||
3064 test ! -s conftest.err
3065 } && test -s conftest.$ac_objext; then
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3071 ac_c_werror_flag=$ac_save_c_werror_flag
3073 cat >conftest.$ac_ext <<_ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3088 rm -f conftest.$ac_objext
3089 if { (ac_try="$ac_compile"
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_compile") 2>conftest.er1
3097 grep -v '^ *+' conftest.er1 >conftest.err
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } && {
3102 test -z "$ac_c_werror_flag" ||
3103 test ! -s conftest.err
3104 } && test -s conftest.$ac_objext; then
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 ac_c_werror_flag=$ac_save_c_werror_flag
3122 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3123 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3124 if test "$ac_test_CFLAGS" = set; then
3125 CFLAGS=$ac_save_CFLAGS
3126 elif test $ac_cv_prog_cc_g = yes; then
3127 if test "$GCC" = yes; then
3133 if test "$GCC" = yes; then
3139 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3140 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3141 if test "${ac_cv_prog_cc_c89+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 ac_cv_prog_cc_c89=no
3146 cat >conftest.$ac_ext <<_ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3154 #include <sys/types.h>
3155 #include <sys/stat.h>
3156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3157 struct buf { int x; };
3158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3159 static char *e (p, i)
3165 static char *f (char * (*g) (char **, int), char **p, ...)
3170 s = g (p, va_arg (v,int));
3175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3176 function prototypes and stuff, but not '\xHH' hex character constants.
3177 These don't provoke an error unfortunately, instead are silently treated
3178 as 'x'. The following induces an error, until -std is added to get
3179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3180 array size at least. It's necessary to write '\x00'==0 to get something
3181 that's true only with -std. */
3182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3185 inside strings and character constants. */
3187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3189 int test (int i, double x);
3190 struct s1 {int (*f) (int a);};
3191 struct s2 {int (*f) (double a);};
3192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3198 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3206 CC="$ac_save_CC $ac_arg"
3207 rm -f conftest.$ac_objext
3208 if { (ac_try="$ac_compile"
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_compile") 2>conftest.er1
3216 grep -v '^ *+' conftest.er1 >conftest.err
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } && {
3221 test -z "$ac_c_werror_flag" ||
3222 test ! -s conftest.err
3223 } && test -s conftest.$ac_objext; then
3224 ac_cv_prog_cc_c89=$ac_arg
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3232 rm -f core conftest.err conftest.$ac_objext
3233 test "x$ac_cv_prog_cc_c89" != "xno" && break
3235 rm -f conftest.$ac_ext
3240 case "x$ac_cv_prog_cc_c89" in
3242 { echo "$as_me:$LINENO: result: none needed" >&5
3243 echo "${ECHO_T}none needed" >&6; } ;;
3245 { echo "$as_me:$LINENO: result: unsupported" >&5
3246 echo "${ECHO_T}unsupported" >&6; } ;;
3248 CC="$CC $ac_cv_prog_cc_c89"
3249 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3250 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3255 ac_cpp='$CPP $CPPFLAGS'
3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260 depcc="$CC" am_compiler_list=
3262 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3263 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3264 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3268 # We make a subdir and do the tests there. Otherwise we can end up
3269 # making bogus files that we don't know about and never remove. For
3270 # instance it was reported that on HP-UX the gcc test will end up
3271 # making a dummy file named `D' -- because `-MD' means `put the output
3274 # Copy depcomp to subdir because otherwise we won't find it if we're
3275 # using a relative directory.
3276 cp "$am_depcomp" conftest.dir
3278 # We will build objects and dependencies in a subdirectory because
3279 # it helps to detect inapplicable dependency modes. For instance
3280 # both Tru64's cc and ICC support -MD to output dependencies as a
3281 # side effect of compilation, but ICC will put the dependencies in
3282 # the current directory while Tru64 will put them in the object
3286 am_cv_CC_dependencies_compiler_type=none
3287 if test "$am_compiler_list" = ""; then
3288 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3290 for depmode in $am_compiler_list; do
3291 # Setup a source with many dependencies, because some compilers
3292 # like to wrap large dependency lists on column 80 (with \), and
3293 # we should not choose a depcomp mode which is confused by this.
3295 # We need to recreate these files for each test, as the compiler may
3296 # overwrite some of them when testing with obscure command lines.
3297 # This happens at least with the AIX C compiler.
3299 for i in 1 2 3 4 5 6; do
3300 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3303 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3307 # after this tag, mechanisms are not by side-effect, so they'll
3308 # only be used when explicitly requested
3309 if test "x$enable_dependency_tracking" = xyes; then
3317 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3318 # mode. It turns out that the SunPro C++ compiler does not properly
3319 # handle `-M -o', and we need to detect this.
3320 if depmode=$depmode \
3321 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3322 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3323 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3324 >/dev/null 2>conftest.err &&
3325 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3326 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3327 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3328 # icc doesn't choke on unknown options, it will just issue warnings
3329 # (even with -Werror). So we grep stderr for any message
3330 # that says an option was ignored.
3331 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3332 am_cv_CC_dependencies_compiler_type=$depmode
3341 am_cv_CC_dependencies_compiler_type=none
3345 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3346 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3347 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3352 test "x$enable_dependency_tracking" != xno \
3353 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3355 am__fastdepCC_FALSE='#'
3357 am__fastdepCC_TRUE='#'
3358 am__fastdepCC_FALSE=
3363 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3364 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3365 if test "${ac_cv_search_strerror+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 ac_func_search_save_LIBS=$LIBS
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3376 /* Override any GCC internal prototype to avoid an error.
3377 Use char because int might match the return type of a GCC
3378 builtin and then its argument prototype would still apply. */
3391 for ac_lib in '' cposix; do
3392 if test -z "$ac_lib"; then
3393 ac_res="none required"
3396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3398 rm -f conftest.$ac_objext conftest$ac_exeext
3399 if { (ac_try="$ac_link"
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_link") 2>conftest.er1
3407 grep -v '^ *+' conftest.er1 >conftest.err
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } && {
3412 test -z "$ac_c_werror_flag" ||
3413 test ! -s conftest.err
3414 } && test -s conftest$ac_exeext &&
3415 $as_test_x conftest$ac_exeext; then
3416 ac_cv_search_strerror=$ac_res
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3426 if test "${ac_cv_search_strerror+set}" = set; then
3430 if test "${ac_cv_search_strerror+set}" = set; then
3433 ac_cv_search_strerror=no
3436 LIBS=$ac_func_search_save_LIBS
3438 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3439 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3440 ac_res=$ac_cv_search_strerror
3441 if test "$ac_res" != no; then
3442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3447 ac_cpp='$CPP $CPPFLAGS'
3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 if test -n "$ac_tool_prefix"; then
3452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_CC+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 if test -n "$CC"; then
3481 { echo "$as_me:$LINENO: result: $CC" >&5
3482 echo "${ECHO_T}$CC" >&6; }
3484 { echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6; }
3490 if test -z "$ac_cv_prog_CC"; then
3492 # Extract the first word of "gcc", so it can be a program name with args.
3493 set dummy gcc; ac_word=$2
3494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 if test -n "$ac_ct_CC"; then
3500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_ac_ct_CC="gcc"
3510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520 if test -n "$ac_ct_CC"; then
3521 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3522 echo "${ECHO_T}$ac_ct_CC" >&6; }
3524 { echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6; }
3528 if test "x$ac_ct_CC" = x; then
3531 case $cross_compiling:$ac_tool_warned in
3533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3534 whose name does not start with the host triplet. If you think this
3535 configuration is useful to you, please write to autoconf@gnu.org." >&5
3536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3537 whose name does not start with the host triplet. If you think this
3538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3539 ac_tool_warned=yes ;;
3547 if test -z "$CC"; then
3548 if test -n "$ac_tool_prefix"; then
3549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3550 set dummy ${ac_tool_prefix}cc; ac_word=$2
3551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3553 if test "${ac_cv_prog_CC+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 if test -n "$CC"; then
3557 ac_cv_prog_CC="$CC" # Let the user override the test.
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 ac_cv_prog_CC="${ac_tool_prefix}cc"
3567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 if test -n "$CC"; then
3578 { echo "$as_me:$LINENO: result: $CC" >&5
3579 echo "${ECHO_T}$CC" >&6; }
3581 { echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6; }
3588 if test -z "$CC"; then
3589 # Extract the first word of "cc", so it can be a program name with args.
3590 set dummy cc; ac_word=$2
3591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3593 if test "${ac_cv_prog_CC+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 if test -n "$CC"; then
3597 ac_cv_prog_CC="$CC" # Let the user override the test.
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3608 ac_prog_rejected=yes
3612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 if test $ac_prog_rejected = yes; then
3620 # We found a bogon in the path, so make sure we never use it.
3621 set dummy $ac_cv_prog_CC
3623 if test $# != 0; then
3624 # We chose a different compiler from the bogus one.
3625 # However, it has the same basename, so the bogon will be chosen
3626 # first if we set CC to just the basename; use the full file name.
3628 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3634 if test -n "$CC"; then
3635 { echo "$as_me:$LINENO: result: $CC" >&5
3636 echo "${ECHO_T}$CC" >&6; }
3638 { echo "$as_me:$LINENO: result: no" >&5
3639 echo "${ECHO_T}no" >&6; }
3644 if test -z "$CC"; then
3645 if test -n "$ac_tool_prefix"; then
3646 for ac_prog in cl.exe
3648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3652 if test "${ac_cv_prog_CC+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC="$CC" # Let the user override the test.
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 if test -n "$CC"; then
3677 { echo "$as_me:$LINENO: result: $CC" >&5
3678 echo "${ECHO_T}$CC" >&6; }
3680 { echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6; }
3685 test -n "$CC" && break
3688 if test -z "$CC"; then
3690 for ac_prog in cl.exe
3692 # Extract the first word of "$ac_prog", so it can be a program name with args.
3693 set dummy $ac_prog; ac_word=$2
3694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3696 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 if test -n "$ac_ct_CC"; then
3700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3709 ac_cv_prog_ac_ct_CC="$ac_prog"
3710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3720 if test -n "$ac_ct_CC"; then
3721 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3722 echo "${ECHO_T}$ac_ct_CC" >&6; }
3724 { echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6; }
3729 test -n "$ac_ct_CC" && break
3732 if test "x$ac_ct_CC" = x; then
3735 case $cross_compiling:$ac_tool_warned in
3737 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3738 whose name does not start with the host triplet. If you think this
3739 configuration is useful to you, please write to autoconf@gnu.org." >&5
3740 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3741 whose name does not start with the host triplet. If you think this
3742 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3743 ac_tool_warned=yes ;;
3752 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3753 See \`config.log' for more details." >&5
3754 echo "$as_me: error: no acceptable C compiler found in \$PATH
3755 See \`config.log' for more details." >&2;}
3756 { (exit 1); exit 1; }; }
3758 # Provide some information about the compiler.
3759 echo "$as_me:$LINENO: checking for C compiler version" >&5
3760 ac_compiler=`set X $ac_compile; echo $2`
3761 { (ac_try="$ac_compiler --version >&5"
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767 (eval "$ac_compiler --version >&5") 2>&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }
3771 { (ac_try="$ac_compiler -v >&5"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_compiler -v >&5") 2>&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }
3781 { (ac_try="$ac_compiler -V >&5"
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_compiler -V >&5") 2>&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }
3792 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3793 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3794 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3815 rm -f conftest.$ac_objext
3816 if { (ac_try="$ac_compile"
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_compile") 2>conftest.er1
3824 grep -v '^ *+' conftest.er1 >conftest.err
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } && {
3829 test -z "$ac_c_werror_flag" ||
3830 test ! -s conftest.err
3831 } && test -s conftest.$ac_objext; then
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3844 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3845 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3846 GCC=`test $ac_compiler_gnu = yes && echo yes`
3847 ac_test_CFLAGS=${CFLAGS+set}
3848 ac_save_CFLAGS=$CFLAGS
3849 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3850 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3851 if test "${ac_cv_prog_cc_g+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 ac_save_c_werror_flag=$ac_c_werror_flag
3855 ac_c_werror_flag=yes
3858 cat >conftest.$ac_ext <<_ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3873 rm -f conftest.$ac_objext
3874 if { (ac_try="$ac_compile"
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_compile") 2>conftest.er1
3882 grep -v '^ *+' conftest.er1 >conftest.err
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } && {
3887 test -z "$ac_c_werror_flag" ||
3888 test ! -s conftest.err
3889 } && test -s conftest.$ac_objext; then
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3896 cat >conftest.$ac_ext <<_ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3911 rm -f conftest.$ac_objext
3912 if { (ac_try="$ac_compile"
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918 (eval "$ac_compile") 2>conftest.er1
3920 grep -v '^ *+' conftest.er1 >conftest.err
3922 cat conftest.err >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } && {
3925 test -z "$ac_c_werror_flag" ||
3926 test ! -s conftest.err
3927 } && test -s conftest.$ac_objext; then
3930 echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3933 ac_c_werror_flag=$ac_save_c_werror_flag
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3950 rm -f conftest.$ac_objext
3951 if { (ac_try="$ac_compile"
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_compile") 2>conftest.er1
3959 grep -v '^ *+' conftest.er1 >conftest.err
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && {
3964 test -z "$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 } && test -s conftest.$ac_objext; then
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 ac_c_werror_flag=$ac_save_c_werror_flag
3984 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3985 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3986 if test "$ac_test_CFLAGS" = set; then
3987 CFLAGS=$ac_save_CFLAGS
3988 elif test $ac_cv_prog_cc_g = yes; then
3989 if test "$GCC" = yes; then
3995 if test "$GCC" = yes; then
4001 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4002 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4003 if test "${ac_cv_prog_cc_c89+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 ac_cv_prog_cc_c89=no
4008 cat >conftest.$ac_ext <<_ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4016 #include <sys/types.h>
4017 #include <sys/stat.h>
4018 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4019 struct buf { int x; };
4020 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4021 static char *e (p, i)
4027 static char *f (char * (*g) (char **, int), char **p, ...)
4032 s = g (p, va_arg (v,int));
4037 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4038 function prototypes and stuff, but not '\xHH' hex character constants.
4039 These don't provoke an error unfortunately, instead are silently treated
4040 as 'x'. The following induces an error, until -std is added to get
4041 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4042 array size at least. It's necessary to write '\x00'==0 to get something
4043 that's true only with -std. */
4044 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4046 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4047 inside strings and character constants. */
4049 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4051 int test (int i, double x);
4052 struct s1 {int (*f) (int a);};
4053 struct s2 {int (*f) (double a);};
4054 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4060 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4065 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4066 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4068 CC="$ac_save_CC $ac_arg"
4069 rm -f conftest.$ac_objext
4070 if { (ac_try="$ac_compile"
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4078 grep -v '^ *+' conftest.er1 >conftest.err
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && {
4083 test -z "$ac_c_werror_flag" ||
4084 test ! -s conftest.err
4085 } && test -s conftest.$ac_objext; then
4086 ac_cv_prog_cc_c89=$ac_arg
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4094 rm -f core conftest.err conftest.$ac_objext
4095 test "x$ac_cv_prog_cc_c89" != "xno" && break
4097 rm -f conftest.$ac_ext
4102 case "x$ac_cv_prog_cc_c89" in
4104 { echo "$as_me:$LINENO: result: none needed" >&5
4105 echo "${ECHO_T}none needed" >&6; } ;;
4107 { echo "$as_me:$LINENO: result: unsupported" >&5
4108 echo "${ECHO_T}unsupported" >&6; } ;;
4110 CC="$CC $ac_cv_prog_cc_c89"
4111 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4112 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4117 ac_cpp='$CPP $CPPFLAGS'
4118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122 depcc="$CC" am_compiler_list=
4124 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4125 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4126 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4130 # We make a subdir and do the tests there. Otherwise we can end up
4131 # making bogus files that we don't know about and never remove. For
4132 # instance it was reported that on HP-UX the gcc test will end up
4133 # making a dummy file named `D' -- because `-MD' means `put the output
4136 # Copy depcomp to subdir because otherwise we won't find it if we're
4137 # using a relative directory.
4138 cp "$am_depcomp" conftest.dir
4140 # We will build objects and dependencies in a subdirectory because
4141 # it helps to detect inapplicable dependency modes. For instance
4142 # both Tru64's cc and ICC support -MD to output dependencies as a
4143 # side effect of compilation, but ICC will put the dependencies in
4144 # the current directory while Tru64 will put them in the object
4148 am_cv_CC_dependencies_compiler_type=none
4149 if test "$am_compiler_list" = ""; then
4150 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4152 for depmode in $am_compiler_list; do
4153 # Setup a source with many dependencies, because some compilers
4154 # like to wrap large dependency lists on column 80 (with \), and
4155 # we should not choose a depcomp mode which is confused by this.
4157 # We need to recreate these files for each test, as the compiler may
4158 # overwrite some of them when testing with obscure command lines.
4159 # This happens at least with the AIX C compiler.
4161 for i in 1 2 3 4 5 6; do
4162 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4165 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4169 # after this tag, mechanisms are not by side-effect, so they'll
4170 # only be used when explicitly requested
4171 if test "x$enable_dependency_tracking" = xyes; then
4179 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4180 # mode. It turns out that the SunPro C++ compiler does not properly
4181 # handle `-M -o', and we need to detect this.
4182 if depmode=$depmode \
4183 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4184 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4185 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4186 >/dev/null 2>conftest.err &&
4187 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4188 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4189 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4190 # icc doesn't choke on unknown options, it will just issue warnings
4191 # (even with -Werror). So we grep stderr for any message
4192 # that says an option was ignored.
4193 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4194 am_cv_CC_dependencies_compiler_type=$depmode
4203 am_cv_CC_dependencies_compiler_type=none
4207 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4208 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4209 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4214 test "x$enable_dependency_tracking" != xno \
4215 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4217 am__fastdepCC_FALSE='#'
4219 am__fastdepCC_TRUE='#'
4220 am__fastdepCC_FALSE=
4227 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4228 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4229 if test "${am_cv_prog_cc_stdc+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 am_cv_prog_cc_stdc=no
4234 # Don't try gcc -ansi; that turns off useful extensions and
4235 # breaks some systems' header files.
4236 # AIX -qlanglvl=ansi
4237 # Ultrix and OSF/1 -std1
4238 # HP-UX 10.20 and later -Ae
4239 # HP-UX older versions -Aa -D_HPUX_SOURCE
4240 # SVR4 -Xc -D__EXTENSIONS__
4241 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4243 CC="$ac_save_CC $ac_arg"
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4252 #include <sys/types.h>
4253 #include <sys/stat.h>
4254 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4255 struct buf { int x; };
4256 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4257 static char *e (p, i)
4263 static char *f (char * (*g) (char **, int), char **p, ...)
4268 s = g (p, va_arg (v,int));
4272 int test (int i, double x);
4273 struct s1 {int (*f) (int a);};
4274 struct s2 {int (*f) (double a);};
4275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4283 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4289 rm -f conftest.$ac_objext
4290 if { (ac_try="$ac_compile"
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_compile") 2>conftest.er1
4298 grep -v '^ *+' conftest.er1 >conftest.err
4300 cat conftest.err >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } && {
4303 test -z "$ac_c_werror_flag" ||
4304 test ! -s conftest.err
4305 } && test -s conftest.$ac_objext; then
4306 am_cv_prog_cc_stdc="$ac_arg"; break
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 if test -z "$am_cv_prog_cc_stdc"; then
4321 { echo "$as_me:$LINENO: result: none needed" >&5
4322 echo "${ECHO_T}none needed" >&6; }
4324 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4325 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
4327 case "x$am_cv_prog_cc_stdc" in
4329 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4332 # By default we simply use the C compiler to build assembly code.
4335 # Set ASFLAGS if not already set.
4336 : ${CCASFLAGS='$(CFLAGS)'}
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4345 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4346 # On Suns, sometimes $CPP names a directory.
4347 if test -n "$CPP" && test -d "$CPP"; then
4350 if test -z "$CPP"; then
4351 if test "${ac_cv_prog_CPP+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 # Double quotes because CPP needs to be expanded
4355 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4358 for ac_c_preproc_warn_flag in '' yes
4360 # Use a header file that comes with gcc, so configuring glibc
4361 # with a fresh cross-compiler works.
4362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363 # <limits.h> exists even on freestanding compilers.
4364 # On the NeXT, cc -E runs the code through the compiler's parser,
4365 # not just through cpp. "Syntax error" is here to catch this case.
4366 cat >conftest.$ac_ext <<_ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4373 # include <limits.h>
4375 # include <assert.h>
4379 if { (ac_try="$ac_cpp conftest.$ac_ext"
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4387 grep -v '^ *+' conftest.er1 >conftest.err
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } >/dev/null && {
4392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4393 test ! -s conftest.err
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 # Broken: fails on valid input.
4404 rm -f conftest.err conftest.$ac_ext
4406 # OK, works on sane cases. Now check whether nonexistent headers
4407 # can be detected and how.
4408 cat >conftest.$ac_ext <<_ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 #include <ac_nonexistent.h>
4416 if { (ac_try="$ac_cpp conftest.$ac_ext"
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4424 grep -v '^ *+' conftest.er1 >conftest.err
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } >/dev/null && {
4429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4430 test ! -s conftest.err
4432 # Broken: success on invalid input.
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 # Passes both tests.
4443 rm -f conftest.err conftest.$ac_ext
4446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4447 rm -f conftest.err conftest.$ac_ext
4448 if $ac_preproc_ok; then
4460 { echo "$as_me:$LINENO: result: $CPP" >&5
4461 echo "${ECHO_T}$CPP" >&6; }
4463 for ac_c_preproc_warn_flag in '' yes
4465 # Use a header file that comes with gcc, so configuring glibc
4466 # with a fresh cross-compiler works.
4467 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4468 # <limits.h> exists even on freestanding compilers.
4469 # On the NeXT, cc -E runs the code through the compiler's parser,
4470 # not just through cpp. "Syntax error" is here to catch this case.
4471 cat >conftest.$ac_ext <<_ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4478 # include <limits.h>
4480 # include <assert.h>
4484 if { (ac_try="$ac_cpp conftest.$ac_ext"
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4492 grep -v '^ *+' conftest.er1 >conftest.err
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } >/dev/null && {
4497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4498 test ! -s conftest.err
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4505 # Broken: fails on valid input.
4509 rm -f conftest.err conftest.$ac_ext
4511 # OK, works on sane cases. Now check whether nonexistent headers
4512 # can be detected and how.
4513 cat >conftest.$ac_ext <<_ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 #include <ac_nonexistent.h>
4521 if { (ac_try="$ac_cpp conftest.$ac_ext"
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4529 grep -v '^ *+' conftest.er1 >conftest.err
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } >/dev/null && {
4534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4535 test ! -s conftest.err
4537 # Broken: success on invalid input.
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4543 # Passes both tests.
4548 rm -f conftest.err conftest.$ac_ext
4551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4552 rm -f conftest.err conftest.$ac_ext
4553 if $ac_preproc_ok; then
4556 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4557 See \`config.log' for more details." >&5
4558 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4559 See \`config.log' for more details." >&2;}
4560 { (exit 1); exit 1; }; }
4564 ac_cpp='$CPP $CPPFLAGS'
4565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4570 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4571 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4572 if test "${ac_cv_path_GREP+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 # Extract the first word of "grep ggrep" to use in msg output
4576 if test -z "$GREP"; then
4577 set dummy grep ggrep; ac_prog_name=$2
4578 if test "${ac_cv_path_GREP+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 ac_path_GREP_found=false
4582 # Loop through the user's path and test for each of PROGNAME-LIST
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 test -z "$as_dir" && as_dir=.
4588 for ac_prog in grep ggrep; do
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4591 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4592 # Check for GNU ac_path_GREP and select it if it is found.
4593 # Check for GNU $ac_path_GREP
4594 case `"$ac_path_GREP" --version 2>&1` in
4596 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4599 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4602 cat "conftest.in" "conftest.in" >"conftest.tmp"
4603 mv "conftest.tmp" "conftest.in"
4604 cp "conftest.in" "conftest.nl"
4605 echo 'GREP' >> "conftest.nl"
4606 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608 ac_count=`expr $ac_count + 1`
4609 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4610 # Best one so far, save it but keep looking for a better one
4611 ac_cv_path_GREP="$ac_path_GREP"
4612 ac_path_GREP_max=$ac_count
4614 # 10*(2^10) chars as input seems more than enough
4615 test $ac_count -gt 10 && break
4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621 $ac_path_GREP_found && break 3
4631 GREP="$ac_cv_path_GREP"
4632 if test -z "$GREP"; then
4633 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4634 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4635 { (exit 1); exit 1; }; }
4639 ac_cv_path_GREP=$GREP
4644 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4645 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4646 GREP="$ac_cv_path_GREP"
4649 { echo "$as_me:$LINENO: checking for egrep" >&5
4650 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4651 if test "${ac_cv_path_EGREP+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4655 then ac_cv_path_EGREP="$GREP -E"
4657 # Extract the first word of "egrep" to use in msg output
4658 if test -z "$EGREP"; then
4659 set dummy egrep; ac_prog_name=$2
4660 if test "${ac_cv_path_EGREP+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 ac_path_EGREP_found=false
4664 # Loop through the user's path and test for each of PROGNAME-LIST
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4669 test -z "$as_dir" && as_dir=.
4670 for ac_prog in egrep; do
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4673 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4674 # Check for GNU ac_path_EGREP and select it if it is found.
4675 # Check for GNU $ac_path_EGREP
4676 case `"$ac_path_EGREP" --version 2>&1` in
4678 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4684 cat "conftest.in" "conftest.in" >"conftest.tmp"
4685 mv "conftest.tmp" "conftest.in"
4686 cp "conftest.in" "conftest.nl"
4687 echo 'EGREP' >> "conftest.nl"
4688 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4690 ac_count=`expr $ac_count + 1`
4691 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4692 # Best one so far, save it but keep looking for a better one
4693 ac_cv_path_EGREP="$ac_path_EGREP"
4694 ac_path_EGREP_max=$ac_count
4696 # 10*(2^10) chars as input seems more than enough
4697 test $ac_count -gt 10 && break
4699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4703 $ac_path_EGREP_found && break 3
4713 EGREP="$ac_cv_path_EGREP"
4714 if test -z "$EGREP"; then
4715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4717 { (exit 1); exit 1; }; }
4721 ac_cv_path_EGREP=$EGREP
4727 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4728 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4729 EGREP="$ac_cv_path_EGREP"
4732 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4733 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4734 if test "${ac_cv_header_stdc+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 cat >conftest.$ac_ext <<_ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4756 rm -f conftest.$ac_objext
4757 if { (ac_try="$ac_compile"
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_compile") 2>conftest.er1
4765 grep -v '^ *+' conftest.er1 >conftest.err
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } && {
4770 test -z "$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4772 } && test -s conftest.$ac_objext; then
4773 ac_cv_header_stdc=yes
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4778 ac_cv_header_stdc=no
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 if test $ac_cv_header_stdc = yes; then
4784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4785 cat >conftest.$ac_ext <<_ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4795 $EGREP "memchr" >/dev/null 2>&1; then
4798 ac_cv_header_stdc=no
4804 if test $ac_cv_header_stdc = yes; then
4805 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4806 cat >conftest.$ac_ext <<_ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4816 $EGREP "free" >/dev/null 2>&1; then
4819 ac_cv_header_stdc=no
4825 if test $ac_cv_header_stdc = yes; then
4826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4827 if test "$cross_compiling" = yes; then
4830 cat >conftest.$ac_ext <<_ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4838 #if ((' ' & 0x0FF) == 0x020)
4839 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4840 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4842 # define ISLOWER(c) \
4843 (('a' <= (c) && (c) <= 'i') \
4844 || ('j' <= (c) && (c) <= 'r') \
4845 || ('s' <= (c) && (c) <= 'z'))
4846 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4849 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4854 for (i = 0; i < 256; i++)
4855 if (XOR (islower (i), ISLOWER (i))
4856 || toupper (i) != TOUPPER (i))
4861 rm -f conftest$ac_exeext
4862 if { (ac_try="$ac_link"
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_link") 2>&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4872 { (case "(($ac_try" in
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4877 (eval "$ac_try") 2>&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4883 echo "$as_me: program exited with status $ac_status" >&5
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4888 ac_cv_header_stdc=no
4890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4896 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4897 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4898 if test $ac_cv_header_stdc = yes; then
4900 cat >>confdefs.h <<\_ACEOF
4901 #define STDC_HEADERS 1
4906 # Make sure we can run config.sub.
4907 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4908 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4909 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4910 { (exit 1); exit 1; }; }
4912 { echo "$as_me:$LINENO: checking build system type" >&5
4913 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4914 if test "${ac_cv_build+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 ac_build_alias=$build_alias
4918 test "x$ac_build_alias" = x &&
4919 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4920 test "x$ac_build_alias" = x &&
4921 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4922 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4923 { (exit 1); exit 1; }; }
4924 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4925 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4926 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4927 { (exit 1); exit 1; }; }
4930 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4931 echo "${ECHO_T}$ac_cv_build" >&6; }
4932 case $ac_cv_build in
4934 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4935 echo "$as_me: error: invalid value of canonical build" >&2;}
4936 { (exit 1); exit 1; }; };;
4939 ac_save_IFS=$IFS; IFS='-'
4945 # Remember, the first character of IFS is used to create $*,
4946 # except with old shells:
4949 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4952 { echo "$as_me:$LINENO: checking host system type" >&5
4953 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4954 if test "${ac_cv_host+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 if test "x$host_alias" = x; then
4958 ac_cv_host=$ac_cv_build
4960 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4961 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4962 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4963 { (exit 1); exit 1; }; }
4967 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4968 echo "${ECHO_T}$ac_cv_host" >&6; }
4971 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4972 echo "$as_me: error: invalid value of canonical host" >&2;}
4973 { (exit 1); exit 1; }; };;
4976 ac_save_IFS=$IFS; IFS='-'
4982 # Remember, the first character of IFS is used to create $*,
4983 # except with old shells:
4986 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4989 # Check whether --enable-trace was given.
4990 if test "${enable_trace+set}" = set; then
4991 enableval=$enable_trace; if test "$enableval" == "yes"; then
4993 cat >>confdefs.h <<\_ACEOF
4994 #define ENABLE_TRACE_IO 1
5000 # Check whether --enable-watch was given.
5001 if test "${enable_watch+set}" = set; then
5002 enableval=$enable_watch; if test "$enableval" == "yes"; then
5004 cat >>confdefs.h <<\_ACEOF
5005 #define ENABLE_WATCH 1
5012 # Check whether --with-osmesa was given.
5013 if test "${with_osmesa+set}" = set; then
5014 withval=$with_osmesa;
5020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5030 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5031 inttypes.h stdint.h unistd.h
5033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 cat >conftest.$ac_ext <<_ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5045 $ac_includes_default
5047 #include <$ac_header>
5049 rm -f conftest.$ac_objext
5050 if { (ac_try="$ac_compile"
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
5066 eval "$as_ac_Header=yes"
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 eval "$as_ac_Header=no"
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 ac_res=`eval echo '${'$as_ac_Header'}'`
5077 { echo "$as_me:$LINENO: result: $ac_res" >&5
5078 echo "${ECHO_T}$ac_res" >&6; }
5079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5080 cat >>confdefs.h <<_ACEOF
5081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5089 if test "x$with_osmesa" != xno; then
5092 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
5093 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
5094 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 ac_check_lib_save_LIBS=$LIBS
5098 LIBS="-lOSMesa $LIBS"
5099 cat >conftest.$ac_ext <<_ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5106 /* Override any GCC internal prototype to avoid an error.
5107 Use char because int might match the return type of a GCC
5108 builtin and then its argument prototype would still apply. */
5112 char OSMesaCreateContext ();
5116 return OSMesaCreateContext ();
5121 rm -f conftest.$ac_objext conftest$ac_exeext
5122 if { (ac_try="$ac_link"
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_link") 2>conftest.er1
5130 grep -v '^ *+' conftest.er1 >conftest.err
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } && {
5135 test -z "$ac_c_werror_flag" ||
5136 test ! -s conftest.err
5137 } && test -s conftest$ac_exeext &&
5138 $as_test_x conftest$ac_exeext; then
5139 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5144 ac_cv_lib_OSMesa_OSMesaCreateContext=no
5147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5148 conftest$ac_exeext conftest.$ac_ext
5149 LIBS=$ac_check_lib_save_LIBS
5151 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
5152 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
5153 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
5154 cat >>confdefs.h <<_ACEOF
5155 #define HAVE_LIBOSMESA 1
5158 LIBS="-lOSMesa $LIBS"
5161 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
5162 See \`config.log' for more details." >&5
5163 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
5164 See \`config.log' for more details." >&2;}
5165 { (exit 1); exit 1; }; }
5168 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
5169 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
5170 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
5171 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
5175 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
5177 # Is the header compilable?
5178 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
5179 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
5180 cat >conftest.$ac_ext <<_ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 $ac_includes_default
5187 #include <GL/osmesa.h>
5189 rm -f conftest.$ac_objext
5190 if { (ac_try="$ac_compile"
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_compile") 2>conftest.er1
5198 grep -v '^ *+' conftest.er1 >conftest.err
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } && {
5203 test -z "$ac_c_werror_flag" ||
5204 test ! -s conftest.err
5205 } && test -s conftest.$ac_objext; then
5206 ac_header_compiler=yes
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 ac_header_compiler=no
5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5216 echo "${ECHO_T}$ac_header_compiler" >&6; }
5218 # Is the header present?
5219 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
5220 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
5221 cat >conftest.$ac_ext <<_ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5227 #include <GL/osmesa.h>
5229 if { (ac_try="$ac_cpp conftest.$ac_ext"
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5237 grep -v '^ *+' conftest.er1 >conftest.err
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } >/dev/null && {
5242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5243 test ! -s conftest.err
5245 ac_header_preproc=yes
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5250 ac_header_preproc=no
5253 rm -f conftest.err conftest.$ac_ext
5254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5255 echo "${ECHO_T}$ac_header_preproc" >&6; }
5257 # So? What about this header?
5258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5260 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
5261 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5262 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
5263 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
5264 ac_header_preproc=yes
5267 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
5268 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
5269 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
5270 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
5271 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
5272 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
5273 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
5274 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
5275 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
5276 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
5277 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
5278 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
5282 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
5283 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
5284 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 ac_cv_header_GL_osmesa_h=$ac_header_preproc
5289 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
5290 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
5293 if test $ac_cv_header_GL_osmesa_h = yes; then
5296 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
5297 See \`config.log' for more details." >&5
5298 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
5299 See \`config.log' for more details." >&2;}
5300 { (exit 1); exit 1; }; }
5309 if test "x$with_osmesa" != xno; then
5311 OSMESA_DRIVER_FALSE='#'
5313 OSMESA_DRIVER_TRUE='#'
5314 OSMESA_DRIVER_FALSE=
5318 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5319 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
5320 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
5321 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
5325 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
5327 # Is the header compilable?
5328 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
5329 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
5330 cat >conftest.$ac_ext <<_ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 $ac_includes_default
5337 #include <Carbon/Carbon.h>
5339 rm -f conftest.$ac_objext
5340 if { (ac_try="$ac_compile"
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compile") 2>conftest.er1
5348 grep -v '^ *+' conftest.er1 >conftest.err
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } && {
5353 test -z "$ac_c_werror_flag" ||
5354 test ! -s conftest.err
5355 } && test -s conftest.$ac_objext; then
5356 ac_header_compiler=yes
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 ac_header_compiler=no
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5366 echo "${ECHO_T}$ac_header_compiler" >&6; }
5368 # Is the header present?
5369 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
5370 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
5371 cat >conftest.$ac_ext <<_ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5377 #include <Carbon/Carbon.h>
5379 if { (ac_try="$ac_cpp conftest.$ac_ext"
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5387 grep -v '^ *+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } >/dev/null && {
5392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5393 test ! -s conftest.err
5395 ac_header_preproc=yes
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.$ac_ext >&5
5400 ac_header_preproc=no
5403 rm -f conftest.err conftest.$ac_ext
5404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5405 echo "${ECHO_T}$ac_header_preproc" >&6; }
5407 # So? What about this header?
5408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5410 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
5411 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
5413 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
5414 ac_header_preproc=yes
5417 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
5418 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
5419 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
5420 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
5421 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
5422 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
5423 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
5424 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
5425 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
5426 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
5427 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
5428 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
5432 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
5433 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
5434 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
5439 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
5440 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
5443 if test $ac_cv_header_Carbon_Carbon_h = yes; then
5447 LIBS="$LIBS -framework OpenGL -framework AGL -framework Carbon -L/usr/X11R6/lib -lGL"
5449 cat >>confdefs.h <<\_ACEOF
5450 #define HAVE_CARBON 1
5454 cat >>confdefs.h <<\_ACEOF
5455 #define APPLE_BUILD 1
5465 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5466 if test -n "$ac_tool_prefix"; then
5467 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5468 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5471 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5498 if test -n "$PKG_CONFIG"; then
5499 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5500 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5502 { echo "$as_me:$LINENO: result: no" >&5
5503 echo "${ECHO_T}no" >&6; }
5508 if test -z "$ac_cv_path_PKG_CONFIG"; then
5509 ac_pt_PKG_CONFIG=$PKG_CONFIG
5510 # Extract the first word of "pkg-config", so it can be a program name with args.
5511 set dummy pkg-config; ac_word=$2
5512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5514 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 case $ac_pt_PKG_CONFIG in
5519 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5541 if test -n "$ac_pt_PKG_CONFIG"; then
5542 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5543 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5545 { echo "$as_me:$LINENO: result: no" >&5
5546 echo "${ECHO_T}no" >&6; }
5549 if test "x$ac_pt_PKG_CONFIG" = x; then
5552 case $cross_compiling:$ac_tool_warned in
5554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5555 whose name does not start with the host triplet. If you think this
5556 configuration is useful to you, please write to autoconf@gnu.org." >&5
5557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5558 whose name does not start with the host triplet. If you think this
5559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5560 ac_tool_warned=yes ;;
5562 PKG_CONFIG=$ac_pt_PKG_CONFIG
5565 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5569 if test -n "$PKG_CONFIG"; then
5570 _pkg_min_version=0.9.0
5571 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5572 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5573 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5574 { echo "$as_me:$LINENO: result: yes" >&5
5575 echo "${ECHO_T}yes" >&6; }
5577 { echo "$as_me:$LINENO: result: no" >&5
5578 echo "${ECHO_T}no" >&6; }
5585 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
5586 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
5588 if test -n "$PKG_CONFIG"; then
5589 if test -n "$LIBPNG_CFLAGS"; then
5590 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
5592 if test -n "$PKG_CONFIG" && \
5593 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
5594 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; then
5598 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
5606 if test -n "$PKG_CONFIG"; then
5607 if test -n "$LIBPNG_LIBS"; then
5608 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
5610 if test -n "$PKG_CONFIG" && \
5611 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
5612 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; then
5616 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
5627 if test $pkg_failed = yes; then
5629 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5630 _pkg_short_errors_supported=yes
5632 _pkg_short_errors_supported=no
5634 if test $_pkg_short_errors_supported = yes; then
5635 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
5637 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
5639 # Put the nasty error message in config.log where it belongs
5640 echo "$LIBPNG_PKG_ERRORS" >&5
5642 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
5646 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5647 installed software in a non-standard prefix.
5649 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5650 and LIBPNG_LIBS to avoid the need to call pkg-config.
5651 See the pkg-config man page for more details.
5653 echo "$as_me: error: Package requirements (libpng ) were not met:
5657 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5658 installed software in a non-standard prefix.
5660 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5661 and LIBPNG_LIBS to avoid the need to call pkg-config.
5662 See the pkg-config man page for more details.
5664 { (exit 1); exit 1; }; }
5665 elif test $pkg_failed = untried; then
5666 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5667 is in your PATH or set the PKG_CONFIG environment variable to the full
5670 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5671 and LIBPNG_LIBS to avoid the need to call pkg-config.
5672 See the pkg-config man page for more details.
5674 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5675 See \`config.log' for more details." >&5
5676 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5677 is in your PATH or set the PKG_CONFIG environment variable to the full
5680 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5681 and LIBPNG_LIBS to avoid the need to call pkg-config.
5682 See the pkg-config man page for more details.
5684 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5685 See \`config.log' for more details." >&2;}
5686 { (exit 1); exit 1; }; }
5688 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
5689 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
5690 { echo "$as_me:$LINENO: result: yes" >&5
5691 echo "${ECHO_T}yes" >&6; }
5696 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
5697 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
5698 if test "${ac_cv_lib_z_uncompress+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 ac_check_lib_save_LIBS=$LIBS
5703 cat >conftest.$ac_ext <<_ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5710 /* Override any GCC internal prototype to avoid an error.
5711 Use char because int might match the return type of a GCC
5712 builtin and then its argument prototype would still apply. */
5720 return uncompress ();
5725 rm -f conftest.$ac_objext conftest$ac_exeext
5726 if { (ac_try="$ac_link"
5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729 *) ac_try_echo=$ac_try;;
5731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732 (eval "$ac_link") 2>conftest.er1
5734 grep -v '^ *+' conftest.er1 >conftest.err
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } && {
5739 test -z "$ac_c_werror_flag" ||
5740 test ! -s conftest.err
5741 } && test -s conftest$ac_exeext &&
5742 $as_test_x conftest$ac_exeext; then
5743 ac_cv_lib_z_uncompress=yes
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5748 ac_cv_lib_z_uncompress=no
5751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5752 conftest$ac_exeext conftest.$ac_ext
5753 LIBS=$ac_check_lib_save_LIBS
5755 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
5756 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
5757 if test $ac_cv_lib_z_uncompress = yes; then
5758 cat >>confdefs.h <<_ACEOF
5766 echo "Zlib (libz.so) could not be found, but is required."
5771 if test "$APPLE_BUILD" != 'yes'; then
5772 if test "x$with_osmesa" == "xno"; then
5774 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
5775 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
5776 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 ac_check_lib_save_LIBS=$LIBS
5781 cat >conftest.$ac_ext <<_ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5788 /* Override any GCC internal prototype to avoid an error.
5789 Use char because int might match the return type of a GCC
5790 builtin and then its argument prototype would still apply. */
5794 char glXQueryVersion ();
5798 return glXQueryVersion ();
5803 rm -f conftest.$ac_objext conftest$ac_exeext
5804 if { (ac_try="$ac_link"
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_link") 2>conftest.er1
5812 grep -v '^ *+' conftest.er1 >conftest.err
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && {
5817 test -z "$ac_c_werror_flag" ||
5818 test ! -s conftest.err
5819 } && test -s conftest$ac_exeext &&
5820 $as_test_x conftest$ac_exeext; then
5821 ac_cv_lib_GL_glXQueryVersion=yes
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5826 ac_cv_lib_GL_glXQueryVersion=no
5829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5830 conftest$ac_exeext conftest.$ac_ext
5831 LIBS=$ac_check_lib_save_LIBS
5833 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
5834 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
5835 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
5836 cat >>confdefs.h <<_ACEOF
5837 #define HAVE_LIBGL 1
5844 echo "The OpenGL library (libGL.so) could not be found, but is required."
5848 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5849 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5850 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5851 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5855 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5857 # Is the header compilable?
5858 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
5859 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
5860 cat >conftest.$ac_ext <<_ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5866 $ac_includes_default
5869 rm -f conftest.$ac_objext
5870 if { (ac_try="$ac_compile"
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_compile") 2>conftest.er1
5878 grep -v '^ *+' conftest.er1 >conftest.err
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest.$ac_objext; then
5886 ac_header_compiler=yes
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 ac_header_compiler=no
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5896 echo "${ECHO_T}$ac_header_compiler" >&6; }
5898 # Is the header present?
5899 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
5900 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
5901 cat >conftest.$ac_ext <<_ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5909 if { (ac_try="$ac_cpp conftest.$ac_ext"
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } >/dev/null && {
5922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5923 test ! -s conftest.err
5925 ac_header_preproc=yes
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5930 ac_header_preproc=no
5933 rm -f conftest.err conftest.$ac_ext
5934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5935 echo "${ECHO_T}$ac_header_preproc" >&6; }
5937 # So? What about this header?
5938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5940 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5941 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5942 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
5943 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
5944 ac_header_preproc=yes
5947 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
5948 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
5949 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
5950 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
5951 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
5952 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
5953 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
5954 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5955 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
5956 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
5957 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
5958 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
5962 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5963 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5964 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 ac_cv_header_GL_gl_h=$ac_header_preproc
5969 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5970 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5973 if test $ac_cv_header_GL_gl_h = yes; then
5977 echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
5985 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
5986 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
5987 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 cat >conftest.$ac_ext <<_ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
5997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5998 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
6000 /* System header to define __stub macros and hopefully few prototypes,
6001 which can conflict with char glGenFramebuffersEXT (); below.
6002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6003 <limits.h> exists even on freestanding compilers. */
6006 # include <limits.h>
6008 # include <assert.h>
6011 #undef glGenFramebuffersEXT
6013 /* Override any GCC internal prototype to avoid an error.
6014 Use char because int might match the return type of a GCC
6015 builtin and then its argument prototype would still apply. */
6019 char glGenFramebuffersEXT ();
6020 /* The GNU C library defines this for functions which it implements
6021 to always fail with ENOSYS. Some functions are actually named
6022 something starting with __ and the normal name is an alias. */
6023 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
6030 return glGenFramebuffersEXT ();
6035 rm -f conftest.$ac_objext conftest$ac_exeext
6036 if { (ac_try="$ac_link"
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_link") 2>conftest.er1
6044 grep -v '^ *+' conftest.er1 >conftest.err
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } && {
6049 test -z "$ac_c_werror_flag" ||
6050 test ! -s conftest.err
6051 } && test -s conftest$ac_exeext &&
6052 $as_test_x conftest$ac_exeext; then
6053 ac_cv_func_glGenFramebuffersEXT=yes
6055 echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6058 ac_cv_func_glGenFramebuffersEXT=no
6061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6062 conftest$ac_exeext conftest.$ac_ext
6064 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
6065 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
6066 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
6068 cat >>confdefs.h <<\_ACEOF
6069 #define HAVE_OPENGL_FBO 1
6074 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
6075 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
6076 if test "${ac_cv_func_glCreateShader+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
6086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6087 #define glCreateShader innocuous_glCreateShader
6089 /* System header to define __stub macros and hopefully few prototypes,
6090 which can conflict with char glCreateShader (); below.
6091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6092 <limits.h> exists even on freestanding compilers. */
6095 # include <limits.h>
6097 # include <assert.h>
6100 #undef glCreateShader
6102 /* Override any GCC internal prototype to avoid an error.
6103 Use char because int might match the return type of a GCC
6104 builtin and then its argument prototype would still apply. */
6108 char glCreateShader ();
6109 /* The GNU C library defines this for functions which it implements
6110 to always fail with ENOSYS. Some functions are actually named
6111 something starting with __ and the normal name is an alias. */
6112 #if defined __stub_glCreateShader || defined __stub___glCreateShader
6119 return glCreateShader ();
6124 rm -f conftest.$ac_objext conftest$ac_exeext
6125 if { (ac_try="$ac_link"
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_link") 2>conftest.er1
6133 grep -v '^ *+' conftest.er1 >conftest.err
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } && {
6138 test -z "$ac_c_werror_flag" ||
6139 test ! -s conftest.err
6140 } && test -s conftest$ac_exeext &&
6141 $as_test_x conftest$ac_exeext; then
6142 ac_cv_func_glCreateShader=yes
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_cv_func_glCreateShader=no
6150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6151 conftest$ac_exeext conftest.$ac_ext
6153 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
6154 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
6155 if test $ac_cv_func_glCreateShader = yes; then
6157 cat >>confdefs.h <<\_ACEOF
6158 #define HAVE_OPENGL_SHADER 1
6163 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
6164 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
6165 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 cat >conftest.$ac_ext <<_ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
6175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6176 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
6178 /* System header to define __stub macros and hopefully few prototypes,
6179 which can conflict with char glCreateShaderObjectARB (); below.
6180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6181 <limits.h> exists even on freestanding compilers. */
6184 # include <limits.h>
6186 # include <assert.h>
6189 #undef glCreateShaderObjectARB
6191 /* Override any GCC internal prototype to avoid an error.
6192 Use char because int might match the return type of a GCC
6193 builtin and then its argument prototype would still apply. */
6197 char glCreateShaderObjectARB ();
6198 /* The GNU C library defines this for functions which it implements
6199 to always fail with ENOSYS. Some functions are actually named
6200 something starting with __ and the normal name is an alias. */
6201 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
6208 return glCreateShaderObjectARB ();
6213 rm -f conftest.$ac_objext conftest$ac_exeext
6214 if { (ac_try="$ac_link"
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_link") 2>conftest.er1
6222 grep -v '^ *+' conftest.er1 >conftest.err
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && {
6227 test -z "$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest$ac_exeext &&
6230 $as_test_x conftest$ac_exeext; then
6231 ac_cv_func_glCreateShaderObjectARB=yes
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6236 ac_cv_func_glCreateShaderObjectARB=no
6239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6240 conftest$ac_exeext conftest.$ac_ext
6242 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
6243 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
6244 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
6246 cat >>confdefs.h <<\_ACEOF
6247 #define HAVE_OPENGL_SHADER_ARB 1
6255 { echo "$as_me:$LINENO: checking for GTK" >&5
6256 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
6258 if test -n "$PKG_CONFIG"; then
6259 if test -n "$GTK_CFLAGS"; then
6260 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
6262 if test -n "$PKG_CONFIG" && \
6263 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
6264 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; then
6268 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
6276 if test -n "$PKG_CONFIG"; then
6277 if test -n "$GTK_LIBS"; then
6278 pkg_cv_GTK_LIBS="$GTK_LIBS"
6280 if test -n "$PKG_CONFIG" && \
6281 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
6282 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; then
6286 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
6297 if test $pkg_failed = yes; then
6299 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6300 _pkg_short_errors_supported=yes
6302 _pkg_short_errors_supported=no
6304 if test $_pkg_short_errors_supported = yes; then
6305 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
6307 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
6309 # Put the nasty error message in config.log where it belongs
6310 echo "$GTK_PKG_ERRORS" >&5
6312 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
6316 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6317 installed software in a non-standard prefix.
6319 Alternatively, you may set the environment variables GTK_CFLAGS
6320 and GTK_LIBS to avoid the need to call pkg-config.
6321 See the pkg-config man page for more details.
6323 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
6327 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6328 installed software in a non-standard prefix.
6330 Alternatively, you may set the environment variables GTK_CFLAGS
6331 and GTK_LIBS to avoid the need to call pkg-config.
6332 See the pkg-config man page for more details.
6334 { (exit 1); exit 1; }; }
6335 elif test $pkg_failed = untried; then
6336 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6337 is in your PATH or set the PKG_CONFIG environment variable to the full
6340 Alternatively, you may set the environment variables GTK_CFLAGS
6341 and GTK_LIBS to avoid the need to call pkg-config.
6342 See the pkg-config man page for more details.
6344 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
6345 See \`config.log' for more details." >&5
6346 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6347 is in your PATH or set the PKG_CONFIG environment variable to the full
6350 Alternatively, you may set the environment variables GTK_CFLAGS
6351 and GTK_LIBS to avoid the need to call pkg-config.
6352 See the pkg-config man page for more details.
6354 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
6355 See \`config.log' for more details." >&2;}
6356 { (exit 1); exit 1; }; }
6358 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
6359 GTK_LIBS=$pkg_cv_GTK_LIBS
6360 { echo "$as_me:$LINENO: result: yes" >&5
6361 echo "${ECHO_T}yes" >&6; }
6365 cat >>confdefs.h <<\_ACEOF
6374 if test "$HAVE_CARBON" = 'yes'; then
6376 GUI_CARBON_FALSE='#'
6384 if test "$HAVE_GTK" = 'yes'; then
6394 i386|i486|i586|i686)
6395 SH4_TRANSLATOR="x86"
6397 cat >>confdefs.h <<_ACEOF
6398 #define SH4_TRANSLATOR TARGET_X86
6402 SH4_TRANSLATOR="x86_64"
6404 cat >>confdefs.h <<_ACEOF
6405 #define SH4_TRANSLATOR TARGET_X86_64
6409 echo "Warning: No translator available for $host. Building emulation core only";;
6413 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
6415 BUILD_SH4X86_FALSE='#'
6417 BUILD_SH4X86_TRUE='#'
6423 if test "$SH4_TRANSLATOR" = "x86_64"; then
6425 BUILD_X86_64_FALSE='#'
6427 BUILD_X86_64_TRUE='#'
6434 { echo "$as_me:$LINENO: checking for PULSE" >&5
6435 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
6437 if test -n "$PKG_CONFIG"; then
6438 if test -n "$PULSE_CFLAGS"; then
6439 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
6441 if test -n "$PKG_CONFIG" && \
6442 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
6443 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; then
6447 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
6455 if test -n "$PKG_CONFIG"; then
6456 if test -n "$PULSE_LIBS"; then
6457 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
6459 if test -n "$PKG_CONFIG" && \
6460 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
6461 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; then
6465 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
6476 if test $pkg_failed = yes; then
6478 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6479 _pkg_short_errors_supported=yes
6481 _pkg_short_errors_supported=no
6483 if test $_pkg_short_errors_supported = yes; then
6484 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
6486 PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
6488 # Put the nasty error message in config.log where it belongs
6489 echo "$PULSE_PKG_ERRORS" >&5
6491 { echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6; }
6494 elif test $pkg_failed = untried; then
6497 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
6498 PULSE_LIBS=$pkg_cv_PULSE_LIBS
6499 { echo "$as_me:$LINENO: result: yes" >&5
6500 echo "${ECHO_T}yes" >&6; }
6504 cat >>confdefs.h <<\_ACEOF
6505 #define HAVE_PULSE 1
6511 if test "$HAVE_PULSE" = 'yes' ; then
6513 AUDIO_PULSE_FALSE='#'
6515 AUDIO_PULSE_TRUE='#'
6522 { echo "$as_me:$LINENO: checking for ESOUND" >&5
6523 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
6525 if test -n "$PKG_CONFIG"; then
6526 if test -n "$ESOUND_CFLAGS"; then
6527 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
6529 if test -n "$PKG_CONFIG" && \
6530 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
6531 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; then
6535 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
6543 if test -n "$PKG_CONFIG"; then
6544 if test -n "$ESOUND_LIBS"; then
6545 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
6547 if test -n "$PKG_CONFIG" && \
6548 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
6549 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; then
6553 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
6564 if test $pkg_failed = yes; then
6566 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6567 _pkg_short_errors_supported=yes
6569 _pkg_short_errors_supported=no
6571 if test $_pkg_short_errors_supported = yes; then
6572 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
6574 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
6576 # Put the nasty error message in config.log where it belongs
6577 echo "$ESOUND_PKG_ERRORS" >&5
6579 { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6582 elif test $pkg_failed = untried; then
6585 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
6586 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
6587 { echo "$as_me:$LINENO: result: yes" >&5
6588 echo "${ECHO_T}yes" >&6; }
6592 cat >>confdefs.h <<\_ACEOF
6593 #define HAVE_ESOUND 1
6599 if test "$HAVE_ESOUND" = 'yes' ; then
6601 AUDIO_ESOUND_FALSE='#'
6603 AUDIO_ESOUND_TRUE='#'
6610 { echo "$as_me:$LINENO: checking for ALSA" >&5
6611 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
6613 if test -n "$PKG_CONFIG"; then
6614 if test -n "$ALSA_CFLAGS"; then
6615 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
6617 if test -n "$PKG_CONFIG" && \
6618 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
6619 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; then
6623 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
6631 if test -n "$PKG_CONFIG"; then
6632 if test -n "$ALSA_LIBS"; then
6633 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
6635 if test -n "$PKG_CONFIG" && \
6636 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
6637 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; then
6641 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
6652 if test $pkg_failed = yes; then
6654 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6655 _pkg_short_errors_supported=yes
6657 _pkg_short_errors_supported=no
6659 if test $_pkg_short_errors_supported = yes; then
6660 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
6662 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
6664 # Put the nasty error message in config.log where it belongs
6665 echo "$ALSA_PKG_ERRORS" >&5
6667 { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6670 elif test $pkg_failed = untried; then
6673 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
6674 ALSA_LIBS=$pkg_cv_ALSA_LIBS
6675 { echo "$as_me:$LINENO: result: yes" >&5
6676 echo "${ECHO_T}yes" >&6; }
6680 cat >>confdefs.h <<\_ACEOF
6687 if test "$HAVE_ALSA" = 'yes' ; then
6689 AUDIO_ALSA_FALSE='#'
6696 if test "x$HAVE_ESOUND" = "x" -a "x$HAVE_ALSA" = "x" -a "x$HAVE_PULSE" = "x"; then
6697 echo "Warning: Building without audio support"
6700 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
6701 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
6702 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
6703 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
6707 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
6709 # Is the header compilable?
6710 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
6711 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
6712 cat >conftest.$ac_ext <<_ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6718 $ac_includes_default
6719 #include <linux/cdrom.h>
6721 rm -f conftest.$ac_objext
6722 if { (ac_try="$ac_compile"
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728 (eval "$ac_compile") 2>conftest.er1
6730 grep -v '^ *+' conftest.er1 >conftest.err
6732 cat conftest.err >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } && {
6735 test -z "$ac_c_werror_flag" ||
6736 test ! -s conftest.err
6737 } && test -s conftest.$ac_objext; then
6738 ac_header_compiler=yes
6740 echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6743 ac_header_compiler=no
6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6748 echo "${ECHO_T}$ac_header_compiler" >&6; }
6750 # Is the header present?
6751 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
6752 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
6753 cat >conftest.$ac_ext <<_ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 #include <linux/cdrom.h>
6761 if { (ac_try="$ac_cpp conftest.$ac_ext"
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5