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
747 ac_precious_vars='build_alias
765 # Initialize some variables set by options.
767 ac_init_version=false
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
777 program_transform_name=s,x,x,
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE}'
802 infodir='${datarootdir}/info'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 # Accept the important Cygnus configure options, so we can diagnose typos.
829 case $ac_dashdash$ac_option in
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
851 cache_file=config.cache ;;
853 -datadir | --datadir | --datadi | --datad)
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
865 -disable-* | --disable-*)
866 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
869 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
870 { (exit 1); exit 1; }; }
871 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
872 eval enable_$ac_feature=no ;;
874 -docdir | --docdir | --docdi | --doc | --do)
876 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 -enable-* | --enable-*)
885 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
888 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
889 { (exit 1); exit 1; }; }
890 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
891 eval enable_$ac_feature=\$ac_optarg ;;
893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
894 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
895 | --exec | --exe | --ex)
896 ac_prev=exec_prefix ;;
897 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
898 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
899 | --exec=* | --exe=* | --ex=*)
900 exec_prefix=$ac_optarg ;;
902 -gas | --gas | --ga | --g)
903 # Obsolete; use --with-gas.
906 -help | --help | --hel | --he | -h)
908 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
909 ac_init_help=recursive ;;
910 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
911 ac_init_help=short ;;
913 -host | --host | --hos | --ho)
914 ac_prev=host_alias ;;
915 -host=* | --host=* | --hos=* | --ho=*)
916 host_alias=$ac_optarg ;;
918 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922 htmldir=$ac_optarg ;;
924 -includedir | --includedir | --includedi | --included | --include \
925 | --includ | --inclu | --incl | --inc)
926 ac_prev=includedir ;;
927 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
928 | --includ=* | --inclu=* | --incl=* | --inc=*)
929 includedir=$ac_optarg ;;
931 -infodir | --infodir | --infodi | --infod | --info | --inf)
933 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
934 infodir=$ac_optarg ;;
936 -libdir | --libdir | --libdi | --libd)
938 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
942 | --libexe | --libex | --libe)
943 ac_prev=libexecdir ;;
944 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
945 | --libexe=* | --libex=* | --libe=*)
946 libexecdir=$ac_optarg ;;
948 -localedir | --localedir | --localedi | --localed | --locale)
950 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
951 localedir=$ac_optarg ;;
953 -localstatedir | --localstatedir | --localstatedi | --localstated \
954 | --localstate | --localstat | --localsta | --localst | --locals)
955 ac_prev=localstatedir ;;
956 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
957 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
958 localstatedir=$ac_optarg ;;
960 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966 # Obsolete; use --without-fp.
969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
970 | --no-cr | --no-c | -n)
973 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
974 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
978 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
979 | --oldin | --oldi | --old | --ol | --o)
980 ac_prev=oldincludedir ;;
981 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
982 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
983 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
984 oldincludedir=$ac_optarg ;;
986 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 -program-prefix | --program-prefix | --program-prefi | --program-pref \
992 | --program-pre | --program-pr | --program-p)
993 ac_prev=program_prefix ;;
994 -program-prefix=* | --program-prefix=* | --program-prefi=* \
995 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
996 program_prefix=$ac_optarg ;;
998 -program-suffix | --program-suffix | --program-suffi | --program-suff \
999 | --program-suf | --program-su | --program-s)
1000 ac_prev=program_suffix ;;
1001 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1002 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1003 program_suffix=$ac_optarg ;;
1005 -program-transform-name | --program-transform-name \
1006 | --program-transform-nam | --program-transform-na \
1007 | --program-transform-n | --program-transform- \
1008 | --program-transform | --program-transfor \
1009 | --program-transfo | --program-transf \
1010 | --program-trans | --program-tran \
1011 | --progr-tra | --program-tr | --program-t)
1012 ac_prev=program_transform_name ;;
1013 -program-transform-name=* | --program-transform-name=* \
1014 | --program-transform-nam=* | --program-transform-na=* \
1015 | --program-transform-n=* | --program-transform-=* \
1016 | --program-transform=* | --program-transfor=* \
1017 | --program-transfo=* | --program-transf=* \
1018 | --program-trans=* | --program-tran=* \
1019 | --progr-tra=* | --program-tr=* | --program-t=*)
1020 program_transform_name=$ac_optarg ;;
1022 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1025 pdfdir=$ac_optarg ;;
1027 -psdir | --psdir | --psdi | --psd | --ps)
1029 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1036 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040 sbindir=$ac_optarg ;;
1042 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1043 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1044 | --sharedst | --shareds | --shared | --share | --shar \
1046 ac_prev=sharedstatedir ;;
1047 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1048 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1049 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051 sharedstatedir=$ac_optarg ;;
1053 -site | --site | --sit)
1055 -site=* | --site=* | --sit=*)
1058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1061 srcdir=$ac_optarg ;;
1063 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1064 | --syscon | --sysco | --sysc | --sys | --sy)
1065 ac_prev=sysconfdir ;;
1066 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1067 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1068 sysconfdir=$ac_optarg ;;
1070 -target | --target | --targe | --targ | --tar | --ta | --t)
1071 ac_prev=target_alias ;;
1072 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1073 target_alias=$ac_optarg ;;
1075 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 -version | --version | --versio | --versi | --vers | -V)
1079 ac_init_version=: ;;
1082 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085 { echo "$as_me: error: invalid package name: $ac_package" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1088 eval with_$ac_package=\$ac_optarg ;;
1090 -without-* | --without-*)
1091 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094 { echo "$as_me: error: invalid package name: $ac_package" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1097 eval with_$ac_package=no ;;
1100 # Obsolete; use --with-x.
1103 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1104 | --x-incl | --x-inc | --x-in | --x-i)
1105 ac_prev=x_includes ;;
1106 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1107 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1108 x_includes=$ac_optarg ;;
1110 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1111 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1112 ac_prev=x_libraries ;;
1113 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1114 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1115 x_libraries=$ac_optarg ;;
1117 -*) { echo "$as_me: error: unrecognized option: $ac_option
1118 Try \`$0 --help' for more information." >&2
1119 { (exit 1); exit 1; }; }
1123 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1126 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1127 { (exit 1); exit 1; }; }
1128 eval $ac_envvar=\$ac_optarg
1129 export $ac_envvar ;;
1132 # FIXME: should be removed in autoconf 3.0.
1133 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1134 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1135 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1136 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1142 if test -n "$ac_prev"; then
1143 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1144 { echo "$as_me: error: missing argument to $ac_option" >&2
1145 { (exit 1); exit 1; }; }
1148 # Be sure to have absolute directory names.
1149 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1150 datadir sysconfdir sharedstatedir localstatedir includedir \
1151 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1152 libdir localedir mandir
1154 eval ac_val=\$$ac_var
1156 [\\/$]* | ?:[\\/]* ) continue;;
1157 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1159 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1160 { (exit 1); exit 1; }; }
1163 # There might be people who depend on the old broken behavior: `$host'
1164 # used to hold the argument of --host etc.
1165 # FIXME: To remove some day.
1168 target=$target_alias
1170 # FIXME: To remove some day.
1171 if test "x$host_alias" != x; then
1172 if test "x$build_alias" = x; then
1173 cross_compiling=maybe
1174 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1175 If a cross compiler is detected then cross compile mode will be used." >&2
1176 elif test "x$build_alias" != "x$host_alias"; then
1182 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1184 test "$silent" = yes && exec 6>/dev/null
1187 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1188 ac_ls_di=`ls -di .` &&
1189 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1190 { echo "$as_me: error: Working directory cannot be determined" >&2
1191 { (exit 1); exit 1; }; }
1192 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1193 { echo "$as_me: error: pwd does not report name of working directory" >&2
1194 { (exit 1); exit 1; }; }
1197 # Find the source files, if location was not specified.
1198 if test -z "$srcdir"; then
1199 ac_srcdir_defaulted=yes
1200 # Try the directory containing this script, then the parent directory.
1201 ac_confdir=`$as_dirname -- "$0" ||
1202 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203 X"$0" : 'X\(//\)[^/]' \| \
1204 X"$0" : 'X\(//\)$' \| \
1205 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1229 ac_srcdir_defaulted=no
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1234 { (exit 1); exit 1; }; }
1236 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1238 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1239 { (exit 1); exit 1; }; }
1241 # When building in place, set srcdir=.
1242 if test "$ac_abs_confdir" = "$ac_pwd"; then
1245 # Remove unnecessary trailing slashes from srcdir.
1246 # Double slashes in file names in object file debugging info
1247 # mess up M-x gdb in Emacs.
1249 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1251 for ac_var in $ac_precious_vars; do
1252 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_env_${ac_var}_value=\$${ac_var}
1254 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1255 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1259 # Report the --help message.
1261 if test "$ac_init_help" = "long"; then
1262 # Omit some internal or obsolete options to make the list less imposing.
1263 # This message is too long to be a string in the A/UX 3.1 sh.
1265 \`configure' configures this package to adapt to many kinds of systems.
1267 Usage: $0 [OPTION]... [VAR=VALUE]...
1269 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1270 VAR=VALUE. See below for descriptions of some of the useful variables.
1272 Defaults for the options are specified in brackets.
1275 -h, --help display this help and exit
1276 --help=short display options specific to this package
1277 --help=recursive display the short help of all the included packages
1278 -V, --version display version information and exit
1279 -q, --quiet, --silent do not print \`checking...' messages
1280 --cache-file=FILE cache test results in FILE [disabled]
1281 -C, --config-cache alias for \`--cache-file=config.cache'
1282 -n, --no-create do not create output files
1283 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1285 Installation directories:
1286 --prefix=PREFIX install architecture-independent files in PREFIX
1287 [$ac_default_prefix]
1288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1291 By default, \`make install' will install all the files in
1292 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1293 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1294 for instance \`--prefix=\$HOME'.
1296 For better control, use the options below.
1298 Fine tuning of the installation directories:
1299 --bindir=DIR user executables [EPREFIX/bin]
1300 --sbindir=DIR system admin executables [EPREFIX/sbin]
1301 --libexecdir=DIR program executables [EPREFIX/libexec]
1302 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1303 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1304 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1305 --libdir=DIR object code libraries [EPREFIX/lib]
1306 --includedir=DIR C header files [PREFIX/include]
1307 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1308 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1309 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1310 --infodir=DIR info documentation [DATAROOTDIR/info]
1311 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1312 --mandir=DIR man documentation [DATAROOTDIR/man]
1313 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1314 --htmldir=DIR html documentation [DOCDIR]
1315 --dvidir=DIR dvi documentation [DOCDIR]
1316 --pdfdir=DIR pdf documentation [DOCDIR]
1317 --psdir=DIR ps documentation [DOCDIR]
1323 --program-prefix=PREFIX prepend PREFIX to installed program names
1324 --program-suffix=SUFFIX append SUFFIX to installed program names
1325 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1328 --build=BUILD configure for building on BUILD [guessed]
1329 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1333 if test -n "$ac_init_help"; then
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --enable-maintainer-mode enable make rules and dependencies not useful
1341 (and sometimes confusing) to the casual installer
1342 --disable-dependency-tracking Speeds up one-time builds
1343 --enable-dependency-tracking Do not reject slow dependency extractors
1345 Some influential environment variables:
1346 CC C compiler command
1347 CFLAGS C compiler flags
1348 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1349 nonstandard directory <lib dir>
1350 LIBS libraries to pass to the linker, e.g. -l<library>
1351 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1352 you have headers in a nonstandard directory <include dir>
1354 PKG_CONFIG path to pkg-config utility
1356 C compiler flags for LIBPNG, overriding pkg-config
1357 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1358 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1359 GTK_LIBS linker flags for GTK, overriding pkg-config
1361 C compiler flags for ESOUND, overriding pkg-config
1362 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1364 Use these variables to override the choices made by `configure' or to help
1365 it to find libraries and programs with nonstandard names/locations.
1371 if test "$ac_init_help" = "recursive"; then
1372 # If there are subdirs, report their specific --help.
1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1374 test -d "$ac_dir" || continue
1378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1381 # A ".." for each directory in $ac_dir_suffix.
1382 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1383 case $ac_top_builddir_sub in
1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1388 ac_abs_top_builddir=$ac_pwd
1389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1390 # for backward compatibility:
1391 ac_top_builddir=$ac_top_build_prefix
1394 .) # We are building in place.
1396 ac_top_srcdir=$ac_top_builddir_sub
1397 ac_abs_top_srcdir=$ac_pwd ;;
1398 [\\/]* | ?:[\\/]* ) # Absolute name.
1399 ac_srcdir=$srcdir$ac_dir_suffix;
1400 ac_top_srcdir=$srcdir
1401 ac_abs_top_srcdir=$srcdir ;;
1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1404 ac_top_srcdir=$ac_top_build_prefix$srcdir
1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1409 cd "$ac_dir" || { ac_status=$?; continue; }
1410 # Check for guested configure.
1411 if test -f "$ac_srcdir/configure.gnu"; then
1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1414 elif test -f "$ac_srcdir/configure"; then
1416 $SHELL "$ac_srcdir/configure" --help=recursive
1418 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1420 cd "$ac_pwd" || { ac_status=$?; break; }
1424 test -n "$ac_init_help" && exit $ac_status
1425 if $ac_init_version; then
1428 generated by GNU Autoconf 2.61
1430 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1431 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1432 This configure script is free software; the Free Software Foundation
1433 gives unlimited permission to copy, distribute and modify it.
1437 cat >config.log <<_ACEOF
1438 This file contains any messages produced by compilers while
1439 running configure, to aid debugging if configure makes a mistake.
1441 It was created by $as_me, which was
1442 generated by GNU Autoconf 2.61. Invocation command line was
1454 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1455 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1456 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1457 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1458 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1460 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1461 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1463 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1464 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1465 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1466 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1467 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1468 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1469 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir=.
1478 echo "PATH: $as_dir"
1494 # Keep a trace of the command line.
1495 # Strip out --no-create and --no-recursion so they do not pile up.
1496 # Strip out --silent because we don't want to record it for future runs.
1497 # Also quote any args containing shell meta-characters.
1498 # Make two passes to allow for proper duplicate-argument suppression.
1502 ac_must_keep_next=false
1508 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510 | -silent | --silent | --silen | --sile | --sil)
1513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1516 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1518 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1519 if test $ac_must_keep_next = true; then
1520 ac_must_keep_next=false # Got value, back to normal.
1523 *=* | --config-cache | -C | -disable-* | --disable-* \
1524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1526 | -with-* | --with-* | -without-* | --without-* | --x)
1527 case "$ac_configure_args0 " in
1528 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1531 -* ) ac_must_keep_next=true ;;
1534 ac_configure_args="$ac_configure_args '$ac_arg'"
1539 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1540 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1542 # When interrupted or exit'd, cleanup temporary files, and complete
1543 # config.log. We remove comments because anyway the quotes in there
1544 # would cause problems or look ugly.
1545 # WARNING: Use '\'' to represent an apostrophe within the trap.
1546 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1547 trap 'exit_status=$?
1548 # Save into config.log some information that might help in debugging.
1553 ## ---------------- ##
1554 ## Cache variables. ##
1555 ## ---------------- ##
1558 # The following way of writing the cache mishandles newlines in values,
1560 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1561 eval ac_val=\$$ac_var
1565 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1566 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1569 _ | IFS | as_nl) ;; #(
1570 *) $as_unset $ac_var ;;
1575 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1576 *${as_nl}ac_space=\ *)
1578 "s/'\''/'\''\\\\'\'''\''/g;
1579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1590 ## ----------------- ##
1591 ## Output variables. ##
1592 ## ----------------- ##
1595 for ac_var in $ac_subst_vars
1597 eval ac_val=\$$ac_var
1599 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1601 echo "$ac_var='\''$ac_val'\''"
1605 if test -n "$ac_subst_files"; then
1607 ## ------------------- ##
1608 ## File substitutions. ##
1609 ## ------------------- ##
1612 for ac_var in $ac_subst_files
1614 eval ac_val=\$$ac_var
1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 echo "$ac_var='\''$ac_val'\''"
1623 if test -s confdefs.h; then
1633 test "$ac_signal" != 0 &&
1634 echo "$as_me: caught signal $ac_signal"
1635 echo "$as_me: exit $exit_status"
1637 rm -f core *.core core.conftest.* &&
1638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1641 for ac_signal in 1 2 13 15; do
1642 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1646 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1647 rm -f -r conftest* confdefs.h
1649 # Predefined preprocessor variables.
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_NAME "$PACKAGE_NAME"
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_STRING "$PACKAGE_STRING"
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1676 # Let the site file select an alternate cache file if it wants to.
1677 # Prefer explicitly selected file to automatically selected ones.
1678 if test -n "$CONFIG_SITE"; then
1679 set x "$CONFIG_SITE"
1680 elif test "x$prefix" != xNONE; then
1681 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1683 set x "$ac_default_prefix/share/config.site" \
1684 "$ac_default_prefix/etc/config.site"
1689 if test -r "$ac_site_file"; then
1690 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1691 echo "$as_me: loading site script $ac_site_file" >&6;}
1692 sed 's/^/| /' "$ac_site_file" >&5
1697 if test -r "$cache_file"; then
1698 # Some versions of bash will fail to source /dev/null (special
1699 # files actually), so we avoid doing that.
1700 if test -f "$cache_file"; then
1701 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1702 echo "$as_me: loading cache $cache_file" >&6;}
1704 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1705 *) . "./$cache_file";;
1709 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1710 echo "$as_me: creating cache $cache_file" >&6;}
1714 # Check that the precious variables saved in the cache have kept the same
1716 ac_cache_corrupted=false
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1725 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1729 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1735 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1736 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1737 echo "$as_me: former value: $ac_old_val" >&2;}
1738 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1739 echo "$as_me: current value: $ac_new_val" >&2;}
1740 ac_cache_corrupted=:
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1755 if $ac_cache_corrupted; then
1756 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1757 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1758 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1759 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1760 { (exit 1); exit 1; }; }
1780 ac_cpp='$CPP $CPPFLAGS'
1781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1786 am__api_version="1.7"
1788 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1789 if test -f "$ac_dir/install-sh"; then
1791 ac_install_sh="$ac_aux_dir/install-sh -c"
1793 elif test -f "$ac_dir/install.sh"; then
1795 ac_install_sh="$ac_aux_dir/install.sh -c"
1797 elif test -f "$ac_dir/shtool"; then
1799 ac_install_sh="$ac_aux_dir/shtool install -c"
1803 if test -z "$ac_aux_dir"; then
1804 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1805 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1806 { (exit 1); exit 1; }; }
1809 # These three variables are undocumented and unsupported,
1810 # and are intended to be withdrawn in a future Autoconf release.
1811 # They can cause serious problems if a builder's source tree is in a directory
1812 # whose full name contains unusual characters.
1813 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1814 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1815 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1818 # Find a good install program. We prefer a C program (faster),
1819 # so one script is as good as another. But avoid the broken or
1820 # incompatible versions:
1821 # SysV /etc/install, /usr/sbin/install
1822 # SunOS /usr/etc/install
1823 # IRIX /sbin/install
1825 # AmigaOS /C/install, which installs bootblocks on floppy discs
1826 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1827 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1828 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1829 # OS/2's system install, which has a completely different semantic
1830 # ./install, which can be erroneously created by make from ./install.sh.
1831 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1832 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1833 if test -z "$INSTALL"; then
1834 if test "${ac_cv_path_install+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 test -z "$as_dir" && as_dir=.
1842 # Account for people who put trailing slashes in PATH elements.
1844 ./ | .// | /cC/* | \
1845 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1846 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1849 # OSF1 and SCO ODT 3.0 have their own names for install.
1850 # Don't use installbsd from OSF since it installs stuff as root
1852 for ac_prog in ginstall scoinst install; do
1853 for ac_exec_ext in '' $ac_executable_extensions; do
1854 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1855 if test $ac_prog = install &&
1856 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1857 # AIX install. It has an incompatible calling convention.
1859 elif test $ac_prog = install &&
1860 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1861 # program-specific install script used by HP pwplus--don't use.
1864 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1877 if test "${ac_cv_path_install+set}" = set; then
1878 INSTALL=$ac_cv_path_install
1880 # As a last resort, use the slow shell script. Don't cache a
1881 # value for INSTALL within a source directory, because that will
1882 # break other packages using the cache if that directory is
1883 # removed, or if the value is a relative name.
1884 INSTALL=$ac_install_sh
1887 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1888 echo "${ECHO_T}$INSTALL" >&6; }
1890 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1891 # It thinks the first close brace ends the variable substitution.
1892 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1894 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1896 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1898 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1899 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1902 echo timestamp > conftest.file
1903 # Do `set' in a subshell so we don't clobber the current shell's
1904 # arguments. Must try -L first in case configure is actually a
1905 # symlink; some systems play weird games with the mod time of symlinks
1906 # (eg FreeBSD returns the mod time of the symlink's containing
1909 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1910 if test "$*" = "X"; then
1912 set X `ls -t $srcdir/configure conftest.file`
1915 if test "$*" != "X $srcdir/configure conftest.file" \
1916 && test "$*" != "X conftest.file $srcdir/configure"; then
1918 # If neither matched, then we have a broken ls. This can happen
1919 # if, for instance, CONFIG_SHELL is bash and it inherits a
1920 # broken ls alias from the environment. This has actually
1921 # happened. Such a system could not be considered "sane".
1922 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1923 alias in your environment" >&5
1924 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1925 alias in your environment" >&2;}
1926 { (exit 1); exit 1; }; }
1929 test "$2" = conftest.file
1935 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1936 Check your system clock" >&5
1937 echo "$as_me: error: newly created file is older than distributed files!
1938 Check your system clock" >&2;}
1939 { (exit 1); exit 1; }; }
1941 { echo "$as_me:$LINENO: result: yes" >&5
1942 echo "${ECHO_T}yes" >&6; }
1943 test "$program_prefix" != NONE &&
1944 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1945 # Use a double $ so make ignores it.
1946 test "$program_suffix" != NONE &&
1947 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1948 # Double any \ or $. echo might interpret backslashes.
1949 # By default was `s,x,x', remove it if useless.
1950 cat <<\_ACEOF >conftest.sed
1951 s/[\\$]/&&/g;s/;s,x,x,$//
1953 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1957 # expand $ac_aux_dir to an absolute path
1958 am_aux_dir=`cd $ac_aux_dir && pwd`
1960 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1961 # Use eval to expand $SHELL
1962 if eval "$MISSING --run true"; then
1963 am_missing_run="$MISSING --run "
1966 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1967 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1970 for ac_prog in gawk mawk nawk awk
1972 # Extract the first word of "$ac_prog", so it can be a program name with args.
1973 set dummy $ac_prog; ac_word=$2
1974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1976 if test "${ac_cv_prog_AWK+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 if test -n "$AWK"; then
1980 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1989 ac_cv_prog_AWK="$ac_prog"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 if test -n "$AWK"; then
2001 { echo "$as_me:$LINENO: result: $AWK" >&5
2002 echo "${ECHO_T}$AWK" >&6; }
2004 { echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6; }
2009 test -n "$AWK" && break
2012 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2013 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2014 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2015 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 cat >conftest.make <<\_ACEOF
2021 @echo '@@@%%%=$(MAKE)=@@@%%%'
2023 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2024 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2026 eval ac_cv_prog_make_${ac_make}_set=yes;;
2028 eval ac_cv_prog_make_${ac_make}_set=no;;
2032 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2033 { echo "$as_me:$LINENO: result: yes" >&5
2034 echo "${ECHO_T}yes" >&6; }
2037 { echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6; }
2039 SET_MAKE="MAKE=${MAKE-make}"
2042 rm -rf .tst 2>/dev/null
2043 mkdir .tst 2>/dev/null
2044 if test -d .tst; then
2049 rmdir .tst 2>/dev/null
2051 # test to see if srcdir already configured
2052 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2053 test -f $srcdir/config.status; then
2054 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2055 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2056 { (exit 1); exit 1; }; }
2059 # test whether we have cygpath
2060 if test -z "$CYGPATH_W"; then
2061 if (cygpath --version) >/dev/null 2>/dev/null; then
2062 CYGPATH_W='cygpath -w'
2069 # Define the identity of the package.
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE "$PACKAGE"
2079 cat >>confdefs.h <<_ACEOF
2080 #define VERSION "$VERSION"
2083 # Some tools Automake needs.
2085 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2088 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2091 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2094 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2097 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2100 AMTAR=${AMTAR-"${am_missing_run}tar"}
2102 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2104 # Installed binaries are usually stripped using `strip' when the user
2105 # run `make install-strip'. However `strip' might not be the right
2106 # tool to use in cross-compilation environments, therefore Automake
2107 # will honor the `STRIP' environment variable to overrule this program.
2108 if test "$cross_compiling" != no; then
2109 if test -n "$ac_tool_prefix"; then
2110 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2111 set dummy ${ac_tool_prefix}strip; ac_word=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_STRIP+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 if test -n "$STRIP"; then
2118 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 STRIP=$ac_cv_prog_STRIP
2138 if test -n "$STRIP"; then
2139 { echo "$as_me:$LINENO: result: $STRIP" >&5
2140 echo "${ECHO_T}$STRIP" >&6; }
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2148 if test -z "$ac_cv_prog_STRIP"; then
2150 # Extract the first word of "strip", so it can be a program name with args.
2151 set dummy strip; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 if test -n "$ac_ct_STRIP"; then
2158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167 ac_cv_prog_ac_ct_STRIP="strip"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2178 if test -n "$ac_ct_STRIP"; then
2179 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2180 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2186 if test "x$ac_ct_STRIP" = x; then
2189 case $cross_compiling:$ac_tool_warned in
2191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2192 whose name does not start with the host triplet. If you think this
2193 configuration is useful to you, please write to autoconf@gnu.org." >&5
2194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2195 whose name does not start with the host triplet. If you think this
2196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2197 ac_tool_warned=yes ;;
2202 STRIP="$ac_cv_prog_STRIP"
2206 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2208 # We need awk for the "check" target. The system "awk" is bad on
2213 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2214 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2215 # Check whether --enable-maintainer-mode was given.
2216 if test "${enable_maintainer_mode+set}" = set; then
2217 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2219 USE_MAINTAINER_MODE=no
2222 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2223 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2226 if test $USE_MAINTAINER_MODE = yes; then
2227 MAINTAINER_MODE_TRUE=
2228 MAINTAINER_MODE_FALSE='#'
2230 MAINTAINER_MODE_TRUE='#'
2231 MAINTAINER_MODE_FALSE=
2234 MAINT=$MAINTAINER_MODE_TRUE
2237 ac_config_headers="$ac_config_headers config.h"
2240 DEPDIR="${am__leading_dot}deps"
2242 ac_config_commands="$ac_config_commands depfiles"
2245 am_make=${MAKE-make}
2246 cat > confinc << 'END'
2251 # If we don't find an include directive, just comment out the code.
2252 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2253 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2257 # First try GNU make style include.
2258 echo "include confinc" > confmf
2259 # We grep out `Entering directory' and `Leaving directory'
2260 # messages which can occur if `w' ends up in MAKEFLAGS.
2261 # In particular we don't look at `^make:' because GNU make might
2262 # be invoked under some other name (usually "gmake"), in which
2263 # case it prints its new name instead of `make'.
2264 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2269 # Now try BSD make style include.
2270 if test "$am__include" = "#"; then
2271 echo '.include "confinc"' > confmf
2272 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2273 am__include=.include
2280 { echo "$as_me:$LINENO: result: $_am_result" >&5
2281 echo "${ECHO_T}$_am_result" >&6; }
2282 rm -f confinc confmf
2284 # Check whether --enable-dependency-tracking was given.
2285 if test "${enable_dependency_tracking+set}" = set; then
2286 enableval=$enable_dependency_tracking;
2289 if test "x$enable_dependency_tracking" != xno; then
2290 am_depcomp="$ac_aux_dir/depcomp"
2295 if test "x$enable_dependency_tracking" != xno; then
2306 ac_cpp='$CPP $CPPFLAGS'
2307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310 if test -n "$ac_tool_prefix"; then
2311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2315 if test "${ac_cv_prog_CC+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 if test -n "$CC"; then
2319 ac_cv_prog_CC="$CC" # Let the user override the test.
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 if test -n "$CC"; then
2340 { echo "$as_me:$LINENO: result: $CC" >&5
2341 echo "${ECHO_T}$CC" >&6; }
2343 { echo "$as_me:$LINENO: result: no" >&5
2344 echo "${ECHO_T}no" >&6; }
2349 if test -z "$ac_cv_prog_CC"; then
2351 # Extract the first word of "gcc", so it can be a program name with args.
2352 set dummy gcc; ac_word=$2
2353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 if test -n "$ac_ct_CC"; then
2359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2368 ac_cv_prog_ac_ct_CC="gcc"
2369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2379 if test -n "$ac_ct_CC"; then
2380 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2381 echo "${ECHO_T}$ac_ct_CC" >&6; }
2383 { echo "$as_me:$LINENO: result: no" >&5
2384 echo "${ECHO_T}no" >&6; }
2387 if test "x$ac_ct_CC" = x; then
2390 case $cross_compiling:$ac_tool_warned in
2392 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2393 whose name does not start with the host triplet. If you think this
2394 configuration is useful to you, please write to autoconf@gnu.org." >&5
2395 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2396 whose name does not start with the host triplet. If you think this
2397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2398 ac_tool_warned=yes ;;
2406 if test -z "$CC"; then
2407 if test -n "$ac_tool_prefix"; then
2408 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2409 set dummy ${ac_tool_prefix}cc; ac_word=$2
2410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2412 if test "${ac_cv_prog_CC+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 if test -n "$CC"; then
2416 ac_cv_prog_CC="$CC" # Let the user override the test.
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425 ac_cv_prog_CC="${ac_tool_prefix}cc"
2426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 if test -n "$CC"; then
2437 { echo "$as_me:$LINENO: result: $CC" >&5
2438 echo "${ECHO_T}$CC" >&6; }
2440 { echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6; }
2447 if test -z "$CC"; then
2448 # Extract the first word of "cc", so it can be a program name with args.
2449 set dummy cc; ac_word=$2
2450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2452 if test "${ac_cv_prog_CC+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 if test -n "$CC"; then
2456 ac_cv_prog_CC="$CC" # Let the user override the test.
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2467 ac_prog_rejected=yes
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 if test $ac_prog_rejected = yes; then
2479 # We found a bogon in the path, so make sure we never use it.
2480 set dummy $ac_cv_prog_CC
2482 if test $# != 0; then
2483 # We chose a different compiler from the bogus one.
2484 # However, it has the same basename, so the bogon will be chosen
2485 # first if we set CC to just the basename; use the full file name.
2487 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2493 if test -n "$CC"; then
2494 { echo "$as_me:$LINENO: result: $CC" >&5
2495 echo "${ECHO_T}$CC" >&6; }
2497 { echo "$as_me:$LINENO: result: no" >&5
2498 echo "${ECHO_T}no" >&6; }
2503 if test -z "$CC"; then
2504 if test -n "$ac_tool_prefix"; then
2505 for ac_prog in cl.exe
2507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2511 if test "${ac_cv_prog_CC+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 if test -n "$CC"; then
2515 ac_cv_prog_CC="$CC" # Let the user override the test.
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 if test -n "$CC"; then
2536 { echo "$as_me:$LINENO: result: $CC" >&5
2537 echo "${ECHO_T}$CC" >&6; }
2539 { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2544 test -n "$CC" && break
2547 if test -z "$CC"; then
2549 for ac_prog in cl.exe
2551 # Extract the first word of "$ac_prog", so it can be a program name with args.
2552 set dummy $ac_prog; ac_word=$2
2553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 if test -n "$ac_ct_CC"; then
2559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_ac_ct_CC="$ac_prog"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579 if test -n "$ac_ct_CC"; then
2580 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2581 echo "${ECHO_T}$ac_ct_CC" >&6; }
2583 { echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6; }
2588 test -n "$ac_ct_CC" && break
2591 if test "x$ac_ct_CC" = x; then
2594 case $cross_compiling:$ac_tool_warned in
2596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2597 whose name does not start with the host triplet. If you think this
2598 configuration is useful to you, please write to autoconf@gnu.org." >&5
2599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2600 whose name does not start with the host triplet. If you think this
2601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2602 ac_tool_warned=yes ;;
2611 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2612 See \`config.log' for more details." >&5
2613 echo "$as_me: error: no acceptable C compiler found in \$PATH
2614 See \`config.log' for more details." >&2;}
2615 { (exit 1); exit 1; }; }
2617 # Provide some information about the compiler.
2618 echo "$as_me:$LINENO: checking for C compiler version" >&5
2619 ac_compiler=`set X $ac_compile; echo $2`
2620 { (ac_try="$ac_compiler --version >&5"
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626 (eval "$ac_compiler --version >&5") 2>&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }
2630 { (ac_try="$ac_compiler -v >&5"
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2636 (eval "$ac_compiler -v >&5") 2>&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }
2640 { (ac_try="$ac_compiler -V >&5"
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_compiler -V >&5") 2>&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }
2651 cat >conftest.$ac_ext <<_ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2666 ac_clean_files_save=$ac_clean_files
2667 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2668 # Try to create an executable without -o first, disregard a.out.
2669 # It will help us diagnose broken compilers, and finding out an intuition
2671 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2672 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2673 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2675 # List of possible output files, starting from the most likely.
2676 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2677 # only as a last resort. b.out is created by i960 compilers.
2678 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2680 # The IRIX 6 linker writes into existing files which may not be
2681 # executable, retaining their permissions. Remove them first so a
2682 # subsequent execution test works.
2684 for ac_file in $ac_files
2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2688 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2693 if { (ac_try="$ac_link_default"
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699 (eval "$ac_link_default") 2>&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; then
2703 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2704 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2705 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2706 # so that the user can short-circuit this test for compilers unknown to
2708 for ac_file in $ac_files ''
2710 test -f "$ac_file" || continue
2712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2715 # We found the default executable, but exeext='' is most
2719 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2721 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2723 # We set ac_cv_exeext here because the later test for it is not
2724 # safe: cross compilers may not add the suffix if given an `-o'
2725 # argument, so we may need to know it at that point already.
2726 # Even if this section looks crufty: it has the advantage of
2733 test "$ac_cv_exeext" = no && ac_cv_exeext=
2739 { echo "$as_me:$LINENO: result: $ac_file" >&5
2740 echo "${ECHO_T}$ac_file" >&6; }
2741 if test -z "$ac_file"; then
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2745 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2746 See \`config.log' for more details." >&5
2747 echo "$as_me: error: C compiler cannot create executables
2748 See \`config.log' for more details." >&2;}
2749 { (exit 77); exit 77; }; }
2752 ac_exeext=$ac_cv_exeext
2754 # Check that the compiler produces executables we can run. If not, either
2755 # the compiler is broken, or we cross compile.
2756 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2757 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2758 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2759 # If not cross compiling, check that we can run a simple program.
2760 if test "$cross_compiling" != yes; then
2761 if { ac_try='./$ac_file'
2762 { (case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_try") 2>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2773 if test "$cross_compiling" = maybe; then
2776 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2777 If you meant to cross compile, use \`--host'.
2778 See \`config.log' for more details." >&5
2779 echo "$as_me: error: cannot run C compiled programs.
2780 If you meant to cross compile, use \`--host'.
2781 See \`config.log' for more details." >&2;}
2782 { (exit 1); exit 1; }; }
2786 { echo "$as_me:$LINENO: result: yes" >&5
2787 echo "${ECHO_T}yes" >&6; }
2789 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2790 ac_clean_files=$ac_clean_files_save
2791 # Check that the compiler produces executables we can run. If not, either
2792 # the compiler is broken, or we cross compile.
2793 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2794 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2795 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2796 echo "${ECHO_T}$cross_compiling" >&6; }
2798 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2799 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2800 if { (ac_try="$ac_link"
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806 (eval "$ac_link") 2>&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; then
2810 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2811 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2812 # work properly (i.e., refer to `conftest.exe'), while it won't with
2814 for ac_file in conftest.exe conftest conftest.*; do
2815 test -f "$ac_file" || continue
2817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2818 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2824 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2825 See \`config.log' for more details." >&5
2826 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2827 See \`config.log' for more details." >&2;}
2828 { (exit 1); exit 1; }; }
2831 rm -f conftest$ac_cv_exeext
2832 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2833 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2835 rm -f conftest.$ac_ext
2836 EXEEXT=$ac_cv_exeext
2838 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2839 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2840 if test "${ac_cv_objext+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 cat >conftest.$ac_ext <<_ACEOF
2846 cat confdefs.h >>conftest.$ac_ext
2847 cat >>conftest.$ac_ext <<_ACEOF
2848 /* end confdefs.h. */
2858 rm -f conftest.o conftest.obj
2859 if { (ac_try="$ac_compile"
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_compile") 2>&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; then
2869 for ac_file in conftest.o conftest.obj conftest.*; do
2870 test -f "$ac_file" || continue;
2872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2873 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2878 echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2881 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2882 See \`config.log' for more details." >&5
2883 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2884 See \`config.log' for more details." >&2;}
2885 { (exit 1); exit 1; }; }
2888 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2890 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2891 echo "${ECHO_T}$ac_cv_objext" >&6; }
2892 OBJEXT=$ac_cv_objext
2894 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2895 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2896 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 cat >conftest.$ac_ext <<_ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2917 rm -f conftest.$ac_objext
2918 if { (ac_try="$ac_compile"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compile") 2>conftest.er1
2926 grep -v '^ *+' conftest.er1 >conftest.err
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } && {
2931 test -z "$ac_c_werror_flag" ||
2932 test ! -s conftest.err
2933 } && test -s conftest.$ac_objext; then
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2943 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2946 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2947 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2948 GCC=`test $ac_compiler_gnu = yes && echo yes`
2949 ac_test_CFLAGS=${CFLAGS+set}
2950 ac_save_CFLAGS=$CFLAGS
2951 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2952 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_cc_g+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 ac_save_c_werror_flag=$ac_c_werror_flag
2957 ac_c_werror_flag=yes
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2975 rm -f conftest.$ac_objext
2976 if { (ac_try="$ac_compile"
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compile") 2>conftest.er1
2984 grep -v '^ *+' conftest.er1 >conftest.err
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } && {
2989 test -z "$ac_c_werror_flag" ||
2990 test ! -s conftest.err
2991 } && test -s conftest.$ac_objext; then
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2998 cat >conftest.$ac_ext <<_ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3013 rm -f conftest.$ac_objext
3014 if { (ac_try="$ac_compile"
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compile") 2>conftest.er1
3022 grep -v '^ *+' conftest.er1 >conftest.err
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } && {
3027 test -z "$ac_c_werror_flag" ||
3028 test ! -s conftest.err
3029 } && test -s conftest.$ac_objext; then
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 ac_c_werror_flag=$ac_save_c_werror_flag
3037 cat >conftest.$ac_ext <<_ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3052 rm -f conftest.$ac_objext
3053 if { (ac_try="$ac_compile"
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_compile") 2>conftest.er1
3061 grep -v '^ *+' conftest.er1 >conftest.err
3063 cat conftest.err >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } && {
3066 test -z "$ac_c_werror_flag" ||
3067 test ! -s conftest.err
3068 } && test -s conftest.$ac_objext; then
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 ac_c_werror_flag=$ac_save_c_werror_flag
3086 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3087 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3088 if test "$ac_test_CFLAGS" = set; then
3089 CFLAGS=$ac_save_CFLAGS
3090 elif test $ac_cv_prog_cc_g = yes; then
3091 if test "$GCC" = yes; then
3097 if test "$GCC" = yes; then
3103 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3104 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3105 if test "${ac_cv_prog_cc_c89+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 ac_cv_prog_cc_c89=no
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3118 #include <sys/types.h>
3119 #include <sys/stat.h>
3120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3121 struct buf { int x; };
3122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3123 static char *e (p, i)
3129 static char *f (char * (*g) (char **, int), char **p, ...)
3134 s = g (p, va_arg (v,int));
3139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3140 function prototypes and stuff, but not '\xHH' hex character constants.
3141 These don't provoke an error unfortunately, instead are silently treated
3142 as 'x'. The following induces an error, until -std is added to get
3143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3144 array size at least. It's necessary to write '\x00'==0 to get something
3145 that's true only with -std. */
3146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3149 inside strings and character constants. */
3151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3153 int test (int i, double x);
3154 struct s1 {int (*f) (int a);};
3155 struct s2 {int (*f) (double a);};
3156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3162 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3170 CC="$ac_save_CC $ac_arg"
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } && {
3185 test -z "$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
3188 ac_cv_prog_cc_c89=$ac_arg
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f core conftest.err conftest.$ac_objext
3197 test "x$ac_cv_prog_cc_c89" != "xno" && break
3199 rm -f conftest.$ac_ext
3204 case "x$ac_cv_prog_cc_c89" in
3206 { echo "$as_me:$LINENO: result: none needed" >&5
3207 echo "${ECHO_T}none needed" >&6; } ;;
3209 { echo "$as_me:$LINENO: result: unsupported" >&5
3210 echo "${ECHO_T}unsupported" >&6; } ;;
3212 CC="$CC $ac_cv_prog_cc_c89"
3213 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3214 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3219 ac_cpp='$CPP $CPPFLAGS'
3220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224 depcc="$CC" am_compiler_list=
3226 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3227 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3228 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3232 # We make a subdir and do the tests there. Otherwise we can end up
3233 # making bogus files that we don't know about and never remove. For
3234 # instance it was reported that on HP-UX the gcc test will end up
3235 # making a dummy file named `D' -- because `-MD' means `put the output
3238 # Copy depcomp to subdir because otherwise we won't find it if we're
3239 # using a relative directory.
3240 cp "$am_depcomp" conftest.dir
3242 # We will build objects and dependencies in a subdirectory because
3243 # it helps to detect inapplicable dependency modes. For instance
3244 # both Tru64's cc and ICC support -MD to output dependencies as a
3245 # side effect of compilation, but ICC will put the dependencies in
3246 # the current directory while Tru64 will put them in the object
3250 am_cv_CC_dependencies_compiler_type=none
3251 if test "$am_compiler_list" = ""; then
3252 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3254 for depmode in $am_compiler_list; do
3255 # Setup a source with many dependencies, because some compilers
3256 # like to wrap large dependency lists on column 80 (with \), and
3257 # we should not choose a depcomp mode which is confused by this.
3259 # We need to recreate these files for each test, as the compiler may
3260 # overwrite some of them when testing with obscure command lines.
3261 # This happens at least with the AIX C compiler.
3263 for i in 1 2 3 4 5 6; do
3264 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3267 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3271 # after this tag, mechanisms are not by side-effect, so they'll
3272 # only be used when explicitly requested
3273 if test "x$enable_dependency_tracking" = xyes; then
3281 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3282 # mode. It turns out that the SunPro C++ compiler does not properly
3283 # handle `-M -o', and we need to detect this.
3284 if depmode=$depmode \
3285 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3286 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3287 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3288 >/dev/null 2>conftest.err &&
3289 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3290 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3291 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3292 # icc doesn't choke on unknown options, it will just issue warnings
3293 # (even with -Werror). So we grep stderr for any message
3294 # that says an option was ignored.
3295 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3296 am_cv_CC_dependencies_compiler_type=$depmode
3305 am_cv_CC_dependencies_compiler_type=none
3309 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3310 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3311 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3316 test "x$enable_dependency_tracking" != xno \
3317 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3319 am__fastdepCC_FALSE='#'
3321 am__fastdepCC_TRUE='#'
3322 am__fastdepCC_FALSE=
3327 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3328 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3329 if test "${ac_cv_search_strerror+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 ac_func_search_save_LIBS=$LIBS
3333 cat >conftest.$ac_ext <<_ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3340 /* Override any GCC internal prototype to avoid an error.
3341 Use char because int might match the return type of a GCC
3342 builtin and then its argument prototype would still apply. */
3355 for ac_lib in '' cposix; do
3356 if test -z "$ac_lib"; then
3357 ac_res="none required"
3360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3362 rm -f conftest.$ac_objext conftest$ac_exeext
3363 if { (ac_try="$ac_link"
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_link") 2>conftest.er1
3371 grep -v '^ *+' conftest.er1 >conftest.err
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } && {
3376 test -z "$ac_c_werror_flag" ||
3377 test ! -s conftest.err
3378 } && test -s conftest$ac_exeext &&
3379 $as_test_x conftest$ac_exeext; then
3380 ac_cv_search_strerror=$ac_res
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3390 if test "${ac_cv_search_strerror+set}" = set; then
3394 if test "${ac_cv_search_strerror+set}" = set; then
3397 ac_cv_search_strerror=no
3400 LIBS=$ac_func_search_save_LIBS
3402 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3403 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3404 ac_res=$ac_cv_search_strerror
3405 if test "$ac_res" != no; then
3406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415 if test -n "$ac_tool_prefix"; then
3416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3417 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3420 if test "${ac_cv_prog_CC+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 if test -n "$CC"; then
3424 ac_cv_prog_CC="$CC" # Let the user override the test.
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 if test -n "$CC"; then
3445 { echo "$as_me:$LINENO: result: $CC" >&5
3446 echo "${ECHO_T}$CC" >&6; }
3448 { echo "$as_me:$LINENO: result: no" >&5
3449 echo "${ECHO_T}no" >&6; }
3454 if test -z "$ac_cv_prog_CC"; then
3456 # Extract the first word of "gcc", so it can be a program name with args.
3457 set dummy gcc; ac_word=$2
3458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 if test -n "$ac_ct_CC"; then
3464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_ac_ct_CC="gcc"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3484 if test -n "$ac_ct_CC"; then
3485 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3486 echo "${ECHO_T}$ac_ct_CC" >&6; }
3488 { echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6; }
3492 if test "x$ac_ct_CC" = x; then
3495 case $cross_compiling:$ac_tool_warned in
3497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3498 whose name does not start with the host triplet. If you think this
3499 configuration is useful to you, please write to autoconf@gnu.org." >&5
3500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3501 whose name does not start with the host triplet. If you think this
3502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3503 ac_tool_warned=yes ;;
3511 if test -z "$CC"; then
3512 if test -n "$ac_tool_prefix"; then
3513 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3514 set dummy ${ac_tool_prefix}cc; ac_word=$2
3515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3517 if test "${ac_cv_prog_CC+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3530 ac_cv_prog_CC="${ac_tool_prefix}cc"
3531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 if test -n "$CC"; then
3542 { echo "$as_me:$LINENO: result: $CC" >&5
3543 echo "${ECHO_T}$CC" >&6; }
3545 { echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6; }
3552 if test -z "$CC"; then
3553 # Extract the first word of "cc", so it can be a program name with args.
3554 set dummy cc; ac_word=$2
3555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3557 if test "${ac_cv_prog_CC+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3572 ac_prog_rejected=yes
3576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 if test $ac_prog_rejected = yes; then
3584 # We found a bogon in the path, so make sure we never use it.
3585 set dummy $ac_cv_prog_CC
3587 if test $# != 0; then
3588 # We chose a different compiler from the bogus one.
3589 # However, it has the same basename, so the bogon will be chosen
3590 # first if we set CC to just the basename; use the full file name.
3592 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3598 if test -n "$CC"; then
3599 { echo "$as_me:$LINENO: result: $CC" >&5
3600 echo "${ECHO_T}$CC" >&6; }
3602 { echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6; }
3608 if test -z "$CC"; then
3609 if test -n "$ac_tool_prefix"; then
3610 for ac_prog in cl.exe
3612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3616 if test "${ac_cv_prog_CC+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 if test -n "$CC"; then
3620 ac_cv_prog_CC="$CC" # Let the user override the test.
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 if test -n "$CC"; then
3641 { echo "$as_me:$LINENO: result: $CC" >&5
3642 echo "${ECHO_T}$CC" >&6; }
3644 { echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6; }
3649 test -n "$CC" && break
3652 if test -z "$CC"; then
3654 for ac_prog in cl.exe
3656 # Extract the first word of "$ac_prog", so it can be a program name with args.
3657 set dummy $ac_prog; ac_word=$2
3658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 if test -n "$ac_ct_CC"; then
3664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 ac_cv_prog_ac_ct_CC="$ac_prog"
3674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684 if test -n "$ac_ct_CC"; then
3685 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3686 echo "${ECHO_T}$ac_ct_CC" >&6; }
3688 { echo "$as_me:$LINENO: result: no" >&5
3689 echo "${ECHO_T}no" >&6; }
3693 test -n "$ac_ct_CC" && break
3696 if test "x$ac_ct_CC" = x; then
3699 case $cross_compiling:$ac_tool_warned in
3701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3702 whose name does not start with the host triplet. If you think this
3703 configuration is useful to you, please write to autoconf@gnu.org." >&5
3704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3705 whose name does not start with the host triplet. If you think this
3706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3707 ac_tool_warned=yes ;;
3716 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3717 See \`config.log' for more details." >&5
3718 echo "$as_me: error: no acceptable C compiler found in \$PATH
3719 See \`config.log' for more details." >&2;}
3720 { (exit 1); exit 1; }; }
3722 # Provide some information about the compiler.
3723 echo "$as_me:$LINENO: checking for C compiler version" >&5
3724 ac_compiler=`set X $ac_compile; echo $2`
3725 { (ac_try="$ac_compiler --version >&5"
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_compiler --version >&5") 2>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }
3735 { (ac_try="$ac_compiler -v >&5"
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3741 (eval "$ac_compiler -v >&5") 2>&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }
3745 { (ac_try="$ac_compiler -V >&5"
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_compiler -V >&5") 2>&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }
3756 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3757 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3758 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 cat >conftest.$ac_ext <<_ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3779 rm -f conftest.$ac_objext
3780 if { (ac_try="$ac_compile"
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_compile") 2>conftest.er1
3788 grep -v '^ *+' conftest.er1 >conftest.err
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } && {
3793 test -z "$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 } && test -s conftest.$ac_objext; then
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3808 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3809 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3810 GCC=`test $ac_compiler_gnu = yes && echo yes`
3811 ac_test_CFLAGS=${CFLAGS+set}
3812 ac_save_CFLAGS=$CFLAGS
3813 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3814 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3815 if test "${ac_cv_prog_cc_g+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 ac_save_c_werror_flag=$ac_c_werror_flag
3819 ac_c_werror_flag=yes
3822 cat >conftest.$ac_ext <<_ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_compile") 2>conftest.er1
3846 grep -v '^ *+' conftest.er1 >conftest.err
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } && {
3851 test -z "$ac_c_werror_flag" ||
3852 test ! -s conftest.err
3853 } && test -s conftest.$ac_objext; then
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3860 cat >conftest.$ac_ext <<_ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3875 rm -f conftest.$ac_objext
3876 if { (ac_try="$ac_compile"
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_compile") 2>conftest.er1
3884 grep -v '^ *+' conftest.er1 >conftest.err
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } && {
3889 test -z "$ac_c_werror_flag" ||
3890 test ! -s conftest.err
3891 } && test -s conftest.$ac_objext; then
3894 echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3897 ac_c_werror_flag=$ac_save_c_werror_flag
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3914 rm -f conftest.$ac_objext
3915 if { (ac_try="$ac_compile"
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_compile") 2>conftest.er1
3923 grep -v '^ *+' conftest.er1 >conftest.err
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } && {
3928 test -z "$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 } && test -s conftest.$ac_objext; then
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 ac_c_werror_flag=$ac_save_c_werror_flag
3948 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3949 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3950 if test "$ac_test_CFLAGS" = set; then
3951 CFLAGS=$ac_save_CFLAGS
3952 elif test $ac_cv_prog_cc_g = yes; then
3953 if test "$GCC" = yes; then
3959 if test "$GCC" = yes; then
3965 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3966 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3967 if test "${ac_cv_prog_cc_c89+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_cv_prog_cc_c89=no
3972 cat >conftest.$ac_ext <<_ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3980 #include <sys/types.h>
3981 #include <sys/stat.h>
3982 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3983 struct buf { int x; };
3984 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3985 static char *e (p, i)
3991 static char *f (char * (*g) (char **, int), char **p, ...)
3996 s = g (p, va_arg (v,int));
4001 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4002 function prototypes and stuff, but not '\xHH' hex character constants.
4003 These don't provoke an error unfortunately, instead are silently treated
4004 as 'x'. The following induces an error, until -std is added to get
4005 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4006 array size at least. It's necessary to write '\x00'==0 to get something
4007 that's true only with -std. */
4008 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4010 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4011 inside strings and character constants. */
4013 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4015 int test (int i, double x);
4016 struct s1 {int (*f) (int a);};
4017 struct s2 {int (*f) (double a);};
4018 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4024 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4029 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4030 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4032 CC="$ac_save_CC $ac_arg"
4033 rm -f conftest.$ac_objext
4034 if { (ac_try="$ac_compile"
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_compile") 2>conftest.er1
4042 grep -v '^ *+' conftest.er1 >conftest.err
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } && {
4047 test -z "$ac_c_werror_flag" ||
4048 test ! -s conftest.err
4049 } && test -s conftest.$ac_objext; then
4050 ac_cv_prog_cc_c89=$ac_arg
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4058 rm -f core conftest.err conftest.$ac_objext
4059 test "x$ac_cv_prog_cc_c89" != "xno" && break
4061 rm -f conftest.$ac_ext
4066 case "x$ac_cv_prog_cc_c89" in
4068 { echo "$as_me:$LINENO: result: none needed" >&5
4069 echo "${ECHO_T}none needed" >&6; } ;;
4071 { echo "$as_me:$LINENO: result: unsupported" >&5
4072 echo "${ECHO_T}unsupported" >&6; } ;;
4074 CC="$CC $ac_cv_prog_cc_c89"
4075 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4076 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 depcc="$CC" am_compiler_list=
4088 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4089 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4090 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4094 # We make a subdir and do the tests there. Otherwise we can end up
4095 # making bogus files that we don't know about and never remove. For
4096 # instance it was reported that on HP-UX the gcc test will end up
4097 # making a dummy file named `D' -- because `-MD' means `put the output
4100 # Copy depcomp to subdir because otherwise we won't find it if we're
4101 # using a relative directory.
4102 cp "$am_depcomp" conftest.dir
4104 # We will build objects and dependencies in a subdirectory because
4105 # it helps to detect inapplicable dependency modes. For instance
4106 # both Tru64's cc and ICC support -MD to output dependencies as a
4107 # side effect of compilation, but ICC will put the dependencies in
4108 # the current directory while Tru64 will put them in the object
4112 am_cv_CC_dependencies_compiler_type=none
4113 if test "$am_compiler_list" = ""; then
4114 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4116 for depmode in $am_compiler_list; do
4117 # Setup a source with many dependencies, because some compilers
4118 # like to wrap large dependency lists on column 80 (with \), and
4119 # we should not choose a depcomp mode which is confused by this.
4121 # We need to recreate these files for each test, as the compiler may
4122 # overwrite some of them when testing with obscure command lines.
4123 # This happens at least with the AIX C compiler.
4125 for i in 1 2 3 4 5 6; do
4126 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4133 # after this tag, mechanisms are not by side-effect, so they'll
4134 # only be used when explicitly requested
4135 if test "x$enable_dependency_tracking" = xyes; then
4143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4144 # mode. It turns out that the SunPro C++ compiler does not properly
4145 # handle `-M -o', and we need to detect this.
4146 if depmode=$depmode \
4147 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4149 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4150 >/dev/null 2>conftest.err &&
4151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4152 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4154 # icc doesn't choke on unknown options, it will just issue warnings
4155 # (even with -Werror). So we grep stderr for any message
4156 # that says an option was ignored.
4157 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4158 am_cv_CC_dependencies_compiler_type=$depmode
4167 am_cv_CC_dependencies_compiler_type=none
4171 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4172 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4173 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4178 test "x$enable_dependency_tracking" != xno \
4179 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4181 am__fastdepCC_FALSE='#'
4183 am__fastdepCC_TRUE='#'
4184 am__fastdepCC_FALSE=
4191 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4192 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4193 if test "${am_cv_prog_cc_stdc+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 am_cv_prog_cc_stdc=no
4198 # Don't try gcc -ansi; that turns off useful extensions and
4199 # breaks some systems' header files.
4200 # AIX -qlanglvl=ansi
4201 # Ultrix and OSF/1 -std1
4202 # HP-UX 10.20 and later -Ae
4203 # HP-UX older versions -Aa -D_HPUX_SOURCE
4204 # SVR4 -Xc -D__EXTENSIONS__
4205 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4207 CC="$ac_save_CC $ac_arg"
4208 cat >conftest.$ac_ext <<_ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4216 #include <sys/types.h>
4217 #include <sys/stat.h>
4218 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4219 struct buf { int x; };
4220 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4221 static char *e (p, i)
4227 static char *f (char * (*g) (char **, int), char **p, ...)
4232 s = g (p, va_arg (v,int));
4236 int test (int i, double x);
4237 struct s1 {int (*f) (int a);};
4238 struct s2 {int (*f) (double a);};
4239 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4247 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4253 rm -f conftest.$ac_objext
4254 if { (ac_try="$ac_compile"
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260 (eval "$ac_compile") 2>conftest.er1
4262 grep -v '^ *+' conftest.er1 >conftest.err
4264 cat conftest.err >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } && {
4267 test -z "$ac_c_werror_flag" ||
4268 test ! -s conftest.err
4269 } && test -s conftest.$ac_objext; then
4270 am_cv_prog_cc_stdc="$ac_arg"; break
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 if test -z "$am_cv_prog_cc_stdc"; then
4285 { echo "$as_me:$LINENO: result: none needed" >&5
4286 echo "${ECHO_T}none needed" >&6; }
4288 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4289 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
4291 case "x$am_cv_prog_cc_stdc" in
4293 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4302 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4303 # On Suns, sometimes $CPP names a directory.
4304 if test -n "$CPP" && test -d "$CPP"; then
4307 if test -z "$CPP"; then
4308 if test "${ac_cv_prog_CPP+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 # Double quotes because CPP needs to be expanded
4312 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4315 for ac_c_preproc_warn_flag in '' yes
4317 # Use a header file that comes with gcc, so configuring glibc
4318 # with a fresh cross-compiler works.
4319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320 # <limits.h> exists even on freestanding compilers.
4321 # On the NeXT, cc -E runs the code through the compiler's parser,
4322 # not just through cpp. "Syntax error" is here to catch this case.
4323 cat >conftest.$ac_ext <<_ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4330 # include <limits.h>
4332 # include <assert.h>
4336 if { (ac_try="$ac_cpp conftest.$ac_ext"
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4344 grep -v '^ *+' conftest.er1 >conftest.err
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } >/dev/null && {
4349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4350 test ! -s conftest.err
4354 echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4357 # Broken: fails on valid input.
4361 rm -f conftest.err conftest.$ac_ext
4363 # OK, works on sane cases. Now check whether nonexistent headers
4364 # can be detected and how.
4365 cat >conftest.$ac_ext <<_ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #include <ac_nonexistent.h>
4373 if { (ac_try="$ac_cpp conftest.$ac_ext"
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4381 grep -v '^ *+' conftest.er1 >conftest.err
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } >/dev/null && {
4386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4387 test ! -s conftest.err
4389 # Broken: success on invalid input.
4392 echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4395 # Passes both tests.
4400 rm -f conftest.err conftest.$ac_ext
4403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404 rm -f conftest.err conftest.$ac_ext
4405 if $ac_preproc_ok; then
4417 { echo "$as_me:$LINENO: result: $CPP" >&5
4418 echo "${ECHO_T}$CPP" >&6; }
4420 for ac_c_preproc_warn_flag in '' yes
4422 # Use a header file that comes with gcc, so configuring glibc
4423 # with a fresh cross-compiler works.
4424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425 # <limits.h> exists even on freestanding compilers.
4426 # On the NeXT, cc -E runs the code through the compiler's parser,
4427 # not just through cpp. "Syntax error" is here to catch this case.
4428 cat >conftest.$ac_ext <<_ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4435 # include <limits.h>
4437 # include <assert.h>
4441 if { (ac_try="$ac_cpp conftest.$ac_ext"
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4449 grep -v '^ *+' conftest.er1 >conftest.err
4451 cat conftest.err >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } >/dev/null && {
4454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4455 test ! -s conftest.err
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4462 # Broken: fails on valid input.
4466 rm -f conftest.err conftest.$ac_ext
4468 # OK, works on sane cases. Now check whether nonexistent headers
4469 # can be detected and how.
4470 cat >conftest.$ac_ext <<_ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 #include <ac_nonexistent.h>
4478 if { (ac_try="$ac_cpp conftest.$ac_ext"
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4486 grep -v '^ *+' conftest.er1 >conftest.err
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } >/dev/null && {
4491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4492 test ! -s conftest.err
4494 # Broken: success on invalid input.
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 # Passes both tests.
4505 rm -f conftest.err conftest.$ac_ext
4508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4509 rm -f conftest.err conftest.$ac_ext
4510 if $ac_preproc_ok; then
4513 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4514 See \`config.log' for more details." >&5
4515 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4516 See \`config.log' for more details." >&2;}
4517 { (exit 1); exit 1; }; }
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4528 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4529 if test "${ac_cv_path_GREP+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 # Extract the first word of "grep ggrep" to use in msg output
4533 if test -z "$GREP"; then
4534 set dummy grep ggrep; ac_prog_name=$2
4535 if test "${ac_cv_path_GREP+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 ac_path_GREP_found=false
4539 # Loop through the user's path and test for each of PROGNAME-LIST
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4544 test -z "$as_dir" && as_dir=.
4545 for ac_prog in grep ggrep; do
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4548 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4549 # Check for GNU ac_path_GREP and select it if it is found.
4550 # Check for GNU $ac_path_GREP
4551 case `"$ac_path_GREP" --version 2>&1` in
4553 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4556 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4559 cat "conftest.in" "conftest.in" >"conftest.tmp"
4560 mv "conftest.tmp" "conftest.in"
4561 cp "conftest.in" "conftest.nl"
4562 echo 'GREP' >> "conftest.nl"
4563 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4564 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4565 ac_count=`expr $ac_count + 1`
4566 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4567 # Best one so far, save it but keep looking for a better one
4568 ac_cv_path_GREP="$ac_path_GREP"
4569 ac_path_GREP_max=$ac_count
4571 # 10*(2^10) chars as input seems more than enough
4572 test $ac_count -gt 10 && break
4574 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4578 $ac_path_GREP_found && break 3
4588 GREP="$ac_cv_path_GREP"
4589 if test -z "$GREP"; then
4590 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4591 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4592 { (exit 1); exit 1; }; }
4596 ac_cv_path_GREP=$GREP
4601 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4602 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4603 GREP="$ac_cv_path_GREP"
4606 { echo "$as_me:$LINENO: checking for egrep" >&5
4607 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4608 if test "${ac_cv_path_EGREP+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4612 then ac_cv_path_EGREP="$GREP -E"
4614 # Extract the first word of "egrep" to use in msg output
4615 if test -z "$EGREP"; then
4616 set dummy egrep; ac_prog_name=$2
4617 if test "${ac_cv_path_EGREP+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 ac_path_EGREP_found=false
4621 # Loop through the user's path and test for each of PROGNAME-LIST
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4626 test -z "$as_dir" && as_dir=.
4627 for ac_prog in egrep; do
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4630 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4631 # Check for GNU ac_path_EGREP and select it if it is found.
4632 # Check for GNU $ac_path_EGREP
4633 case `"$ac_path_EGREP" --version 2>&1` in
4635 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4638 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4641 cat "conftest.in" "conftest.in" >"conftest.tmp"
4642 mv "conftest.tmp" "conftest.in"
4643 cp "conftest.in" "conftest.nl"
4644 echo 'EGREP' >> "conftest.nl"
4645 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4646 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4647 ac_count=`expr $ac_count + 1`
4648 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4649 # Best one so far, save it but keep looking for a better one
4650 ac_cv_path_EGREP="$ac_path_EGREP"
4651 ac_path_EGREP_max=$ac_count
4653 # 10*(2^10) chars as input seems more than enough
4654 test $ac_count -gt 10 && break
4656 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4660 $ac_path_EGREP_found && break 3
4670 EGREP="$ac_cv_path_EGREP"
4671 if test -z "$EGREP"; then
4672 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4673 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4674 { (exit 1); exit 1; }; }
4678 ac_cv_path_EGREP=$EGREP
4684 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4685 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4686 EGREP="$ac_cv_path_EGREP"
4689 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4690 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4691 if test "${ac_cv_header_stdc+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 cat >conftest.$ac_ext <<_ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4713 rm -f conftest.$ac_objext
4714 if { (ac_try="$ac_compile"
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_compile") 2>conftest.er1
4722 grep -v '^ *+' conftest.er1 >conftest.err
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } && {
4727 test -z "$ac_c_werror_flag" ||
4728 test ! -s conftest.err
4729 } && test -s conftest.$ac_objext; then
4730 ac_cv_header_stdc=yes
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4735 ac_cv_header_stdc=no
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 if test $ac_cv_header_stdc = yes; then
4741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4742 cat >conftest.$ac_ext <<_ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4752 $EGREP "memchr" >/dev/null 2>&1; then
4755 ac_cv_header_stdc=no
4761 if test $ac_cv_header_stdc = yes; then
4762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4763 cat >conftest.$ac_ext <<_ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773 $EGREP "free" >/dev/null 2>&1; then
4776 ac_cv_header_stdc=no
4782 if test $ac_cv_header_stdc = yes; then
4783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4784 if test "$cross_compiling" = yes; then
4787 cat >conftest.$ac_ext <<_ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4795 #if ((' ' & 0x0FF) == 0x020)
4796 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4797 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4799 # define ISLOWER(c) \
4800 (('a' <= (c) && (c) <= 'i') \
4801 || ('j' <= (c) && (c) <= 'r') \
4802 || ('s' <= (c) && (c) <= 'z'))
4803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4811 for (i = 0; i < 256; i++)
4812 if (XOR (islower (i), ISLOWER (i))
4813 || toupper (i) != TOUPPER (i))
4818 rm -f conftest$ac_exeext
4819 if { (ac_try="$ac_link"
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_link") 2>&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4829 { (case "(($ac_try" in
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_try") 2>&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4840 echo "$as_me: program exited with status $ac_status" >&5
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4845 ac_cv_header_stdc=no
4847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4853 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4854 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4855 if test $ac_cv_header_stdc = yes; then
4857 cat >>confdefs.h <<\_ACEOF
4858 #define STDC_HEADERS 1
4863 # Make sure we can run config.sub.
4864 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4865 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4866 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4867 { (exit 1); exit 1; }; }
4869 { echo "$as_me:$LINENO: checking build system type" >&5
4870 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4871 if test "${ac_cv_build+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 ac_build_alias=$build_alias
4875 test "x$ac_build_alias" = x &&
4876 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4877 test "x$ac_build_alias" = x &&
4878 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4879 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4880 { (exit 1); exit 1; }; }
4881 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4882 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4883 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4884 { (exit 1); exit 1; }; }
4887 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4888 echo "${ECHO_T}$ac_cv_build" >&6; }
4889 case $ac_cv_build in
4891 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4892 echo "$as_me: error: invalid value of canonical build" >&2;}
4893 { (exit 1); exit 1; }; };;
4896 ac_save_IFS=$IFS; IFS='-'
4902 # Remember, the first character of IFS is used to create $*,
4903 # except with old shells:
4906 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4909 { echo "$as_me:$LINENO: checking host system type" >&5
4910 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4911 if test "${ac_cv_host+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 if test "x$host_alias" = x; then
4915 ac_cv_host=$ac_cv_build
4917 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4918 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4919 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4920 { (exit 1); exit 1; }; }
4924 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4925 echo "${ECHO_T}$ac_cv_host" >&6; }
4928 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4929 echo "$as_me: error: invalid value of canonical host" >&2;}
4930 { (exit 1); exit 1; }; };;
4933 ac_save_IFS=$IFS; IFS='-'
4939 # Remember, the first character of IFS is used to create $*,
4940 # except with old shells:
4943 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4947 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4957 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4958 inttypes.h stdint.h unistd.h
4960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 cat >conftest.$ac_ext <<_ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 $ac_includes_default
4974 #include <$ac_header>
4976 rm -f conftest.$ac_objext
4977 if { (ac_try="$ac_compile"
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983 (eval "$ac_compile") 2>conftest.er1
4985 grep -v '^ *+' conftest.er1 >conftest.err
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } && {
4990 test -z "$ac_c_werror_flag" ||
4991 test ! -s conftest.err
4992 } && test -s conftest.$ac_objext; then
4993 eval "$as_ac_Header=yes"
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4998 eval "$as_ac_Header=no"
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 ac_res=`eval echo '${'$as_ac_Header'}'`
5004 { echo "$as_me:$LINENO: result: $ac_res" >&5
5005 echo "${ECHO_T}$ac_res" >&6; }
5006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5007 cat >>confdefs.h <<_ACEOF
5008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5016 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5017 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
5018 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
5019 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
5023 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
5025 # Is the header compilable?
5026 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
5027 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
5028 cat >conftest.$ac_ext <<_ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 $ac_includes_default
5035 #include <Carbon/Carbon.h>
5037 rm -f conftest.$ac_objext
5038 if { (ac_try="$ac_compile"
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_compile") 2>conftest.er1
5046 grep -v '^ *+' conftest.er1 >conftest.err
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && {
5051 test -z "$ac_c_werror_flag" ||
5052 test ! -s conftest.err
5053 } && test -s conftest.$ac_objext; then
5054 ac_header_compiler=yes
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 ac_header_compiler=no
5062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5064 echo "${ECHO_T}$ac_header_compiler" >&6; }
5066 # Is the header present?
5067 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
5068 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
5069 cat >conftest.$ac_ext <<_ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 #include <Carbon/Carbon.h>
5077 if { (ac_try="$ac_cpp conftest.$ac_ext"
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5085 grep -v '^ *+' conftest.er1 >conftest.err
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } >/dev/null && {
5090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5091 test ! -s conftest.err
5093 ac_header_preproc=yes
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5098 ac_header_preproc=no
5101 rm -f conftest.err conftest.$ac_ext
5102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5103 echo "${ECHO_T}$ac_header_preproc" >&6; }
5105 # So? What about this header?
5106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5108 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
5109 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5110 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
5111 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
5112 ac_header_preproc=yes
5115 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
5116 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
5117 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
5118 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
5119 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
5120 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
5122 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
5124 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
5125 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
5126 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
5130 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
5131 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
5132 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
5137 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
5138 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
5141 if test $ac_cv_header_Carbon_Carbon_h = yes; then
5145 LIBS="$LIBS -framework OpenGL -framework AGL -framework Carbon"
5147 cat >>confdefs.h <<\_ACEOF
5148 #define HAVE_CARBON 1
5152 cat >>confdefs.h <<\_ACEOF
5153 #define APPLE_BUILD 1
5163 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5164 if test -n "$ac_tool_prefix"; then
5165 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5166 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5196 if test -n "$PKG_CONFIG"; then
5197 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5198 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5200 { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5206 if test -z "$ac_cv_path_PKG_CONFIG"; then
5207 ac_pt_PKG_CONFIG=$PKG_CONFIG
5208 # Extract the first word of "pkg-config", so it can be a program name with args.
5209 set dummy pkg-config; ac_word=$2
5210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5212 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 case $ac_pt_PKG_CONFIG in
5217 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5239 if test -n "$ac_pt_PKG_CONFIG"; then
5240 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5241 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5243 { echo "$as_me:$LINENO: result: no" >&5
5244 echo "${ECHO_T}no" >&6; }
5247 if test "x$ac_pt_PKG_CONFIG" = x; then
5250 case $cross_compiling:$ac_tool_warned in
5252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5253 whose name does not start with the host triplet. If you think this
5254 configuration is useful to you, please write to autoconf@gnu.org." >&5
5255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5256 whose name does not start with the host triplet. If you think this
5257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5258 ac_tool_warned=yes ;;
5260 PKG_CONFIG=$ac_pt_PKG_CONFIG
5263 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5267 if test -n "$PKG_CONFIG"; then
5268 _pkg_min_version=0.9.0
5269 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5270 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5271 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5272 { echo "$as_me:$LINENO: result: yes" >&5
5273 echo "${ECHO_T}yes" >&6; }
5275 { echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6; }
5283 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
5284 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
5286 if test -n "$PKG_CONFIG"; then
5287 if test -n "$LIBPNG_CFLAGS"; then
5288 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
5290 if test -n "$PKG_CONFIG" && \
5291 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
5292 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; then
5296 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
5304 if test -n "$PKG_CONFIG"; then
5305 if test -n "$LIBPNG_LIBS"; then
5306 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
5308 if test -n "$PKG_CONFIG" && \
5309 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
5310 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; then
5314 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
5325 if test $pkg_failed = yes; then
5327 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5328 _pkg_short_errors_supported=yes
5330 _pkg_short_errors_supported=no
5332 if test $_pkg_short_errors_supported = yes; then
5333 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
5335 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
5337 # Put the nasty error message in config.log where it belongs
5338 echo "$LIBPNG_PKG_ERRORS" >&5
5340 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
5344 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5345 installed software in a non-standard prefix.
5347 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5348 and LIBPNG_LIBS to avoid the need to call pkg-config.
5349 See the pkg-config man page for more details.
5351 echo "$as_me: error: Package requirements (libpng ) were not met:
5355 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5356 installed software in a non-standard prefix.
5358 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5359 and LIBPNG_LIBS to avoid the need to call pkg-config.
5360 See the pkg-config man page for more details.
5362 { (exit 1); exit 1; }; }
5363 elif test $pkg_failed = untried; then
5364 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5365 is in your PATH or set the PKG_CONFIG environment variable to the full
5368 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5369 and LIBPNG_LIBS to avoid the need to call pkg-config.
5370 See the pkg-config man page for more details.
5372 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5373 See \`config.log' for more details." >&5
5374 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5375 is in your PATH or set the PKG_CONFIG environment variable to the full
5378 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5379 and LIBPNG_LIBS to avoid the need to call pkg-config.
5380 See the pkg-config man page for more details.
5382 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5383 See \`config.log' for more details." >&2;}
5384 { (exit 1); exit 1; }; }
5386 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
5387 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
5388 { echo "$as_me:$LINENO: result: yes" >&5
5389 echo "${ECHO_T}yes" >&6; }
5394 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
5395 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
5396 if test "${ac_cv_lib_z_uncompress+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 ac_check_lib_save_LIBS=$LIBS
5401 cat >conftest.$ac_ext <<_ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5408 /* Override any GCC internal prototype to avoid an error.
5409 Use char because int might match the return type of a GCC
5410 builtin and then its argument prototype would still apply. */
5418 return uncompress ();
5423 rm -f conftest.$ac_objext conftest$ac_exeext
5424 if { (ac_try="$ac_link"
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_link") 2>conftest.er1
5432 grep -v '^ *+' conftest.er1 >conftest.err
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } && {
5437 test -z "$ac_c_werror_flag" ||
5438 test ! -s conftest.err
5439 } && test -s conftest$ac_exeext &&
5440 $as_test_x conftest$ac_exeext; then
5441 ac_cv_lib_z_uncompress=yes
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5446 ac_cv_lib_z_uncompress=no
5449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5450 conftest$ac_exeext conftest.$ac_ext
5451 LIBS=$ac_check_lib_save_LIBS
5453 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
5454 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
5455 if test $ac_cv_lib_z_uncompress = yes; then
5456 cat >>confdefs.h <<_ACEOF
5464 echo "Zlib (libz.so) could not be found, but is required."
5469 if test "$APPLE_BUILD" != 'yes'; then
5471 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
5472 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
5473 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 ac_check_lib_save_LIBS=$LIBS
5478 cat >conftest.$ac_ext <<_ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5485 /* Override any GCC internal prototype to avoid an error.
5486 Use char because int might match the return type of a GCC
5487 builtin and then its argument prototype would still apply. */
5491 char glXQueryVersion ();
5495 return glXQueryVersion ();
5500 rm -f conftest.$ac_objext conftest$ac_exeext
5501 if { (ac_try="$ac_link"
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_link") 2>conftest.er1
5509 grep -v '^ *+' conftest.er1 >conftest.err
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && {
5514 test -z "$ac_c_werror_flag" ||
5515 test ! -s conftest.err
5516 } && test -s conftest$ac_exeext &&
5517 $as_test_x conftest$ac_exeext; then
5518 ac_cv_lib_GL_glXQueryVersion=yes
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5523 ac_cv_lib_GL_glXQueryVersion=no
5526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5527 conftest$ac_exeext conftest.$ac_ext
5528 LIBS=$ac_check_lib_save_LIBS
5530 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
5531 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
5532 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
5533 cat >>confdefs.h <<_ACEOF
5534 #define HAVE_LIBGL 1
5541 echo "The OpenGL library (libGL.so) could not be found, but is required."
5545 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5546 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5547 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5548 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5552 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5554 # Is the header compilable?
5555 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
5556 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
5557 cat >conftest.$ac_ext <<_ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 $ac_includes_default
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5575 grep -v '^ *+' conftest.er1 >conftest.err
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && {
5580 test -z "$ac_c_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
5583 ac_header_compiler=yes
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5588 ac_header_compiler=no
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5593 echo "${ECHO_T}$ac_header_compiler" >&6; }
5595 # Is the header present?
5596 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
5597 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
5598 cat >conftest.$ac_ext <<_ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5606 if { (ac_try="$ac_cpp conftest.$ac_ext"
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5614 grep -v '^ *+' conftest.er1 >conftest.err
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } >/dev/null && {
5619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5620 test ! -s conftest.err
5622 ac_header_preproc=yes
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 ac_header_preproc=no
5630 rm -f conftest.err conftest.$ac_ext
5631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5632 echo "${ECHO_T}$ac_header_preproc" >&6; }
5634 # So? What about this header?
5635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5637 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5638 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5639 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
5640 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
5641 ac_header_preproc=yes
5644 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
5645 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
5646 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
5647 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
5649 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
5650 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
5651 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5652 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
5653 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
5654 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
5655 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
5659 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5660 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5661 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 ac_cv_header_GL_gl_h=$ac_header_preproc
5666 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5667 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5670 if test $ac_cv_header_GL_gl_h = yes; then
5674 echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
5683 { echo "$as_me:$LINENO: checking for GTK" >&5
5684 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
5686 if test -n "$PKG_CONFIG"; then
5687 if test -n "$GTK_CFLAGS"; then
5688 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
5690 if test -n "$PKG_CONFIG" && \
5691 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
5692 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; then
5696 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
5704 if test -n "$PKG_CONFIG"; then
5705 if test -n "$GTK_LIBS"; then
5706 pkg_cv_GTK_LIBS="$GTK_LIBS"
5708 if test -n "$PKG_CONFIG" && \
5709 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
5710 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; then
5714 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
5725 if test $pkg_failed = yes; then
5727 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5728 _pkg_short_errors_supported=yes
5730 _pkg_short_errors_supported=no
5732 if test $_pkg_short_errors_supported = yes; then
5733 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
5735 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
5737 # Put the nasty error message in config.log where it belongs
5738 echo "$GTK_PKG_ERRORS" >&5
5740 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
5744 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5745 installed software in a non-standard prefix.
5747 Alternatively, you may set the environment variables GTK_CFLAGS
5748 and GTK_LIBS to avoid the need to call pkg-config.
5749 See the pkg-config man page for more details.
5751 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
5755 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5756 installed software in a non-standard prefix.
5758 Alternatively, you may set the environment variables GTK_CFLAGS
5759 and GTK_LIBS to avoid the need to call pkg-config.
5760 See the pkg-config man page for more details.
5762 { (exit 1); exit 1; }; }
5763 elif test $pkg_failed = untried; then
5764 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5765 is in your PATH or set the PKG_CONFIG environment variable to the full
5768 Alternatively, you may set the environment variables GTK_CFLAGS
5769 and GTK_LIBS to avoid the need to call pkg-config.
5770 See the pkg-config man page for more details.
5772 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5773 See \`config.log' for more details." >&5
5774 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5775 is in your PATH or set the PKG_CONFIG environment variable to the full
5778 Alternatively, you may set the environment variables GTK_CFLAGS
5779 and GTK_LIBS to avoid the need to call pkg-config.
5780 See the pkg-config man page for more details.
5782 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5783 See \`config.log' for more details." >&2;}
5784 { (exit 1); exit 1; }; }
5786 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
5787 GTK_LIBS=$pkg_cv_GTK_LIBS
5788 { echo "$as_me:$LINENO: result: yes" >&5
5789 echo "${ECHO_T}yes" >&6; }
5793 cat >>confdefs.h <<\_ACEOF
5802 if test "$HAVE_CARBON" = 'yes'; then
5804 GUI_CARBON_FALSE='#'
5812 if test "$HAVE_GTK" = 'yes'; then
5822 i386|i486|i586|i686)
5823 SH4_TRANSLATOR="x86"
5825 cat >>confdefs.h <<_ACEOF
5826 #define SH4_TRANSLATOR TARGET_X86
5830 SH4_TRANSLATOR="x86_64"
5832 cat >>confdefs.h <<_ACEOF
5833 #define SH4_TRANSLATOR TARGET_X86_64
5837 echo "Warning: No translator available for $host. Building emulation core only";;
5841 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
5843 BUILD_SH4X86_FALSE='#'
5845 BUILD_SH4X86_TRUE='#'
5852 { echo "$as_me:$LINENO: checking for ESOUND" >&5
5853 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
5855 if test -n "$PKG_CONFIG"; then
5856 if test -n "$ESOUND_CFLAGS"; then
5857 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
5859 if test -n "$PKG_CONFIG" && \
5860 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
5861 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; then
5865 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
5873 if test -n "$PKG_CONFIG"; then
5874 if test -n "$ESOUND_LIBS"; then
5875 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
5877 if test -n "$PKG_CONFIG" && \
5878 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
5879 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; then
5883 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
5894 if test $pkg_failed = yes; then
5896 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5897 _pkg_short_errors_supported=yes
5899 _pkg_short_errors_supported=no
5901 if test $_pkg_short_errors_supported = yes; then
5902 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
5904 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
5906 # Put the nasty error message in config.log where it belongs
5907 echo "$ESOUND_PKG_ERRORS" >&5
5909 echo "Warning: esound not found - building without audio support"
5910 elif test $pkg_failed = untried; then
5911 echo "Warning: esound not found - building without audio support"
5913 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
5914 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
5915 { echo "$as_me:$LINENO: result: yes" >&5
5916 echo "${ECHO_T}yes" >&6; }
5920 cat >>confdefs.h <<\_ACEOF
5921 #define HAVE_ESOUND 1
5927 if test "$HAVE_ESOUND" = 'yes' ; then
5929 AUDIO_ESOUND_FALSE='#'
5931 AUDIO_ESOUND_TRUE='#'
5936 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5937 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
5938 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
5939 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
5943 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
5945 # Is the header compilable?
5946 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
5947 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
5948 cat >conftest.$ac_ext <<_ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 $ac_includes_default
5955 #include <linux/cdrom.h>
5957 rm -f conftest.$ac_objext
5958 if { (ac_try="$ac_compile"
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_compile") 2>conftest.er1
5966 grep -v '^ *+' conftest.er1 >conftest.err
5968 cat conftest.err >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } && {
5971 test -z "$ac_c_werror_flag" ||
5972 test ! -s conftest.err
5973 } && test -s conftest.$ac_objext; then
5974 ac_header_compiler=yes
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5979 ac_header_compiler=no
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5984 echo "${ECHO_T}$ac_header_compiler" >&6; }
5986 # Is the header present?
5987 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
5988 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
5989 cat >conftest.$ac_ext <<_ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 #include <linux/cdrom.h>
5997 if { (ac_try="$ac_cpp conftest.$ac_ext"
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6005 grep -v '^ *+' conftest.er1 >conftest.err
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } >/dev/null && {
6010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6011 test ! -s conftest.err
6013 ac_header_preproc=yes
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 ac_header_preproc=no
6021 rm -f conftest.err conftest.$ac_ext
6022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6023 echo "${ECHO_T}$ac_header_preproc" >&6; }
6025 # So? What about this header?
6026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6028 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
6029 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6030 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
6031 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
6032 ac_header_preproc=yes
6035 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
6036 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
6037 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
6038 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
6039 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
6040 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
6041 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
6042 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
6043 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
6044 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
6045 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
6046 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
6050 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
6051 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
6052 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 ac_cv_header_linux_cdrom_h=$ac_header_preproc
6057 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
6058 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
6061 if test $ac_cv_header_linux_cdrom_h = yes; then
6062 HAVE_LINUX_CDROM_H=yes
6065 echo "Linux CDROM support not found, building without it."
6071 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
6073 CDROM_LINUX_FALSE='#'
6075 CDROM_LINUX_TRUE='#'
6080 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
6081 set dummy sh-elf-gcc; ac_word=$2
6082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084 if test "${ac_cv_path_SHCC+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6099 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
6100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 SHCC=$ac_cv_path_SHCC
6111 if test -n "$SHCC"; then
6112 { echo "$as_me:$LINENO: result: $SHCC" >&5
6113 echo "${ECHO_T}$SHCC" >&6; }
6115 { echo "$as_me:$LINENO: result: no" >&5
6116 echo "${ECHO_T}no" >&6; }
6120 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
6121 set dummy sh-elf-ld; ac_word=$2
6122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6124 if test "${ac_cv_path_SHLD+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
6140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 SHLD=$ac_cv_path_SHLD
6151 if test -n "$SHLD"; then
6152 { echo "$as_me:$LINENO: result: $SHLD" >&5
6153 echo "${ECHO_T}$SHLD" >&6; }
6155 { echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6; }
6160 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
6161 set dummy sh-elf-objcopy; ac_word=$2
6162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6164 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
6180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
6191 if test -n "$SHOBJCOPY"; then
6192 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
6193 echo "${ECHO_T}$SHOBJCOPY" >&6; }
6195 { echo "$as_me:$LINENO: result: no" >&5
6196 echo "${ECHO_T}no" >&6; }
6200 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
6201 set dummy arm-elf-gcc; ac_word=$2
6202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6204 if test "${ac_cv_path_ARMCC+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
6220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 ARMCC=$ac_cv_path_ARMCC
6231 if test -n "$ARMCC"; then
6232 { echo "$as_me:$LINENO: result: $ARMCC" >&5
6233 echo "${ECHO_T}$ARMCC" >&6; }
6235 { echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6; }
6240 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
6241 set dummy arm-elf-ld; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_path_ARMLD+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6259 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
6260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 ARMLD=$ac_cv_path_ARMLD
6271 if test -n "$ARMLD"; then
6272 { echo "$as_me:$LINENO: result: $ARMLD" >&5
6273 echo "${ECHO_T}$ARMLD" >&6; }
6275 { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6280 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
6281 set dummy arm-elf-objcopy; ac_word=$2
6282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
6300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
6311 if test -n "$ARMOBJCOPY"; then
6312 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
6313 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
6315 { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6321 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
6323 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
6327 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
6329 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
6335 if test "$BUILD_SH" = "yes"; then
6337 BUILD_SYSTEST_FALSE='#'
6339 BUILD_SYSTEST_TRUE='#'
6340 BUILD_SYSTEST_FALSE=
6345 if test "$BUILD_ARM" = "yes"; then
6347 BUILD_ARMTEST_FALSE='#'
6349 BUILD_ARMTEST_TRUE='#'
6350 BUILD_ARMTEST_FALSE=
6355 GETTEXT_PACKAGE=lxdream
6358 cat >>confdefs.h <<_ACEOF
6359 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6363 ALL_LINGUAS="de pt_BR"
6366 for ac_header in locale.h
6368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 ac_res=`eval echo '${'$as_ac_Header'}'`
6376 { echo "$as_me:$LINENO: result: $ac_res" >&5
6377 echo "${ECHO_T}$ac_res" >&6; }
6379 # Is the header compilable?
6380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6382 cat >conftest.$ac_ext <<_ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6388 $ac_includes_default
6389 #include <$ac_header>
6391 rm -f conftest.$ac_objext
6392 if { (ac_try="$ac_compile"
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_compile") 2>conftest.er1
6400 grep -v '^ *+' conftest.er1 >conftest.err
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && {
6405 test -z "$ac_c_werror_flag" ||
6406 test ! -s conftest.err
6407 } && test -s conftest.$ac_objext; then
6408 ac_header_compiler=yes
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6413 ac_header_compiler=no
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6418 echo "${ECHO_T}$ac_header_compiler" >&6; }
6420 # Is the header present?
6421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6423 cat >conftest.$ac_ext <<_ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 #include <$ac_header>
6431 if { (ac_try="$ac_cpp conftest.$ac_ext"
6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6439 grep -v '^ *+' conftest.er1 >conftest.err
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } >/dev/null && {
6444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6445 test ! -s conftest.err
6447 ac_header_preproc=yes
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 ac_header_preproc=no
6455 rm -f conftest.err conftest.$ac_ext
6456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6457 echo "${ECHO_T}$ac_header_preproc" >&6; }
6459 # So? What about this header?
6460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6466 ac_header_preproc=yes
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 eval "$as_ac_Header=\$ac_header_preproc"
6491 ac_res=`eval echo '${'$as_ac_Header'}'`
6492 { echo "$as_me:$LINENO: result: $ac_res" >&5
6493 echo "${ECHO_T}$ac_res" >&6; }
6496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6497 cat >>confdefs.h <<_ACEOF
6498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505 if test $ac_cv_header_locale_h = yes; then
6506 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6507 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
6508 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 cat >conftest.$ac_ext <<_ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6526 rm -f conftest.$ac_objext conftest$ac_exeext
6527 if { (ac_try="$ac_link"
6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530 *) ac_try_echo=$ac_try;;
6532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533 (eval "$ac_link") 2>conftest.er1
6535 grep -v '^ *+' conftest.er1 >conftest.err
6537 cat conftest.err >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } && {
6540 test -z "$ac_c_werror_flag" ||
6541 test ! -s conftest.err
6542 } && test -s conftest$ac_exeext &&
6543 $as_test_x conftest$ac_exeext; then
6544 am_cv_val_LC_MESSAGES=yes
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6549 am_cv_val_LC_MESSAGES=no
6552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6553 conftest$ac_exeext conftest.$ac_ext
6555 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6556 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
6557 if test $am_cv_val_LC_MESSAGES = yes; then
6559 cat >>confdefs.h <<\_ACEOF
6560 #define HAVE_LC_MESSAGES 1
6568 gt_cv_have_gettext=no
6574 if test "${ac_cv_header_libintl_h+set}" = set; then
6575 { echo "$as_me:$LINENO: checking for libintl.h" >&5
6576 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6577 if test "${ac_cv_header_libintl_h+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6581 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6583 # Is the header compilable?
6584 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
6585 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
6586 cat >conftest.$ac_ext <<_ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 $ac_includes_default
6593 #include <libintl.h>
6595 rm -f conftest.$ac_objext
6596 if { (ac_try="$ac_compile"
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_compile") 2>conftest.er1
6604 grep -v '^ *+' conftest.er1 >conftest.err
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } && {
6609 test -z "$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6611 } && test -s conftest.$ac_objext; then
6612 ac_header_compiler=yes
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6617 ac_header_compiler=no
6620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6622 echo "${ECHO_T}$ac_header_compiler" >&6; }
6624 # Is the header present?
6625 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
6626 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
6627 cat >conftest.$ac_ext <<_ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 #include <libintl.h>
6635 if { (ac_try="$ac_cpp conftest.$ac_ext"
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6643 grep -v '^ *+' conftest.er1 >conftest.err
6645 cat conftest.err >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } >/dev/null && {
6648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6649 test ! -s conftest.err
6651 ac_header_preproc=yes
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6656 ac_header_preproc=no
6659 rm -f conftest.err conftest.$ac_ext
6660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6661 echo "${ECHO_T}$ac_header_preproc" >&6; }
6663 # So? What about this header?
6664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6666 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6667 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6669 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6670 ac_header_preproc=yes
6673 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6674 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6676 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6678 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6679 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6680 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6682 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6683 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6684 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6688 { echo "$as_me:$LINENO: checking for libintl.h" >&5
6689 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6690 if test "${ac_cv_header_libintl_h+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 ac_cv_header_libintl_h=$ac_header_preproc
6695 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6696 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6699 if test $ac_cv_header_libintl_h = yes; then
6700 gt_cv_func_dgettext_libintl="no"
6701 libintl_extra_libs=""
6704 # First check in libc
6706 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
6707 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
6708 if test "${gt_cv_func_ngettext_libc+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 cat >conftest.$ac_ext <<_ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6718 #include <libintl.h>
6723 return !ngettext ("","", 1)
6728 rm -f conftest.$ac_objext conftest$ac_exeext
6729 if { (ac_try="$ac_link"
6731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732 *) ac_try_echo=$ac_try;;
6734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6735 (eval "$ac_link") 2>conftest.er1
6737 grep -v '^ *+' conftest.er1 >conftest.err
6739 cat conftest.err >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } && {
6742 test -z "$ac_c_werror_flag" ||
6743 test ! -s conftest.err
6744 } && test -s conftest$ac_exeext &&
6745 $as_test_x conftest$ac_exeext; then
6746 gt_cv_func_ngettext_libc=yes
6748 echo "$as_me: failed program was:" >&5