2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="configure.in"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
647 program_transform_name
688 INSTALL_STRIP_PROGRAM
697 MAINTAINER_MODE_FALSE
734 am__fastdepOBJC_FALSE
810 enable_option_checking
811 enable_maintainer_mode
812 enable_dependency_tracking
825 ac_precious_vars='build_alias
854 # Initialize some variables set by options.
856 ac_init_version=false
857 ac_unrecognized_opts=
859 # The variables have the same names as the options, with
860 # dashes changed to underlines.
868 program_transform_name=s,x,x,
876 # Installation directory options.
877 # These are left unexpanded so users can "make install exec_prefix=/foo"
878 # and all the variables that are supposed to be based on exec_prefix
879 # by default will actually change.
880 # Use braces instead of parens because sh, perl, etc. also accept them.
881 # (The list follows the same order as the GNU Coding Standards.)
882 bindir='${exec_prefix}/bin'
883 sbindir='${exec_prefix}/sbin'
884 libexecdir='${exec_prefix}/libexec'
885 datarootdir='${prefix}/share'
886 datadir='${datarootdir}'
887 sysconfdir='${prefix}/etc'
888 sharedstatedir='${prefix}/com'
889 localstatedir='${prefix}/var'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE}'
893 infodir='${datarootdir}/info'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
914 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 # Accept the important Cygnus configure options, so we can diagnose typos.
920 case $ac_dashdash$ac_option in
924 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 -build | --build | --buil | --bui | --bu)
930 ac_prev=build_alias ;;
931 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932 build_alias=$ac_optarg ;;
934 -cache-file | --cache-file | --cache-fil | --cache-fi \
935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936 ac_prev=cache_file ;;
937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939 cache_file=$ac_optarg ;;
942 cache_file=config.cache ;;
944 -datadir | --datadir | --datadi | --datad)
946 -datadir=* | --datadir=* | --datadi=* | --datad=*)
947 datadir=$ac_optarg ;;
949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950 | --dataroo | --dataro | --datar)
951 ac_prev=datarootdir ;;
952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954 datarootdir=$ac_optarg ;;
956 -disable-* | --disable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
961 { (exit 1); exit 1; }; }
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
971 eval enable_$ac_useropt=no ;;
973 -docdir | --docdir | --docdi | --doc | --do)
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
988 { (exit 1); exit 1; }; }
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
998 eval enable_$ac_useropt=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1162 -site=* | --site=* | --sit=*)
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1203 eval with_$ac_useropt=\$ac_optarg ;;
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1210 { (exit 1); exit 1; }; }
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1220 eval with_$ac_useropt=no ;;
1223 # Obsolete; use --with-x.
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1240 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1241 Try \`$0 --help' for more information." >&2
1242 { (exit 1); exit 1; }; }
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1249 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1250 { (exit 1); exit 1; }; }
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1255 # FIXME: should be removed in autoconf 3.0.
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1265 if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1268 { (exit 1); exit 1; }; }
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1274 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1275 { (exit 1); exit 1; }; } ;;
1276 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1293 # Be sure to have absolute directory names.
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1299 { (exit 1); exit 1; }; }
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1314 If a cross compiler is detected then cross compile mode will be used." >&2
1315 elif test "x$build_alias" != "x$host_alias"; then
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323 test "$silent" = yes && exec 6>/dev/null
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1330 { (exit 1); exit 1; }; }
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1333 { (exit 1); exit 1; }; }
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 $as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1368 ac_srcdir_defaulted=no
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1373 { (exit 1); exit 1; }; }
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1378 { (exit 1); exit 1; }; }
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 # Report the --help message.
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1404 \`configure' configures this package to adapt to many kinds of systems.
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1411 Defaults for the options are specified in brackets.
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1435 For better control, use the options below.
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 if test -n "$ac_init_help"; then
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-maintainer-mode enable make rules and dependencies not useful
1481 (and sometimes confusing) to the casual installer
1482 --disable-dependency-tracking speeds up one-time build
1483 --enable-dependency-tracking do not reject slow dependency extractors
1484 --enable-strict-warn Enable strict compilation warnings
1485 --disable-translator Disable the SH4 translator (Enabled by default)
1486 --disable-optimized Disable compile-time optimizations (Enabled by
1488 --enable-profiled Enable profiling build
1489 --enable-trace Enable generation of IO traces (warning: hurts
1491 --enable-watch Enable watchpoints in the debugger (warning: hurts
1493 --enable-sh4stats Enable statistics on executed sh4 instructions
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-osmesa Build with the osmesa GL library (software
1500 --with-gtk Build with the GTK UI. Default on X11 systems
1501 --with-esd Build with support for the ESounD audio system
1502 --with-pulse Build with support for the PulseAudio audio system
1504 Some influential environment variables:
1505 CC C compiler command
1506 CFLAGS C compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 OBJC Objective C compiler command
1513 OBJCFLAGS Objective C compiler flags
1514 CCAS assembler compiler command (defaults to CC)
1515 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1517 OBJCPP Objective C preprocessor
1518 PKG_CONFIG path to pkg-config utility
1520 C compiler flags for LIBPNG, overriding pkg-config
1521 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1522 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1523 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1524 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1525 GTK_LIBS linker flags for GTK, overriding pkg-config
1527 C compiler flags for PULSE, overriding pkg-config
1528 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1530 C compiler flags for ESOUND, overriding pkg-config
1531 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1532 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1533 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1567 .) # We are building in place.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1601 generated by GNU Autoconf 2.62
1603 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1604 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1610 cat >config.log <<_ACEOF
1611 This file contains any messages produced by compilers while
1612 running configure, to aid debugging if configure makes a mistake.
1614 It was created by $as_me, which was
1615 generated by GNU Autoconf 2.62. Invocation command line was
1627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1634 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1636 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1637 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1639 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1640 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1641 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1642 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 $as_echo "PATH: $as_dir"
1667 # Keep a trace of the command line.
1668 # Strip out --no-create and --no-recursion so they do not pile up.
1669 # Strip out --silent because we don't want to record it for future runs.
1670 # Also quote any args containing shell meta-characters.
1671 # Make two passes to allow for proper duplicate-argument suppression.
1675 ac_must_keep_next=false
1681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1683 | -silent | --silent | --silen | --sile | --sil)
1686 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1689 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1691 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1692 if test $ac_must_keep_next = true; then
1693 ac_must_keep_next=false # Got value, back to normal.
1696 *=* | --config-cache | -C | -disable-* | --disable-* \
1697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1699 | -with-* | --with-* | -without-* | --without-* | --x)
1700 case "$ac_configure_args0 " in
1701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704 -* ) ac_must_keep_next=true ;;
1707 ac_configure_args="$ac_configure_args '$ac_arg'"
1712 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1713 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1715 # When interrupted or exit'd, cleanup temporary files, and complete
1716 # config.log. We remove comments because anyway the quotes in there
1717 # would cause problems or look ugly.
1718 # WARNING: Use '\'' to represent an apostrophe within the trap.
1719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1720 trap 'exit_status=$?
1721 # Save into config.log some information that might help in debugging.
1726 ## ---------------- ##
1727 ## Cache variables. ##
1728 ## ---------------- ##
1731 # The following way of writing the cache mishandles newlines in values,
1733 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1734 eval ac_val=\$$ac_var
1738 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1739 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1742 _ | IFS | as_nl) ;; #(
1743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1744 *) $as_unset $ac_var ;;
1749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1750 *${as_nl}ac_space=\ *)
1752 "s/'\''/'\''\\\\'\'''\''/g;
1753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1764 ## ----------------- ##
1765 ## Output variables. ##
1766 ## ----------------- ##
1769 for ac_var in $ac_subst_vars
1771 eval ac_val=\$$ac_var
1773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775 $as_echo "$ac_var='\''$ac_val'\''"
1779 if test -n "$ac_subst_files"; then
1781 ## ------------------- ##
1782 ## File substitutions. ##
1783 ## ------------------- ##
1786 for ac_var in $ac_subst_files
1788 eval ac_val=\$$ac_var
1790 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792 $as_echo "$ac_var='\''$ac_val'\''"
1797 if test -s confdefs.h; then
1807 test "$ac_signal" != 0 &&
1808 $as_echo "$as_me: caught signal $ac_signal"
1809 $as_echo "$as_me: exit $exit_status"
1811 rm -f core *.core core.conftest.* &&
1812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1815 for ac_signal in 1 2 13 15; do
1816 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1821 rm -f -r conftest* confdefs.h
1823 # Predefined preprocessor variables.
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_NAME "$PACKAGE_NAME"
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_STRING "$PACKAGE_STRING"
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1850 # Let the site file select an alternate cache file if it wants to.
1851 # Prefer an explicitly selected file to automatically selected ones.
1854 if test -n "$CONFIG_SITE"; then
1855 ac_site_file1=$CONFIG_SITE
1856 elif test "x$prefix" != xNONE; then
1857 ac_site_file1=$prefix/share/config.site
1858 ac_site_file2=$prefix/etc/config.site
1860 ac_site_file1=$ac_default_prefix/share/config.site
1861 ac_site_file2=$ac_default_prefix/etc/config.site
1863 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1865 test "x$ac_site_file" = xNONE && continue
1866 if test -r "$ac_site_file"; then
1867 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1868 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1869 sed 's/^/| /' "$ac_site_file" >&5
1874 if test -r "$cache_file"; then
1875 # Some versions of bash will fail to source /dev/null (special
1876 # files actually), so we avoid doing that.
1877 if test -f "$cache_file"; then
1878 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1879 $as_echo "$as_me: loading cache $cache_file" >&6;}
1881 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1882 *) . "./$cache_file";;
1886 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1887 $as_echo "$as_me: creating cache $cache_file" >&6;}
1891 # Check that the precious variables saved in the cache have kept the same
1893 ac_cache_corrupted=false
1894 for ac_var in $ac_precious_vars; do
1895 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1896 eval ac_new_set=\$ac_env_${ac_var}_set
1897 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1898 eval ac_new_val=\$ac_env_${ac_var}_value
1899 case $ac_old_set,$ac_new_set in
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1902 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1905 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1906 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1907 ac_cache_corrupted=: ;;
1910 if test "x$ac_old_val" != "x$ac_new_val"; then
1911 # differences in whitespace do not lead to failure.
1912 ac_old_val_w=`echo x $ac_old_val`
1913 ac_new_val_w=`echo x $ac_new_val`
1914 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1915 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1916 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1917 ac_cache_corrupted=:
1919 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1920 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1921 eval $ac_var=\$ac_old_val
1923 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1924 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1925 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1926 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1929 # Pass precious variables to config.status.
1930 if test "$ac_new_set" = set; then
1932 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 *) ac_arg=$ac_var=$ac_new_val ;;
1935 case " $ac_configure_args " in
1936 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1937 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1941 if $ac_cache_corrupted; then
1942 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1945 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1946 { (exit 1); exit 1; }; }
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972 am__api_version="1.9"
1974 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1975 if test -f "$ac_dir/install-sh"; then
1977 ac_install_sh="$ac_aux_dir/install-sh -c"
1979 elif test -f "$ac_dir/install.sh"; then
1981 ac_install_sh="$ac_aux_dir/install.sh -c"
1983 elif test -f "$ac_dir/shtool"; then
1985 ac_install_sh="$ac_aux_dir/shtool install -c"
1989 if test -z "$ac_aux_dir"; then
1990 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1991 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1992 { (exit 1); exit 1; }; }
1995 # These three variables are undocumented and unsupported,
1996 # and are intended to be withdrawn in a future Autoconf release.
1997 # They can cause serious problems if a builder's source tree is in a directory
1998 # whose full name contains unusual characters.
1999 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2000 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2001 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2004 # Find a good install program. We prefer a C program (faster),
2005 # so one script is as good as another. But avoid the broken or
2006 # incompatible versions:
2007 # SysV /etc/install, /usr/sbin/install
2008 # SunOS /usr/etc/install
2009 # IRIX /sbin/install
2011 # AmigaOS /C/install, which installs bootblocks on floppy discs
2012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2015 # OS/2's system install, which has a completely different semantic
2016 # ./install, which can be erroneously created by make from ./install.sh.
2017 # Reject install programs that cannot install multiple files.
2018 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2019 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2020 if test -z "$INSTALL"; then
2021 if test "${ac_cv_path_install+set}" = set; then
2022 $as_echo_n "(cached) " >&6
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 # Account for people who put trailing slashes in PATH elements.
2031 ./ | .// | /cC/* | \
2032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2036 # OSF1 and SCO ODT 3.0 have their own names for install.
2037 # Don't use installbsd from OSF since it installs stuff as root
2039 for ac_prog in ginstall scoinst install; do
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2042 if test $ac_prog = install &&
2043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044 # AIX install. It has an incompatible calling convention.
2046 elif test $ac_prog = install &&
2047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048 # program-specific install script used by HP pwplus--don't use.
2051 rm -rf conftest.one conftest.two conftest.dir
2052 echo one > conftest.one
2053 echo two > conftest.two
2055 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2056 test -s conftest.one && test -s conftest.two &&
2057 test -s conftest.dir/conftest.one &&
2058 test -s conftest.dir/conftest.two
2060 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2073 rm -rf conftest.one conftest.two conftest.dir
2076 if test "${ac_cv_path_install+set}" = set; then
2077 INSTALL=$ac_cv_path_install
2079 # As a last resort, use the slow shell script. Don't cache a
2080 # value for INSTALL within a source directory, because that will
2081 # break other packages using the cache if that directory is
2082 # removed, or if the value is a relative name.
2083 INSTALL=$ac_install_sh
2086 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2087 $as_echo "$INSTALL" >&6; }
2089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2090 # It thinks the first close brace ends the variable substitution.
2091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2097 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2098 $as_echo_n "checking whether build environment is sane... " >&6; }
2101 echo timestamp > conftest.file
2102 # Do `set' in a subshell so we don't clobber the current shell's
2103 # arguments. Must try -L first in case configure is actually a
2104 # symlink; some systems play weird games with the mod time of symlinks
2105 # (eg FreeBSD returns the mod time of the symlink's containing
2108 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2109 if test "$*" = "X"; then
2111 set X `ls -t $srcdir/configure conftest.file`
2114 if test "$*" != "X $srcdir/configure conftest.file" \
2115 && test "$*" != "X conftest.file $srcdir/configure"; then
2117 # If neither matched, then we have a broken ls. This can happen
2118 # if, for instance, CONFIG_SHELL is bash and it inherits a
2119 # broken ls alias from the environment. This has actually
2120 # happened. Such a system could not be considered "sane".
2121 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2122 alias in your environment" >&5
2123 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2124 alias in your environment" >&2;}
2125 { (exit 1); exit 1; }; }
2128 test "$2" = conftest.file
2134 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2135 Check your system clock" >&5
2136 $as_echo "$as_me: error: newly created file is older than distributed files!
2137 Check your system clock" >&2;}
2138 { (exit 1); exit 1; }; }
2140 { $as_echo "$as_me:$LINENO: result: yes" >&5
2141 $as_echo "yes" >&6; }
2142 test "$program_prefix" != NONE &&
2143 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2144 # Use a double $ so make ignores it.
2145 test "$program_suffix" != NONE &&
2146 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2147 # Double any \ or $.
2148 # By default was `s,x,x', remove it if useless.
2149 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2150 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2152 # expand $ac_aux_dir to an absolute path
2153 am_aux_dir=`cd $ac_aux_dir && pwd`
2155 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2156 # Use eval to expand $SHELL
2157 if eval "$MISSING --run true"; then
2158 am_missing_run="$MISSING --run "
2161 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2162 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2165 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2166 # We used to keeping the `.' as first argument, in order to
2167 # allow $(mkdir_p) to be used without argument. As in
2168 # $(mkdir_p) $(somedir)
2169 # where $(somedir) is conditionally defined. However this is wrong
2171 # 1. if the package is installed by a user who cannot write `.'
2172 # make install will fail,
2173 # 2. the above comment should most certainly read
2174 # $(mkdir_p) $(DESTDIR)$(somedir)
2175 # so it does not work when $(somedir) is undefined and
2176 # $(DESTDIR) is not.
2177 # To support the latter case, we have to write
2178 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2179 # so the `.' trick is pointless.
2180 mkdir_p='mkdir -p --'
2182 # On NextStep and OpenStep, the `mkdir' command does not
2183 # recognize any option. It will interpret all options as
2184 # directories to create, and then abort because `.' already
2186 for d in ./-p ./--version;
2188 test -d $d && rmdir $d
2190 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2191 if test -f "$ac_aux_dir/mkinstalldirs"; then
2192 mkdir_p='$(mkinstalldirs)'
2194 mkdir_p='$(install_sh) -d'
2198 for ac_prog in gawk mawk nawk awk
2200 # Extract the first word of "$ac_prog", so it can be a program name with args.
2201 set dummy $ac_prog; ac_word=$2
2202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 $as_echo_n "checking for $ac_word... " >&6; }
2204 if test "${ac_cv_prog_AWK+set}" = set; then
2205 $as_echo_n "(cached) " >&6
2207 if test -n "$AWK"; then
2208 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 test -z "$as_dir" && as_dir=.
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_prog_AWK="$ac_prog"
2218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 if test -n "$AWK"; then
2229 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2230 $as_echo "$AWK" >&6; }
2232 { $as_echo "$as_me:$LINENO: result: no" >&5
2233 $as_echo "no" >&6; }
2237 test -n "$AWK" && break
2240 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2241 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2243 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2244 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2245 $as_echo_n "(cached) " >&6
2247 cat >conftest.make <<\_ACEOF
2250 @echo '@@@%%%=$(MAKE)=@@@%%%'
2252 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2253 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2255 eval ac_cv_prog_make_${ac_make}_set=yes;;
2257 eval ac_cv_prog_make_${ac_make}_set=no;;
2261 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2262 { $as_echo "$as_me:$LINENO: result: yes" >&5
2263 $as_echo "yes" >&6; }
2266 { $as_echo "$as_me:$LINENO: result: no" >&5
2267 $as_echo "no" >&6; }
2268 SET_MAKE="MAKE=${MAKE-make}"
2271 rm -rf .tst 2>/dev/null
2272 mkdir .tst 2>/dev/null
2273 if test -d .tst; then
2278 rmdir .tst 2>/dev/null
2280 # test to see if srcdir already configured
2281 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2282 test -f $srcdir/config.status; then
2283 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2284 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2285 { (exit 1); exit 1; }; }
2288 # test whether we have cygpath
2289 if test -z "$CYGPATH_W"; then
2290 if (cygpath --version) >/dev/null 2>/dev/null; then
2291 CYGPATH_W='cygpath -w'
2298 # Define the identity of the package.
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE "$PACKAGE"
2308 cat >>confdefs.h <<_ACEOF
2309 #define VERSION "$VERSION"
2312 # Some tools Automake needs.
2314 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2317 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2320 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2323 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2326 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2328 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2330 # Installed binaries are usually stripped using `strip' when the user
2331 # run `make install-strip'. However `strip' might not be the right
2332 # tool to use in cross-compilation environments, therefore Automake
2333 # will honor the `STRIP' environment variable to overrule this program.
2334 if test "$cross_compiling" != no; then
2335 if test -n "$ac_tool_prefix"; then
2336 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2337 set dummy ${ac_tool_prefix}strip; ac_word=$2
2338 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 $as_echo_n "checking for $ac_word... " >&6; }
2340 if test "${ac_cv_prog_STRIP+set}" = set; then
2341 $as_echo_n "(cached) " >&6
2343 if test -n "$STRIP"; then
2344 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2354 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 STRIP=$ac_cv_prog_STRIP
2364 if test -n "$STRIP"; then
2365 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2366 $as_echo "$STRIP" >&6; }
2368 { $as_echo "$as_me:$LINENO: result: no" >&5
2369 $as_echo "no" >&6; }
2374 if test -z "$ac_cv_prog_STRIP"; then
2376 # Extract the first word of "strip", so it can be a program name with args.
2377 set dummy strip; ac_word=$2
2378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2381 $as_echo_n "(cached) " >&6
2383 if test -n "$ac_ct_STRIP"; then
2384 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393 ac_cv_prog_ac_ct_STRIP="strip"
2394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2404 if test -n "$ac_ct_STRIP"; then
2405 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2406 $as_echo "$ac_ct_STRIP" >&6; }
2408 { $as_echo "$as_me:$LINENO: result: no" >&5
2409 $as_echo "no" >&6; }
2412 if test "x$ac_ct_STRIP" = x; then
2415 case $cross_compiling:$ac_tool_warned in
2417 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2418 whose name does not start with the host triplet. If you think this
2419 configuration is useful to you, please write to autoconf@gnu.org." >&5
2420 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet. If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2423 ac_tool_warned=yes ;;
2428 STRIP="$ac_cv_prog_STRIP"
2432 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2434 # We need awk for the "check" target. The system "awk" is bad on
2436 # Always define AMTAR for backward compatibility.
2438 AMTAR=${AMTAR-"${am_missing_run}tar"}
2440 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2446 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2447 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2448 # Check whether --enable-maintainer-mode was given.
2449 if test "${enable_maintainer_mode+set}" = set; then
2450 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2452 USE_MAINTAINER_MODE=no
2455 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2456 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2459 if test $USE_MAINTAINER_MODE = yes; then
2460 MAINTAINER_MODE_TRUE=
2461 MAINTAINER_MODE_FALSE='#'
2463 MAINTAINER_MODE_TRUE='#'
2464 MAINTAINER_MODE_FALSE=
2467 MAINT=$MAINTAINER_MODE_TRUE
2470 ac_config_headers="$ac_config_headers config.h"
2473 DEPDIR="${am__leading_dot}deps"
2475 ac_config_commands="$ac_config_commands depfiles"
2478 am_make=${MAKE-make}
2479 cat > confinc << 'END'
2484 # If we don't find an include directive, just comment out the code.
2485 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2486 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2490 # First try GNU make style include.
2491 echo "include confinc" > confmf
2492 # We grep out `Entering directory' and `Leaving directory'
2493 # messages which can occur if `w' ends up in MAKEFLAGS.
2494 # In particular we don't look at `^make:' because GNU make might
2495 # be invoked under some other name (usually "gmake"), in which
2496 # case it prints its new name instead of `make'.
2497 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2502 # Now try BSD make style include.
2503 if test "$am__include" = "#"; then
2504 echo '.include "confinc"' > confmf
2505 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2506 am__include=.include
2513 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2514 $as_echo "$_am_result" >&6; }
2515 rm -f confinc confmf
2517 # Check whether --enable-dependency-tracking was given.
2518 if test "${enable_dependency_tracking+set}" = set; then
2519 enableval=$enable_dependency_tracking;
2522 if test "x$enable_dependency_tracking" != xno; then
2523 am_depcomp="$ac_aux_dir/depcomp"
2528 if test "x$enable_dependency_tracking" != xno; then
2539 ac_cpp='$CPP $CPPFLAGS'
2540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2543 if test -n "$ac_tool_prefix"; then
2544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if test "${ac_cv_prog_CC+set}" = set; then
2549 $as_echo_n "(cached) " >&6
2551 if test -n "$CC"; then
2552 ac_cv_prog_CC="$CC" # Let the user override the test.
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2562 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 if test -n "$CC"; then
2573 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2574 $as_echo "$CC" >&6; }
2576 { $as_echo "$as_me:$LINENO: result: no" >&5
2577 $as_echo "no" >&6; }
2582 if test -z "$ac_cv_prog_CC"; then
2584 # Extract the first word of "gcc", so it can be a program name with args.
2585 set dummy gcc; ac_word=$2
2586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2589 $as_echo_n "(cached) " >&6
2591 if test -n "$ac_ct_CC"; then
2592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_ac_ct_CC="gcc"
2602 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2612 if test -n "$ac_ct_CC"; then
2613 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2614 $as_echo "$ac_ct_CC" >&6; }
2616 { $as_echo "$as_me:$LINENO: result: no" >&5
2617 $as_echo "no" >&6; }
2620 if test "x$ac_ct_CC" = x; then
2623 case $cross_compiling:$ac_tool_warned in
2625 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet. If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&5
2628 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2629 whose name does not start with the host triplet. If you think this
2630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2631 ac_tool_warned=yes ;;
2639 if test -z "$CC"; then
2640 if test -n "$ac_tool_prefix"; then
2641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2642 set dummy ${ac_tool_prefix}cc; ac_word=$2
2643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if test "${ac_cv_prog_CC+set}" = set; then
2646 $as_echo_n "(cached) " >&6
2648 if test -n "$CC"; then
2649 ac_cv_prog_CC="$CC" # Let the user override the test.
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_CC="${ac_tool_prefix}cc"
2659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 if test -n "$CC"; then
2670 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2671 $as_echo "$CC" >&6; }
2673 { $as_echo "$as_me:$LINENO: result: no" >&5
2674 $as_echo "no" >&6; }
2680 if test -z "$CC"; then
2681 # Extract the first word of "cc", so it can be a program name with args.
2682 set dummy cc; ac_word=$2
2683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if test "${ac_cv_prog_CC+set}" = set; then
2686 $as_echo_n "(cached) " >&6
2688 if test -n "$CC"; then
2689 ac_cv_prog_CC="$CC" # Let the user override the test.
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2700 ac_prog_rejected=yes
2704 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 if test $ac_prog_rejected = yes; then
2712 # We found a bogon in the path, so make sure we never use it.
2713 set dummy $ac_cv_prog_CC
2715 if test $# != 0; then
2716 # We chose a different compiler from the bogus one.
2717 # However, it has the same basename, so the bogon will be chosen
2718 # first if we set CC to just the basename; use the full file name.
2720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2726 if test -n "$CC"; then
2727 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2728 $as_echo "$CC" >&6; }
2730 { $as_echo "$as_me:$LINENO: result: no" >&5
2731 $as_echo "no" >&6; }
2736 if test -z "$CC"; then
2737 if test -n "$ac_tool_prefix"; then
2738 for ac_prog in cl.exe
2740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745 $as_echo_n "(cached) " >&6
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 if test -n "$CC"; then
2769 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2770 $as_echo "$CC" >&6; }
2772 { $as_echo "$as_me:$LINENO: result: no" >&5
2773 $as_echo "no" >&6; }
2777 test -n "$CC" && break
2780 if test -z "$CC"; then
2782 for ac_prog in cl.exe
2784 # Extract the first word of "$ac_prog", so it can be a program name with args.
2785 set dummy $ac_prog; ac_word=$2
2786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2789 $as_echo_n "(cached) " >&6
2791 if test -n "$ac_ct_CC"; then
2792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_ac_ct_CC="$ac_prog"
2802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812 if test -n "$ac_ct_CC"; then
2813 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2814 $as_echo "$ac_ct_CC" >&6; }
2816 { $as_echo "$as_me:$LINENO: result: no" >&5
2817 $as_echo "no" >&6; }
2821 test -n "$ac_ct_CC" && break
2824 if test "x$ac_ct_CC" = x; then
2827 case $cross_compiling:$ac_tool_warned in
2829 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2830 whose name does not start with the host triplet. If you think this
2831 configuration is useful to you, please write to autoconf@gnu.org." >&5
2832 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2833 whose name does not start with the host triplet. If you think this
2834 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2835 ac_tool_warned=yes ;;
2844 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2845 See \`config.log' for more details." >&5
2846 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2847 See \`config.log' for more details." >&2;}
2848 { (exit 1); exit 1; }; }
2850 # Provide some information about the compiler.
2851 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2854 { (ac_try="$ac_compiler --version >&5"
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2860 $as_echo "$ac_try_echo") >&5
2861 (eval "$ac_compiler --version >&5") 2>&5
2863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }
2865 { (ac_try="$ac_compiler -v >&5"
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2871 $as_echo "$ac_try_echo") >&5
2872 (eval "$ac_compiler -v >&5") 2>&5
2874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }
2876 { (ac_try="$ac_compiler -V >&5"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2882 $as_echo "$ac_try_echo") >&5
2883 (eval "$ac_compiler -V >&5") 2>&5
2885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 ac_clean_files_save=$ac_clean_files
2904 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2905 # Try to create an executable without -o first, disregard a.out.
2906 # It will help us diagnose broken compilers, and finding out an intuition
2908 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2909 $as_echo_n "checking for C compiler default output file name... " >&6; }
2910 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2912 # The possible output files:
2913 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2916 for ac_file in $ac_files
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2920 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2925 if { (ac_try="$ac_link_default"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2931 $as_echo "$ac_try_echo") >&5
2932 (eval "$ac_link_default") 2>&5
2934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; then
2936 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2937 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2938 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2939 # so that the user can short-circuit this test for compilers unknown to
2941 for ac_file in $ac_files ''
2943 test -f "$ac_file" || continue
2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2948 # We found the default executable, but exeext='' is most
2952 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2954 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2956 # We set ac_cv_exeext here because the later test for it is not
2957 # safe: cross compilers may not add the suffix if given an `-o'
2958 # argument, so we may need to know it at that point already.
2959 # Even if this section looks crufty: it has the advantage of
2966 test "$ac_cv_exeext" = no && ac_cv_exeext=
2972 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2973 $as_echo "$ac_file" >&6; }
2974 if test -z "$ac_file"; then
2975 $as_echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2979 See \`config.log' for more details." >&5
2980 $as_echo "$as_me: error: C compiler cannot create executables
2981 See \`config.log' for more details." >&2;}
2982 { (exit 77); exit 77; }; }
2985 ac_exeext=$ac_cv_exeext
2987 # Check that the compiler produces executables we can run. If not, either
2988 # the compiler is broken, or we cross compile.
2989 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2990 $as_echo_n "checking whether the C compiler works... " >&6; }
2991 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2992 # If not cross compiling, check that we can run a simple program.
2993 if test "$cross_compiling" != yes; then
2994 if { ac_try='./$ac_file'
2995 { (case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3000 $as_echo "$ac_try_echo") >&5
3001 (eval "$ac_try") 2>&5
3003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3007 if test "$cross_compiling" = maybe; then
3010 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3011 If you meant to cross compile, use \`--host'.
3012 See \`config.log' for more details." >&5
3013 $as_echo "$as_me: error: cannot run C compiled programs.
3014 If you meant to cross compile, use \`--host'.
3015 See \`config.log' for more details." >&2;}
3016 { (exit 1); exit 1; }; }
3020 { $as_echo "$as_me:$LINENO: result: yes" >&5
3021 $as_echo "yes" >&6; }
3023 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3024 ac_clean_files=$ac_clean_files_save
3025 # Check that the compiler produces executables we can run. If not, either
3026 # the compiler is broken, or we cross compile.
3027 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3028 $as_echo_n "checking whether we are cross compiling... " >&6; }
3029 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3030 $as_echo "$cross_compiling" >&6; }
3032 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3033 $as_echo_n "checking for suffix of executables... " >&6; }
3034 if { (ac_try="$ac_link"
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3040 $as_echo "$ac_try_echo") >&5
3041 (eval "$ac_link") 2>&5
3043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; then
3045 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3046 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3047 # work properly (i.e., refer to `conftest.exe'), while it won't with
3049 for ac_file in conftest.exe conftest conftest.*; do
3050 test -f "$ac_file" || continue
3052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3053 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3060 See \`config.log' for more details." >&5
3061 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3062 See \`config.log' for more details." >&2;}
3063 { (exit 1); exit 1; }; }
3066 rm -f conftest$ac_cv_exeext
3067 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3068 $as_echo "$ac_cv_exeext" >&6; }
3070 rm -f conftest.$ac_ext
3071 EXEEXT=$ac_cv_exeext
3073 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3074 $as_echo_n "checking for suffix of object files... " >&6; }
3075 if test "${ac_cv_objext+set}" = set; then
3076 $as_echo_n "(cached) " >&6
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3093 rm -f conftest.o conftest.obj
3094 if { (ac_try="$ac_compile"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3100 $as_echo "$ac_try_echo") >&5
3101 (eval "$ac_compile") 2>&5
3103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; then
3105 for ac_file in conftest.o conftest.obj conftest.*; do
3106 test -f "$ac_file" || continue;
3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3109 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3114 $as_echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3118 See \`config.log' for more details." >&5
3119 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3124 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3126 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3127 $as_echo "$ac_cv_objext" >&6; }
3128 OBJEXT=$ac_cv_objext
3130 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3131 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3132 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3133 $as_echo_n "(cached) " >&6
3135 cat >conftest.$ac_ext <<_ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3153 rm -f conftest.$ac_objext
3154 if { (ac_try="$ac_compile"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3160 $as_echo "$ac_try_echo") >&5
3161 (eval "$ac_compile") 2>conftest.er1
3163 grep -v '^ *+' conftest.er1 >conftest.err
3165 cat conftest.err >&5
3166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } && {
3168 test -z "$ac_c_werror_flag" ||
3169 test ! -s conftest.err
3170 } && test -s conftest.$ac_objext; then
3173 $as_echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3183 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3184 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3185 if test $ac_compiler_gnu = yes; then
3190 ac_test_CFLAGS=${CFLAGS+set}
3191 ac_save_CFLAGS=$CFLAGS
3192 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3193 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3194 if test "${ac_cv_prog_cc_g+set}" = set; then
3195 $as_echo_n "(cached) " >&6
3197 ac_save_c_werror_flag=$ac_c_werror_flag
3198 ac_c_werror_flag=yes
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3223 $as_echo "$ac_try_echo") >&5
3224 (eval "$ac_compile") 2>conftest.er1
3226 grep -v '^ *+' conftest.er1 >conftest.err
3228 cat conftest.err >&5
3229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } && {
3231 test -z "$ac_c_werror_flag" ||
3232 test ! -s conftest.err
3233 } && test -s conftest.$ac_objext; then
3236 $as_echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3240 cat >conftest.$ac_ext <<_ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3255 rm -f conftest.$ac_objext
3256 if { (ac_try="$ac_compile"
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3262 $as_echo "$ac_try_echo") >&5
3263 (eval "$ac_compile") 2>conftest.er1
3265 grep -v '^ *+' conftest.er1 >conftest.err
3267 cat conftest.err >&5
3268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } && {
3270 test -z "$ac_c_werror_flag" ||
3271 test ! -s conftest.err
3272 } && test -s conftest.$ac_objext; then
3275 $as_echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 ac_c_werror_flag=$ac_save_c_werror_flag
3280 cat >conftest.$ac_ext <<_ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3302 $as_echo "$ac_try_echo") >&5
3303 (eval "$ac_compile") 2>conftest.er1
3305 grep -v '^ *+' conftest.er1 >conftest.err
3307 cat conftest.err >&5
3308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } && {
3310 test -z "$ac_c_werror_flag" ||
3311 test ! -s conftest.err
3312 } && test -s conftest.$ac_objext; then
3315 $as_echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 ac_c_werror_flag=$ac_save_c_werror_flag
3330 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3331 $as_echo "$ac_cv_prog_cc_g" >&6; }
3332 if test "$ac_test_CFLAGS" = set; then
3333 CFLAGS=$ac_save_CFLAGS
3334 elif test $ac_cv_prog_cc_g = yes; then
3335 if test "$GCC" = yes; then
3341 if test "$GCC" = yes; then
3347 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3348 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3349 if test "${ac_cv_prog_cc_c89+set}" = set; then
3350 $as_echo_n "(cached) " >&6
3352 ac_cv_prog_cc_c89=no
3354 cat >conftest.$ac_ext <<_ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3362 #include <sys/types.h>
3363 #include <sys/stat.h>
3364 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3365 struct buf { int x; };
3366 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3367 static char *e (p, i)
3373 static char *f (char * (*g) (char **, int), char **p, ...)
3378 s = g (p, va_arg (v,int));
3383 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3384 function prototypes and stuff, but not '\xHH' hex character constants.
3385 These don't provoke an error unfortunately, instead are silently treated
3386 as 'x'. The following induces an error, until -std is added to get
3387 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3388 array size at least. It's necessary to write '\x00'==0 to get something
3389 that's true only with -std. */
3390 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3392 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3393 inside strings and character constants. */
3395 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3397 int test (int i, double x);
3398 struct s1 {int (*f) (int a);};
3399 struct s2 {int (*f) (double a);};
3400 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3406 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3411 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3412 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3414 CC="$ac_save_CC $ac_arg"
3415 rm -f conftest.$ac_objext
3416 if { (ac_try="$ac_compile"
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423 (eval "$ac_compile") 2>conftest.er1
3425 grep -v '^ *+' conftest.er1 >conftest.err
3427 cat conftest.err >&5
3428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } && {
3430 test -z "$ac_c_werror_flag" ||
3431 test ! -s conftest.err
3432 } && test -s conftest.$ac_objext; then
3433 ac_cv_prog_cc_c89=$ac_arg
3435 $as_echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3441 rm -f core conftest.err conftest.$ac_objext
3442 test "x$ac_cv_prog_cc_c89" != "xno" && break
3444 rm -f conftest.$ac_ext
3449 case "x$ac_cv_prog_cc_c89" in
3451 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3452 $as_echo "none needed" >&6; } ;;
3454 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3455 $as_echo "unsupported" >&6; } ;;
3457 CC="$CC $ac_cv_prog_cc_c89"
3458 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3459 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3464 ac_cpp='$CPP $CPPFLAGS'
3465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469 depcc="$CC" am_compiler_list=
3471 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3472 $as_echo_n "checking dependency style of $depcc... " >&6; }
3473 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3474 $as_echo_n "(cached) " >&6
3476 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3477 # We make a subdir and do the tests there. Otherwise we can end up
3478 # making bogus files that we don't know about and never remove. For
3479 # instance it was reported that on HP-UX the gcc test will end up
3480 # making a dummy file named `D' -- because `-MD' means `put the output
3483 # Copy depcomp to subdir because otherwise we won't find it if we're
3484 # using a relative directory.
3485 cp "$am_depcomp" conftest.dir
3487 # We will build objects and dependencies in a subdirectory because
3488 # it helps to detect inapplicable dependency modes. For instance
3489 # both Tru64's cc and ICC support -MD to output dependencies as a
3490 # side effect of compilation, but ICC will put the dependencies in
3491 # the current directory while Tru64 will put them in the object
3495 am_cv_CC_dependencies_compiler_type=none
3496 if test "$am_compiler_list" = ""; then
3497 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3499 for depmode in $am_compiler_list; do
3500 # Setup a source with many dependencies, because some compilers
3501 # like to wrap large dependency lists on column 80 (with \), and
3502 # we should not choose a depcomp mode which is confused by this.
3504 # We need to recreate these files for each test, as the compiler may
3505 # overwrite some of them when testing with obscure command lines.
3506 # This happens at least with the AIX C compiler.
3508 for i in 1 2 3 4 5 6; do
3509 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3510 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3511 # Solaris 8's {/usr,}/bin/sh.
3512 touch sub/conftst$i.h
3514 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3518 # after this tag, mechanisms are not by side-effect, so they'll
3519 # only be used when explicitly requested
3520 if test "x$enable_dependency_tracking" = xyes; then
3528 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3529 # mode. It turns out that the SunPro C++ compiler does not properly
3530 # handle `-M -o', and we need to detect this.
3531 if depmode=$depmode \
3532 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3533 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3534 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3535 >/dev/null 2>conftest.err &&
3536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3537 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3539 # icc doesn't choke on unknown options, it will just issue warnings
3540 # or remarks (even with -Werror). So we grep stderr for any message
3541 # that says an option was ignored or not supported.
3542 # When given -MP, icc 7.0 and 7.1 complain thusly:
3543 # icc: Command line warning: ignoring option '-M'; no argument required
3544 # The diagnosis changed in icc 8.0:
3545 # icc: Command line remark: option '-MP' not supported
3546 if (grep 'ignoring option' conftest.err ||
3547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3548 am_cv_CC_dependencies_compiler_type=$depmode
3557 am_cv_CC_dependencies_compiler_type=none
3561 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3562 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3563 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3568 test "x$enable_dependency_tracking" != xno \
3569 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3571 am__fastdepCC_FALSE='#'
3573 am__fastdepCC_TRUE='#'
3574 am__fastdepCC_FALSE=
3580 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3581 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3582 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3583 $as_echo_n "(cached) " >&6
3585 ac_check_lib_save_LIBS=$LIBS
3586 LIBS="-lcposix $LIBS"
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3594 /* Override any GCC internal prototype to avoid an error.
3595 Use char because int might match the return type of a GCC
3596 builtin and then its argument prototype would still apply. */
3609 rm -f conftest.$ac_objext conftest$ac_exeext
3610 if { (ac_try="$ac_link"
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3616 $as_echo "$ac_try_echo") >&5
3617 (eval "$ac_link") 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } && {
3624 test -z "$ac_c_werror_flag" ||
3625 test ! -s conftest.err
3626 } && test -s conftest$ac_exeext && {
3627 test "$cross_compiling" = yes ||
3628 $as_test_x conftest$ac_exeext
3630 ac_cv_lib_cposix_strerror=yes
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ac_cv_lib_cposix_strerror=no
3638 rm -rf conftest.dSYM
3639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3640 conftest$ac_exeext conftest.$ac_ext
3641 LIBS=$ac_check_lib_save_LIBS
3643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3644 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3645 if test $ac_cv_lib_cposix_strerror = yes; then
3646 LIBS="$LIBS -lcposix"
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656 if test -n "$ac_tool_prefix"; then
3657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3660 $as_echo_n "checking for $ac_word... " >&6; }
3661 if test "${ac_cv_prog_CC+set}" = set; then
3662 $as_echo_n "(cached) " >&6
3664 if test -n "$CC"; then
3665 ac_cv_prog_CC="$CC" # Let the user override the test.
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 if test -n "$CC"; then
3686 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3687 $as_echo "$CC" >&6; }
3689 { $as_echo "$as_me:$LINENO: result: no" >&5
3690 $as_echo "no" >&6; }
3695 if test -z "$ac_cv_prog_CC"; then
3697 # Extract the first word of "gcc", so it can be a program name with args.
3698 set dummy gcc; ac_word=$2
3699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3702 $as_echo_n "(cached) " >&6
3704 if test -n "$ac_ct_CC"; then
3705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3714 ac_cv_prog_ac_ct_CC="gcc"
3715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3725 if test -n "$ac_ct_CC"; then
3726 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3727 $as_echo "$ac_ct_CC" >&6; }
3729 { $as_echo "$as_me:$LINENO: result: no" >&5
3730 $as_echo "no" >&6; }
3733 if test "x$ac_ct_CC" = x; then
3736 case $cross_compiling:$ac_tool_warned in
3738 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3739 whose name does not start with the host triplet. If you think this
3740 configuration is useful to you, please write to autoconf@gnu.org." >&5
3741 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3742 whose name does not start with the host triplet. If you think this
3743 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3744 ac_tool_warned=yes ;;
3752 if test -z "$CC"; then
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}cc; ac_word=$2
3756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_CC+set}" = set; then
3759 $as_echo_n "(cached) " >&6
3761 if test -n "$CC"; then
3762 ac_cv_prog_CC="$CC" # Let the user override the test.
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_CC="${ac_tool_prefix}cc"
3772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 if test -n "$CC"; then
3783 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3784 $as_echo "$CC" >&6; }
3786 { $as_echo "$as_me:$LINENO: result: no" >&5
3787 $as_echo "no" >&6; }
3793 if test -z "$CC"; then
3794 # Extract the first word of "cc", so it can be a program name with args.
3795 set dummy cc; ac_word=$2
3796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_CC+set}" = set; then
3799 $as_echo_n "(cached) " >&6
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3813 ac_prog_rejected=yes
3817 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 if test $ac_prog_rejected = yes; then
3825 # We found a bogon in the path, so make sure we never use it.
3826 set dummy $ac_cv_prog_CC
3828 if test $# != 0; then
3829 # We chose a different compiler from the bogus one.
3830 # However, it has the same basename, so the bogon will be chosen
3831 # first if we set CC to just the basename; use the full file name.
3833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3839 if test -n "$CC"; then
3840 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3841 $as_echo "$CC" >&6; }
3843 { $as_echo "$as_me:$LINENO: result: no" >&5
3844 $as_echo "no" >&6; }
3849 if test -z "$CC"; then
3850 if test -n "$ac_tool_prefix"; then
3851 for ac_prog in cl.exe
3853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3855 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if test "${ac_cv_prog_CC+set}" = set; then
3858 $as_echo_n "(cached) " >&6
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3871 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 if test -n "$CC"; then
3882 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3885 { $as_echo "$as_me:$LINENO: result: no" >&5
3886 $as_echo "no" >&6; }
3890 test -n "$CC" && break
3893 if test -z "$CC"; then
3895 for ac_prog in cl.exe
3897 # Extract the first word of "$ac_prog", so it can be a program name with args.
3898 set dummy $ac_prog; ac_word=$2
3899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 $as_echo_n "checking for $ac_word... " >&6; }
3901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3902 $as_echo_n "(cached) " >&6
3904 if test -n "$ac_ct_CC"; then
3905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914 ac_cv_prog_ac_ct_CC="$ac_prog"
3915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3925 if test -n "$ac_ct_CC"; then
3926 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3927 $as_echo "$ac_ct_CC" >&6; }
3929 { $as_echo "$as_me:$LINENO: result: no" >&5
3930 $as_echo "no" >&6; }
3934 test -n "$ac_ct_CC" && break
3937 if test "x$ac_ct_CC" = x; then
3940 case $cross_compiling:$ac_tool_warned in
3942 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3943 whose name does not start with the host triplet. If you think this
3944 configuration is useful to you, please write to autoconf@gnu.org." >&5
3945 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3946 whose name does not start with the host triplet. If you think this
3947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3948 ac_tool_warned=yes ;;
3957 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3958 See \`config.log' for more details." >&5
3959 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3960 See \`config.log' for more details." >&2;}
3961 { (exit 1); exit 1; }; }
3963 # Provide some information about the compiler.
3964 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3967 { (ac_try="$ac_compiler --version >&5"
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3973 $as_echo "$ac_try_echo") >&5
3974 (eval "$ac_compiler --version >&5") 2>&5
3976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }
3978 { (ac_try="$ac_compiler -v >&5"
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_compiler -v >&5") 2>&5
3987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }
3989 { (ac_try="$ac_compiler -V >&5"
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3995 $as_echo "$ac_try_echo") >&5
3996 (eval "$ac_compiler -V >&5") 2>&5
3998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }
4001 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4004 $as_echo_n "(cached) " >&6
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4024 rm -f conftest.$ac_objext
4025 if { (ac_try="$ac_compile"
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4031 $as_echo "$ac_try_echo") >&5
4032 (eval "$ac_compile") 2>conftest.er1
4034 grep -v '^ *+' conftest.er1 >conftest.err
4036 cat conftest.err >&5
4037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } && {
4039 test -z "$ac_c_werror_flag" ||
4040 test ! -s conftest.err
4041 } && test -s conftest.$ac_objext; then
4044 $as_echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4054 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4055 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4056 if test $ac_compiler_gnu = yes; then
4061 ac_test_CFLAGS=${CFLAGS+set}
4062 ac_save_CFLAGS=$CFLAGS
4063 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4064 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4065 if test "${ac_cv_prog_cc_g+set}" = set; then
4066 $as_echo_n "(cached) " >&6
4068 ac_save_c_werror_flag=$ac_c_werror_flag
4069 ac_c_werror_flag=yes
4072 cat >conftest.$ac_ext <<_ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4087 rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4094 $as_echo "$ac_try_echo") >&5
4095 (eval "$ac_compile") 2>conftest.er1
4097 grep -v '^ *+' conftest.er1 >conftest.err
4099 cat conftest.err >&5
4100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } && {
4102 test -z "$ac_c_werror_flag" ||
4103 test ! -s conftest.err
4104 } && test -s conftest.$ac_objext; then
4107 $as_echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4111 cat >conftest.$ac_ext <<_ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4126 rm -f conftest.$ac_objext
4127 if { (ac_try="$ac_compile"
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4133 $as_echo "$ac_try_echo") >&5
4134 (eval "$ac_compile") 2>conftest.er1
4136 grep -v '^ *+' conftest.er1 >conftest.err
4138 cat conftest.err >&5
4139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } && {
4141 test -z "$ac_c_werror_flag" ||
4142 test ! -s conftest.err
4143 } && test -s conftest.$ac_objext; then
4146 $as_echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4173 $as_echo "$ac_try_echo") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4176 grep -v '^ *+' conftest.er1 >conftest.err
4178 cat conftest.err >&5
4179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } && {
4181 test -z "$ac_c_werror_flag" ||
4182 test ! -s conftest.err
4183 } && test -s conftest.$ac_objext; then
4186 $as_echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 ac_c_werror_flag=$ac_save_c_werror_flag
4201 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4202 $as_echo "$ac_cv_prog_cc_g" >&6; }
4203 if test "$ac_test_CFLAGS" = set; then
4204 CFLAGS=$ac_save_CFLAGS
4205 elif test $ac_cv_prog_cc_g = yes; then
4206 if test "$GCC" = yes; then
4212 if test "$GCC" = yes; then
4218 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4219 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4220 if test "${ac_cv_prog_cc_c89+set}" = set; then
4221 $as_echo_n "(cached) " >&6
4223 ac_cv_prog_cc_c89=no
4225 cat >conftest.$ac_ext <<_ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4233 #include <sys/types.h>
4234 #include <sys/stat.h>
4235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4236 struct buf { int x; };
4237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4238 static char *e (p, i)
4244 static char *f (char * (*g) (char **, int), char **p, ...)
4249 s = g (p, va_arg (v,int));
4254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4255 function prototypes and stuff, but not '\xHH' hex character constants.
4256 These don't provoke an error unfortunately, instead are silently treated
4257 as 'x'. The following induces an error, until -std is added to get
4258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4259 array size at least. It's necessary to write '\x00'==0 to get something
4260 that's true only with -std. */
4261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4264 inside strings and character constants. */
4266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4268 int test (int i, double x);
4269 struct s1 {int (*f) (int a);};
4270 struct s2 {int (*f) (double a);};
4271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4285 CC="$ac_save_CC $ac_arg"
4286 rm -f conftest.$ac_objext
4287 if { (ac_try="$ac_compile"
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4293 $as_echo "$ac_try_echo") >&5
4294 (eval "$ac_compile") 2>conftest.er1
4296 grep -v '^ *+' conftest.er1 >conftest.err
4298 cat conftest.err >&5
4299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } && {
4301 test -z "$ac_c_werror_flag" ||
4302 test ! -s conftest.err
4303 } && test -s conftest.$ac_objext; then
4304 ac_cv_prog_cc_c89=$ac_arg
4306 $as_echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4312 rm -f core conftest.err conftest.$ac_objext
4313 test "x$ac_cv_prog_cc_c89" != "xno" && break
4315 rm -f conftest.$ac_ext
4320 case "x$ac_cv_prog_cc_c89" in
4322 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4323 $as_echo "none needed" >&6; } ;;
4325 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4326 $as_echo "unsupported" >&6; } ;;
4328 CC="$CC $ac_cv_prog_cc_c89"
4329 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4330 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 depcc="$CC" am_compiler_list=
4342 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4343 $as_echo_n "checking dependency style of $depcc... " >&6; }
4344 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4345 $as_echo_n "(cached) " >&6
4347 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4348 # We make a subdir and do the tests there. Otherwise we can end up
4349 # making bogus files that we don't know about and never remove. For
4350 # instance it was reported that on HP-UX the gcc test will end up
4351 # making a dummy file named `D' -- because `-MD' means `put the output
4354 # Copy depcomp to subdir because otherwise we won't find it if we're
4355 # using a relative directory.
4356 cp "$am_depcomp" conftest.dir
4358 # We will build objects and dependencies in a subdirectory because
4359 # it helps to detect inapplicable dependency modes. For instance
4360 # both Tru64's cc and ICC support -MD to output dependencies as a
4361 # side effect of compilation, but ICC will put the dependencies in
4362 # the current directory while Tru64 will put them in the object
4366 am_cv_CC_dependencies_compiler_type=none
4367 if test "$am_compiler_list" = ""; then
4368 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4370 for depmode in $am_compiler_list; do
4371 # Setup a source with many dependencies, because some compilers
4372 # like to wrap large dependency lists on column 80 (with \), and
4373 # we should not choose a depcomp mode which is confused by this.
4375 # We need to recreate these files for each test, as the compiler may
4376 # overwrite some of them when testing with obscure command lines.
4377 # This happens at least with the AIX C compiler.
4379 for i in 1 2 3 4 5 6; do
4380 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4381 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4382 # Solaris 8's {/usr,}/bin/sh.
4383 touch sub/conftst$i.h
4385 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4389 # after this tag, mechanisms are not by side-effect, so they'll
4390 # only be used when explicitly requested
4391 if test "x$enable_dependency_tracking" = xyes; then
4399 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4400 # mode. It turns out that the SunPro C++ compiler does not properly
4401 # handle `-M -o', and we need to detect this.
4402 if depmode=$depmode \
4403 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4404 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4405 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4406 >/dev/null 2>conftest.err &&
4407 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4408 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4409 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4410 # icc doesn't choke on unknown options, it will just issue warnings
4411 # or remarks (even with -Werror). So we grep stderr for any message
4412 # that says an option was ignored or not supported.
4413 # When given -MP, icc 7.0 and 7.1 complain thusly:
4414 # icc: Command line warning: ignoring option '-M'; no argument required
4415 # The diagnosis changed in icc 8.0:
4416 # icc: Command line remark: option '-MP' not supported
4417 if (grep 'ignoring option' conftest.err ||
4418 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4419 am_cv_CC_dependencies_compiler_type=$depmode
4428 am_cv_CC_dependencies_compiler_type=none
4432 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4433 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4434 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4439 test "x$enable_dependency_tracking" != xno \
4440 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4442 am__fastdepCC_FALSE='#'
4444 am__fastdepCC_TRUE='#'
4445 am__fastdepCC_FALSE=
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454 if test -n "$ac_tool_prefix"; then
4455 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4456 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if test "${ac_cv_prog_CC+set}" = set; then
4460 $as_echo_n "(cached) " >&6
4462 if test -n "$CC"; then
4463 ac_cv_prog_CC="$CC" # Let the user override the test.
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 if test -n "$CC"; then
4484 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4485 $as_echo "$CC" >&6; }
4487 { $as_echo "$as_me:$LINENO: result: no" >&5
4488 $as_echo "no" >&6; }
4493 if test -z "$ac_cv_prog_CC"; then
4495 # Extract the first word of "gcc", so it can be a program name with args.
4496 set dummy gcc; ac_word=$2
4497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4500 $as_echo_n "(cached) " >&6
4502 if test -n "$ac_ct_CC"; then
4503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_ac_ct_CC="gcc"
4513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4523 if test -n "$ac_ct_CC"; then
4524 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4525 $as_echo "$ac_ct_CC" >&6; }
4527 { $as_echo "$as_me:$LINENO: result: no" >&5
4528 $as_echo "no" >&6; }
4531 if test "x$ac_ct_CC" = x; then
4534 case $cross_compiling:$ac_tool_warned in
4536 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4537 whose name does not start with the host triplet. If you think this
4538 configuration is useful to you, please write to autoconf@gnu.org." >&5
4539 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4540 whose name does not start with the host triplet. If you think this
4541 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4542 ac_tool_warned=yes ;;
4550 if test -z "$CC"; then
4551 if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4553 set dummy ${ac_tool_prefix}cc; ac_word=$2
4554 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if test "${ac_cv_prog_CC+set}" = set; then
4557 $as_echo_n "(cached) " >&6
4559 if test -n "$CC"; then
4560 ac_cv_prog_CC="$CC" # Let the user override the test.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_CC="${ac_tool_prefix}cc"
4570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 if test -n "$CC"; then
4581 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4582 $as_echo "$CC" >&6; }
4584 { $as_echo "$as_me:$LINENO: result: no" >&5
4585 $as_echo "no" >&6; }
4591 if test -z "$CC"; then
4592 # Extract the first word of "cc", so it can be a program name with args.
4593 set dummy cc; ac_word=$2
4594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if test "${ac_cv_prog_CC+set}" = set; then
4597 $as_echo_n "(cached) " >&6
4599 if test -n "$CC"; then
4600 ac_cv_prog_CC="$CC" # Let the user override the test.
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4611 ac_prog_rejected=yes
4615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 if test $ac_prog_rejected = yes; then
4623 # We found a bogon in the path, so make sure we never use it.
4624 set dummy $ac_cv_prog_CC
4626 if test $# != 0; then
4627 # We chose a different compiler from the bogus one.
4628 # However, it has the same basename, so the bogon will be chosen
4629 # first if we set CC to just the basename; use the full file name.
4631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4637 if test -n "$CC"; then
4638 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4639 $as_echo "$CC" >&6; }
4641 { $as_echo "$as_me:$LINENO: result: no" >&5
4642 $as_echo "no" >&6; }
4647 if test -z "$CC"; then
4648 if test -n "$ac_tool_prefix"; then
4649 for ac_prog in cl.exe
4651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_CC+set}" = set; then
4656 $as_echo_n "(cached) " >&6
4658 if test -n "$CC"; then
4659 ac_cv_prog_CC="$CC" # Let the user override the test.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 if test -n "$CC"; then
4680 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4681 $as_echo "$CC" >&6; }
4683 { $as_echo "$as_me:$LINENO: result: no" >&5
4684 $as_echo "no" >&6; }
4688 test -n "$CC" && break
4691 if test -z "$CC"; then
4693 for ac_prog in cl.exe
4695 # Extract the first word of "$ac_prog", so it can be a program name with args.
4696 set dummy $ac_prog; ac_word=$2
4697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4700 $as_echo_n "(cached) " >&6
4702 if test -n "$ac_ct_CC"; then
4703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_ac_ct_CC="$ac_prog"
4713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4723 if test -n "$ac_ct_CC"; then
4724 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4725 $as_echo "$ac_ct_CC" >&6; }
4727 { $as_echo "$as_me:$LINENO: result: no" >&5
4728 $as_echo "no" >&6; }
4732 test -n "$ac_ct_CC" && break
4735 if test "x$ac_ct_CC" = x; then
4738 case $cross_compiling:$ac_tool_warned in
4740 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4741 whose name does not start with the host triplet. If you think this
4742 configuration is useful to you, please write to autoconf@gnu.org." >&5
4743 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4744 whose name does not start with the host triplet. If you think this
4745 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4746 ac_tool_warned=yes ;;
4755 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4756 See \`config.log' for more details." >&5
4757 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4758 See \`config.log' for more details." >&2;}
4759 { (exit 1); exit 1; }; }
4761 # Provide some information about the compiler.
4762 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4765 { (ac_try="$ac_compiler --version >&5"
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4771 $as_echo "$ac_try_echo") >&5
4772 (eval "$ac_compiler --version >&5") 2>&5
4774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }
4776 { (ac_try="$ac_compiler -v >&5"
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4782 $as_echo "$ac_try_echo") >&5
4783 (eval "$ac_compiler -v >&5") 2>&5
4785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }
4787 { (ac_try="$ac_compiler -V >&5"
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4793 $as_echo "$ac_try_echo") >&5
4794 (eval "$ac_compiler -V >&5") 2>&5
4796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }
4799 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4801 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4802 $as_echo_n "(cached) " >&6
4804 cat >conftest.$ac_ext <<_ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4822 rm -f conftest.$ac_objext
4823 if { (ac_try="$ac_compile"
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4829 $as_echo "$ac_try_echo") >&5
4830 (eval "$ac_compile") 2>conftest.er1
4832 grep -v '^ *+' conftest.er1 >conftest.err
4834 cat conftest.err >&5
4835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } && {
4837 test -z "$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4839 } && test -s conftest.$ac_objext; then
4842 $as_echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4852 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4853 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4854 if test $ac_compiler_gnu = yes; then
4859 ac_test_CFLAGS=${CFLAGS+set}
4860 ac_save_CFLAGS=$CFLAGS
4861 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4862 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4863 if test "${ac_cv_prog_cc_g+set}" = set; then
4864 $as_echo_n "(cached) " >&6
4866 ac_save_c_werror_flag=$ac_c_werror_flag
4867 ac_c_werror_flag=yes
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4892 $as_echo "$ac_try_echo") >&5
4893 (eval "$ac_compile") 2>conftest.er1
4895 grep -v '^ *+' conftest.er1 >conftest.err
4897 cat conftest.err >&5
4898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } && {
4900 test -z "$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 } && test -s conftest.$ac_objext; then
4905 $as_echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4909 cat >conftest.$ac_ext <<_ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4924 rm -f conftest.$ac_objext
4925 if { (ac_try="$ac_compile"
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4931 $as_echo "$ac_try_echo") >&5
4932 (eval "$ac_compile") 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && {
4939 test -z "$ac_c_werror_flag" ||
4940 test ! -s conftest.err
4941 } && test -s conftest.$ac_objext; then
4944 $as_echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 ac_c_werror_flag=$ac_save_c_werror_flag
4949 cat >conftest.$ac_ext <<_ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4964 rm -f conftest.$ac_objext
4965 if { (ac_try="$ac_compile"
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4971 $as_echo "$ac_try_echo") >&5
4972 (eval "$ac_compile") 2>conftest.er1
4974 grep -v '^ *+' conftest.er1 >conftest.err
4976 cat conftest.err >&5
4977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && {
4979 test -z "$ac_c_werror_flag" ||
4980 test ! -s conftest.err
4981 } && test -s conftest.$ac_objext; then
4984 $as_echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 ac_c_werror_flag=$ac_save_c_werror_flag
4999 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5000 $as_echo "$ac_cv_prog_cc_g" >&6; }
5001 if test "$ac_test_CFLAGS" = set; then
5002 CFLAGS=$ac_save_CFLAGS
5003 elif test $ac_cv_prog_cc_g = yes; then
5004 if test "$GCC" = yes; then
5010 if test "$GCC" = yes; then
5016 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5017 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5018 if test "${ac_cv_prog_cc_c89+set}" = set; then
5019 $as_echo_n "(cached) " >&6
5021 ac_cv_prog_cc_c89=no
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5031 #include <sys/types.h>
5032 #include <sys/stat.h>
5033 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5034 struct buf { int x; };
5035 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5036 static char *e (p, i)
5042 static char *f (char * (*g) (char **, int), char **p, ...)
5047 s = g (p, va_arg (v,int));
5052 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5053 function prototypes and stuff, but not '\xHH' hex character constants.
5054 These don't provoke an error unfortunately, instead are silently treated
5055 as 'x'. The following induces an error, until -std is added to get
5056 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5057 array size at least. It's necessary to write '\x00'==0 to get something
5058 that's true only with -std. */
5059 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5061 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5062 inside strings and character constants. */
5064 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5066 int test (int i, double x);
5067 struct s1 {int (*f) (int a);};
5068 struct s2 {int (*f) (double a);};
5069 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5075 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5080 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5081 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5083 CC="$ac_save_CC $ac_arg"
5084 rm -f conftest.$ac_objext
5085 if { (ac_try="$ac_compile"
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5091 $as_echo "$ac_try_echo") >&5
5092 (eval "$ac_compile") 2>conftest.er1
5094 grep -v '^ *+' conftest.er1 >conftest.err
5096 cat conftest.err >&5
5097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && {
5099 test -z "$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5101 } && test -s conftest.$ac_objext; then
5102 ac_cv_prog_cc_c89=$ac_arg
5104 $as_echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5110 rm -f core conftest.err conftest.$ac_objext
5111 test "x$ac_cv_prog_cc_c89" != "xno" && break
5113 rm -f conftest.$ac_ext
5118 case "x$ac_cv_prog_cc_c89" in
5120 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5121 $as_echo "none needed" >&6; } ;;
5123 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5124 $as_echo "unsupported" >&6; } ;;
5126 CC="$CC $ac_cv_prog_cc_c89"
5127 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5128 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5133 ac_cpp='$CPP $CPPFLAGS'
5134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138 depcc="$CC" am_compiler_list=
5140 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5141 $as_echo_n "checking dependency style of $depcc... " >&6; }
5142 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5143 $as_echo_n "(cached) " >&6
5145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5146 # We make a subdir and do the tests there. Otherwise we can end up
5147 # making bogus files that we don't know about and never remove. For
5148 # instance it was reported that on HP-UX the gcc test will end up
5149 # making a dummy file named `D' -- because `-MD' means `put the output
5152 # Copy depcomp to subdir because otherwise we won't find it if we're
5153 # using a relative directory.
5154 cp "$am_depcomp" conftest.dir
5156 # We will build objects and dependencies in a subdirectory because
5157 # it helps to detect inapplicable dependency modes. For instance
5158 # both Tru64's cc and ICC support -MD to output dependencies as a
5159 # side effect of compilation, but ICC will put the dependencies in
5160 # the current directory while Tru64 will put them in the object
5164 am_cv_CC_dependencies_compiler_type=none
5165 if test "$am_compiler_list" = ""; then
5166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5168 for depmode in $am_compiler_list; do
5169 # Setup a source with many dependencies, because some compilers
5170 # like to wrap large dependency lists on column 80 (with \), and
5171 # we should not choose a depcomp mode which is confused by this.
5173 # We need to recreate these files for each test, as the compiler may
5174 # overwrite some of them when testing with obscure command lines.
5175 # This happens at least with the AIX C compiler.
5177 for i in 1 2 3 4 5 6; do
5178 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5179 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5180 # Solaris 8's {/usr,}/bin/sh.
5181 touch sub/conftst$i.h
5183 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5187 # after this tag, mechanisms are not by side-effect, so they'll
5188 # only be used when explicitly requested
5189 if test "x$enable_dependency_tracking" = xyes; then
5197 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5198 # mode. It turns out that the SunPro C++ compiler does not properly
5199 # handle `-M -o', and we need to detect this.
5200 if depmode=$depmode \
5201 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5202 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5203 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5204 >/dev/null 2>conftest.err &&
5205 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5206 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5207 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5208 # icc doesn't choke on unknown options, it will just issue warnings
5209 # or remarks (even with -Werror). So we grep stderr for any message
5210 # that says an option was ignored or not supported.
5211 # When given -MP, icc 7.0 and 7.1 complain thusly:
5212 # icc: Command line warning: ignoring option '-M'; no argument required
5213 # The diagnosis changed in icc 8.0:
5214 # icc: Command line remark: option '-MP' not supported
5215 if (grep 'ignoring option' conftest.err ||
5216 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5217 am_cv_CC_dependencies_compiler_type=$depmode
5226 am_cv_CC_dependencies_compiler_type=none
5230 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5231 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5232 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5237 test "x$enable_dependency_tracking" != xno \
5238 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5240 am__fastdepCC_FALSE='#'
5242 am__fastdepCC_TRUE='#'
5243 am__fastdepCC_FALSE=
5248 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5251 ac_cpp='$OBJCPP $CPPFLAGS'
5252 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5255 if test -n "$ac_tool_prefix"; then
5256 for ac_prog in gcc objcc objc cc CC
5258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_prog_OBJC+set}" = set; then
5263 $as_echo_n "(cached) " >&6
5265 if test -n "$OBJC"; then
5266 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 OBJC=$ac_cv_prog_OBJC
5286 if test -n "$OBJC"; then
5287 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
5288 $as_echo "$OBJC" >&6; }
5290 { $as_echo "$as_me:$LINENO: result: no" >&5
5291 $as_echo "no" >&6; }
5295 test -n "$OBJC" && break
5298 if test -z "$OBJC"; then
5300 for ac_prog in gcc objcc objc cc CC
5302 # Extract the first word of "$ac_prog", so it can be a program name with args.
5303 set dummy $ac_prog; ac_word=$2
5304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
5307 $as_echo_n "(cached) " >&6
5309 if test -n "$ac_ct_OBJC"; then
5310 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319 ac_cv_prog_ac_ct_OBJC="$ac_prog"
5320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5330 if test -n "$ac_ct_OBJC"; then
5331 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
5332 $as_echo "$ac_ct_OBJC" >&6; }
5334 { $as_echo "$as_me:$LINENO: result: no" >&5
5335 $as_echo "no" >&6; }
5339 test -n "$ac_ct_OBJC" && break
5342 if test "x$ac_ct_OBJC" = x; then
5345 case $cross_compiling:$ac_tool_warned in
5347 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5348 whose name does not start with the host triplet. If you think this
5349 configuration is useful to you, please write to autoconf@gnu.org." >&5
5350 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5351 whose name does not start with the host triplet. If you think this
5352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5353 ac_tool_warned=yes ;;
5359 # Provide some information about the compiler.
5360 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
5363 { (ac_try="$ac_compiler --version >&5"
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5369 $as_echo "$ac_try_echo") >&5
5370 (eval "$ac_compiler --version >&5") 2>&5
5372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }
5374 { (ac_try="$ac_compiler -v >&5"
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5380 $as_echo "$ac_try_echo") >&5
5381 (eval "$ac_compiler -v >&5") 2>&5
5383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }
5385 { (ac_try="$ac_compiler -V >&5"
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5391 $as_echo "$ac_try_echo") >&5
5392 (eval "$ac_compiler -V >&5") 2>&5
5394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }
5397 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
5398 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5399 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
5400 $as_echo_n "(cached) " >&6
5402 cat >conftest.$ac_ext <<_ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5420 rm -f conftest.$ac_objext
5421 if { (ac_try="$ac_compile"
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5427 $as_echo "$ac_try_echo") >&5
5428 (eval "$ac_compile") 2>conftest.er1
5430 grep -v '^ *+' conftest.er1 >conftest.err
5432 cat conftest.err >&5
5433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } && {
5435 test -z "$ac_objc_werror_flag" ||
5436 test ! -s conftest.err
5437 } && test -s conftest.$ac_objext; then
5440 $as_echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5450 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
5451 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5452 if test $ac_compiler_gnu = yes; then
5457 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5458 ac_save_OBJCFLAGS=$OBJCFLAGS
5459 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
5460 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5461 if test "${ac_cv_prog_objc_g+set}" = set; then
5462 $as_echo_n "(cached) " >&6
5464 ac_save_objc_werror_flag=$ac_objc_werror_flag
5465 ac_objc_werror_flag=yes
5466 ac_cv_prog_objc_g=no
5468 cat >conftest.$ac_ext <<_ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5490 $as_echo "$ac_try_echo") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5493 grep -v '^ *+' conftest.er1 >conftest.err
5495 cat conftest.err >&5
5496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_objc_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5501 ac_cv_prog_objc_g=yes
5503 $as_echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5529 $as_echo "$ac_try_echo") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5532 grep -v '^ *+' conftest.er1 >conftest.err
5534 cat conftest.err >&5
5535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_objc_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.$ac_objext; then
5542 $as_echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 ac_objc_werror_flag=$ac_save_objc_werror_flag
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5562 rm -f conftest.$ac_objext
5563 if { (ac_try="$ac_compile"
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5569 $as_echo "$ac_try_echo") >&5
5570 (eval "$ac_compile") 2>conftest.er1
5572 grep -v '^ *+' conftest.er1 >conftest.err
5574 cat conftest.err >&5
5575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } && {
5577 test -z "$ac_objc_werror_flag" ||
5578 test ! -s conftest.err
5579 } && test -s conftest.$ac_objext; then
5580 ac_cv_prog_objc_g=yes
5582 $as_echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595 ac_objc_werror_flag=$ac_save_objc_werror_flag
5597 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
5598 $as_echo "$ac_cv_prog_objc_g" >&6; }
5599 if test "$ac_test_OBJCFLAGS" = set; then
5600 OBJCFLAGS=$ac_save_OBJCFLAGS
5601 elif test $ac_cv_prog_objc_g = yes; then
5602 if test "$GOBJC" = yes; then
5608 if test "$GOBJC" = yes; then
5615 ac_cpp='$CPP $CPPFLAGS'
5616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5620 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5621 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5622 if test "${ac_cv_path_SED+set}" = set; then
5623 $as_echo_n "(cached) " >&6
5625 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5626 for ac_i in 1 2 3 4 5 6 7; do
5627 ac_script="$ac_script$as_nl$ac_script"
5629 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5630 $as_unset ac_script || ac_script=
5631 if test -z "$SED"; then
5632 ac_path_SED_found=false
5633 # Loop through the user's path and test for each of PROGNAME-LIST
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 test -z "$as_dir" && as_dir=.
5639 for ac_prog in sed gsed; do
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5642 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5643 # Check for GNU ac_path_SED and select it if it is found.
5644 # Check for GNU $ac_path_SED
5645 case `"$ac_path_SED" --version 2>&1` in
5647 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5650 $as_echo_n 0123456789 >"conftest.in"
5653 cat "conftest.in" "conftest.in" >"conftest.tmp"
5654 mv "conftest.tmp" "conftest.in"
5655 cp "conftest.in" "conftest.nl"
5656 $as_echo '' >> "conftest.nl"
5657 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5659 ac_count=`expr $ac_count + 1`
5660 if test $ac_count -gt ${ac_path_SED_max-0}; then
5661 # Best one so far, save it but keep looking for a better one
5662 ac_cv_path_SED="$ac_path_SED"
5663 ac_path_SED_max=$ac_count
5665 # 10*(2^10) chars as input seems more than enough
5666 test $ac_count -gt 10 && break
5668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5671 $ac_path_SED_found && break 3
5676 if test -z "$ac_cv_path_SED"; then
5677 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5678 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5679 { (exit 1); exit 1; }; }
5686 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5687 $as_echo "$ac_cv_path_SED" >&6; }
5688 SED="$ac_cv_path_SED"
5691 # By default we simply use the C compiler to build assembly code.
5693 test "${CCAS+set}" = set || CCAS=$CC
5694 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5704 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5705 # On Suns, sometimes $CPP names a directory.
5706 if test -n "$CPP" && test -d "$CPP"; then
5709 if test -z "$CPP"; then
5710 if test "${ac_cv_prog_CPP+set}" = set; then
5711 $as_echo_n "(cached) " >&6
5713 # Double quotes because CPP needs to be expanded
5714 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5717 for ac_c_preproc_warn_flag in '' yes
5719 # Use a header file that comes with gcc, so configuring glibc
5720 # with a fresh cross-compiler works.
5721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722 # <limits.h> exists even on freestanding compilers.
5723 # On the NeXT, cc -E runs the code through the compiler's parser,
5724 # not just through cpp. "Syntax error" is here to catch this case.
5725 cat >conftest.$ac_ext <<_ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5732 # include <limits.h>
5734 # include <assert.h>
5738 if { (ac_try="$ac_cpp conftest.$ac_ext"
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5744 $as_echo "$ac_try_echo") >&5
5745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5747 grep -v '^ *+' conftest.er1 >conftest.err
5749 cat conftest.err >&5
5750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } >/dev/null && {
5752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5757 $as_echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 # Broken: fails on valid input.
5764 rm -f conftest.err conftest.$ac_ext
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
5768 cat >conftest.$ac_ext <<_ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 #include <ac_nonexistent.h>
5776 if { (ac_try="$ac_cpp conftest.$ac_ext"
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5782 $as_echo "$ac_try_echo") >&5
5783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5785 grep -v '^ *+' conftest.er1 >conftest.err
5787 cat conftest.err >&5
5788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } >/dev/null && {
5790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5793 # Broken: success on invalid input.
5796 $as_echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5799 # Passes both tests.
5804 rm -f conftest.err conftest.$ac_ext
5807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5808 rm -f conftest.err conftest.$ac_ext
5809 if $ac_preproc_ok; then
5821 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5822 $as_echo "$CPP" >&6; }
5824 for ac_c_preproc_warn_flag in '' yes
5826 # Use a header file that comes with gcc, so configuring glibc
5827 # with a fresh cross-compiler works.
5828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5829 # <limits.h> exists even on freestanding compilers.
5830 # On the NeXT, cc -E runs the code through the compiler's parser,
5831 # not just through cpp. "Syntax error" is here to catch this case.
5832 cat >conftest.$ac_ext <<_ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5839 # include <limits.h>
5841 # include <assert.h>
5845 if { (ac_try="$ac_cpp conftest.$ac_ext"
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5851 $as_echo "$ac_try_echo") >&5
5852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5854 grep -v '^ *+' conftest.er1 >conftest.err
5856 cat conftest.err >&5
5857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } >/dev/null && {
5859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5860 test ! -s conftest.err
5864 $as_echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5867 # Broken: fails on valid input.
5871 rm -f conftest.err conftest.$ac_ext
5873 # OK, works on sane cases. Now check whether nonexistent headers
5874 # can be detected and how.
5875 cat >conftest.$ac_ext <<_ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <ac_nonexistent.h>
5883 if { (ac_try="$ac_cpp conftest.$ac_ext"
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5889 $as_echo "$ac_try_echo") >&5
5890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5892 grep -v '^ *+' conftest.er1 >conftest.err
5894 cat conftest.err >&5
5895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } >/dev/null && {
5897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5898 test ! -s conftest.err
5900 # Broken: success on invalid input.
5903 $as_echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5906 # Passes both tests.
5911 rm -f conftest.err conftest.$ac_ext
5914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5915 rm -f conftest.err conftest.$ac_ext
5916 if $ac_preproc_ok; then
5919 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5920 See \`config.log' for more details." >&5
5921 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5922 See \`config.log' for more details." >&2;}
5923 { (exit 1); exit 1; }; }
5927 ac_cpp='$CPP $CPPFLAGS'
5928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5933 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5934 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5935 if test "${ac_cv_path_GREP+set}" = set; then
5936 $as_echo_n "(cached) " >&6
5938 if test -z "$GREP"; then
5939 ac_path_GREP_found=false
5940 # Loop through the user's path and test for each of PROGNAME-LIST
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5945 test -z "$as_dir" && as_dir=.
5946 for ac_prog in grep ggrep; do
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5949 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5950 # Check for GNU ac_path_GREP and select it if it is found.
5951 # Check for GNU $ac_path_GREP
5952 case `"$ac_path_GREP" --version 2>&1` in
5954 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5957 $as_echo_n 0123456789 >"conftest.in"
5960 cat "conftest.in" "conftest.in" >"conftest.tmp"
5961 mv "conftest.tmp" "conftest.in"
5962 cp "conftest.in" "conftest.nl"
5963 $as_echo 'GREP' >> "conftest.nl"
5964 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5966 ac_count=`expr $ac_count + 1`
5967 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5968 # Best one so far, save it but keep looking for a better one
5969 ac_cv_path_GREP="$ac_path_GREP"
5970 ac_path_GREP_max=$ac_count
5972 # 10*(2^10) chars as input seems more than enough
5973 test $ac_count -gt 10 && break
5975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5978 $ac_path_GREP_found && break 3
5983 if test -z "$ac_cv_path_GREP"; then
5984 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5985 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5986 { (exit 1); exit 1; }; }
5989 ac_cv_path_GREP=$GREP
5993 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5994 $as_echo "$ac_cv_path_GREP" >&6; }
5995 GREP="$ac_cv_path_GREP"
5998 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5999 $as_echo_n "checking for egrep... " >&6; }
6000 if test "${ac_cv_path_EGREP+set}" = set; then
6001 $as_echo_n "(cached) " >&6
6003 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6004 then ac_cv_path_EGREP="$GREP -E"
6006 if test -z "$EGREP"; then
6007 ac_path_EGREP_found=false
6008 # Loop through the user's path and test for each of PROGNAME-LIST
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6013 test -z "$as_dir" && as_dir=.
6014 for ac_prog in egrep; do
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6017 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6018 # Check for GNU ac_path_EGREP and select it if it is found.
6019 # Check for GNU $ac_path_EGREP
6020 case `"$ac_path_EGREP" --version 2>&1` in
6022 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6025 $as_echo_n 0123456789 >"conftest.in"
6028 cat "conftest.in" "conftest.in" >"conftest.tmp"
6029 mv "conftest.tmp" "conftest.in"
6030 cp "conftest.in" "conftest.nl"
6031 $as_echo 'EGREP' >> "conftest.nl"
6032 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6034 ac_count=`expr $ac_count + 1`
6035 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6036 # Best one so far, save it but keep looking for a better one
6037 ac_cv_path_EGREP="$ac_path_EGREP"
6038 ac_path_EGREP_max=$ac_count
6040 # 10*(2^10) chars as input seems more than enough
6041 test $ac_count -gt 10 && break
6043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6046 $ac_path_EGREP_found && break 3
6051 if test -z "$ac_cv_path_EGREP"; then
6052 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6053 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6054 { (exit 1); exit 1; }; }
6057 ac_cv_path_EGREP=$EGREP
6062 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6063 $as_echo "$ac_cv_path_EGREP" >&6; }
6064 EGREP="$ac_cv_path_EGREP"
6067 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6068 $as_echo_n "checking for ANSI C header files... " >&6; }
6069 if test "${ac_cv_header_stdc+set}" = set; then
6070 $as_echo_n "(cached) " >&6
6072 cat >conftest.$ac_ext <<_ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6098 $as_echo "$ac_try_echo") >&5
6099 (eval "$ac_compile") 2>conftest.er1
6101 grep -v '^ *+' conftest.er1 >conftest.err
6103 cat conftest.err >&5
6104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest.$ac_objext; then
6109 ac_cv_header_stdc=yes
6111 $as_echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6114 ac_cv_header_stdc=no
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 if test $ac_cv_header_stdc = yes; then
6120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6121 cat >conftest.$ac_ext <<_ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6131 $EGREP "memchr" >/dev/null 2>&1; then
6134 ac_cv_header_stdc=no
6140 if test $ac_cv_header_stdc = yes; then
6141 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6142 cat >conftest.$ac_ext <<_ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152 $EGREP "free" >/dev/null 2>&1; then
6155 ac_cv_header_stdc=no
6161 if test $ac_cv_header_stdc = yes; then
6162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6163 if test "$cross_compiling" = yes; then
6166 cat >conftest.$ac_ext <<_ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6174 #if ((' ' & 0x0FF) == 0x020)
6175 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6176 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6178 # define ISLOWER(c) \
6179 (('a' <= (c) && (c) <= 'i') \
6180 || ('j' <= (c) && (c) <= 'r') \
6181 || ('s' <= (c) && (c) <= 'z'))
6182 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6190 for (i = 0; i < 256; i++)
6191 if (XOR (islower (i), ISLOWER (i))
6192 || toupper (i) != TOUPPER (i))
6197 rm -f conftest$ac_exeext
6198 if { (ac_try="$ac_link"
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6204 $as_echo "$ac_try_echo") >&5
6205 (eval "$ac_link") 2>&5
6207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6209 { (case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6214 $as_echo "$ac_try_echo") >&5
6215 (eval "$ac_try") 2>&5
6217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6221 $as_echo "$as_me: program exited with status $ac_status" >&5
6222 $as_echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6226 ac_cv_header_stdc=no
6228 rm -rf conftest.dSYM
6229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6235 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6236 $as_echo "$ac_cv_header_stdc" >&6; }
6237 if test $ac_cv_header_stdc = yes; then
6239 cat >>confdefs.h <<\_ACEOF
6240 #define STDC_HEADERS 1
6245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6255 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6256 inttypes.h stdint.h unistd.h
6258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6260 $as_echo_n "checking for $ac_header... " >&6; }
6261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6262 $as_echo_n "(cached) " >&6
6264 cat >conftest.$ac_ext <<_ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 $ac_includes_default
6272 #include <$ac_header>
6274 rm -f conftest.$ac_objext
6275 if { (ac_try="$ac_compile"
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6281 $as_echo "$ac_try_echo") >&5
6282 (eval "$ac_compile") 2>conftest.er1
6284 grep -v '^ *+' conftest.er1 >conftest.err
6286 cat conftest.err >&5
6287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } && {
6289 test -z "$ac_c_werror_flag" ||
6290 test ! -s conftest.err
6291 } && test -s conftest.$ac_objext; then
6292 eval "$as_ac_Header=yes"
6294 $as_echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6297 eval "$as_ac_Header=no"
6300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302 ac_res=`eval 'as_val=${'$as_ac_Header'}
6303 $as_echo "$as_val"'`
6304 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6305 $as_echo "$ac_res" >&6; }
6306 if test `eval 'as_val=${'$as_ac_Header'}
6307 $as_echo "$as_val"'` = yes; then
6308 cat >>confdefs.h <<_ACEOF
6309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6317 # The cast to long int works around a bug in the HP C Compiler
6318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6320 # This bug is HP SR number 8606223364.
6321 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
6322 $as_echo_n "checking size of void *... " >&6; }
6323 if test "${ac_cv_sizeof_void_p+set}" = set; then
6324 $as_echo_n "(cached) " >&6
6326 if test "$cross_compiling" = yes; then
6327 # Depending upon the size, compute the lo and hi bounds.
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 $ac_includes_default
6338 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
6345 rm -f conftest.$ac_objext
6346 if { (ac_try="$ac_compile"
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6352 $as_echo "$ac_try_echo") >&5
6353 (eval "$ac_compile") 2>conftest.er1
6355 grep -v '^ *+' conftest.er1 >conftest.err
6357 cat conftest.err >&5
6358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } && {
6360 test -z "$ac_c_werror_flag" ||
6361 test ! -s conftest.err
6362 } && test -s conftest.$ac_objext; then
6365 cat >conftest.$ac_ext <<_ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 $ac_includes_default
6375 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6382 rm -f conftest.$ac_objext
6383 if { (ac_try="$ac_compile"
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6389 $as_echo "$ac_try_echo") >&5
6390 (eval "$ac_compile") 2>conftest.er1
6392 grep -v '^ *+' conftest.er1 >conftest.err
6394 cat conftest.err >&5
6395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } && {
6397 test -z "$ac_c_werror_flag" ||
6398 test ! -s conftest.err
6399 } && test -s conftest.$ac_objext; then
6400 ac_hi=$ac_mid; break
6402 $as_echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_lo=`expr $ac_mid + 1`
6406 if test $ac_lo -le $ac_mid; then
6410 ac_mid=`expr 2 '*' $ac_mid + 1`
6413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 $as_echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 cat >conftest.$ac_ext <<_ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 $ac_includes_default
6429 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
6436 rm -f conftest.$ac_objext
6437 if { (ac_try="$ac_compile"
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6443 $as_echo "$ac_try_echo") >&5
6444 (eval "$ac_compile") 2>conftest.er1
6446 grep -v '^ *+' conftest.er1 >conftest.err
6448 cat conftest.err >&5
6449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } && {
6451 test -z "$ac_c_werror_flag" ||
6452 test ! -s conftest.err
6453 } && test -s conftest.$ac_objext; then
6456 cat >conftest.$ac_ext <<_ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 $ac_includes_default
6466 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6473 rm -f conftest.$ac_objext
6474 if { (ac_try="$ac_compile"
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6480 $as_echo "$ac_try_echo") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6483 grep -v '^ *+' conftest.er1 >conftest.err
6485 cat conftest.err >&5
6486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.$ac_objext; then
6491 ac_lo=$ac_mid; break
6493 $as_echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6496 ac_hi=`expr '(' $ac_mid ')' - 1`
6497 if test $ac_mid -le $ac_hi; then
6501 ac_mid=`expr 2 '*' $ac_mid`
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 $as_echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 # Binary search between lo and hi bounds.
6518 while test "x$ac_lo" != "x$ac_hi"; do
6519 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6520 cat >conftest.$ac_ext <<_ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6530 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6544 $as_echo "$ac_try_echo") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6547 grep -v '^ *+' conftest.er1 >conftest.err
6549 cat conftest.err >&5
6550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.$ac_objext; then
6557 $as_echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6560 ac_lo=`expr '(' $ac_mid ')' + 1`
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6567 '') if test "$ac_cv_type_void_p" = yes; then
6568 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6569 See \`config.log' for more details." >&5
6570 $as_echo "$as_me: error: cannot compute sizeof (void *)
6571 See \`config.log' for more details." >&2;}
6572 { (exit 77); exit 77; }; }
6574 ac_cv_sizeof_void_p=0
6578 cat >conftest.$ac_ext <<_ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584 $ac_includes_default
6585 static long int longval () { return (long int) (sizeof (void *)); }
6586 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6593 FILE *f = fopen ("conftest.val", "w");
6596 if (((long int) (sizeof (void *))) < 0)
6598 long int i = longval ();
6599 if (i != ((long int) (sizeof (void *))))
6601 fprintf (f, "%ld", i);
6605 unsigned long int i = ulongval ();
6606 if (i != ((long int) (sizeof (void *))))
6608 fprintf (f, "%lu", i);
6610 /* Do not output a trailing newline, as this causes \r\n confusion
6611 on some platforms. */
6612 return ferror (f) || fclose (f) != 0;
6618 rm -f conftest$ac_exeext
6619 if { (ac_try="$ac_link"
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6625 $as_echo "$ac_try_echo") >&5
6626 (eval "$ac_link") 2>&5
6628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6630 { (case "(($ac_try" in
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6635 $as_echo "$ac_try_echo") >&5
6636 (eval "$ac_try") 2>&5
6638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_cv_sizeof_void_p=`cat conftest.val`
6642 $as_echo "$as_me: program exited with status $ac_status" >&5
6643 $as_echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6647 if test "$ac_cv_type_void_p" = yes; then
6648 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6649 See \`config.log' for more details." >&5
6650 $as_echo "$as_me: error: cannot compute sizeof (void *)
6651 See \`config.log' for more details." >&2;}
6652 { (exit 77); exit 77; }; }
6654 ac_cv_sizeof_void_p=0
6657 rm -rf conftest.dSYM
6658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6662 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6663 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6667 cat >>confdefs.h <<_ACEOF
6668 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6672 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6673 $as_echo_n "checking for ANSI C header files... " >&6; }
6674 if test "${ac_cv_header_stdc+set}" = set; then
6675 $as_echo_n "(cached) " >&6
6677 cat >conftest.$ac_ext <<_ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6696 rm -f conftest.$ac_objext
6697 if { (ac_try="$ac_compile"
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6703 $as_echo "$ac_try_echo") >&5
6704 (eval "$ac_compile") 2>conftest.er1
6706 grep -v '^ *+' conftest.er1 >conftest.err
6708 cat conftest.err >&5
6709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest.$ac_objext; then
6714 ac_cv_header_stdc=yes
6716 $as_echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6719 ac_cv_header_stdc=no
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 if test $ac_cv_header_stdc = yes; then
6725 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6726 cat >conftest.$ac_ext <<_ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6736 $EGREP "memchr" >/dev/null 2>&1; then
6739 ac_cv_header_stdc=no
6745 if test $ac_cv_header_stdc = yes; then
6746 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6747 cat >conftest.$ac_ext <<_ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6757 $EGREP "free" >/dev/null 2>&1; then
6760 ac_cv_header_stdc=no
6766 if test $ac_cv_header_stdc = yes; then
6767 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6768 if test "$cross_compiling" = yes; then
6771 cat >conftest.$ac_ext <<_ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h. */
6779 #if ((' ' & 0x0FF) == 0x020)
6780 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6781 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6783 # define ISLOWER(c) \
6784 (('a' <= (c) && (c) <= 'i') \
6785 || ('j' <= (c) && (c) <= 'r') \
6786 || ('s' <= (c) && (c) <= 'z'))
6787 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6790 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6795 for (i = 0; i < 256; i++)
6796 if (XOR (islower (i), ISLOWER (i))
6797 || toupper (i) != TOUPPER (i))
6802 rm -f conftest$ac_exeext
6803 if { (ac_try="$ac_link"
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6809 $as_echo "$ac_try_echo") >&5
6810 (eval "$ac_link") 2>&5
6812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6814 { (case "(($ac_try" in
6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816 *) ac_try_echo=$ac_try;;
6818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6819 $as_echo "$ac_try_echo") >&5
6820 (eval "$ac_try") 2>&5
6822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6826 $as_echo "$as_me: program exited with status $ac_status" >&5
6827 $as_echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_header_stdc=no
6833 rm -rf conftest.dSYM
6834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6840 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6841 $as_echo "$ac_cv_header_stdc" >&6; }
6842 if test $ac_cv_header_stdc = yes; then
6844 cat >>confdefs.h <<\_ACEOF
6845 #define STDC_HEADERS 1
6850 # Make sure we can run config.sub.
6851 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6852 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6853 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6854 { (exit 1); exit 1; }; }
6856 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6857 $as_echo_n "checking build system type... " >&6; }
6858 if test "${ac_cv_build+set}" = set; then
6859 $as_echo_n "(cached) " >&6
6861 ac_build_alias=$build_alias
6862 test "x$ac_build_alias" = x &&
6863 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6864 test "x$ac_build_alias" = x &&
6865 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6866 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6867 { (exit 1); exit 1; }; }
6868 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6869 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6870 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6871 { (exit 1); exit 1; }; }
6874 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6875 $as_echo "$ac_cv_build" >&6; }
6876 case $ac_cv_build in
6878 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6879 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6880 { (exit 1); exit 1; }; };;
6883 ac_save_IFS=$IFS; IFS='-'
6889 # Remember, the first character of IFS is used to create $*,
6890 # except with old shells:
6893 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6896 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6897 $as_echo_n "checking host system type... " >&6; }
6898 if test "${ac_cv_host+set}" = set; then
6899 $as_echo_n "(cached) " >&6
6901 if test "x$host_alias" = x; then
6902 ac_cv_host=$ac_cv_build
6904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6905 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6906 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6907 { (exit 1); exit 1; }; }
6911 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6912 $as_echo "$ac_cv_host" >&6; }
6915 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6916 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6917 { (exit 1); exit 1; }; };;
6920 ac_save_IFS=$IFS; IFS='-'
6926 # Remember, the first character of IFS is used to create $*,
6927 # except with old shells:
6930 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6935 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6937 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6938 $as_echo_n "checking dependency style of $depcc... " >&6; }
6939 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
6940 $as_echo_n "(cached) " >&6
6942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6943 # We make a subdir and do the tests there. Otherwise we can end up
6944 # making bogus files that we don't know about and never remove. For
6945 # instance it was reported that on HP-UX the gcc test will end up
6946 # making a dummy file named `D' -- because `-MD' means `put the output
6949 # Copy depcomp to subdir because otherwise we won't find it if we're
6950 # using a relative directory.
6951 cp "$am_depcomp" conftest.dir
6953 # We will build objects and dependencies in a subdirectory because
6954 # it helps to detect inapplicable dependency modes. For instance
6955 # both Tru64's cc and ICC support -MD to output dependencies as a
6956 # side effect of compilation, but ICC will put the dependencies in
6957 # the current directory while Tru64 will put them in the object
6961 am_cv_OBJC_dependencies_compiler_type=none
6962 if test "$am_compiler_list" = ""; then
6963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6965 for depmode in $am_compiler_list; do
6966 # Setup a source with many dependencies, because some compilers
6967 # like to wrap large dependency lists on column 80 (with \), and
6968 # we should not choose a depcomp mode which is confused by this.
6970 # We need to recreate these files for each test, as the compiler may
6971 # overwrite some of them when testing with obscure command lines.
6972 # This happens at least with the AIX C compiler.
6974 for i in 1 2 3 4 5 6; do
6975 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6976 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6977 # Solaris 8's {/usr,}/bin/sh.
6978 touch sub/conftst$i.h
6980 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6984 # after this tag, mechanisms are not by side-effect, so they'll
6985 # only be used when explicitly requested
6986 if test "x$enable_dependency_tracking" = xyes; then
6994 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6995 # mode. It turns out that the SunPro C++ compiler does not properly
6996 # handle `-M -o', and we need to detect this.
6997 if depmode=$depmode \
6998 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6999 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7000 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7001 >/dev/null 2>conftest.err &&
7002 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7003 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7004 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7005 # icc doesn't choke on unknown options, it will just issue warnings
7006 # or remarks (even with -Werror). So we grep stderr for any message
7007 # that says an option was ignored or not supported.
7008 # When given -MP, icc 7.0 and 7.1 complain thusly:
7009 # icc: Command line warning: ignoring option '-M'; no argument required
7010 # The diagnosis changed in icc 8.0:
7011 # icc: Command line remark: option '-MP' not supported
7012 if (grep 'ignoring option' conftest.err ||
7013 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7014 am_cv_OBJC_dependencies_compiler_type=$depmode
7023 am_cv_OBJC_dependencies_compiler_type=none
7027 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
7028 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
7029 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
7034 test "x$enable_dependency_tracking" != xno \
7035 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
7036 am__fastdepOBJC_TRUE=
7037 am__fastdepOBJC_FALSE='#'
7039 am__fastdepOBJC_TRUE='#'
7040 am__fastdepOBJC_FALSE=
7045 # Extract the first word of "pod2man", so it can be a program name with args.
7046 set dummy pod2man; ac_word=$2
7047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if test "${ac_cv_path_POD2MAN+set}" = set; then
7050 $as_echo_n "(cached) " >&6
7054 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 POD2MAN=$ac_cv_path_POD2MAN
7076 if test -n "$POD2MAN"; then
7077 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
7078 $as_echo "$POD2MAN" >&6; }
7080 { $as_echo "$as_me:$LINENO: result: no" >&5
7081 $as_echo "no" >&6; }
7085 # Extract the first word of "pod2html", so it can be a program name with args.
7086 set dummy pod2html; ac_word=$2
7087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 $as_echo_n "checking for $ac_word... " >&6; }
7089 if test "${ac_cv_path_POD2HTML+set}" = set; then
7090 $as_echo_n "(cached) " >&6
7094 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7105 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 POD2HTML=$ac_cv_path_POD2HTML
7116 if test -n "$POD2HTML"; then
7117 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
7118 $as_echo "$POD2HTML" >&6; }
7120 { $as_echo "$as_me:$LINENO: result: no" >&5
7121 $as_echo "no" >&6; }
7127 # Check whether --enable-strict-warn was given.
7128 if test "${enable_strict_warn+set}" = set; then
7129 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
7130 enable_strictwarn=yes
7134 # Check whether --enable-translator was given.
7135 if test "${enable_translator+set}" = set; then
7136 enableval=$enable_translator; true
7138 enable_translator=yes
7141 # Check whether --enable-optimized was given.
7142 if test "${enable_optimized+set}" = set; then
7143 enableval=$enable_optimized; true
7145 enable_optimized=yes
7148 # Check whether --enable-profiled was given.
7149 if test "${enable_profiled+set}" = set; then
7150 enableval=$enable_profiled; if test "$enableval" == "yes"; then
7151 enable_profiled=yes;
7155 # Check whether --enable-trace was given.
7156 if test "${enable_trace+set}" = set; then
7157 enableval=$enable_trace; if test "$enableval" == "yes"; then
7159 cat >>confdefs.h <<\_ACEOF
7160 #define ENABLE_TRACE_IO 1
7166 # Check whether --enable-watch was given.
7167 if test "${enable_watch+set}" = set; then
7168 enableval=$enable_watch; if test "$enableval" == "yes"; then
7170 cat >>confdefs.h <<\_ACEOF
7171 #define ENABLE_WATCH 1
7177 # Check whether --enable-sh4stats was given.
7178 if test "${enable_sh4stats+set}" = set; then
7179 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
7181 cat >>confdefs.h <<\_ACEOF
7182 #define ENABLE_SH4STATS 1
7189 # Check whether --with-osmesa was given.
7190 if test "${with_osmesa+set}" = set; then
7191 withval=$with_osmesa;
7197 # Check whether --with-gtk was given.
7198 if test "${with_gtk+set}" = set; then
7199 withval=$with_gtk; with_gtk=yes
7205 # Check whether --with-esd was given.
7206 if test "${with_esd+set}" = set; then
7211 # Check whether --with-pulse was given.
7212 if test "${with_pulse+set}" = set; then
7213 withval=$with_pulse;
7217 CFLAGS="-g -fexceptions"
7218 OBJCFLAGS="-g -fexceptions"
7220 cat >>confdefs.h <<\_ACEOF
7221 #define HAVE_EXCEPTIONS 1
7226 _GCC_VERSION=`$CC --version | $SED -ne '/(GCC)/p'`
7227 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
7228 { $as_echo "$as_me:$LINENO: checking CC version" >&5
7229 $as_echo_n "checking CC version... " >&6; }
7230 if test -n "$_GCC_VERSION"; then
7231 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7232 $as_echo "GCC" >&6; }
7233 CCOPT="-O2 -msse2 -mfpmath=sse"
7234 CFLAGS="$CFLAGS -fno-strict-aliasing"
7235 elif test -n "$_ICC_VERSION"; then
7236 { $as_echo "$as_me:$LINENO: result: ICC" >&5
7237 $as_echo "ICC" >&6; }
7238 CCOPT="$CFLAGS -fast"
7240 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7241 $as_echo "Unknown" >&6; }
7246 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
7247 $as_echo_n "checking OBJC version... " >&6; }
7248 if test -n "$OBJC"; then
7249 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
7250 if test -n "$_GOBJC_VERSION"; then
7251 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7252 $as_echo "GCC" >&6; }
7253 OBJCOPT="-O2 -msse2 -mfpmath=sse"
7254 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
7256 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7257 $as_echo "Unknown" >&6; }
7261 { $as_echo "$as_me:$LINENO: result: None" >&5
7262 $as_echo "None" >&6; }
7267 if test "x$enable_optimized" = "xyes"; then
7268 CFLAGS="$CFLAGS $CCOPT"
7269 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
7270 if test "x$enable_profiled" != "xyes"; then
7271 CFLAGS="$CFLAGS -fomit-frame-pointer"
7272 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
7275 CFLAGS="$CFLAGS -g3"
7276 OBJCFLAGS="$OBJCFLAGS -g3"
7279 if test "x$enable_profiled" = "xyes"; then
7280 CFLAGS="$CFLAGS -pg"
7281 LDFLAGS="$LDFLAGS -pg";
7282 OBJCFLAGS="$OBJCFLAGS -pg";
7285 if test "x$enable_strictwarn" = "xyes"; then
7286 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
7287 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
7291 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
7292 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
7293 if test "$cross_compiling" = yes; then
7294 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7295 See \`config.log' for more details." >&5
7296 $as_echo "$as_me: error: cannot run test program while cross compiling
7297 See \`config.log' for more details." >&2;}
7298 { (exit 1); exit 1; }; }
7300 cat >conftest.$ac_ext <<_ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7308 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
7310 int main(int argc, char *argv[])
7312 return foo( 1, 2 ) == 3 ? 0 : 1;
7315 rm -f conftest$ac_exeext
7316 if { (ac_try="$ac_link"
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7322 $as_echo "$ac_try_echo") >&5
7323 (eval "$ac_link") 2>&5
7325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7327 { (case "(($ac_try" in
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7332 $as_echo "$ac_try_echo") >&5
7333 (eval "$ac_try") 2>&5
7335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7338 { $as_echo "$as_me:$LINENO: result: yes" >&5
7339 $as_echo "yes" >&6; }
7342 cat >>confdefs.h <<\_ACEOF
7343 #define HAVE_FASTCALL 1
7348 $as_echo "$as_me: program exited with status $ac_status" >&5
7349 $as_echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7354 { $as_echo "$as_me:$LINENO: result: no" >&5
7355 $as_echo "no" >&6; }
7358 rm -rf conftest.dSYM
7359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7365 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
7366 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
7367 if test "$cross_compiling" = yes; then
7368 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7369 See \`config.log' for more details." >&5
7370 $as_echo "$as_me: error: cannot run test program while cross compiling
7371 See \`config.log' for more details." >&2;}
7372 { (exit 1); exit 1; }; }
7374 cat >conftest.$ac_ext <<_ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h. */
7382 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
7383 int __attribute__((noinline)) foo( int arg, void *exc )
7386 *(((void **)__builtin_frame_address(0))+1) = exc;
7391 int main(int argc, char *argv[])
7393 goto *first_arg(&&start, &&except);
7396 return foo( argc, &&except ) + 1;
7402 rm -f conftest$ac_exeext
7403 if { (ac_try="$ac_link"
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7409 $as_echo "$ac_try_echo") >&5
7410 (eval "$ac_link") 2>&5
7412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7414 { (case "(($ac_try" in
7415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7419 $as_echo "$ac_try_echo") >&5
7420 (eval "$ac_try") 2>&5
7422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7425 { $as_echo "$as_me:$LINENO: result: yes" >&5
7426 $as_echo "yes" >&6; }
7429 cat >>confdefs.h <<\_ACEOF
7430 #define HAVE_FRAME_ADDRESS 1
7435 $as_echo "$as_me: program exited with status $ac_status" >&5
7436 $as_echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7441 { $as_echo "$as_me:$LINENO: result: no" >&5
7442 $as_echo "no" >&6; }
7443 { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
7444 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
7446 rm -rf conftest.dSYM
7447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7456 ac_cpp='$OBJCPP $CPPFLAGS'
7457 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7464 ac_cpp='$OBJCPP $CPPFLAGS'
7465 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7466 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7467 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7468 { $as_echo "$as_me:$LINENO: checking how to run the Objective C preprocessor" >&5
7469 $as_echo_n "checking how to run the Objective C preprocessor... " >&6; }
7470 if test -z "$OBJCPP"; then
7471 if test "${ac_cv_prog_OBJCPP+set}" = set; then
7472 $as_echo_n "(cached) " >&6
7474 # Double quotes because OBJCPP needs to be expanded
7475 for OBJCPP in "$OBJC -E" "/lib/cpp"
7478 for ac_objc_preproc_warn_flag in '' yes
7480 # Use a header file that comes with gcc, so configuring glibc
7481 # with a fresh cross-compiler works.
7482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7483 # <limits.h> exists even on freestanding compilers.
7484 # On the NeXT, cc -E runs the code through the compiler's parser,
7485 # not just through cpp. "Syntax error" is here to catch this case.
7486 cat >conftest.$ac_ext <<_ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7493 # include <limits.h>
7495 # include <assert.h>
7499 if { (ac_try="$ac_cpp conftest.$ac_ext"
7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502 *) ac_try_echo=$ac_try;;
7504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7505 $as_echo "$ac_try_echo") >&5
7506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7508 grep -v '^ *+' conftest.er1 >conftest.err
7510 cat conftest.err >&5
7511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } >/dev/null && {
7513 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7514 test ! -s conftest.err
7518 $as_echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7521 # Broken: fails on valid input.
7525 rm -f conftest.err conftest.$ac_ext
7527 # OK, works on sane cases. Now check whether nonexistent headers
7528 # can be detected and how.
7529 cat >conftest.$ac_ext <<_ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 #include <ac_nonexistent.h>
7537 if { (ac_try="$ac_cpp conftest.$ac_ext"
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7543 $as_echo "$ac_try_echo") >&5
7544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7546 grep -v '^ *+' conftest.er1 >conftest.err
7548 cat conftest.err >&5
7549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } >/dev/null && {
7551 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7552 test ! -s conftest.err
7554 # Broken: success on invalid input.
7557 $as_echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7560 # Passes both tests.
7565 rm -f conftest.err conftest.$ac_ext
7568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7569 rm -f conftest.err conftest.$ac_ext
7570 if $ac_preproc_ok; then
7575 ac_cv_prog_OBJCPP=$OBJCPP
7578 OBJCPP=$ac_cv_prog_OBJCPP
7580 ac_cv_prog_OBJCPP=$OBJCPP
7582 { $as_echo "$as_me:$LINENO: result: $OBJCPP" >&5
7583 $as_echo "$OBJCPP" >&6; }
7585 for ac_objc_preproc_warn_flag in '' yes
7587 # Use a header file that comes with gcc, so configuring glibc
7588 # with a fresh cross-compiler works.
7589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7590 # <limits.h> exists even on freestanding compilers.
7591 # On the NeXT, cc -E runs the code through the compiler's parser,
7592 # not just through cpp. "Syntax error" is here to catch this case.
7593 cat >conftest.$ac_ext <<_ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7600 # include <limits.h>
7602 # include <assert.h>
7606 if { (ac_try="$ac_cpp conftest.$ac_ext"
7608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609 *) ac_try_echo=$ac_try;;
7611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7612 $as_echo "$ac_try_echo") >&5
7613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7615 grep -v '^ *+' conftest.er1 >conftest.err
7617 cat conftest.err >&5
7618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } >/dev/null && {
7620 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7621 test ! -s conftest.err
7625 $as_echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 # Broken: fails on valid input.
7632 rm -f conftest.err conftest.$ac_ext
7634 # OK, works on sane cases. Now check whether nonexistent headers
7635 # can be detected and how.
7636 cat >conftest.$ac_ext <<_ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h. */
7642 #include <ac_nonexistent.h>
7644 if { (ac_try="$ac_cpp conftest.$ac_ext"
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7650 $as_echo "$ac_try_echo") >&5
7651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7653 grep -v '^ *+' conftest.er1 >conftest.err
7655 cat conftest.err >&5
7656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } >/dev/null && {
7658 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7659 test ! -s conftest.err
7661 # Broken: success on invalid input.
7664 $as_echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7667 # Passes both tests.
7672 rm -f conftest.err conftest.$ac_ext
7675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7676 rm -f conftest.err conftest.$ac_ext
7677 if $ac_preproc_ok; then
7680 { { $as_echo "$as_me:$LINENO: error: Objective C preprocessor \"$OBJCPP\" fails sanity check
7681 See \`config.log' for more details." >&5
7682 $as_echo "$as_me: error: Objective C preprocessor \"$OBJCPP\" fails sanity check
7683 See \`config.log' for more details." >&2;}
7684 { (exit 1); exit 1; }; }
7688 ac_cpp='$OBJCPP $CPPFLAGS'
7689 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7690 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7691 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7694 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7695 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7696 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7697 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7698 $as_echo_n "(cached) " >&6
7700 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7701 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7703 # Is the header compilable?
7704 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
7705 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
7706 cat >conftest.$ac_ext <<_ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 $ac_includes_default
7713 #include <Cocoa/Cocoa.h>
7715 rm -f conftest.$ac_objext
7716 if { (ac_try="$ac_compile"
7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719 *) ac_try_echo=$ac_try;;
7721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7722 $as_echo "$ac_try_echo") >&5
7723 (eval "$ac_compile") 2>conftest.er1
7725 grep -v '^ *+' conftest.er1 >conftest.err
7727 cat conftest.err >&5
7728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } && {
7730 test -z "$ac_objc_werror_flag" ||
7731 test ! -s conftest.err
7732 } && test -s conftest.$ac_objext; then
7733 ac_header_compiler=yes
7735 $as_echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7738 ac_header_compiler=no
7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7743 $as_echo "$ac_header_compiler" >&6; }
7745 # Is the header present?
7746 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
7747 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
7748 cat >conftest.$ac_ext <<_ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7754 #include <Cocoa/Cocoa.h>
7756 if { (ac_try="$ac_cpp conftest.$ac_ext"
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7762 $as_echo "$ac_try_echo") >&5
7763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7765 grep -v '^ *+' conftest.er1 >conftest.err
7767 cat conftest.err >&5
7768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } >/dev/null && {
7770 test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
7771 test ! -s conftest.err
7773 ac_header_preproc=yes
7775 $as_echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_header_preproc=no
7781 rm -f conftest.err conftest.$ac_ext
7782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7783 $as_echo "$ac_header_preproc" >&6; }
7785 # So? What about this header?
7786 case $ac_header_compiler:$ac_header_preproc:$ac_objc_preproc_warn_flag in
7788 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
7789 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7790 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
7791 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
7792 ac_header_preproc=yes
7795 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
7796 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
7797 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
7798 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
7799 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
7800 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
7801 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
7802 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
7803 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
7804 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
7805 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
7806 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
7810 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7811 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7812 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7813 $as_echo_n "(cached) " >&6
7815 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
7817 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7818 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7821 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
7825 LIBS="$LIBS -framework AppKit"
7826 LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"
7827 CPPFLAGS="$CPPFLAGS -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
7828 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
7830 cat >>confdefs.h <<\_ACEOF
7831 #define HAVE_COCOA 1
7835 cat >>confdefs.h <<\_ACEOF
7836 #define APPLE_BUILD 1
7839 if test "x$with_gtk" = "xx11"; then
7849 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
7857 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
7859 cat >>confdefs.h <<\_ACEOF
7860 #define OSX_BUNDLE 1
7866 ac_cpp='$CPP $CPPFLAGS'
7867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7874 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7875 if test -n "$ac_tool_prefix"; then
7876 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7877 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7881 $as_echo_n "(cached) " >&6
7885 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7895 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7907 if test -n "$PKG_CONFIG"; then
7908 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7909 $as_echo "$PKG_CONFIG" >&6; }
7911 { $as_echo "$as_me:$LINENO: result: no" >&5
7912 $as_echo "no" >&6; }
7917 if test -z "$ac_cv_path_PKG_CONFIG"; then
7918 ac_pt_PKG_CONFIG=$PKG_CONFIG
7919 # Extract the first word of "pkg-config", so it can be a program name with args.
7920 set dummy pkg-config; ac_word=$2
7921 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7924 $as_echo_n "(cached) " >&6
7926 case $ac_pt_PKG_CONFIG in
7928 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7938 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7939 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7950 if test -n "$ac_pt_PKG_CONFIG"; then
7951 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7952 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7954 { $as_echo "$as_me:$LINENO: result: no" >&5
7955 $as_echo "no" >&6; }
7958 if test "x$ac_pt_PKG_CONFIG" = x; then
7961 case $cross_compiling:$ac_tool_warned in
7963 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7964 whose name does not start with the host triplet. If you think this
7965 configuration is useful to you, please write to autoconf@gnu.org." >&5
7966 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7967 whose name does not start with the host triplet. If you think this
7968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7969 ac_tool_warned=yes ;;
7971 PKG_CONFIG=$ac_pt_PKG_CONFIG
7974 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7978 if test -n "$PKG_CONFIG"; then
7979 _pkg_min_version=0.9.0
7980 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7981 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7982 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7983 { $as_echo "$as_me:$LINENO: result: yes" >&5
7984 $as_echo "yes" >&6; }
7986 { $as_echo "$as_me:$LINENO: result: no" >&5
7987 $as_echo "no" >&6; }
7994 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
7995 $as_echo_n "checking for LIBPNG... " >&6; }
7997 if test -n "$LIBPNG_CFLAGS"; then
7998 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
7999 elif test -n "$PKG_CONFIG"; then
8000 if test -n "$PKG_CONFIG" && \
8001 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8002 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; then
8006 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
8013 if test -n "$LIBPNG_LIBS"; then
8014 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8015 elif test -n "$PKG_CONFIG"; then
8016 if test -n "$PKG_CONFIG" && \
8017 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8018 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; then
8022 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
8032 if test $pkg_failed = yes; then
8034 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8035 _pkg_short_errors_supported=yes
8037 _pkg_short_errors_supported=no
8039 if test $_pkg_short_errors_supported = yes; then
8040 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
8042 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
8044 # Put the nasty error message in config.log where it belongs
8045 echo "$LIBPNG_PKG_ERRORS" >&5
8047 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
8051 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8052 installed software in a non-standard prefix.
8054 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8055 and LIBPNG_LIBS to avoid the need to call pkg-config.
8056 See the pkg-config man page for more details.
8058 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
8062 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8063 installed software in a non-standard prefix.
8065 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8066 and LIBPNG_LIBS to avoid the need to call pkg-config.
8067 See the pkg-config man page for more details.
8069 { (exit 1); exit 1; }; }
8070 elif test $pkg_failed = untried; then
8071 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8072 is in your PATH or set the PKG_CONFIG environment variable to the full
8075 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8076 and LIBPNG_LIBS to avoid the need to call pkg-config.
8077 See the pkg-config man page for more details.
8079 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8080 See \`config.log' for more details." >&5
8081 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8082 is in your PATH or set the PKG_CONFIG environment variable to the full
8085 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8086 and LIBPNG_LIBS to avoid the need to call pkg-config.
8087 See the pkg-config man page for more details.
8089 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8090 See \`config.log' for more details." >&2;}
8091 { (exit 1); exit 1; }; }
8093 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8094 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8095 { $as_echo "$as_me:$LINENO: result: yes" >&5
8096 $as_echo "yes" >&6; }
8101 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
8102 $as_echo_n "checking for uncompress in -lz... " >&6; }
8103 if test "${ac_cv_lib_z_uncompress+set}" = set; then
8104 $as_echo_n "(cached) " >&6
8106 ac_check_lib_save_LIBS=$LIBS
8108 cat >conftest.$ac_ext <<_ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8115 /* Override any GCC internal prototype to avoid an error.
8116 Use char because int might match the return type of a GCC
8117 builtin and then its argument prototype would still apply. */
8125 return uncompress ();
8130 rm -f conftest.$ac_objext conftest$ac_exeext
8131 if { (ac_try="$ac_link"
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8137 $as_echo "$ac_try_echo") >&5
8138 (eval "$ac_link") 2>conftest.er1
8140 grep -v '^ *+' conftest.er1 >conftest.err
8142 cat conftest.err >&5
8143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest$ac_exeext && {
8148 test "$cross_compiling" = yes ||
8149 $as_test_x conftest$ac_exeext
8151 ac_cv_lib_z_uncompress=yes
8153 $as_echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 ac_cv_lib_z_uncompress=no
8159 rm -rf conftest.dSYM
8160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8161 conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8164 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
8165 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
8166 if test $ac_cv_lib_z_uncompress = yes; then
8167 cat >>confdefs.h <<_ACEOF
8175 echo "Zlib (libz.so) could not be found, but is required."
8180 if test "x$with_gtk" = "xno"; then
8183 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
8184 $as_echo_n "checking for GLIB... " >&6; }
8186 if test -n "$GLIB_CFLAGS"; then
8187 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8188 elif test -n "$PKG_CONFIG"; then
8189 if test -n "$PKG_CONFIG" && \
8190 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8191 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; then
8195 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
8202 if test -n "$GLIB_LIBS"; then
8203 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8204 elif test -n "$PKG_CONFIG"; then
8205 if test -n "$PKG_CONFIG" && \
8206 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8207 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; then
8211 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
8221 if test $pkg_failed = yes; then
8223 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8224 _pkg_short_errors_supported=yes
8226 _pkg_short_errors_supported=no
8228 if test $_pkg_short_errors_supported = yes; then
8229 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
8231 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
8233 # Put the nasty error message in config.log where it belongs
8234 echo "$GLIB_PKG_ERRORS" >&5
8236 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
8240 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8241 installed software in a non-standard prefix.
8243 Alternatively, you may set the environment variables GLIB_CFLAGS
8244 and GLIB_LIBS to avoid the need to call pkg-config.
8245 See the pkg-config man page for more details.
8247 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
8251 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8252 installed software in a non-standard prefix.
8254 Alternatively, you may set the environment variables GLIB_CFLAGS
8255 and GLIB_LIBS to avoid the need to call pkg-config.
8256 See the pkg-config man page for more details.
8258 { (exit 1); exit 1; }; }
8259 elif test $pkg_failed = untried; then
8260 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8261 is in your PATH or set the PKG_CONFIG environment variable to the full
8264 Alternatively, you may set the environment variables GLIB_CFLAGS
8265 and GLIB_LIBS to avoid the need to call pkg-config.
8266 See the pkg-config man page for more details.
8268 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8269 See \`config.log' for more details." >&5
8270 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8271 is in your PATH or set the PKG_CONFIG environment variable to the full
8274 Alternatively, you may set the environment variables GLIB_CFLAGS
8275 and GLIB_LIBS to avoid the need to call pkg-config.
8276 See the pkg-config man page for more details.
8278 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8279 See \`config.log' for more details." >&2;}
8280 { (exit 1); exit 1; }; }
8282 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8283 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8284 { $as_echo "$as_me:$LINENO: result: yes" >&5
8285 $as_echo "yes" >&6; }
8291 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
8292 $as_echo_n "checking for GTK... " >&6; }
8294 if test -n "$GTK_CFLAGS"; then
8295 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8296 elif test -n "$PKG_CONFIG"; then
8297 if test -n "$PKG_CONFIG" && \
8298 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8299 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; then
8303 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
8310 if test -n "$GTK_LIBS"; then
8311 pkg_cv_GTK_LIBS="$GTK_LIBS"
8312 elif test -n "$PKG_CONFIG"; then
8313 if test -n "$PKG_CONFIG" && \
8314 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8315 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; then
8319 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
8329 if test $pkg_failed = yes; then
8331 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8332 _pkg_short_errors_supported=yes
8334 _pkg_short_errors_supported=no
8336 if test $_pkg_short_errors_supported = yes; then
8337 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
8339 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
8341 # Put the nasty error message in config.log where it belongs
8342 echo "$GTK_PKG_ERRORS" >&5
8344 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
8348 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8349 installed software in a non-standard prefix.
8351 Alternatively, you may set the environment variables GTK_CFLAGS
8352 and GTK_LIBS to avoid the need to call pkg-config.
8353 See the pkg-config man page for more details.
8355 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
8359 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8360 installed software in a non-standard prefix.
8362 Alternatively, you may set the environment variables GTK_CFLAGS
8363 and GTK_LIBS to avoid the need to call pkg-config.
8364 See the pkg-config man page for more details.
8366 { (exit 1); exit 1; }; }
8367 elif test $pkg_failed = untried; then
8368 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8369 is in your PATH or set the PKG_CONFIG environment variable to the full
8372 Alternatively, you may set the environment variables GTK_CFLAGS
8373 and GTK_LIBS to avoid the need to call pkg-config.
8374 See the pkg-config man page for more details.
8376 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8377 See \`config.log' for more details." >&5
8378 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8379 is in your PATH or set the PKG_CONFIG environment variable to the full
8382 Alternatively, you may set the environment variables GTK_CFLAGS
8383 and GTK_LIBS to avoid the need to call pkg-config.
8384 See the pkg-config man page for more details.
8386 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8387 See \`config.log' for more details." >&2;}
8388 { (exit 1); exit 1; }; }
8390 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
8391 GTK_LIBS=$pkg_cv_GTK_LIBS
8392 { $as_echo "$as_me:$LINENO: result: yes" >&5
8393 $as_echo "yes" >&6; }
8397 cat >>confdefs.h <<\_ACEOF
8404 LIBS="$LIBS $GTK_LIBS"
8405 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
8406 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
8407 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
8408 $as_echo_n "(cached) " >&6
8410 cat >conftest.$ac_ext <<_ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8416 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
8417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8418 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
8420 /* System header to define __stub macros and hopefully few prototypes,
8421 which can conflict with char gdk_x11_display_get_xdisplay (); below.
8422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8423 <limits.h> exists even on freestanding compilers. */
8426 # include <limits.h>
8428 # include <assert.h>
8431 #undef gdk_x11_display_get_xdisplay
8433 /* Override any GCC internal prototype to avoid an error.
8434 Use char because int might match the return type of a GCC
8435 builtin and then its argument prototype would still apply. */
8439 char gdk_x11_display_get_xdisplay ();
8440 /* The GNU C library defines this for functions which it implements
8441 to always fail with ENOSYS. Some functions are actually named
8442 something starting with __ and the normal name is an alias. */
8443 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
8450 return gdk_x11_display_get_xdisplay ();
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (ac_try="$ac_link"
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8462 $as_echo "$ac_try_echo") >&5
8463 (eval "$ac_link") 2>conftest.er1
8465 grep -v '^ *+' conftest.er1 >conftest.err
8467 cat conftest.err >&5
8468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } && {
8470 test -z "$ac_c_werror_flag" ||
8471 test ! -s conftest.err
8472 } && test -s conftest$ac_exeext && {
8473 test "$cross_compiling" = yes ||
8474 $as_test_x conftest$ac_exeext
8476 ac_cv_func_gdk_x11_display_get_xdisplay=yes
8478 $as_echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_cv_func_gdk_x11_display_get_xdisplay=no
8484 rm -rf conftest.dSYM
8485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8486 conftest$ac_exeext conftest.$ac_ext
8488 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
8489 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
8490 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
8494 cat >>confdefs.h <<\_ACEOF
8495 #define HAVE_GTK_X11 1
8500 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
8501 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
8502 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
8503 $as_echo_n "(cached) " >&6
8505 cat >conftest.$ac_ext <<_ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
8512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8513 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
8515 /* System header to define __stub macros and hopefully few prototypes,
8516 which can conflict with char gdk_quartz_window_get_nsview (); below.
8517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8518 <limits.h> exists even on freestanding compilers. */
8521 # include <limits.h>
8523 # include <assert.h>
8526 #undef gdk_quartz_window_get_nsview
8528 /* Override any GCC internal prototype to avoid an error.
8529 Use char because int might match the return type of a GCC
8530 builtin and then its argument prototype would still apply. */
8534 char gdk_quartz_window_get_nsview ();
8535 /* The GNU C library defines this for functions which it implements
8536 to always fail with ENOSYS. Some functions are actually named
8537 something starting with __ and the normal name is an alias. */
8538 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
8545 return gdk_quartz_window_get_nsview ();
8550 rm -f conftest.$ac_objext conftest$ac_exeext
8551 if { (ac_try="$ac_link"
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8557 $as_echo "$ac_try_echo") >&5
8558 (eval "$ac_link") 2>conftest.er1
8560 grep -v '^ *+' conftest.er1 >conftest.err
8562 cat conftest.err >&5
8563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } && {
8565 test -z "$ac_c_werror_flag" ||
8566 test ! -s conftest.err
8567 } && test -s conftest$ac_exeext && {
8568 test "$cross_compiling" = yes ||
8569 $as_test_x conftest$ac_exeext
8571 ac_cv_func_gdk_quartz_window_get_nsview=yes
8573 $as_echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8576 ac_cv_func_gdk_quartz_window_get_nsview=no
8579 rm -rf conftest.dSYM
8580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8581 conftest$ac_exeext conftest.$ac_ext
8583 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
8584 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
8585 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
8589 cat >>confdefs.h <<\_ACEOF
8590 #define HAVE_GTK_OSX 1
8599 if test "$HAVE_GTK" = 'yes'; then
8608 if test "x$with_osmesa" != xno; then
8612 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
8613 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
8614 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
8615 $as_echo_n "(cached) " >&6
8617 ac_check_lib_save_LIBS=$LIBS
8618 LIBS="-lOSMesa $LIBS"
8619 cat >conftest.$ac_ext <<_ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8626 /* Override any GCC internal prototype to avoid an error.
8627 Use char because int might match the return type of a GCC
8628 builtin and then its argument prototype would still apply. */
8632 char OSMesaCreateContext ();
8636 return OSMesaCreateContext ();
8641 rm -f conftest.$ac_objext conftest$ac_exeext
8642 if { (ac_try="$ac_link"
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8648 $as_echo "$ac_try_echo") >&5
8649 (eval "$ac_link") 2>conftest.er1
8651 grep -v '^ *+' conftest.er1 >conftest.err
8653 cat conftest.err >&5
8654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } && {
8656 test -z "$ac_c_werror_flag" ||
8657 test ! -s conftest.err
8658 } && test -s conftest$ac_exeext && {
8659 test "$cross_compiling" = yes ||
8660 $as_test_x conftest$ac_exeext
8662 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
8664 $as_echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8667 ac_cv_lib_OSMesa_OSMesaCreateContext=no
8670 rm -rf conftest.dSYM
8671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8672 conftest$ac_exeext conftest.$ac_ext
8673 LIBS=$ac_check_lib_save_LIBS
8675 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
8676 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
8677 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
8678 cat >>confdefs.h <<_ACEOF
8679 #define HAVE_LIBOSMESA 1
8682 LIBS="-lOSMesa $LIBS"
8685 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
8686 See \`config.log' for more details." >&5
8687 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
8688 See \`config.log' for more details." >&2;}
8689 { (exit 1); exit 1; }; }
8692 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8693 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
8694 $as_echo_n "checking for GL/osmesa.h... " >&6; }
8695 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8696 $as_echo_n "(cached) " >&6
8698 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
8699 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
8701 # Is the header compilable?
8702 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
8703 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
8704 cat >conftest.$ac_ext <<_ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 $ac_includes_default
8711 #include <GL/osmesa.h>
8713 rm -f conftest.$ac_objext
8714 if { (ac_try="$ac_compile"
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8720 $as_echo "$ac_try_echo") >&5
8721 (eval "$ac_compile") 2>conftest.er1
8723 grep -v '^ *+' conftest.er1 >conftest.err
8725 cat conftest.err >&5
8726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && {
8728 test -z "$ac_c_werror_flag" ||
8729 test ! -s conftest.err
8730 } && test -s conftest.$ac_objext; then
8731 ac_header_compiler=yes
8733 $as_echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 ac_header_compiler=no
8739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8741 $as_echo "$ac_header_compiler" >&6; }
8743 # Is the header present?
8744 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
8745 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
8746 cat >conftest.$ac_ext <<_ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8752 #include <GL/osmesa.h>
8754 if { (ac_try="$ac_cpp conftest.$ac_ext"
8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8760 $as_echo "$ac_try_echo") >&5
8761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8763 grep -v '^ *+' conftest.er1 >conftest.err
8765 cat conftest.err >&5
8766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } >/dev/null && {
8768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8771 ac_header_preproc=yes
8773 $as_echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 ac_header_preproc=no
8779 rm -f conftest.err conftest.$ac_ext
8780 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8781 $as_echo "$ac_header_preproc" >&6; }
8783 # So? What about this header?
8784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8786 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
8787 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8788 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
8789 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
8790 ac_header_preproc=yes
8793 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
8794 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
8795 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
8796 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
8797 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
8798 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
8799 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
8800 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
8801 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
8802 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
8803 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
8804 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
8808 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
8809 $as_echo_n "checking for GL/osmesa.h... " >&6; }
8810 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
8811 $as_echo_n "(cached) " >&6
8813 ac_cv_header_GL_osmesa_h=$ac_header_preproc
8815 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
8816 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
8819 if test $ac_cv_header_GL_osmesa_h = yes; then
8822 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
8823 See \`config.log' for more details." >&5
8824 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
8825 See \`config.log' for more details." >&2;}
8826 { (exit 1); exit 1; }; }
8831 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
8833 cat >>confdefs.h <<\_ACEOF
8834 #define HAVE_OSMESA 1
8840 if test "x$APPLE_BUILD" != 'xyes'; then
8842 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
8843 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
8844 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
8845 $as_echo_n "(cached) " >&6
8847 ac_check_lib_save_LIBS=$LIBS
8849 cat >conftest.$ac_ext <<_ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8856 /* Override any GCC internal prototype to avoid an error.
8857 Use char because int might match the return type of a GCC
8858 builtin and then its argument prototype would still apply. */
8866 return glVertex3f ();
8871 rm -f conftest.$ac_objext conftest$ac_exeext
8872 if { (ac_try="$ac_link"
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8878 $as_echo "$ac_try_echo") >&5
8879 (eval "$ac_link") 2>conftest.er1
8881 grep -v '^ *+' conftest.er1 >conftest.err
8883 cat conftest.err >&5
8884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest$ac_exeext && {
8889 test "$cross_compiling" = yes ||
8890 $as_test_x conftest$ac_exeext
8892 ac_cv_lib_GL_glVertex3f=yes
8894 $as_echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 ac_cv_lib_GL_glVertex3f=no
8900 rm -rf conftest.dSYM
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902 conftest$ac_exeext conftest.$ac_ext
8903 LIBS=$ac_check_lib_save_LIBS
8905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
8906 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
8907 if test $ac_cv_lib_GL_glVertex3f = yes; then
8908 cat >>confdefs.h <<_ACEOF
8909 #define HAVE_LIBGL 1
8916 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
8917 See \`config.log' for more details." >&5
8918 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
8919 See \`config.log' for more details." >&2;}
8920 { (exit 1); exit 1; }; }
8923 if test "${ac_cv_header_GL_gl_h+set}" = set; then
8924 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
8925 $as_echo_n "checking for GL/gl.h... " >&6; }
8926 if test "${ac_cv_header_GL_gl_h+set}" = set; then
8927 $as_echo_n "(cached) " >&6
8929 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
8930 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
8932 # Is the header compilable?
8933 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
8934 $as_echo_n "checking GL/gl.h usability... " >&6; }
8935 cat >conftest.$ac_ext <<_ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h. */
8941 $ac_includes_default
8944 rm -f conftest.$ac_objext
8945 if { (ac_try="$ac_compile"
8947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948 *) ac_try_echo=$ac_try;;
8950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8951 $as_echo "$ac_try_echo") >&5
8952 (eval "$ac_compile") 2>conftest.er1
8954 grep -v '^ *+' conftest.er1 >conftest.err
8956 cat conftest.err >&5
8957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && {
8959 test -z "$ac_c_werror_flag" ||
8960 test ! -s conftest.err
8961 } && test -s conftest.$ac_objext; then
8962 ac_header_compiler=yes
8964 $as_echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 ac_header_compiler=no
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8972 $as_echo "$ac_header_compiler" >&6; }
8974 # Is the header present?
8975 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
8976 $as_echo_n "checking GL/gl.h presence... " >&6; }
8977 cat >conftest.$ac_ext <<_ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8985 if { (ac_try="$ac_cpp conftest.$ac_ext"
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8991 $as_echo "$ac_try_echo") >&5
8992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8994 grep -v '^ *+' conftest.er1 >conftest.err
8996 cat conftest.err >&5
8997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } >/dev/null && {
8999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9000 test ! -s conftest.err
9002 ac_header_preproc=yes
9004 $as_echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 ac_header_preproc=no
9010 rm -f conftest.err conftest.$ac_ext
9011 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9012 $as_echo "$ac_header_preproc" >&6; }
9014 # So? What about this header?
9015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9017 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9018 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9019 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
9020 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
9021 ac_header_preproc=yes
9024 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
9025 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
9026 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
9027 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
9028 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
9029 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
9030 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
9031 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9032 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
9033 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
9034 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
9035 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
9039 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9040 $as_echo_n "checking for GL/gl.h... " >&6; }
9041 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9042 $as_echo_n "(cached) " >&6
9044 ac_cv_header_GL_gl_h=$ac_header_preproc
9046 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9047 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9050 if test $ac_cv_header_GL_gl_h = yes; then
9054 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9055 See \`config.log' for more details." >&5
9056 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9057 See \`config.log' for more details." >&2;}
9058 { (exit 1); exit 1; }; }
9063 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
9064 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
9065 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
9066 $as_echo_n "(cached) " >&6
9068 cat >conftest.$ac_ext <<_ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9074 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
9075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9076 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
9078 /* System header to define __stub macros and hopefully few prototypes,
9079 which can conflict with char NSOpenGLGetVersion (); below.
9080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9081 <limits.h> exists even on freestanding compilers. */
9084 # include <limits.h>
9086 # include <assert.h>
9089 #undef NSOpenGLGetVersion
9091 /* Override any GCC internal prototype to avoid an error.
9092 Use char because int might match the return type of a GCC
9093 builtin and then its argument prototype would still apply. */
9097 char NSOpenGLGetVersion ();
9098 /* The GNU C library defines this for functions which it implements
9099 to always fail with ENOSYS. Some functions are actually named
9100 something starting with __ and the normal name is an alias. */
9101 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
9108 return NSOpenGLGetVersion ();
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (ac_try="$ac_link"
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9120 $as_echo "$ac_try_echo") >&5
9121 (eval "$ac_link") 2>conftest.er1
9123 grep -v '^ *+' conftest.er1 >conftest.err
9125 cat conftest.err >&5
9126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } && {
9128 test -z "$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 } && test -s conftest$ac_exeext && {
9131 test "$cross_compiling" = yes ||
9132 $as_test_x conftest$ac_exeext
9134 ac_cv_func_NSOpenGLGetVersion=yes
9136 $as_echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9139 ac_cv_func_NSOpenGLGetVersion=no
9142 rm -rf conftest.dSYM
9143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9144 conftest$ac_exeext conftest.$ac_ext
9146 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
9147 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
9148 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
9151 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
9153 cat >>confdefs.h <<\_ACEOF
9161 if test "x$HAVE_GTK_X11" = "xyes"; then
9162 if test "x$APPLE_BUILD" = "xyes"; then
9163 LIBS="$LIBS -L/usr/X11/lib -lGL"
9165 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
9166 $as_echo_n "checking for glXQueryVersion... " >&6; }
9167 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
9168 $as_echo_n "(cached) " >&6
9170 cat >conftest.$ac_ext <<_ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9176 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
9177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9178 #define glXQueryVersion innocuous_glXQueryVersion
9180 /* System header to define __stub macros and hopefully few prototypes,
9181 which can conflict with char glXQueryVersion (); below.
9182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9183 <limits.h> exists even on freestanding compilers. */
9186 # include <limits.h>
9188 # include <assert.h>
9191 #undef glXQueryVersion
9193 /* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
9199 char glXQueryVersion ();
9200 /* The GNU C library defines this for functions which it implements
9201 to always fail with ENOSYS. Some functions are actually named
9202 something starting with __ and the normal name is an alias. */
9203 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
9210 return glXQueryVersion ();
9215 rm -f conftest.$ac_objext conftest$ac_exeext
9216 if { (ac_try="$ac_link"
9218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9222 $as_echo "$ac_try_echo") >&5
9223 (eval "$ac_link") 2>conftest.er1
9225 grep -v '^ *+' conftest.er1 >conftest.err
9227 cat conftest.err >&5
9228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } && {
9230 test -z "$ac_c_werror_flag" ||
9231 test ! -s conftest.err
9232 } && test -s conftest$ac_exeext && {
9233 test "$cross_compiling" = yes ||
9234 $as_test_x conftest$ac_exeext
9236 ac_cv_func_glXQueryVersion=yes
9238 $as_echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9241 ac_cv_func_glXQueryVersion=no
9244 rm -rf conftest.dSYM
9245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9246 conftest$ac_exeext conftest.$ac_ext
9248 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
9249 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
9250 if test $ac_cv_func_glXQueryVersion = yes; then
9253 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
9255 cat >>confdefs.h <<\_ACEOF
9271 if test "x$HAVE_OSMESA" = "xyes"; then
9273 VIDEO_OSMESA_FALSE='#'
9275 VIDEO_OSMESA_TRUE='#'
9281 if test "x$HAVE_GLX" = "xyes"; then
9291 if test "x$HAVE_NSGL" = "xyes"; then
9293 VIDEO_NSGL_FALSE='#'
9300 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
9301 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
9302 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
9303 $as_echo_n "(cached) " >&6
9305 cat >conftest.$ac_ext <<_ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9311 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
9312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9313 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
9315 /* System header to define __stub macros and hopefully few prototypes,
9316 which can conflict with char glGenFramebuffersEXT (); below.
9317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9318 <limits.h> exists even on freestanding compilers. */
9321 # include <limits.h>
9323 # include <assert.h>
9326 #undef glGenFramebuffersEXT
9328 /* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
9334 char glGenFramebuffersEXT ();
9335 /* The GNU C library defines this for functions which it implements
9336 to always fail with ENOSYS. Some functions are actually named
9337 something starting with __ and the normal name is an alias. */
9338 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
9345 return glGenFramebuffersEXT ();
9350 rm -f conftest.$ac_objext conftest$ac_exeext
9351 if { (ac_try="$ac_link"
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9357 $as_echo "$ac_try_echo") >&5
9358 (eval "$ac_link") 2>conftest.er1
9360 grep -v '^ *+' conftest.er1 >conftest.err
9362 cat conftest.err >&5
9363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } && {
9365 test -z "$ac_c_werror_flag" ||
9366 test ! -s conftest.err
9367 } && test -s conftest$ac_exeext && {
9368 test "$cross_compiling" = yes ||
9369 $as_test_x conftest$ac_exeext
9371 ac_cv_func_glGenFramebuffersEXT=yes
9373 $as_echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9376 ac_cv_func_glGenFramebuffersEXT=no
9379 rm -rf conftest.dSYM
9380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9381 conftest$ac_exeext conftest.$ac_ext
9383 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
9384 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
9385 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
9387 cat >>confdefs.h <<\_ACEOF
9388 #define HAVE_OPENGL_FBO 1
9393 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
9394 $as_echo_n "checking for glCreateShader... " >&6; }
9395 if test "${ac_cv_func_glCreateShader+set}" = set; then
9396 $as_echo_n "(cached) " >&6
9398 cat >conftest.$ac_ext <<_ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9404 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
9405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9406 #define glCreateShader innocuous_glCreateShader
9408 /* System header to define __stub macros and hopefully few prototypes,
9409 which can conflict with char glCreateShader (); below.
9410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9411 <limits.h> exists even on freestanding compilers. */
9414 # include <limits.h>
9416 # include <assert.h>
9419 #undef glCreateShader
9421 /* Override any GCC internal prototype to avoid an error.
9422 Use char because int might match the return type of a GCC
9423 builtin and then its argument prototype would still apply. */
9427 char glCreateShader ();
9428 /* The GNU C library defines this for functions which it implements
9429 to always fail with ENOSYS. Some functions are actually named
9430 something starting with __ and the normal name is an alias. */
9431 #if defined __stub_glCreateShader || defined __stub___glCreateShader
9438 return glCreateShader ();
9443 rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (ac_try="$ac_link"
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9450 $as_echo "$ac_try_echo") >&5
9451 (eval "$ac_link") 2>conftest.er1
9453 grep -v '^ *+' conftest.er1 >conftest.err
9455 cat conftest.err >&5
9456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && {
9458 test -z "$ac_c_werror_flag" ||
9459 test ! -s conftest.err
9460 } && test -s conftest$ac_exeext && {
9461 test "$cross_compiling" = yes ||
9462 $as_test_x conftest$ac_exeext
9464 ac_cv_func_glCreateShader=yes
9466 $as_echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9469 ac_cv_func_glCreateShader=no
9472 rm -rf conftest.dSYM
9473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9474 conftest$ac_exeext conftest.$ac_ext
9476 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
9477 $as_echo "$ac_cv_func_glCreateShader" >&6; }
9478 if test $ac_cv_func_glCreateShader = yes; then
9480 cat >>confdefs.h <<\_ACEOF
9481 #define HAVE_OPENGL_SHADER 1
9486 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
9487 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
9488 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
9489 $as_echo_n "(cached) " >&6
9491 cat >conftest.$ac_ext <<_ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
9498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9499 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
9501 /* System header to define __stub macros and hopefully few prototypes,
9502 which can conflict with char glCreateShaderObjectARB (); below.
9503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9504 <limits.h> exists even on freestanding compilers. */
9507 # include <limits.h>
9509 # include <assert.h>
9512 #undef glCreateShaderObjectARB
9514 /* Override any GCC internal prototype to avoid an error.
9515 Use char because int might match the return type of a GCC
9516 builtin and then its argument prototype would still apply. */
9520 char glCreateShaderObjectARB ();
9521 /* The GNU C library defines this for functions which it implements
9522 to always fail with ENOSYS. Some functions are actually named
9523 something starting with __ and the normal name is an alias. */
9524 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
9531 return glCreateShaderObjectARB ();
9536 rm -f conftest.$ac_objext conftest$ac_exeext
9537 if { (ac_try="$ac_link"
9539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540 *) ac_try_echo=$ac_try;;
9542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9543 $as_echo "$ac_try_echo") >&5
9544 (eval "$ac_link") 2>conftest.er1
9546 grep -v '^ *+' conftest.er1 >conftest.err
9548 cat conftest.err >&5
9549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest$ac_exeext && {
9554 test "$cross_compiling" = yes ||
9555 $as_test_x conftest$ac_exeext
9557 ac_cv_func_glCreateShaderObjectARB=yes
9559 $as_echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 ac_cv_func_glCreateShaderObjectARB=no
9565 rm -rf conftest.dSYM
9566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9567 conftest$ac_exeext conftest.$ac_ext
9569 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
9570 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
9571 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
9573 cat >>confdefs.h <<\_ACEOF
9574 #define HAVE_OPENGL_SHADER_ARB 1
9579 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
9580 $as_echo_n "checking for glClampColorARB... " >&6; }
9581 if test "${ac_cv_func_glClampColorARB+set}" = set; then
9582 $as_echo_n "(cached) " >&6
9584 cat >conftest.$ac_ext <<_ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
9591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9592 #define glClampColorARB innocuous_glClampColorARB
9594 /* System header to define __stub macros and hopefully few prototypes,
9595 which can conflict with char glClampColorARB (); below.
9596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9597 <limits.h> exists even on freestanding compilers. */
9600 # include <limits.h>
9602 # include <assert.h>
9605 #undef glClampColorARB
9607 /* Override any GCC internal prototype to avoid an error.
9608 Use char because int might match the return type of a GCC
9609 builtin and then its argument prototype would still apply. */
9613 char glClampColorARB ();
9614 /* The GNU C library defines this for functions which it implements
9615 to always fail with ENOSYS. Some functions are actually named
9616 something starting with __ and the normal name is an alias. */
9617 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
9624 return glClampColorARB ();
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (ac_try="$ac_link"
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9636 $as_echo "$ac_try_echo") >&5
9637 (eval "$ac_link") 2>conftest.er1
9639 grep -v '^ *+' conftest.er1 >conftest.err
9641 cat conftest.err >&5
9642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 } && test -s conftest$ac_exeext && {
9647 test "$cross_compiling" = yes ||
9648 $as_test_x conftest$ac_exeext
9650 ac_cv_func_glClampColorARB=yes
9652 $as_echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9655 ac_cv_func_glClampColorARB=no
9658 rm -rf conftest.dSYM
9659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9660 conftest$ac_exeext conftest.$ac_ext
9662 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
9663 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
9664 if test $ac_cv_func_glClampColorARB = yes; then
9666 cat >>confdefs.h <<\_ACEOF
9667 #define HAVE_OPENGL_CLAMP_COLOR 1
9675 if test "x$enable_translator" != "xno"; then
9677 i386|i486|i586|i686|x86_64)
9678 SH4_TRANSLATOR="x86"
9680 cat >>confdefs.h <<_ACEOF
9681 #define SH4_TRANSLATOR TARGET_X86
9688 if test "$SH4_TRANSLATOR" = "x86"; then
9690 BUILD_SH4X86_FALSE='#'
9692 BUILD_SH4X86_TRUE='#'
9697 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9698 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
9699 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
9700 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9701 $as_echo_n "(cached) " >&6
9703 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
9704 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
9706 # Is the header compilable?
9707 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
9708 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
9709 cat >conftest.$ac_ext <<_ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715 $ac_includes_default
9716 #include <CoreAudio/CoreAudio.h>
9718 rm -f conftest.$ac_objext
9719 if { (ac_try="$ac_compile"
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9725 $as_echo "$ac_try_echo") >&5
9726 (eval "$ac_compile") 2>conftest.er1
9728 grep -v '^ *+' conftest.er1 >conftest.err
9730 cat conftest.err >&5
9731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest.$ac_objext; then
9736 ac_header_compiler=yes
9738 $as_echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_header_compiler=no
9744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9746 $as_echo "$ac_header_compiler" >&6; }
9748 # Is the header present?
9749 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
9750 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
9751 cat >conftest.$ac_ext <<_ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 #include <CoreAudio/CoreAudio.h>
9759 if { (ac_try="$ac_cpp conftest.$ac_ext"
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9765 $as_echo "$ac_try_echo") >&5
9766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9768 grep -v '^ *+' conftest.er1 >conftest.err
9770 cat conftest.err >&5
9771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } >/dev/null && {
9773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9774 test ! -s conftest.err
9776 ac_header_preproc=yes
9778 $as_echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 ac_header_preproc=no
9784 rm -f conftest.err conftest.$ac_ext
9785 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9786 $as_echo "$ac_header_preproc" >&6; }
9788 # So? What about this header?
9789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9791 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9792 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9793 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
9794 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
9795 ac_header_preproc=yes
9798 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
9799 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
9800 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
9801 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
9802 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
9803 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
9804 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
9805 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
9806 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
9807 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
9808 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
9809 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
9813 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
9814 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
9815 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
9816 $as_echo_n "(cached) " >&6
9818 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
9820 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
9821 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
9824 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
9827 LIBS="$LIBS -framework CoreAudio"
9828 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
9830 cat >>confdefs.h <<\_ACEOF
9831 #define HAVE_CORE_AUDIO 1
9841 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
9850 if test "x$with_pulse" != "xno"; then
9853 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
9854 $as_echo_n "checking for PULSE... " >&6; }
9856 if test -n "$PULSE_CFLAGS"; then
9857 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
9858 elif test -n "$PKG_CONFIG"; then
9859 if test -n "$PKG_CONFIG" && \
9860 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
9861 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
9863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; then
9865 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
9872 if test -n "$PULSE_LIBS"; then
9873 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
9874 elif test -n "$PKG_CONFIG"; then
9875 if test -n "$PKG_CONFIG" && \
9876 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
9877 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
9879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; then
9881 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
9891 if test $pkg_failed = yes; then
9893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9894 _pkg_short_errors_supported=yes
9896 _pkg_short_errors_supported=no
9898 if test $_pkg_short_errors_supported = yes; then
9899 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
9901 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
9903 # Put the nasty error message in config.log where it belongs
9904 echo "$PULSE_PKG_ERRORS" >&5
9906 { $as_echo "$as_me:$LINENO: result: no" >&5
9907 $as_echo "no" >&6; }
9909 if test "x$with_pulse" = "xyes"; then
9910 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
9911 See \`config.log' for more details." >&5
9912 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
9913 See \`config.log' for more details." >&2;}
9914 { (exit 1); exit 1; }; }
9917 elif test $pkg_failed = untried; then
9919 if test "x$with_pulse" = "xyes"; then
9920 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
9921 See \`config.log' for more details." >&5
9922 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
9923 See \`config.log' for more details." >&2;}
9924 { (exit 1); exit 1; }; }
9928 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
9929 PULSE_LIBS=$pkg_cv_PULSE_LIBS
9930 { $as_echo "$as_me:$LINENO: result: yes" >&5
9931 $as_echo "yes" >&6; }
9934 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
9936 cat >>confdefs.h <<\_ACEOF
9937 #define HAVE_PULSE 1
9945 if test "$HAVE_PULSE" = 'yes' ; then
9947 AUDIO_PULSE_FALSE='#'
9949 AUDIO_PULSE_TRUE='#'
9954 if test "x$with_esd" != "xno"; then
9957 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
9958 $as_echo_n "checking for ESOUND... " >&6; }
9960 if test -n "$ESOUND_CFLAGS"; then
9961 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
9962 elif test -n "$PKG_CONFIG"; then
9963 if test -n "$PKG_CONFIG" && \
9964 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
9965 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
9967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; then
9969 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
9976 if test -n "$ESOUND_LIBS"; then
9977 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
9978 elif test -n "$PKG_CONFIG"; then
9979 if test -n "$PKG_CONFIG" && \
9980 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
9981 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
9983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; then
9985 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
9995 if test $pkg_failed = yes; then
9997 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9998 _pkg_short_errors_supported=yes
10000 _pkg_short_errors_supported=no
10002 if test $_pkg_short_errors_supported = yes; then
10003 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
10005 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
10007 # Put the nasty error message in config.log where it belongs
10008 echo "$ESOUND_PKG_ERRORS" >&5
10010 { $as_echo "$as_me:$LINENO: result: no" >&5
10011 $as_echo "no" >&6; }
10013 if test "x$with_esd" = "xyes"; then
10014 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10015 See \`config.log' for more details." >&5
10016 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10017 See \`config.log' for more details." >&2;}
10018 { (exit 1); exit 1; }; }
10021 elif test $pkg_failed = untried; then
10023 if test "x$with_esd" = "xyes"; then
10024 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10025 See \`config.log' for more details." >&5
10026 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10027 See \`config.log' for more details." >&2;}
10028 { (exit 1); exit 1; }; }
10032 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
10033 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
10034 { $as_echo "$as_me:$LINENO: result: yes" >&5
10035 $as_echo "yes" >&6; }
10038 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
10040 cat >>confdefs.h <<\_ACEOF
10041 #define HAVE_ESOUND 1
10049 if test "$HAVE_ESOUND" = 'yes' ; then
10051 AUDIO_ESOUND_FALSE='#'
10053 AUDIO_ESOUND_TRUE='#'
10054 AUDIO_ESOUND_FALSE=
10060 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
10061 $as_echo_n "checking for ALSA... " >&6; }
10063 if test -n "$ALSA_CFLAGS"; then
10064 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
10065 elif test -n "$PKG_CONFIG"; then
10066 if test -n "$PKG_CONFIG" && \
10067 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10068 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; then
10072 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
10079 if test -n "$ALSA_LIBS"; then
10080 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
10081 elif test -n "$PKG_CONFIG"; then
10082 if test -n "$PKG_CONFIG" && \
10083 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10084 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; then
10088 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
10098 if test $pkg_failed = yes; then
10100 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10101 _pkg_short_errors_supported=yes
10103 _pkg_short_errors_supported=no
10105 if test $_pkg_short_errors_supported = yes; then
10106 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
10108 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
10110 # Put the nasty error message in config.log where it belongs
10111 echo "$ALSA_PKG_ERRORS" >&5
10113 { $as_echo "$as_me:$LINENO: result: no" >&5
10114 $as_echo "no" >&6; }
10116 elif test $pkg_failed = untried; then
10119 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
10120 ALSA_LIBS=$pkg_cv_ALSA_LIBS
10121 { $as_echo "$as_me:$LINENO: result: yes" >&5
10122 $as_echo "yes" >&6; }
10125 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
10127 cat >>confdefs.h <<\_ACEOF
10128 #define HAVE_ALSA 1
10134 if test "$HAVE_ALSA" = 'yes' ; then
10136 AUDIO_ALSA_FALSE='#'
10138 AUDIO_ALSA_TRUE='#'
10144 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10145 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10146 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10147 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10148 $as_echo_n "(cached) " >&6
10150 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10151 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10153 # Is the header compilable?
10154 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
10155 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
10156 cat >conftest.$ac_ext <<_ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 $ac_includes_default
10163 #include <linux/cdrom.h>
10165 rm -f conftest.$ac_objext
10166 if { (ac_try="$ac_compile"
10167 case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10172 $as_echo "$ac_try_echo") >&5
10173 (eval "$ac_compile") 2>conftest.er1
10175 grep -v '^ *+' conftest.er1 >conftest.err
10177 cat conftest.err >&5
10178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } && {
10180 test -z "$ac_c_werror_flag" ||
10181 test ! -s conftest.err
10182 } && test -s conftest.$ac_objext; then
10183 ac_header_compiler=yes
10185 $as_echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_header_compiler=no
10191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10192 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10193 $as_echo "$ac_header_compiler" >&6; }
10195 # Is the header present?
10196 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
10197 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
10198 cat >conftest.$ac_ext <<_ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 #include <linux/cdrom.h>
10206 if { (ac_try="$ac_cpp conftest.$ac_ext"
10207 case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10212 $as_echo "$ac_try_echo") >&5
10213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10215 grep -v '^ *+' conftest.er1 >conftest.err
10217 cat conftest.err >&5
10218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } >/dev/null && {
10220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10221 test ! -s conftest.err
10223 ac_header_preproc=yes
10225 $as_echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 ac_header_preproc=no
10231 rm -f conftest.err conftest.$ac_ext
10232 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10233 $as_echo "$ac_header_preproc" >&6; }
10235 # So? What about this header?
10236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10238 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
10239 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10240 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
10241 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
10242 ac_header_preproc=yes
10245 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
10246 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
10247 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
10248 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
10249 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
10250 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
10251 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
10252 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
10253 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
10254 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
10255 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
10256 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
10260 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10261 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10262 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10263 $as_echo_n "(cached) " >&6
10265 ac_cv_header_linux_cdrom_h=$ac_header_preproc
10267 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10268 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10271 if test $ac_cv_header_linux_cdrom_h = yes; then
10278 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10279 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10280 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
10281 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10282 $as_echo_n "(cached) " >&6
10284 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10285 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10287 # Is the header compilable?
10288 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
10289 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
10290 cat >conftest.$ac_ext <<_ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10296 $ac_includes_default
10297 #include <IOKit/IOKitLib.h>
10299 rm -f conftest.$ac_objext
10300 if { (ac_try="$ac_compile"
10301 case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10306 $as_echo "$ac_try_echo") >&5
10307 (eval "$ac_compile") 2>conftest.er1
10309 grep -v '^ *+' conftest.er1 >conftest.err
10311 cat conftest.err >&5
10312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } && {
10314 test -z "$ac_c_werror_flag" ||
10315 test ! -s conftest.err
10316 } && test -s conftest.$ac_objext; then
10317 ac_header_compiler=yes
10319 $as_echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10322 ac_header_compiler=no
10325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10326 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10327 $as_echo "$ac_header_compiler" >&6; }
10329 # Is the header present?
10330 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
10331 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
10332 cat >conftest.$ac_ext <<_ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338 #include <IOKit/IOKitLib.h>
10340 if { (ac_try="$ac_cpp conftest.$ac_ext"
10341 case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10346 $as_echo "$ac_try_echo") >&5
10347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10349 grep -v '^ *+' conftest.er1 >conftest.err
10351 cat conftest.err >&5
10352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } >/dev/null && {
10354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10355 test ! -s conftest.err
10357 ac_header_preproc=yes
10359 $as_echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 ac_header_preproc=no
10365 rm -f conftest.err conftest.$ac_ext
10366 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10367 $as_echo "$ac_header_preproc" >&6; }
10369 # So? What about this header?
10370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10372 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10373 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10374 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
10375 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
10376 ac_header_preproc=yes
10379 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
10380 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
10381 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
10382 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
10383 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
10384 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
10385 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
10386 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10387 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
10388 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
10389 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
10390 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
10394 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
10395 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
10396 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
10397 $as_echo_n "(cached) " >&6
10399 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
10401 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
10402 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
10405 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
10408 LIBS="$LIBS -framework IOKit"
10416 if test "x$CDROM_DRIVER" = "xlinux"; then
10418 CDROM_LINUX_FALSE='#'
10420 CDROM_LINUX_TRUE='#'
10426 if test "x$CDROM_DRIVER" = "xosx"; then
10428 CDROM_OSX_FALSE='#'
10436 if test "x$CDROM_DRIVER" = "x"; then
10438 CDROM_NONE_FALSE='#'
10440 CDROM_NONE_TRUE='#'
10445 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10446 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
10447 $as_echo_n "checking for linux/joystick.h... " >&6; }
10448 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10449 $as_echo_n "(cached) " >&6
10451 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
10452 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
10454 # Is the header compilable?
10455 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
10456 $as_echo_n "checking linux/joystick.h usability... " >&6; }
10457 cat >conftest.$ac_ext <<_ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 $ac_includes_default
10464 #include <linux/joystick.h>
10466 rm -f conftest.$ac_objext
10467 if { (ac_try="$ac_compile"
10468 case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10473 $as_echo "$ac_try_echo") >&5
10474 (eval "$ac_compile") 2>conftest.er1
10476 grep -v '^ *+' conftest.er1 >conftest.err
10478 cat conftest.err >&5
10479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest.$ac_objext; then
10484 ac_header_compiler=yes
10486 $as_echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 ac_header_compiler=no
10492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10494 $as_echo "$ac_header_compiler" >&6; }
10496 # Is the header present?
10497 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
10498 $as_echo_n "checking linux/joystick.h presence... " >&6; }
10499 cat >conftest.$ac_ext <<_ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 #include <linux/joystick.h>
10507 if { (ac_try="$ac_cpp conftest.$ac_ext"
10508 case "(($ac_try" in
10509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510 *) ac_try_echo=$ac_try;;
10512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10513 $as_echo "$ac_try_echo") >&5
10514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10516 grep -v '^ *+' conftest.er1 >conftest.err
10518 cat conftest.err >&5
10519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } >/dev/null && {
10521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10522 test ! -s conftest.err
10524 ac_header_preproc=yes
10526 $as_echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10529 ac_header_preproc=no
10532 rm -f conftest.err conftest.$ac_ext
10533 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10534 $as_echo "$ac_header_preproc" >&6; }
10536 # So? What about this header?
10537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10539 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
10540 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10541 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
10542 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
10543 ac_header_preproc=yes
10546 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
10547 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
10548 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
10549 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
10550 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
10551 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
10552 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
10553 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
10554 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
10555 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
10556 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
10557 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
10561 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
10562 $as_echo_n "checking for linux/joystick.h... " >&6; }
10563 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
10564 $as_echo_n "(cached) " >&6
10566 ac_cv_header_linux_joystick_h=$ac_header_preproc
10568 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
10569 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
10572 if test $ac_cv_header_linux_joystick_h = yes; then
10574 HAVE_LINUX_JOYSTICK_H=yes
10576 cat >>confdefs.h <<\_ACEOF
10577 #define HAVE_LINUX_JOYSTICK 1
10581 echo "Linux Joystick support not found, building without it."
10587 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
10589 JOY_LINUX_FALSE='#'
10596 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
10597 set dummy sh-elf-gcc; ac_word=$2
10598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10599 $as_echo_n "checking for $ac_word... " >&6; }
10600 if test "${ac_cv_path_SHCC+set}" = set; then
10601 $as_echo_n "(cached) " >&6
10605 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10612 test -z "$as_dir" && as_dir=.
10613 for ac_exec_ext in '' $ac_executable_extensions; do
10614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10615 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
10616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 SHCC=$ac_cv_path_SHCC
10627 if test -n "$SHCC"; then
10628 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
10629 $as_echo "$SHCC" >&6; }
10631 { $as_echo "$as_me:$LINENO: result: no" >&5
10632 $as_echo "no" >&6; }
10636 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
10637 set dummy sh-elf-ld; ac_word=$2
10638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10639 $as_echo_n "checking for $ac_word... " >&6; }
10640 if test "${ac_cv_path_SHLD+set}" = set; then
10641 $as_echo_n "(cached) " >&6
10645 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
10648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10649 for as_dir in $PATH
10652 test -z "$as_dir" && as_dir=.
10653 for ac_exec_ext in '' $ac_executable_extensions; do
10654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10655 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
10656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10666 SHLD=$ac_cv_path_SHLD
10667 if test -n "$SHLD"; then
10668 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
10669 $as_echo "$SHLD" >&6; }
10671 { $as_echo "$as_me:$LINENO: result: no" >&5
10672 $as_echo "no" >&6; }
10676 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
10677 set dummy sh-elf-objcopy; ac_word=$2
10678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10679 $as_echo_n "checking for $ac_word... " >&6; }
10680 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
10681 $as_echo_n "(cached) " >&6
10685 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
10688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689 for as_dir in $PATH
10692 test -z "$as_dir" && as_dir=.
10693 for ac_exec_ext in '' $ac_executable_extensions; do
10694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10695 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
10696 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10706 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
10707 if test -n "$SHOBJCOPY"; then
10708 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
10709 $as_echo "$SHOBJCOPY" >&6; }
10711 { $as_echo "$as_me:$LINENO: result: no" >&5
10712 $as_echo "no" >&6; }
10716 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
10717 set dummy arm-elf-gcc; ac_word=$2
10718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10719 $as_echo_n "checking for $ac_word... " >&6; }
10720 if test "${ac_cv_path_ARMCC+set}" = set; then
10721 $as_echo_n "(cached) " >&6
10725 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
10728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729 for as_dir in $PATH
10732 test -z "$as_dir" && as_dir=.
10733 for ac_exec_ext in '' $ac_executable_extensions; do
10734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10735 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
10736 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10746 ARMCC=$ac_cv_path_ARMCC
10747 if test -n "$ARMCC"; then
10748 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
10749 $as_echo "$ARMCC" >&6; }
10751 { $as_echo "$as_me:$LINENO: result: no" >&5
10752 $as_echo "no" >&6; }
10756 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
10757 set dummy arm-elf-ld; ac_word=$2
10758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10759 $as_echo_n "checking for $ac_word... " >&6; }
10760 if test "${ac_cv_path_ARMLD+set}" = set; then
10761 $as_echo_n "(cached) " >&6
10765 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
10768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10769 for as_dir in $PATH
10772 test -z "$as_dir" && as_dir=.
10773 for ac_exec_ext in '' $ac_executable_extensions; do
10774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10775 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
10776 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10786 ARMLD=$ac_cv_path_ARMLD
10787 if test -n "$ARMLD"; then
10788 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
10789 $as_echo "$ARMLD" >&6; }
10791 { $as_echo "$as_me:$LINENO: result: no" >&5
10792 $as_echo "no" >&6; }
10796 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
10797 set dummy arm-elf-objcopy; ac_word=$2
10798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10799 $as_echo_n "checking for $ac_word... " >&6; }
10800 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
10801 $as_echo_n "(cached) " >&6
10803 case $ARMOBJCOPY in
10805 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
10808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809 for as_dir in $PATH
10812 test -z "$as_dir" && as_dir=.
10813 for ac_exec_ext in '' $ac_executable_extensions; do
10814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10815 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
10816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10826 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
10827 if test -n "$ARMOBJCOPY"; then
10828 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
10829 $as_echo "$ARMOBJCOPY" >&6; }
10831 { $as_echo "$as_me:$LINENO: result: no" >&5
10832 $as_echo "no" >&6; }
10837 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
10839 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
10843 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
10845 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
10851 if test "$BUILD_SH" = "yes"; then
10852 BUILD_SYSTEST_TRUE=
10853 BUILD_SYSTEST_FALSE='#'
10855 BUILD_SYSTEST_TRUE='#'
10856 BUILD_SYSTEST_FALSE=
10861 if test "$BUILD_ARM" = "yes"; then
10862 BUILD_ARMTEST_TRUE=
10863 BUILD_ARMTEST_FALSE='#'
10865 BUILD_ARMTEST_TRUE='#'
10866 BUILD_ARMTEST_FALSE=
10871 GETTEXT_PACKAGE=lxdream
10874 cat >>confdefs.h <<_ACEOF
10875 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
10879 ALL_LINGUAS="de es it pt_BR"
10882 for ac_header in locale.h
10884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10886 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10887 $as_echo_n "checking for $ac_header... " >&6; }
10888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10889 $as_echo_n "(cached) " >&6
10891 ac_res=`eval 'as_val=${'$as_ac_Header'}
10892 $as_echo "$as_val"'`
10893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10894 $as_echo "$ac_res" >&6; }
10896 # Is the header compilable?
10897 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10898 $as_echo_n "checking $ac_header usability... " >&6; }
10899 cat >conftest.$ac_ext <<_ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905 $ac_includes_default
10906 #include <$ac_header>
10908 rm -f conftest.$ac_objext
10909 if { (ac_try="$ac_compile"
10910 case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10915 $as_echo "$ac_try_echo") >&5
10916 (eval "$ac_compile") 2>conftest.er1
10918 grep -v '^ *+' conftest.er1 >conftest.err
10920 cat conftest.err >&5
10921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest.$ac_objext; then
10926 ac_header_compiler=yes
10928 $as_echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10931 ac_header_compiler=no
10934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10935 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10936 $as_echo "$ac_header_compiler" >&6; }
10938 # Is the header present?
10939 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10940 $as_echo_n "checking $ac_header presence... " >&6; }
10941 cat >conftest.$ac_ext <<_ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 #include <$ac_header>
10949 if { (ac_try="$ac_cpp conftest.$ac_ext"
10950 case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10955 $as_echo "$ac_try_echo") >&5
10956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10958 grep -v '^ *+' conftest.er1 >conftest.err
10960 cat conftest.err >&5
10961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } >/dev/null && {
10963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10964 test ! -s conftest.err
10966 ac_header_preproc=yes
10968 $as_echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_header_preproc=no
10974 rm -f conftest.err conftest.$ac_ext
10975 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10976 $as_echo "$ac_header_preproc" >&6; }
10978 # So? What about this header?
10979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10982 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10984 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10985 ac_header_preproc=yes
10988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10989 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10991 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10993 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10995 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10997 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10999 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11003 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11004 $as_echo_n "checking for $ac_header... " >&6; }
11005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11006 $as_echo_n "(cached) " >&6
11008 eval "$as_ac_Header=\$ac_header_preproc"
11010 ac_res=`eval 'as_val=${'$as_ac_Header'}
11011 $as_echo "$as_val"'`
11012 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11013 $as_echo "$ac_res" >&6; }
11016 if test `eval 'as_val=${'$as_ac_Header'}
11017 $as_echo "$as_val"'` = yes; then
11018 cat >>confdefs.h <<_ACEOF
11019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11026 if test $ac_cv_header_locale_h = yes; then
11027 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11028 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11029 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11030 $as_echo_n "(cached) " >&6
11032 cat >conftest.$ac_ext <<_ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11038 #include <locale.h>
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (ac_try="$ac_link"
11049 case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11054 $as_echo "$ac_try_echo") >&5
11055 (eval "$ac_link") 2>conftest.er1
11057 grep -v '^ *+' conftest.er1 >conftest.err
11059 cat conftest.err >&5
11060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } && {
11062 test -z "$ac_c_werror_flag" ||
11063 test ! -s conftest.err
11064 } && test -s conftest$ac_exeext && {
11065 test "$cross_compiling" = yes ||
11066 $as_test_x conftest$ac_exeext
11068 am_cv_val_LC_MESSAGES=yes
11070 $as_echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 am_cv_val_LC_MESSAGES=no
11076 rm -rf conftest.dSYM
11077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11078 conftest$ac_exeext conftest.$ac_ext
11080 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11081 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11082 if test $am_cv_val_LC_MESSAGES = yes; then
11084 cat >>confdefs.h <<\_ACEOF
11085 #define HAVE_LC_MESSAGES 1
11093 gt_cv_have_gettext=no
11099 if test "${ac_cv_header_libintl_h+set}" = set; then
11100 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
11101 $as_echo_n "checking for libintl.h... " >&6; }
11102 if test "${ac_cv_header_libintl_h+set}" = set; then
11103 $as_echo_n "(cached) " >&6
11105 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11106 $as_echo "$ac_cv_header_libintl_h" >&6; }
11108 # Is the header compilable?
11109 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
11110 $as_echo_n "checking libintl.h usability... " >&6; }
11111 cat >conftest.$ac_ext <<_ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 $ac_includes_default
11118 #include <libintl.h>
11120 rm -f conftest.$ac_objext
11121 if { (ac_try="$ac_compile"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11127 $as_echo "$ac_try_echo") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11130 grep -v '^ *+' conftest.er1 >conftest.err
11132 cat conftest.err >&5
11133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } && {
11135 test -z "$ac_c_werror_flag" ||
11136 test ! -s conftest.err
11137 } && test -s conftest.$ac_objext; then
11138 ac_header_compiler=yes
11140 $as_echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 ac_header_compiler=no
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148 $as_echo "$ac_header_compiler" >&6; }
11150 # Is the header present?
11151 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
11152 $as_echo_n "checking libintl.h presence... " >&6; }
11153 cat >conftest.$ac_ext <<_ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 #include <libintl.h>
11161 if { (ac_try="$ac_cpp conftest.$ac_ext"
11162 case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11167 $as_echo "$ac_try_echo") >&5
11168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11170 grep -v '^ *+' conftest.er1 >conftest.err
11172 cat conftest.err >&5
11173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } >/dev/null && {
11175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11176 test ! -s conftest.err
11178 ac_header_preproc=yes
11180 $as_echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11183 ac_header_preproc=no
11186 rm -f conftest.err conftest.$ac_ext
11187 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11188 $as_echo "$ac_header_preproc" >&6; }
11190 # So? What about this header?
11191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11193 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11194 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11195 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
11196 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
11197 ac_header_preproc=yes
11200 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
11201 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
11202 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
11203 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
11204 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
11205 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
11206 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
11207 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11208 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
11209 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
11210 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
11211 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
11215 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
11216 $as_echo_n "checking for libintl.h... " >&6; }
11217 if test "${ac_cv_header_libintl_h+set}" = set; then
11218 $as_echo_n "(cached) " >&6
11220 ac_cv_header_libintl_h=$ac_header_preproc
11222 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
11223 $as_echo "$ac_cv_header_libintl_h" >&6; }
11226 if test $ac_cv_header_libintl_h = yes; then
11227 gt_cv_func_dgettext_libintl="no"
11228 libintl_extra_libs=""
11231 # First check in libc
11233 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
11234 $as_echo_n "checking for ngettext in libc... " >&6; }
11235 if test "${gt_cv_func_ngettext_libc+set}" = set; then
11236 $as_echo_n "(cached) " >&6
11238 cat >conftest.$ac_ext <<_ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11245 #include <libintl.h>
11250 return !ngettext ("","", 1)
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (ac_try="$ac_link"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11262 $as_echo "$ac_try_echo") >&5
11263 (eval "$ac_link") 2>conftest.er1
11265 grep -v '^ *+' conftest.er1 >conftest.err
11267 cat conftest.err >&5
11268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } && {
11270 test -z "$ac_c_werror_flag" ||
11271 test ! -s conftest.err
11272 } && test -s conftest$ac_exeext && {
11273 test "$cross_compiling" = yes ||
11274 $as_test_x conftest$ac_exeext
11276 gt_cv_func_ngettext_libc=yes
11278 $as_echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11281 gt_cv_func_ngettext_libc=no
11284 rm -rf conftest.dSYM
11285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11286 conftest$ac_exeext conftest.$ac_ext
11289 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
11290 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
11292 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11293 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
11294 $as_echo_n "checking for dgettext in libc... " >&6; }
11295 if test "${gt_cv_func_dgettext_libc+set}" = set; then
11296 $as_echo_n "(cached) " >&6
11298 cat >conftest.$ac_ext <<_ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11305 #include <libintl.h>
11310 return !dgettext ("","")
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (ac_try="$ac_link"
11317 case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11322 $as_echo "$ac_try_echo") >&5
11323 (eval "$ac_link") 2>conftest.er1
11325 grep -v '^ *+' conftest.er1 >conftest.err
11327 cat conftest.err >&5
11328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } && {
11330 test -z "$ac_c_werror_flag" ||
11331 test ! -s conftest.err
11332 } && test -s conftest$ac_exeext && {
11333 test "$cross_compiling" = yes ||
11334 $as_test_x conftest$ac_exeext
11336 gt_cv_func_dgettext_libc=yes
11338 $as_echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11341 gt_cv_func_dgettext_libc=no
11344 rm -rf conftest.dSYM
11345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11346 conftest$ac_exeext conftest.$ac_ext
11349 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
11350 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
11353 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11355 for ac_func in bind_textdomain_codeset
11357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11358 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11359 $as_echo_n "checking for $ac_func... " >&6; }
11360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11361 $as_echo_n "(cached) " >&6
11363 cat >conftest.$ac_ext <<_ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11371 #define $ac_func innocuous_$ac_func
11373 /* System header to define __stub macros and hopefully few prototypes,
11374 which can conflict with char $ac_func (); below.
11375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11376 <limits.h> exists even on freestanding compilers. */
11379 # include <limits.h>
11381 # include <assert.h>
11386 /* Override any GCC internal prototype to avoid an error.
11387 Use char because int might match the return type of a GCC
11388 builtin and then its argument prototype would still apply. */
11393 /* The GNU C library defines this for functions which it implements
11394 to always fail with ENOSYS. Some functions are actually named
11395 something starting with __ and the normal name is an alias. */
11396 #if defined __stub_$ac_func || defined __stub___$ac_func
11403 return $ac_func ();
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (ac_try="$ac_link"
11410 case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11415 $as_echo "$ac_try_echo") >&5
11416 (eval "$ac_link") 2>conftest.er1
11418 grep -v '^ *+' conftest.er1 >conftest.err
11420 cat conftest.err >&5
11421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } && {
11423 test -z "$ac_c_werror_flag" ||
11424 test ! -s conftest.err
11425 } && test -s conftest$ac_exeext && {
11426 test "$cross_compiling" = yes ||
11427 $as_test_x conftest$ac_exeext
11429 eval "$as_ac_var=yes"
11431 $as_echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11434 eval "$as_ac_var=no"
11437 rm -rf conftest.dSYM
11438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11439 conftest$ac_exeext conftest.$ac_ext
11441 ac_res=`eval 'as_val=${'$as_ac_var'}
11442 $as_echo "$as_val"'`
11443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11444 $as_echo "$ac_res" >&6; }
11445 if test `eval 'as_val=${'$as_ac_var'}
11446 $as_echo "$as_val"'` = yes; then
11447 cat >>confdefs.h <<_ACEOF
11448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11457 # If we don't have everything we want, check in libintl
11459 if test "$gt_cv_func_dgettext_libc" != "yes" \
11460 || test "$gt_cv_func_ngettext_libc" != "yes" \
11461 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
11463 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
11464 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
11465 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
11466 $as_echo_n "(cached) " >&6
11468 ac_check_lib_save_LIBS=$LIBS
11469 LIBS="-lintl $LIBS"
11470 cat >conftest.$ac_ext <<_ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11477 /* Override any GCC internal prototype to avoid an error.
11478 Use char because int might match the return type of a GCC
11479 builtin and then its argument prototype would still apply. */
11483 char bindtextdomain ();
11487 return bindtextdomain ();
11492 rm -f conftest.$ac_objext conftest$ac_exeext
11493 if { (ac_try="$ac_link"
11494 case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11499 $as_echo "$ac_try_echo") >&5
11500 (eval "$ac_link") 2>conftest.er1
11502 grep -v '^ *+' conftest.er1 >conftest.err
11504 cat conftest.err >&5
11505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } && {
11507 test -z "$ac_c_werror_flag" ||
11508 test ! -s conftest.err
11509 } && test -s conftest$ac_exeext && {
11510 test "$cross_compiling" = yes ||
11511 $as_test_x conftest$ac_exeext
11513 ac_cv_lib_intl_bindtextdomain=yes
11515 $as_echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11518 ac_cv_lib_intl_bindtextdomain=no
11521 rm -rf conftest.dSYM
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11526 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
11527 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
11528 if test $ac_cv_lib_intl_bindtextdomain = yes; then
11529 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
11530 $as_echo_n "checking for ngettext in -lintl... " >&6; }
11531 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
11532 $as_echo_n "(cached) " >&6
11534 ac_check_lib_save_LIBS=$LIBS
11535 LIBS="-lintl $LIBS"
11536 cat >conftest.$ac_ext <<_ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11553 return ngettext ();
11558 rm -f conftest.$ac_objext conftest$ac_exeext
11559 if { (ac_try="$ac_link"
11560 case "(($ac_try" in
11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562 *) ac_try_echo=$ac_try;;
11564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11565 $as_echo "$ac_try_echo") >&5
11566 (eval "$ac_link") 2>conftest.er1
11568 grep -v '^ *+' conftest.er1 >conftest.err
11570 cat conftest.err >&5
11571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } && {
11573 test -z "$ac_c_werror_flag" ||
11574 test ! -s conftest.err
11575 } && test -s conftest$ac_exeext && {
11576 test "$cross_compiling" = yes ||
11577 $as_test_x conftest$ac_exeext
11579 ac_cv_lib_intl_ngettext=yes
11581 $as_echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 ac_cv_lib_intl_ngettext=no
11587 rm -rf conftest.dSYM
11588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11589 conftest$ac_exeext conftest.$ac_ext
11590 LIBS=$ac_check_lib_save_LIBS
11592 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
11593 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11594 if test $ac_cv_lib_intl_ngettext = yes; then
11595 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
11596 $as_echo_n "checking for dgettext in -lintl... " >&6; }
11597 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11598 $as_echo_n "(cached) " >&6
11600 ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-lintl $LIBS"
11602 cat >conftest.$ac_ext <<_ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11609 /* Override any GCC internal prototype to avoid an error.
11610 Use char because int might match the return type of a GCC
11611 builtin and then its argument prototype would still apply. */
11619 return dgettext ();
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (ac_try="$ac_link"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11631 $as_echo "$ac_try_echo") >&5
11632 (eval "$ac_link") 2>conftest.er1
11634 grep -v '^ *+' conftest.er1 >conftest.err
11636 cat conftest.err >&5
11637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } && {
11639 test -z "$ac_c_werror_flag" ||
11640 test ! -s conftest.err
11641 } && test -s conftest$ac_exeext && {
11642 test "$cross_compiling" = yes ||
11643 $as_test_x conftest$ac_exeext
11645 ac_cv_lib_intl_dgettext=yes
11647 $as_echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11650 ac_cv_lib_intl_dgettext=no
11653 rm -rf conftest.dSYM
11654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11655 conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11658 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
11659 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
11660 if test $ac_cv_lib_intl_dgettext = yes; then
11661 gt_cv_func_dgettext_libintl=yes
11669 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
11670 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
11671 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
11672 { $as_echo "$as_me:$LINENO: result: " >&5
11674 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
11675 $as_echo_n "checking for ngettext in -lintl... " >&6; }
11676 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
11677 $as_echo_n "(cached) " >&6
11679 ac_check_lib_save_LIBS=$LIBS
11680 LIBS="-lintl -liconv $LIBS"
11681 cat >conftest.$ac_ext <<_ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11688 /* Override any GCC internal prototype to avoid an error.
11689 Use char because int might match the return type of a GCC
11690 builtin and then its argument prototype would still apply. */
11698 return ngettext ();
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (ac_try="$ac_link"
11705 case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11710 $as_echo "$ac_try_echo") >&5
11711 (eval "$ac_link") 2>conftest.er1
11713 grep -v '^ *+' conftest.er1 >conftest.err
11715 cat conftest.err >&5
11716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } && {
11718 test -z "$ac_c_werror_flag" ||
11719 test ! -s conftest.err
11720 } && test -s conftest$ac_exeext && {
11721 test "$cross_compiling" = yes ||
11722 $as_test_x conftest$ac_exeext
11724 ac_cv_lib_intl_ngettext=yes
11726 $as_echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11729 ac_cv_lib_intl_ngettext=no
11732 rm -rf conftest.dSYM
11733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11734 conftest$ac_exeext conftest.$ac_ext
11735 LIBS=$ac_check_lib_save_LIBS
11737 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
11738 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11739 if test $ac_cv_lib_intl_ngettext = yes; then
11740 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
11741 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
11742 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
11743 $as_echo_n "(cached) " >&6
11745 ac_check_lib_save_LIBS=$LIBS
11746 LIBS="-lintl -liconv $LIBS"
11747 cat >conftest.$ac_ext <<_ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11754 /* Override any GCC internal prototype to avoid an error.
11755 Use char because int might match the return type of a GCC
11756 builtin and then its argument prototype would still apply. */
11764 return dcgettext ();
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (ac_try="$ac_link"
11771 case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11776 $as_echo "$ac_try_echo") >&5
11777 (eval "$ac_link") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest$ac_exeext && {
11787 test "$cross_compiling" = yes ||
11788 $as_test_x conftest$ac_exeext
11790 ac_cv_lib_intl_dcgettext=yes
11792 $as_echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 ac_cv_lib_intl_dcgettext=no
11798 rm -rf conftest.dSYM
11799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11800 conftest$ac_exeext conftest.$ac_ext
11801 LIBS=$ac_check_lib_save_LIBS
11803 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
11804 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
11805 if test $ac_cv_lib_intl_dcgettext = yes; then
11806 gt_cv_func_dgettext_libintl=yes
11807 libintl_extra_libs=-liconv
11819 # If we found libintl, then check in it for bind_textdomain_codeset();
11820 # we'll prefer libc if neither have bind_textdomain_codeset(),
11821 # and both have dgettext and ngettext
11823 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
11824 glib_save_LIBS="$LIBS"
11825 LIBS="$LIBS -lintl $libintl_extra_libs"
11826 unset ac_cv_func_bind_textdomain_codeset
11828 for ac_func in bind_textdomain_codeset
11830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11831 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11832 $as_echo_n "checking for $ac_func... " >&6; }
11833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11834 $as_echo_n "(cached) " >&6
11836 cat >conftest.$ac_ext <<_ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11844 #define $ac_func innocuous_$ac_func
11846 /* System header to define __stub macros and hopefully few prototypes,
11847 which can conflict with char $ac_func (); below.
11848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11849 <limits.h> exists even on freestanding compilers. */
11852 # include <limits.h>
11854 # include <assert.h>
11859 /* Override any GCC internal prototype to avoid an error.
11860 Use char because int might match the return type of a GCC
11861 builtin and then its argument prototype would still apply. */
11866 /* The GNU C library defines this for functions which it implements
11867 to always fail with ENOSYS. Some functions are actually named
11868 something starting with __ and the normal name is an alias. */
11869 #if defined __stub_$ac_func || defined __stub___$ac_func
11876 return $ac_func ();
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (ac_try="$ac_link"
11883 case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11888 $as_echo "$ac_try_echo") >&5
11889 (eval "$ac_link") 2>conftest.er1
11891 grep -v '^ *+' conftest.er1 >conftest.err
11893 cat conftest.err >&5
11894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } && {
11896 test -z "$ac_c_werror_flag" ||
11897 test ! -s conftest.err
11898 } && test -s conftest$ac_exeext && {
11899 test "$cross_compiling" = yes ||
11900 $as_test_x conftest$ac_exeext
11902 eval "$as_ac_var=yes"
11904 $as_echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 eval "$as_ac_var=no"
11910 rm -rf conftest.dSYM
11911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11912 conftest$ac_exeext conftest.$ac_ext
11914 ac_res=`eval 'as_val=${'$as_ac_var'}
11915 $as_echo "$as_val"'`
11916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11917 $as_echo "$ac_res" >&6; }
11918 if test `eval 'as_val=${'$as_ac_var'}
11919 $as_echo "$as_val"'` = yes; then
11920 cat >>confdefs.h <<_ACEOF
11921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11927 LIBS="$glib_save_LIBS"
11929 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
11930 gt_cv_func_dgettext_libc=no
11932 if test "$gt_cv_func_dgettext_libc" = "yes" \
11933 && test "$gt_cv_func_ngettext_libc" = "yes"; then
11934 gt_cv_func_dgettext_libintl=no
11940 if test "$gt_cv_func_dgettext_libc" = "yes" \
11941 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
11942 gt_cv_have_gettext=yes
11945 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
11946 INTLLIBS="-lintl $libintl_extra_libs"
11949 if test "$gt_cv_have_gettext" = "yes"; then
11951 cat >>confdefs.h <<\_ACEOF
11952 #define HAVE_GETTEXT 1
11955 # Extract the first word of "msgfmt", so it can be a program name with args.
11956 set dummy msgfmt; ac_word=$2
11957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11958 $as_echo_n "checking for $ac_word... " >&6; }
11959 if test "${ac_cv_path_MSGFMT+set}" = set; then
11960 $as_echo_n "(cached) " >&6
11964 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11968 for ac_dir in $PATH; do
11969 test -z "$ac_dir" && ac_dir=.
11970 if test -f $ac_dir/$ac_word; then
11971 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
11972 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11978 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
11982 MSGFMT="$ac_cv_path_MSGFMT"
11983 if test "$MSGFMT" != "no"; then
11984 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
11985 $as_echo "$MSGFMT" >&6; }
11987 { $as_echo "$as_me:$LINENO: result: no" >&5
11988 $as_echo "no" >&6; }
11990 if test "$MSGFMT" != "no"; then
11991 glib_save_LIBS="$LIBS"
11992 LIBS="$LIBS $INTLLIBS"
11994 for ac_func in dcgettext
11996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11997 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11998 $as_echo_n "checking for $ac_func... " >&6; }
11999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12000 $as_echo_n "(cached) " >&6
12002 cat >conftest.$ac_ext <<_ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12010 #define $ac_func innocuous_$ac_func
12012 /* System header to define __stub macros and hopefully few prototypes,
12013 which can conflict with char $ac_func (); below.
12014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12015 <limits.h> exists even on freestanding compilers. */
12018 # include <limits.h>
12020 # include <assert.h>
12025 /* Override any GCC internal prototype to avoid an error.
12026 Use char because int might match the return type of a GCC
12027 builtin and then its argument prototype would still apply. */
12032 /* The GNU C library defines this for functions which it implements
12033 to always fail with ENOSYS. Some functions are actually named
12034 something starting with __ and the normal name is an alias. */
12035 #if defined __stub_$ac_func || defined __stub___$ac_func
12042 return $ac_func ();
12047 rm -f conftest.$ac_objext conftest$ac_exeext
12048 if { (ac_try="$ac_link"
12049 case "(($ac_try" in
12050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051 *) ac_try_echo=$ac_try;;
12053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12054 $as_echo "$ac_try_echo") >&5
12055 (eval "$ac_link") 2>conftest.er1
12057 grep -v '^ *+' conftest.er1 >conftest.err
12059 cat conftest.err >&5
12060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && {
12062 test -z "$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12064 } && test -s conftest$ac_exeext && {
12065 test "$cross_compiling" = yes ||
12066 $as_test_x conftest$ac_exeext
12068 eval "$as_ac_var=yes"
12070 $as_echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12073 eval "$as_ac_var=no"
12076 rm -rf conftest.dSYM
12077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12078 conftest$ac_exeext conftest.$ac_ext
12080 ac_res=`eval 'as_val=${'$as_ac_var'}
12081 $as_echo "$as_val"'`
12082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12083 $as_echo "$ac_res" >&6; }
12084 if test `eval 'as_val=${'$as_ac_var'}
12085 $as_echo "$as_val"'` = yes; then
12086 cat >>confdefs.h <<_ACEOF
12087 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12094 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
12095 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
12096 cat >conftest.foo <<_ACEOF
12100 "Content-Type: text/plain; charset=UTF-8\n"
12101 "Project-Id-Version: test 1.0\n"
12102 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
12103 "Last-Translator: test <foo@bar.xx>\n"
12104 "Language-Team: C <LL@li.org>\n"
12105 "MIME-Version: 1.0\n"
12106 "Content-Transfer-Encoding: 8bit\n"
12109 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
12110 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
12112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; then
12114 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
12115 $as_echo "yes" >&6; }
12116 else { $as_echo "$as_me:$LINENO: result: no" >&5
12117 $as_echo "no" >&6; }
12118 echo "$as_me: failed input was:" >&5
12119 sed 's/^/| /' conftest.foo >&5
12122 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12123 set dummy gmsgfmt; ac_word=$2
12124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12125 $as_echo_n "checking for $ac_word... " >&6; }
12126 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12127 $as_echo_n "(cached) " >&6
12131 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12141 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12142 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12149 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12153 GMSGFMT=$ac_cv_path_GMSGFMT
12154 if test -n "$GMSGFMT"; then
12155 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12156 $as_echo "$GMSGFMT" >&6; }
12158 { $as_echo "$as_me:$LINENO: result: no" >&5
12159 $as_echo "no" >&6; }
12163 # Extract the first word of "xgettext", so it can be a program name with args.
12164 set dummy xgettext; ac_word=$2
12165 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12166 $as_echo_n "checking for $ac_word... " >&6; }
12167 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12168 $as_echo_n "(cached) " >&6
12170 case "$XGETTEXT" in
12172 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12176 for ac_dir in $PATH; do
12177 test -z "$ac_dir" && ac_dir=.
12178 if test -f $ac_dir/$ac_word; then
12179 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
12180 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12186 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12190 XGETTEXT="$ac_cv_path_XGETTEXT"
12191 if test "$XGETTEXT" != ":"; then
12192 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12193 $as_echo "$XGETTEXT" >&6; }
12195 { $as_echo "$as_me:$LINENO: result: no" >&5
12196 $as_echo "no" >&6; }
12199 cat >conftest.$ac_ext <<_ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12209 extern int _nl_msg_cat_cntr;
12210 return _nl_msg_cat_cntr
12215 rm -f conftest.$ac_objext conftest$ac_exeext
12216 if { (ac_try="$ac_link"
12217 case "(($ac_try" in
12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219 *) ac_try_echo=$ac_try;;
12221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12222 $as_echo "$ac_try_echo") >&5
12223 (eval "$ac_link") 2>conftest.er1
12225 grep -v '^ *+' conftest.er1 >conftest.err
12227 cat conftest.err >&5
12228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest$ac_exeext && {
12233 test "$cross_compiling" = yes ||
12234 $as_test_x conftest$ac_exeext
12239 $as_echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12244 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
12245 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
12246 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
12247 $as_echo_n "(cached) " >&6
12249 cat >conftest.$ac_ext <<_ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12255 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
12256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12257 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
12259 /* System header to define __stub macros and hopefully few prototypes,
12260 which can conflict with char bind_textdomain_codeset (); below.
12261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12262 <limits.h> exists even on freestanding compilers. */
12265 # include <limits.h>
12267 # include <assert.h>
12270 #undef bind_textdomain_codeset
12272 /* Override any GCC internal prototype to avoid an error.
12273 Use char because int might match the return type of a GCC
12274 builtin and then its argument prototype would still apply. */
12278 char bind_textdomain_codeset ();
12279 /* The GNU C library defines this for functions which it implements
12280 to always fail with ENOSYS. Some functions are actually named
12281 something starting with __ and the normal name is an alias. */
12282 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
12289 return bind_textdomain_codeset ();
12294 rm -f conftest.$ac_objext conftest$ac_exeext
12295 if { (ac_try="$ac_link"
12296 case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12301 $as_echo "$ac_try_echo") >&5
12302 (eval "$ac_link") 2>conftest.er1
12304 grep -v '^ *+' conftest.er1 >conftest.err
12306 cat conftest.err >&5
12307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } && {
12309 test -z "$ac_c_werror_flag" ||
12310 test ! -s conftest.err
12311 } && test -s conftest$ac_exeext && {
12312 test "$cross_compiling" = yes ||
12313 $as_test_x conftest$ac_exeext
12315 ac_cv_func_bind_textdomain_codeset=yes
12317 $as_echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 ac_cv_func_bind_textdomain_codeset=no
12323 rm -rf conftest.dSYM
12324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12325 conftest$ac_exeext conftest.$ac_ext
12327 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
12328 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
12329 if test $ac_cv_func_bind_textdomain_codeset = yes; then
12345 rm -rf conftest.dSYM
12346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12347 conftest$ac_exeext conftest.$ac_ext
12348 LIBS="$glib_save_LIBS"
12351 gt_cv_have_gettext=no
12359 if test "$gt_cv_have_gettext" = "yes" ; then
12361 cat >>confdefs.h <<\_ACEOF
12362 #define ENABLE_NLS 1
12367 if test "$XGETTEXT" != ":"; then
12368 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12371 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12372 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12377 # We need to process the po/ directory.
12380 ac_config_commands="$ac_config_commands default-1"
12383 for lang in $ALL_LINGUAS; do
12384 GMOFILES="$GMOFILES $lang.gmo"
12385 POFILES="$POFILES $lang.po"
12400 if test "$gt_cv_have_gettext" = "yes"; then
12401 if test "x$ALL_LINGUAS" = "x"; then
12404 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12405 $as_echo_n "checking for catalogs to be installed... " >&6; }
12407 for presentlang in $ALL_LINGUAS; do
12409 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
12410 desiredlanguages="$LINGUAS"
12412 desiredlanguages="$ALL_LINGUAS"
12414 for desiredlang in $desiredlanguages; do
12415 # Use the presentlang catalog if desiredlang is
12416 # a. equal to presentlang, or
12417 # b. a variant of presentlang (because in this case,
12418 # presentlang can be used as a fallback for messages
12419 # which are not translated in the desiredlang catalog).
12420 case "$desiredlang" in
12421 "$presentlang"*) useit=yes;;
12424 if test $useit = yes; then
12425 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
12428 LINGUAS=$NEW_LINGUAS
12429 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
12430 $as_echo "$LINGUAS" >&6; }
12433 if test -n "$LINGUAS"; then
12434 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
12439 if test -n "$ac_aux_dir"; then
12440 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12442 if test -z "$MKINSTALLDIRS"; then
12443 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12447 test -d po || mkdir po
12448 if test "x$srcdir" != "x."; then
12449 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
12450 posrcprefix="$srcdir/"
12452 posrcprefix="../$srcdir/"
12458 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
12459 < $srcdir/po/POTFILES.in > po/POTFILES
12462 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
12464 cat >confcache <<\_ACEOF
12465 # This file is a shell script that caches the results of configure
12466 # tests run on this system so they can be shared between configure
12467 # scripts and configure runs, see configure's option --config-cache.
12468 # It is not useful on other systems. If it contains results you don't
12469 # want to keep, you may remove or edit it.
12471 # config.status only pays attention to the cache file if you give it
12472 # the --recheck option to rerun configure.
12474 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12475 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12476 # following values.
12480 # The following way of writing the cache mishandles newlines in values,
12481 # but we know of no workaround that is simple, portable, and efficient.
12482 # So, we kill variables containing newlines.
12483 # Ultrix sh set writes to stderr and can't be redirected directly,
12484 # and sets the high bit in the cache file unless we assign to the vars.
12486 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12487 eval ac_val=\$$ac_var
12491 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12492 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12495 _ | IFS | as_nl) ;; #(
12496 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12497 *) $as_unset $ac_var ;;
12503 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12504 *${as_nl}ac_space=\ *)
12505 # `set' does not quote correctly, so add quotes (double-quote
12506 # substitution turns \\\\ into \\, and sed turns \\ into \).
12509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12512 # `set' quotes correctly as required by POSIX, so do not add quotes.
12513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12522 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12524 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12526 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12527 if test -w "$cache_file"; then
12528 test "x$cache_file" != "x/dev/null" &&
12529 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12530 $as_echo "$as_me: updating cache $cache_file" >&6;}
12531 cat confcache >$cache_file
12533 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12534 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12540 # Let make expand exec_prefix.
12541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12543 DEFS=-DHAVE_CONFIG_H
12547 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12548 # 1. Remove the extension, and $U if already installed.
12549 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12550 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12551 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12552 # will be set to the directory where LIBOBJS objects are built.
12553 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12554 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12556 LIBOBJS=$ac_libobjs
12558 LTLIBOBJS=$ac_ltlibobjs
12561 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12562 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12563 Usually this means the macro was only invoked conditionally." >&5
12564 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12565 Usually this means the macro was only invoked conditionally." >&2;}
12566 { (exit 1); exit 1; }; }
12568 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12569 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12570 Usually this means the macro was only invoked conditionally." >&5
12571 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12572 Usually this means the macro was only invoked conditionally." >&2;}
12573 { (exit 1); exit 1; }; }
12575 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12576 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12577 Usually this means the macro was only invoked conditionally." >&5
12578 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12579 Usually this means the macro was only invoked conditionally." >&2;}
12580 { (exit 1); exit 1; }; }
12582 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12583 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12584 Usually this means the macro was only invoked conditionally." >&5
12585 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12586 Usually this means the macro was only invoked conditionally." >&2;}
12587 { (exit 1); exit 1; }; }
12589 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12590 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12591 Usually this means the macro was only invoked conditionally." >&5
12592 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12593 Usually this means the macro was only invoked conditionally." >&2;}
12594 { (exit 1); exit 1; }; }
12596 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
12597 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
12598 Usually this means the macro was only invoked conditionally." >&5
12599 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
12600 Usually this means the macro was only invoked conditionally." >&2;}
12601 { (exit 1); exit 1; }; }
12603 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
12604 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
12605 Usually this means the macro was only invoked conditionally." >&5
12606 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
12607 Usually this means the macro was only invoked conditionally." >&2;}
12608 { (exit 1); exit 1; }; }
12610 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
12611 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
12612 Usually this means the macro was only invoked conditionally." >&5
12613 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
12614 Usually this means the macro was only invoked conditionally." >&2;}
12615 { (exit 1); exit 1; }; }
12617 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
12618 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
12619 Usually this means the macro was only invoked conditionally." >&5
12620 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
12621 Usually this means the macro was only invoked conditionally." >&2;}
12622 { (exit 1); exit 1; }; }
12624 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
12625 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
12626 Usually this means the macro was only invoked conditionally." >&5
12627 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
12628 Usually this means the macro was only invoked conditionally." >&2;}
12629 { (exit 1); exit 1; }; }
12631 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
12632 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
12633 Usually this means the macro was only invoked conditionally." >&5
12634 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
12635 Usually this means the macro was only invoked conditionally." >&2;}
12636 { (exit 1); exit 1; }; }
12638 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
12639 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
12640 Usually this means the macro was only invoked conditionally." >&5
12641 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
12642 Usually this means the macro was only invoked conditionally." >&2;}
12643 { (exit 1); exit 1; }; }
12645 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
12646 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
12647 Usually this means the macro was only invoked conditionally." >&5
12648 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
12649 Usually this means the macro was only invoked conditionally." >&2;}
12650 { (exit 1); exit 1; }; }
12652 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
12653 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
12654 Usually this means the macro was only invoked conditionally." >&5
12655 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
12656 Usually this means the macro was only invoked conditionally." >&2;}
12657 { (exit 1); exit 1; }; }
12659 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
12660 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
12661 Usually this means the macro was only invoked conditionally." >&5
12662 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
12663 Usually this means the macro was only invoked conditionally." >&2;}
12664 { (exit 1); exit 1; }; }
12666 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
12667 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
12668 Usually this means the macro was only invoked conditionally." >&5
12669 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
12670 Usually this means the macro was only invoked conditionally." >&2;}
12671 { (exit 1); exit 1; }; }
12673 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
12674 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
12675 Usually this means the macro was only invoked conditionally." >&5
12676 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
12677 Usually this means the macro was only invoked conditionally." >&2;}
12678 { (exit 1); exit 1; }; }
12680 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
12681 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
12682 Usually this means the macro was only invoked conditionally." >&5
12683 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
12684 Usually this means the macro was only invoked conditionally." >&2;}
12685 { (exit 1); exit 1; }; }
12687 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
12688 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
12689 Usually this means the macro was only invoked conditionally." >&5
12690 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
12691 Usually this means the macro was only invoked conditionally." >&2;}
12692 { (exit 1); exit 1; }; }
12694 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
12695 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
12696 Usually this means the macro was only invoked conditionally." >&5
12697 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
12698 Usually this means the macro was only invoked conditionally." >&2;}
12699 { (exit 1); exit 1; }; }
12701 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
12702 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
12703 Usually this means the macro was only invoked conditionally." >&5
12704 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
12705 Usually this means the macro was only invoked conditionally." >&2;}
12706 { (exit 1); exit 1; }; }
12708 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
12709 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
12710 Usually this means the macro was only invoked conditionally." >&5
12711 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
12712 Usually this means the macro was only invoked conditionally." >&2;}
12713 { (exit 1); exit 1; }; }
12716 : ${CONFIG_STATUS=./config.status}
12718 ac_clean_files_save=$ac_clean_files
12719 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12720 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12721 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12722 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12724 # Generated by $as_me.
12725 # Run this file to recreate the current configuration.
12726 # Compiler output produced by configure, useful for debugging
12727 # configure, is in config.log if it exists.
12730 ac_cs_recheck=false
12732 SHELL=\${CONFIG_SHELL-$SHELL}
12735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12736 ## --------------------- ##
12737 ## M4sh Initialization. ##
12738 ## --------------------- ##
12740 # Be more Bourne compatible
12741 DUALCASE=1; export DUALCASE # for MKS sh
12742 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12745 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12746 # is contrary to our usage. Disable this feature.
12747 alias -g '${1+"$@"}'='"$@"'
12748 setopt NO_GLOB_SUBST
12750 case `(set -o) 2>/dev/null` in
12751 *posix*) set -o posix ;;
12760 # Avoid depending upon Character Ranges.
12761 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12762 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12763 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12764 as_cr_digits='0123456789'
12765 as_cr_alnum=$as_cr_Letters$as_cr_digits
12770 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12771 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12773 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12774 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12775 as_echo='printf %s\n'
12776 as_echo_n='printf %s'
12778 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12779 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12780 as_echo_n='/usr/ucb/echo -n'
12782 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12783 as_echo_n_body='eval
12787 expr "X$arg" : "X\\(.*\\)$as_nl";
12788 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12790 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12792 export as_echo_n_body
12793 as_echo_n='sh -c $as_echo_n_body as_echo'
12795 export as_echo_body
12796 as_echo='sh -c $as_echo_body as_echo'
12799 # The user is always right.
12800 if test "${PATH_SEPARATOR+set}" != set; then
12802 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12803 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12808 # Support unset when possible.
12809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12817 # We need space, tab and new line, in precisely that order. Quoting is
12818 # there to prevent editors from complaining about space-tab.
12819 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12820 # splitting by setting IFS to empty value.)
12823 # Find who we are. Look in the path if we contain no directory separator.
12825 *[\\/]* ) as_myself=$0 ;;
12826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $PATH
12830 test -z "$as_dir" && as_dir=.
12831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12837 # We did not find ourselves, most probably we were run as `sh COMMAND'
12838 # in which case we are not to be found in the path.
12839 if test "x$as_myself" = x; then
12842 if test ! -f "$as_myself"; then
12843 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12844 { (exit 1); exit 1; }
12847 # Work around bugs in pre-3.0 UWIN ksh.
12848 for as_var in ENV MAIL MAILPATH
12849 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12861 # Required to use basename.
12862 if expr a : '\(a\)' >/dev/null 2>&1 &&
12863 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12869 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12870 as_basename=basename
12876 # Name of the executable.
12877 as_me=`$as_basename -- "$0" ||
12878 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12879 X"$0" : 'X\(//\)$' \| \
12880 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12882 sed '/^.*\/\([^/][^/]*\)\/*$/{
12901 as_lineno_1=$LINENO
12902 as_lineno_2=$LINENO
12903 test "x$as_lineno_1" != "x$as_lineno_2" &&
12904 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12906 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12907 # uniformly replaced by the line number. The first 'sed' inserts a
12908 # line-number line after each line using $LINENO; the second 'sed'
12909 # does the real work. The second script uses 'N' to pair each
12910 # line-number line with the line containing $LINENO, and appends
12911 # trailing '-' during substitution so that $LINENO is not a special
12912 # case at line end.
12913 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12914 # scripts with optimization help from Paolo Bonzini. Blame Lee
12915 # E. McMahon (1931-1989) for sed's syntax. :-)
12927 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12930 ' >$as_me.lineno &&
12931 chmod +x "$as_me.lineno" ||
12932 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12933 { (exit 1); exit 1; }; }
12935 # Don't try to exec as it changes $[0], causing all sort of problems
12936 # (the dirname of $[0] is not the place where we might find the
12937 # original and so on. Autoconf is especially sensitive to this).
12938 . "./$as_me.lineno"
12939 # Exit status is that of the last command.
12944 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12950 ECHO_C= ECHO_N= ECHO_T=
12951 case `echo -n x` in
12953 case `echo 'x\c'` in
12954 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12960 if expr a : '\(a\)' >/dev/null 2>&1 &&
12961 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12967 rm -f conf$$ conf$$.exe conf$$.file
12968 if test -d conf$$.dir; then
12969 rm -f conf$$.dir/conf$$.file
12972 mkdir conf$$.dir 2>/dev/null
12974 if (echo >conf$$.file) 2>/dev/null; then
12975 if ln -s conf$$.file conf$$ 2>/dev/null; then
12977 # ... but there are two gotchas:
12978 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12979 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12980 # In both cases, we have to default to `cp -p'.
12981 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12983 elif ln conf$$.file conf$$ 2>/dev/null; then
12991 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12992 rmdir conf$$.dir 2>/dev/null
12994 if mkdir -p . 2>/dev/null; then
12997 test -d ./-p && rmdir ./-p
13001 if test -x / >/dev/null 2>&1; then
13002 as_test_x='test -x'
13004 if ls -dL / >/dev/null 2>&1; then
13011 if test -d "$1"; then
13017 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13018 ???[sx]*):;;*)false;;esac;fi
13022 as_executable_p=$as_test_x
13024 # Sed expression to map a string onto a valid CPP name.
13025 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13027 # Sed expression to map a string onto a valid variable name.
13028 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13033 # Save the log message, to keep $[0] and so on meaningful, and to
13034 # report actual input values of CONFIG_FILES etc. instead of their
13035 # values after options handling.
13037 This file was extended by $as_me, which was
13038 generated by GNU Autoconf 2.62. Invocation command line was
13040 CONFIG_FILES = $CONFIG_FILES
13041 CONFIG_HEADERS = $CONFIG_HEADERS
13042 CONFIG_LINKS = $CONFIG_LINKS
13043 CONFIG_COMMANDS = $CONFIG_COMMANDS
13046 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13052 # Files that config.status was made for.
13053 config_files="$ac_config_files"
13054 config_headers="$ac_config_headers"
13055 config_commands="$ac_config_commands"
13059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13061 \`$as_me' instantiates files from templates according to the
13062 current configuration.
13064 Usage: $0 [OPTIONS] [FILE]...
13066 -h, --help print this help, then exit
13067 -V, --version print version number and configuration settings, then exit
13068 -q, --quiet do not print progress messages
13069 -d, --debug don't remove temporary files
13070 --recheck update $as_me by reconfiguring in the same conditions
13071 --file=FILE[:TEMPLATE]
13072 instantiate the configuration file FILE
13073 --header=FILE[:TEMPLATE]
13074 instantiate the configuration header FILE
13076 Configuration files:
13079 Configuration headers:
13082 Configuration commands:
13085 Report bugs to <bug-autoconf@gnu.org>."
13088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13091 configured by $0, generated by GNU Autoconf 2.62,
13092 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13094 Copyright (C) 2008 Free Software Foundation, Inc.
13095 This config.status script is free software; the Free Software Foundation
13096 gives unlimited permission to copy, distribute and modify it."
13102 test -n "\$AWK" || AWK=awk
13105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13106 # The default lists apply if the user does not specify any file.
13112 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13113 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13124 # Handling of the options.
13125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13127 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13128 $as_echo "$ac_cs_version"; exit ;;
13129 --debug | --debu | --deb | --de | --d | -d )
13131 --file | --fil | --fi | --f )
13134 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13136 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13137 ac_need_defaults=false;;
13138 --header | --heade | --head | --hea )
13141 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13143 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13144 ac_need_defaults=false;;
13146 # Conflict between --help and --header
13147 { $as_echo "$as_me: error: ambiguous option: $1
13148 Try \`$0 --help' for more information." >&2
13149 { (exit 1); exit 1; }; };;
13150 --help | --hel | -h )
13151 $as_echo "$ac_cs_usage"; exit ;;
13152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13153 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13156 # This is an error.
13157 -*) { $as_echo "$as_me: error: unrecognized option: $1
13158 Try \`$0 --help' for more information." >&2
13159 { (exit 1); exit 1; }; } ;;
13161 *) ac_config_targets="$ac_config_targets $1"
13162 ac_need_defaults=false ;;
13168 ac_configure_extra_args=
13170 if $ac_cs_silent; then
13172 ac_configure_extra_args="$ac_configure_extra_args --silent"
13176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13177 if \$ac_cs_recheck; then
13178 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13180 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13181 CONFIG_SHELL='$SHELL'
13182 export CONFIG_SHELL
13187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13192 ## Running $as_me. ##
13198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13202 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13209 # Handling of arguments.
13210 for ac_config_target in $ac_config_targets
13212 case $ac_config_target in
13213 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13214 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13215 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13216 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13217 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13218 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13219 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13220 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
13222 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13223 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13224 { (exit 1); exit 1; }; };;
13229 # If the user did not use the arguments to specify the items to instantiate,
13230 # then the envvar interface is used. Set only those that are not.
13231 # We use the long form for the default assignment because of an extremely
13232 # bizarre bug on SunOS 4.1.3.
13233 if $ac_need_defaults; then
13234 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13235 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13236 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13239 # Have a temporary directory for convenience. Make it in the build tree
13240 # simply because there is no reason against having it here, and in addition,
13241 # creating and moving files from /tmp can sometimes cause problems.
13242 # Hook for its removal unless debugging.
13243 # Note that there is a small window in which the directory will not be cleaned:
13244 # after its creation but before its name has been assigned to `$tmp'.
13248 trap 'exit_status=$?
13249 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13251 trap '{ (exit 1); exit 1; }' 1 2 13 15
13253 # Create a (secure) tmp directory for tmp files.
13256 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13257 test -n "$tmp" && test -d "$tmp"
13260 tmp=./conf$$-$RANDOM
13261 (umask 077 && mkdir "$tmp")
13264 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13265 { (exit 1); exit 1; }
13268 # Set up the scripts for CONFIG_FILES section.
13269 # No need to generate them if there are no CONFIG_FILES.
13270 # This happens for instance with `./config.status config.h'.
13271 if test -n "$CONFIG_FILES"; then
13276 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13277 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13280 ac_cs_awk_cr=$ac_cr
13283 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13288 echo "cat >conf$$subs.awk <<_ACEOF" &&
13289 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13291 } >conf$$subs.sh ||
13292 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13293 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13294 { (exit 1); exit 1; }; }
13295 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13297 for ac_last_try in false false false false false :; do
13298 . ./conf$$subs.sh ||
13299 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13300 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13301 { (exit 1); exit 1; }; }
13303 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
13305 elif $ac_last_try; then
13306 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13307 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13308 { (exit 1); exit 1; }; }
13310 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13313 rm -f conf$$subs.sh
13315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13316 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13320 s/^/S["/; s/!.*/"]=/
13330 s/\(.\{148\}\).*/\1/
13332 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13337 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13344 s/\(.\{148\}\).*/\1/
13346 s/["\\]/\\&/g; s/^/"/; s/$/"/
13350 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13355 ' <conf$$subs.awk | sed '
13360 ' >>$CONFIG_STATUS || ac_write_fail=1
13361 rm -f conf$$subs.awk
13362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13364 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13365 for (key in S) S_is_set[key] = 1
13371 nfields = split(line, field, "@")
13373 len = length(field[1])
13374 for (i = 2; i < nfields; i++) {
13376 keylen = length(key)
13377 if (S_is_set[key]) {
13379 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13380 len += length(value) + length(field[++i])
13391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13392 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13393 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13396 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13397 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13398 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13399 { (exit 1); exit 1; }; }
13402 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13404 # trailing colons and then remove the whole line if VPATH becomes empty
13405 # (actually we leave an empty line to preserve line numbers).
13406 if test "x$srcdir" = x.; then
13407 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13408 s/:*\$(srcdir):*/:/
13409 s/:*\${srcdir}:*/:/
13411 s/^\([^=]*=[ ]*\):*/\1/
13417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13418 fi # test -n "$CONFIG_FILES"
13420 # Set up the scripts for CONFIG_HEADERS section.
13421 # No need to generate them if there are no CONFIG_HEADERS.
13422 # This happens for instance with `./config.status Makefile'.
13423 if test -n "$CONFIG_HEADERS"; then
13424 cat >"$tmp/defines.awk" <<\_ACAWK ||
13428 # Transform confdefs.h into an awk script `defines.awk', embedded as
13429 # here-document in config.status, that substitutes the proper values into
13430 # config.h.in to produce config.h.
13432 # Create a delimiter string that does not exist in confdefs.h, to ease
13433 # handling of long lines.
13435 for ac_last_try in false false :; do
13436 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13437 if test -z "$ac_t"; then
13439 elif $ac_last_try; then
13440 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13441 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13442 { (exit 1); exit 1; }; }
13444 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13448 # For the awk script, D is an array of macro values keyed by name,
13449 # likewise P contains macro parameters if any. Preserve backslash
13450 # newline sequences.
13452 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13454 s/.\{148\}/&'"$ac_delim"'/g
13457 s/^[ ]*#[ ]*define[ ][ ]*/ /
13464 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13466 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13470 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13471 D["\1"]=" \3\\\\\\n"\\/p
13473 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13478 s/.\{148\}/&'"$ac_delim"'/g
13483 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13486 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13488 ' <confdefs.h | sed '
13489 s/'"$ac_delim"'/"\\\
13490 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13493 for (key in D) D_is_set[key] = 1
13496 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13498 split(line, arg, " ")
13499 if (arg[1] == "#") {
13503 defundef = substr(arg[1], 2)
13506 split(mac1, mac2, "(") #)
13508 if (D_is_set[macro]) {
13509 # Preserve the white space surrounding the "#".
13510 prefix = substr(line, 1, index(line, defundef) - 1)
13511 print prefix "define", macro P[macro] D[macro]
13514 # Replace #undef with comments. This is necessary, for example,
13515 # in the case of _POSIX_SOURCE, which is predefined and required
13516 # on some systems where configure will not decide to define it.
13517 if (defundef == "undef") {
13518 print "/*", line, "*/"
13526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13527 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13528 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13529 { (exit 1); exit 1; }; }
13530 fi # test -n "$CONFIG_HEADERS"
13533 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13538 :[FHLC]) ac_mode=$ac_tag; continue;;
13540 case $ac_mode$ac_tag in
13542 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13543 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13544 { (exit 1); exit 1; }; };;
13545 :[FH]-) ac_tag=-:-;;
13546 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13563 -) ac_f="$tmp/stdin";;
13564 *) # Look for the file first in the build tree, then in the source tree
13565 # (if the path is not absolute). The absolute path cannot be DOS-style,
13566 # because $ac_f cannot contain `:'.
13570 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13572 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13573 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13574 { (exit 1); exit 1; }; };;
13576 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13577 ac_file_inputs="$ac_file_inputs '$ac_f'"
13580 # Let's still pretend it is `configure' which instantiates (i.e., don't
13581 # use $as_me), people would be surprised to read:
13582 # /* config.h. Generated by config.status. */
13583 configure_input='Generated from '`
13584 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13586 if test x"$ac_file" != x-; then
13587 configure_input="$ac_file. $configure_input"
13588 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13589 $as_echo "$as_me: creating $ac_file" >&6;}
13591 # Neutralize special characters interpreted by sed in replacement strings.
13592 case $configure_input in #(
13593 *\&* | *\|* | *\\* )
13594 ac_sed_conf_input=`$as_echo "$configure_input" |
13595 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13596 *) ac_sed_conf_input=$configure_input;;
13600 *:-:* | *:-) cat >"$tmp/stdin" \
13601 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13602 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13603 { (exit 1); exit 1; }; } ;;
13608 ac_dir=`$as_dirname -- "$ac_file" ||
13609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13610 X"$ac_file" : 'X\(//\)[^/]' \| \
13611 X"$ac_file" : 'X\(//\)$' \| \
13612 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13613 $as_echo X"$ac_file" |
13614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13618 /^X\(\/\/\)[^/].*/{
13633 -*) as_dir=./$as_dir;;
13635 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13639 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13640 *) as_qdir=$as_dir;;
13642 as_dirs="'$as_qdir' $as_dirs"
13643 as_dir=`$as_dirname -- "$as_dir" ||
13644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13645 X"$as_dir" : 'X\(//\)[^/]' \| \
13646 X"$as_dir" : 'X\(//\)$' \| \
13647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13648 $as_echo X"$as_dir" |
13649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13653 /^X\(\/\/\)[^/].*/{
13666 test -d "$as_dir" && break
13668 test -z "$as_dirs" || eval "mkdir $as_dirs"
13669 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13670 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13671 { (exit 1); exit 1; }; }; }
13675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13677 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13678 # A ".." for each directory in $ac_dir_suffix.
13679 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13680 case $ac_top_builddir_sub in
13681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13685 ac_abs_top_builddir=$ac_pwd
13686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13687 # for backward compatibility:
13688 ac_top_builddir=$ac_top_build_prefix
13691 .) # We are building in place.
13693 ac_top_srcdir=$ac_top_builddir_sub
13694 ac_abs_top_srcdir=$ac_pwd ;;
13695 [\\/]* | ?:[\\/]* ) # Absolute name.
13696 ac_srcdir=$srcdir$ac_dir_suffix;
13697 ac_top_srcdir=$srcdir
13698 ac_abs_top_srcdir=$srcdir ;;
13699 *) # Relative name.
13700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13701 ac_top_srcdir=$ac_top_build_prefix$srcdir
13702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13714 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13715 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13720 # If the template does not know about datarootdir, expand it.
13721 # FIXME: This hack should be removed a few years after 2.60.
13722 ac_datarootdir_hack=; ac_datarootdir_seen=
13735 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13736 *datarootdir*) ac_datarootdir_seen=yes;;
13737 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13738 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13739 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13742 ac_datarootdir_hack='
13743 s&@datadir@&$datadir&g
13744 s&@docdir@&$docdir&g
13745 s&@infodir@&$infodir&g
13746 s&@localedir@&$localedir&g
13747 s&@mandir@&$mandir&g
13748 s&\\\${datarootdir}&$datarootdir&g' ;;
13752 # Neutralize VPATH when `$srcdir' = `.'.
13753 # Shell code in configure.ac might set extrasub.
13754 # FIXME: do we really want to maintain this feature?
13755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13756 ac_sed_extra="$ac_vpsub
13759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13761 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13762 s|@configure_input@|$ac_sed_conf_input|;t t
13763 s&@top_builddir@&$ac_top_builddir_sub&;t t
13764 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13765 s&@srcdir@&$ac_srcdir&;t t
13766 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13767 s&@top_srcdir@&$ac_top_srcdir&;t t
13768 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13769 s&@builddir@&$ac_builddir&;t t
13770 s&@abs_builddir@&$ac_abs_builddir&;t t
13771 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13772 s&@INSTALL@&$ac_INSTALL&;t t
13773 $ac_datarootdir_hack
13775 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13776 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13777 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13778 { (exit 1); exit 1; }; }
13780 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13781 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13782 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13783 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13784 which seems to be undefined. Please make sure it is defined." >&5
13785 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13786 which seems to be undefined. Please make sure it is defined." >&2;}
13790 -) cat "$tmp/out" && rm -f "$tmp/out";;
13791 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13793 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13794 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13795 { (exit 1); exit 1; }; }
13801 if test x"$ac_file" != x-; then
13803 $as_echo "/* $configure_input */" \
13804 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13805 } >"$tmp/config.h" \
13806 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13807 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13808 { (exit 1); exit 1; }; }
13809 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13810 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13811 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13814 mv "$tmp/config.h" "$ac_file" \
13815 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13816 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13817 { (exit 1); exit 1; }; }
13820 $as_echo "/* $configure_input */" \
13821 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13822 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13823 $as_echo "$as_me: error: could not create -" >&2;}
13824 { (exit 1); exit 1; }; }
13826 # Compute "$ac_file"'s index in $config_headers.
13828 for _am_header in $config_headers :; do
13829 case $_am_header in
13830 "$ac_file" | "$ac_file":* )
13833 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13836 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
13837 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13838 X"$ac_file" : 'X\(//\)[^/]' \| \
13839 X"$ac_file" : 'X\(//\)$' \| \
13840 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13841 $as_echo X"$ac_file" |
13842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13846 /^X\(\/\/\)[^/].*/{
13858 s/.*/./; q'`/stamp-h$_am_stamp_count
13861 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13862 $as_echo "$as_me: executing $ac_file commands" >&6;}
13867 case $ac_file$ac_mode in
13868 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13869 # Strip MF so we end up with the name of the file.
13870 mf=`echo "$mf" | sed -e 's/:.*$//'`
13871 # Check whether this is an Automake generated Makefile or not.
13872 # We used to match only the files named `Makefile.in', but
13873 # some people rename them; so instead we look at the file content.
13874 # Grep'ing the first line is not enough: some people post-process
13875 # each Makefile.in and add a new line on top of each file to say so.
13876 # So let's grep whole file.
13877 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13878 dirpart=`$as_dirname -- "$mf" ||
13879 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13880 X"$mf" : 'X\(//\)[^/]' \| \
13881 X"$mf" : 'X\(//\)$' \| \
13882 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13888 /^X\(\/\/\)[^/].*/{
13904 # Extract the definition of DEPDIR, am__include, and am__quote
13905 # from the Makefile without running `make'.
13906 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13907 test -z "$DEPDIR" && continue
13908 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13909 test -z "am__include" && continue
13910 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13911 # When using ansi2knr, U may be empty or an underscore; expand it
13912 U=`sed -n 's/^U = //p' < "$mf"`
13913 # Find all dependency output files, they are included files with
13914 # $(DEPDIR) in their names. We invoke sed twice because it is the
13915 # simplest approach to changing $(DEPDIR) to its actual value in the
13917 for file in `sed -n "
13918 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13919 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13920 # Make sure the directory exists.
13921 test -f "$dirpart/$file" && continue
13922 fdir=`$as_dirname -- "$file" ||
13923 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13924 X"$file" : 'X\(//\)[^/]' \| \
13925 X"$file" : 'X\(//\)$' \| \
13926 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13927 $as_echo X"$file" |
13928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13932 /^X\(\/\/\)[^/].*/{
13945 { as_dir=$dirpart/$fdir
13947 -*) as_dir=./$as_dir;;
13949 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13953 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13954 *) as_qdir=$as_dir;;
13956 as_dirs="'$as_qdir' $as_dirs"
13957 as_dir=`$as_dirname -- "$as_dir" ||
13958 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13959 X"$as_dir" : 'X\(//\)[^/]' \| \
13960 X"$as_dir" : 'X\(//\)$' \| \
13961 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13962 $as_echo X"$as_dir" |
13963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13967 /^X\(\/\/\)[^/].*/{
13980 test -d "$as_dir" && break
13982 test -z "$as_dirs" || eval "mkdir $as_dirs"
13983 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13984 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13985 { (exit 1); exit 1; }; }; }
13986 # echo "creating $dirpart/$file"
13987 echo '# dummy' > "$dirpart/$file"
13991 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
13992 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
13999 { (exit 0); exit 0; }
14001 chmod +x $CONFIG_STATUS
14002 ac_clean_files=$ac_clean_files_save
14004 test $ac_write_fail = 0 ||
14005 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14006 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14007 { (exit 1); exit 1; }; }
14010 # configure is writing to config.log, and then calls config.status.
14011 # config.status does its own redirection, appending to config.log.
14012 # Unfortunately, on DOS this fails, as config.log is still kept open
14013 # by configure, so config.status won't be able to write to it; its
14014 # output is simply discarded. So we exec the FD to /dev/null,
14015 # effectively closing config.log, so it can be properly (re)opened and
14016 # appended to by config.status. When coming back to configure, we
14017 # need to make the FD available again.
14018 if test "$no_create" != yes; then
14020 ac_config_status_args=
14021 test "$silent" = yes &&
14022 ac_config_status_args="$ac_config_status_args --quiet"
14024 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14026 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14027 # would make configure fail if this is the last instruction.
14028 $ac_cs_success || { (exit 1); exit 1; }
14030 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14031 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
14032 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
14037 -*) as_dir=./$as_dir;;
14039 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14043 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14044 *) as_qdir=$as_dir;;
14046 as_dirs="'$as_qdir' $as_dirs"
14047 as_dir=`$as_dirname -- "$as_dir" ||
14048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14049 X"$as_dir" : 'X\(//\)[^/]' \| \
14050 X"$as_dir" : 'X\(//\)$' \| \
14051 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14052 $as_echo X"$as_dir" |
14053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14057 /^X\(\/\/\)[^/].*/{
14070 test -d "$as_dir" && break
14072 test -z "$as_dirs" || eval "mkdir $as_dirs"
14073 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14074 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14075 { (exit 1); exit 1; }; }; }
14079 echo "Configuration complete"
14082 if test "x$HAVE_GTK" = x; then
14083 if test "x$HAVE_COCOA" = x; then
14084 echo " User interface: none"
14086 echo " User interface: Cocoa"
14089 echo " User interface: GTK"
14092 if test "x$SH4_TRANSLATOR" = "x"; then
14093 echo " SH4 translator: None (emulation core only)"
14095 echo " SH4 translator: $SH4_TRANSLATOR"
14098 if test "x$VIDEO_DRIVERS" = "x"; then
14099 echo " Video drivers: none (no supported GL found)"
14101 echo " Video drivers: $VIDEO_DRIVERS"
14104 if test "x$AUDIO_DRIVERS" = "x"; then
14105 echo " Audio drivers: none (no supported output devices found)"
14107 echo " Audio drivers: $AUDIO_DRIVERS"
14110 if test "x$CDROM_DRIVER" = "x"; then
14111 echo " CD-ROM driver: none (no supported cd-rom devices found)"
14113 echo " CD-ROM driver: $CDROM_DRIVER"
.