2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
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>
638 ac_subst_vars='LTLIBOBJS
723 am__fastdepOBJC_FALSE
760 MAINTAINER_MODE_FALSE
769 INSTALL_STRIP_PROGRAM
810 program_transform_name
822 enable_option_checking
823 enable_maintainer_mode
824 enable_dependency_tracking
839 ac_precious_vars='build_alias
869 # Initialize some variables set by options.
871 ac_init_version=false
872 ac_unrecognized_opts=
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
883 program_transform_name=s,x,x,
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE}'
908 infodir='${datarootdir}/info'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
929 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 # Accept the important Cygnus configure options, so we can diagnose typos.
935 case $ac_dashdash$ac_option in
939 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944 -build | --build | --buil | --bui | --bu)
945 ac_prev=build_alias ;;
946 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947 build_alias=$ac_optarg ;;
949 -cache-file | --cache-file | --cache-fil | --cache-fi \
950 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951 ac_prev=cache_file ;;
952 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954 cache_file=$ac_optarg ;;
957 cache_file=config.cache ;;
959 -datadir | --datadir | --datadi | --datad)
961 -datadir=* | --datadir=* | --datadi=* | --datad=*)
962 datadir=$ac_optarg ;;
964 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965 | --dataroo | --dataro | --datar)
966 ac_prev=datarootdir ;;
967 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969 datarootdir=$ac_optarg ;;
971 -disable-* | --disable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
976 { (exit 1); exit 1; }; }
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
986 eval enable_$ac_useropt=no ;;
988 -docdir | --docdir | --docdi | --doc | --do)
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998 -enable-* | --enable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1008 "enable_$ac_useropt"
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1013 eval enable_$ac_useropt=\$ac_optarg ;;
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044 htmldir=$ac_optarg ;;
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1058 -libdir | --libdir | --libdi | --libd)
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1149 -psdir | --psdir | --psdi | --psd | --ps)
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162 sbindir=$ac_optarg ;;
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173 sharedstatedir=$ac_optarg ;;
1175 -site | --site | --sit)
1177 -site=* | --site=* | --sit=*)
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1208 { (exit 1); exit 1; }; }
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1218 eval with_$ac_useropt=\$ac_optarg ;;
1220 -without-* | --without-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1235 eval with_$ac_useropt=no ;;
1238 # Obsolete; use --with-x.
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1255 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1256 Try \`$0 --help' for more information." >&2
1257 { (exit 1); exit 1; }; }
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1264 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1265 { (exit 1); exit 1; }; }
1266 eval $ac_envvar=\$ac_optarg
1267 export $ac_envvar ;;
1270 # FIXME: should be removed in autoconf 3.0.
1271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280 if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1283 { (exit 1); exit 1; }; }
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1289 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1290 { (exit 1); exit 1; }; } ;;
1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1308 # Be sure to have absolute directory names.
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1314 { (exit 1); exit 1; }; }
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1322 target=$target_alias
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1329 If a cross compiler is detected then cross compile mode will be used." >&2
1330 elif test "x$build_alias" != "x$host_alias"; then
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338 test "$silent" = yes && exec 6>/dev/null
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1345 { (exit 1); exit 1; }; }
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1348 { (exit 1); exit 1; }; }
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1383 ac_srcdir_defaulted=no
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1388 { (exit 1); exit 1; }; }
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1393 { (exit 1); exit 1; }; }
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413 # Report the --help message.
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1419 \`configure' configures this package to adapt to many kinds of systems.
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1426 Defaults for the options are specified in brackets.
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1450 For better control, use the options below.
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 if test -n "$ac_init_help"; then
1492 --disable-option-checking ignore unrecognized --enable/--with options
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1495 --enable-maintainer-mode enable make rules and dependencies not useful
1496 (and sometimes confusing) to the casual installer
1497 --disable-dependency-tracking speeds up one-time build
1498 --enable-dependency-tracking do not reject slow dependency extractors
1499 --enable-strict-warn Enable strict compilation warnings
1500 --disable-translator Disable the SH4 translator (Enabled by default)
1501 --disable-optimized Disable compile-time optimizations (Enabled by
1503 --enable-shared Build drivers as shared libraries (Enabled if
1505 --enable-profiled Enable profiling build
1506 --enable-trace Enable generation of IO traces (warning: hurts
1508 --enable-watch Enable watchpoints in the debugger (warning: hurts
1510 --enable-sh4stats Enable statistics on executed sh4 instructions
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --with-osmesa Build with the osmesa GL library (software
1517 --with-gtk Build with the GTK UI. Default on X11 systems
1518 --with-esd Build with support for the ESounD audio system
1519 --with-pulse Build with support for the PulseAudio audio system
1520 --with-sdl Build with support for SDL audio
1522 Some influential environment variables:
1523 CC C compiler command
1524 CFLAGS C compiler flags
1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1526 nonstandard directory <lib dir>
1527 LIBS libraries to pass to the linker, e.g. -l<library>
1528 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1529 you have headers in a nonstandard directory <include dir>
1530 OBJC Objective C compiler command
1531 OBJCFLAGS Objective C compiler flags
1532 CCAS assembler compiler command (defaults to CC)
1533 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1535 PKG_CONFIG path to pkg-config utility
1537 C compiler flags for LIBPNG, overriding pkg-config
1538 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1539 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1540 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1541 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1542 GTK_LIBS linker flags for GTK, overriding pkg-config
1543 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1544 SDL_LIBS linker flags for SDL, overriding pkg-config
1546 C compiler flags for PULSE, overriding pkg-config
1547 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1549 C compiler flags for ESOUND, overriding pkg-config
1550 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1551 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1552 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1554 Use these variables to override the choices made by `configure' or to help
1555 it to find libraries and programs with nonstandard names/locations.
1561 if test "$ac_init_help" = "recursive"; then
1562 # If there are subdirs, report their specific --help.
1563 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564 test -d "$ac_dir" ||
1565 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1573 # A ".." for each directory in $ac_dir_suffix.
1574 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1575 case $ac_top_builddir_sub in
1576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1586 .) # We are building in place.
1588 ac_top_srcdir=$ac_top_builddir_sub
1589 ac_abs_top_srcdir=$ac_pwd ;;
1590 [\\/]* | ?:[\\/]* ) # Absolute name.
1591 ac_srcdir=$srcdir$ac_dir_suffix;
1592 ac_top_srcdir=$srcdir
1593 ac_abs_top_srcdir=$srcdir ;;
1595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596 ac_top_srcdir=$ac_top_build_prefix$srcdir
1597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1601 cd "$ac_dir" || { ac_status=$?; continue; }
1602 # Check for guested configure.
1603 if test -f "$ac_srcdir/configure.gnu"; then
1605 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606 elif test -f "$ac_srcdir/configure"; then
1608 $SHELL "$ac_srcdir/configure" --help=recursive
1610 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612 cd "$ac_pwd" || { ac_status=$?; break; }
1616 test -n "$ac_init_help" && exit $ac_status
1617 if $ac_init_version; then
1620 generated by GNU Autoconf 2.63
1622 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1623 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1624 This configure script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it.
1629 cat >config.log <<_ACEOF
1630 This file contains any messages produced by compilers while
1631 running configure, to aid debugging if configure makes a mistake.
1633 It was created by $as_me, which was
1634 generated by GNU Autoconf 2.63. Invocation command line was
1646 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1647 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1648 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1649 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1650 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1652 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1653 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1655 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1656 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1657 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1658 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1659 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1660 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1661 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 test -z "$as_dir" && as_dir=.
1670 $as_echo "PATH: $as_dir"
1686 # Keep a trace of the command line.
1687 # Strip out --no-create and --no-recursion so they do not pile up.
1688 # Strip out --silent because we don't want to record it for future runs.
1689 # Also quote any args containing shell meta-characters.
1690 # Make two passes to allow for proper duplicate-argument suppression.
1694 ac_must_keep_next=false
1700 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1702 | -silent | --silent | --silen | --sile | --sil)
1705 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1708 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1710 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1711 if test $ac_must_keep_next = true; then
1712 ac_must_keep_next=false # Got value, back to normal.
1715 *=* | --config-cache | -C | -disable-* | --disable-* \
1716 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1717 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1718 | -with-* | --with-* | -without-* | --without-* | --x)
1719 case "$ac_configure_args0 " in
1720 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1723 -* ) ac_must_keep_next=true ;;
1726 ac_configure_args="$ac_configure_args '$ac_arg'"
1731 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1732 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1734 # When interrupted or exit'd, cleanup temporary files, and complete
1735 # config.log. We remove comments because anyway the quotes in there
1736 # would cause problems or look ugly.
1737 # WARNING: Use '\'' to represent an apostrophe within the trap.
1738 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1739 trap 'exit_status=$?
1740 # Save into config.log some information that might help in debugging.
1745 ## ---------------- ##
1746 ## Cache variables. ##
1747 ## ---------------- ##
1750 # The following way of writing the cache mishandles newlines in values,
1752 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1753 eval ac_val=\$$ac_var
1757 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1758 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1761 _ | IFS | as_nl) ;; #(
1762 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1763 *) $as_unset $ac_var ;;
1768 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1769 *${as_nl}ac_space=\ *)
1771 "s/'\''/'\''\\\\'\'''\''/g;
1772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1783 ## ----------------- ##
1784 ## Output variables. ##
1785 ## ----------------- ##
1788 for ac_var in $ac_subst_vars
1790 eval ac_val=\$$ac_var
1792 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1794 $as_echo "$ac_var='\''$ac_val'\''"
1798 if test -n "$ac_subst_files"; then
1800 ## ------------------- ##
1801 ## File substitutions. ##
1802 ## ------------------- ##
1805 for ac_var in $ac_subst_files
1807 eval ac_val=\$$ac_var
1809 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811 $as_echo "$ac_var='\''$ac_val'\''"
1816 if test -s confdefs.h; then
1826 test "$ac_signal" != 0 &&
1827 $as_echo "$as_me: caught signal $ac_signal"
1828 $as_echo "$as_me: exit $exit_status"
1830 rm -f core *.core core.conftest.* &&
1831 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1834 for ac_signal in 1 2 13 15; do
1835 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1839 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1840 rm -f -r conftest* confdefs.h
1842 # Predefined preprocessor variables.
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_NAME "$PACKAGE_NAME"
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_STRING "$PACKAGE_STRING"
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1869 # Let the site file select an alternate cache file if it wants to.
1870 # Prefer an explicitly selected file to automatically selected ones.
1873 if test -n "$CONFIG_SITE"; then
1874 ac_site_file1=$CONFIG_SITE
1875 elif test "x$prefix" != xNONE; then
1876 ac_site_file1=$prefix/share/config.site
1877 ac_site_file2=$prefix/etc/config.site
1879 ac_site_file1=$ac_default_prefix/share/config.site
1880 ac_site_file2=$ac_default_prefix/etc/config.site
1882 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1884 test "x$ac_site_file" = xNONE && continue
1885 if test -r "$ac_site_file"; then
1886 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1887 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1888 sed 's/^/| /' "$ac_site_file" >&5
1893 if test -r "$cache_file"; then
1894 # Some versions of bash will fail to source /dev/null (special
1895 # files actually), so we avoid doing that.
1896 if test -f "$cache_file"; then
1897 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1898 $as_echo "$as_me: loading cache $cache_file" >&6;}
1900 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1901 *) . "./$cache_file";;
1905 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1906 $as_echo "$as_me: creating cache $cache_file" >&6;}
1910 # Check that the precious variables saved in the cache have kept the same
1912 ac_cache_corrupted=false
1913 for ac_var in $ac_precious_vars; do
1914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915 eval ac_new_set=\$ac_env_${ac_var}_set
1916 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917 eval ac_new_val=\$ac_env_${ac_var}_value
1918 case $ac_old_set,$ac_new_set in
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1921 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1924 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1925 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1929 if test "x$ac_old_val" != "x$ac_new_val"; then
1930 # differences in whitespace do not lead to failure.
1931 ac_old_val_w=`echo x $ac_old_val`
1932 ac_new_val_w=`echo x $ac_new_val`
1933 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1935 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1936 ac_cache_corrupted=:
1938 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1939 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1940 eval $ac_var=\$ac_old_val
1942 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1943 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1944 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1945 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1948 # Pass precious variables to config.status.
1949 if test "$ac_new_set" = set; then
1951 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1952 *) ac_arg=$ac_var=$ac_new_val ;;
1954 case " $ac_configure_args " in
1955 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1956 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1960 if $ac_cache_corrupted; then
1961 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1963 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1967 { (exit 1); exit 1; }; }
1987 ac_cpp='$CPP $CPPFLAGS'
1988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1993 am__api_version="1.9"
1995 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1996 if test -f "$ac_dir/install-sh"; then
1998 ac_install_sh="$ac_aux_dir/install-sh -c"
2000 elif test -f "$ac_dir/install.sh"; then
2002 ac_install_sh="$ac_aux_dir/install.sh -c"
2004 elif test -f "$ac_dir/shtool"; then
2006 ac_install_sh="$ac_aux_dir/shtool install -c"
2010 if test -z "$ac_aux_dir"; then
2011 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2012 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2013 { (exit 1); exit 1; }; }
2016 # These three variables are undocumented and unsupported,
2017 # and are intended to be withdrawn in a future Autoconf release.
2018 # They can cause serious problems if a builder's source tree is in a directory
2019 # whose full name contains unusual characters.
2020 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2021 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2022 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2025 # Find a good install program. We prefer a C program (faster),
2026 # so one script is as good as another. But avoid the broken or
2027 # incompatible versions:
2028 # SysV /etc/install, /usr/sbin/install
2029 # SunOS /usr/etc/install
2030 # IRIX /sbin/install
2032 # AmigaOS /C/install, which installs bootblocks on floppy discs
2033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2036 # OS/2's system install, which has a completely different semantic
2037 # ./install, which can be erroneously created by make from ./install.sh.
2038 # Reject install programs that cannot install multiple files.
2039 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2040 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2041 if test -z "$INSTALL"; then
2042 if test "${ac_cv_path_install+set}" = set; then
2043 $as_echo_n "(cached) " >&6
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 # Account for people who put trailing slashes in PATH elements.
2052 ./ | .// | /cC/* | \
2053 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2054 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2057 # OSF1 and SCO ODT 3.0 have their own names for install.
2058 # Don't use installbsd from OSF since it installs stuff as root
2060 for ac_prog in ginstall scoinst install; do
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2063 if test $ac_prog = install &&
2064 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2065 # AIX install. It has an incompatible calling convention.
2067 elif test $ac_prog = install &&
2068 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2069 # program-specific install script used by HP pwplus--don't use.
2072 rm -rf conftest.one conftest.two conftest.dir
2073 echo one > conftest.one
2074 echo two > conftest.two
2076 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2077 test -s conftest.one && test -s conftest.two &&
2078 test -s conftest.dir/conftest.one &&
2079 test -s conftest.dir/conftest.two
2081 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2094 rm -rf conftest.one conftest.two conftest.dir
2097 if test "${ac_cv_path_install+set}" = set; then
2098 INSTALL=$ac_cv_path_install
2100 # As a last resort, use the slow shell script. Don't cache a
2101 # value for INSTALL within a source directory, because that will
2102 # break other packages using the cache if that directory is
2103 # removed, or if the value is a relative name.
2104 INSTALL=$ac_install_sh
2107 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2108 $as_echo "$INSTALL" >&6; }
2110 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2111 # It thinks the first close brace ends the variable substitution.
2112 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2114 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2116 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2118 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2119 $as_echo_n "checking whether build environment is sane... " >&6; }
2122 echo timestamp > conftest.file
2123 # Do `set' in a subshell so we don't clobber the current shell's
2124 # arguments. Must try -L first in case configure is actually a
2125 # symlink; some systems play weird games with the mod time of symlinks
2126 # (eg FreeBSD returns the mod time of the symlink's containing
2129 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2130 if test "$*" = "X"; then
2132 set X `ls -t $srcdir/configure conftest.file`
2135 if test "$*" != "X $srcdir/configure conftest.file" \
2136 && test "$*" != "X conftest.file $srcdir/configure"; then
2138 # If neither matched, then we have a broken ls. This can happen
2139 # if, for instance, CONFIG_SHELL is bash and it inherits a
2140 # broken ls alias from the environment. This has actually
2141 # happened. Such a system could not be considered "sane".
2142 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2143 alias in your environment" >&5
2144 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2145 alias in your environment" >&2;}
2146 { (exit 1); exit 1; }; }
2149 test "$2" = conftest.file
2155 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2156 Check your system clock" >&5
2157 $as_echo "$as_me: error: newly created file is older than distributed files!
2158 Check your system clock" >&2;}
2159 { (exit 1); exit 1; }; }
2161 { $as_echo "$as_me:$LINENO: result: yes" >&5
2162 $as_echo "yes" >&6; }
2163 test "$program_prefix" != NONE &&
2164 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2165 # Use a double $ so make ignores it.
2166 test "$program_suffix" != NONE &&
2167 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2168 # Double any \ or $.
2169 # By default was `s,x,x', remove it if useless.
2170 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2171 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2173 # expand $ac_aux_dir to an absolute path
2174 am_aux_dir=`cd $ac_aux_dir && pwd`
2176 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2177 # Use eval to expand $SHELL
2178 if eval "$MISSING --run true"; then
2179 am_missing_run="$MISSING --run "
2182 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2183 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2186 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2187 # We used to keeping the `.' as first argument, in order to
2188 # allow $(mkdir_p) to be used without argument. As in
2189 # $(mkdir_p) $(somedir)
2190 # where $(somedir) is conditionally defined. However this is wrong
2192 # 1. if the package is installed by a user who cannot write `.'
2193 # make install will fail,
2194 # 2. the above comment should most certainly read
2195 # $(mkdir_p) $(DESTDIR)$(somedir)
2196 # so it does not work when $(somedir) is undefined and
2197 # $(DESTDIR) is not.
2198 # To support the latter case, we have to write
2199 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2200 # so the `.' trick is pointless.
2201 mkdir_p='mkdir -p --'
2203 # On NextStep and OpenStep, the `mkdir' command does not
2204 # recognize any option. It will interpret all options as
2205 # directories to create, and then abort because `.' already
2207 for d in ./-p ./--version;
2209 test -d $d && rmdir $d
2211 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2212 if test -f "$ac_aux_dir/mkinstalldirs"; then
2213 mkdir_p='$(mkinstalldirs)'
2215 mkdir_p='$(install_sh) -d'
2219 for ac_prog in gawk mawk nawk awk
2221 # Extract the first word of "$ac_prog", so it can be a program name with args.
2222 set dummy $ac_prog; ac_word=$2
2223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 $as_echo_n "checking for $ac_word... " >&6; }
2225 if test "${ac_cv_prog_AWK+set}" = set; then
2226 $as_echo_n "(cached) " >&6
2228 if test -n "$AWK"; then
2229 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 test -z "$as_dir" && as_dir=.
2236 for ac_exec_ext in '' $ac_executable_extensions; do
2237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2238 ac_cv_prog_AWK="$ac_prog"
2239 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 if test -n "$AWK"; then
2250 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2251 $as_echo "$AWK" >&6; }
2253 { $as_echo "$as_me:$LINENO: result: no" >&5
2254 $as_echo "no" >&6; }
2258 test -n "$AWK" && break
2261 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2262 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2264 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2265 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2266 $as_echo_n "(cached) " >&6
2268 cat >conftest.make <<\_ACEOF
2271 @echo '@@@%%%=$(MAKE)=@@@%%%'
2273 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2274 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2276 eval ac_cv_prog_make_${ac_make}_set=yes;;
2278 eval ac_cv_prog_make_${ac_make}_set=no;;
2282 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2283 { $as_echo "$as_me:$LINENO: result: yes" >&5
2284 $as_echo "yes" >&6; }
2287 { $as_echo "$as_me:$LINENO: result: no" >&5
2288 $as_echo "no" >&6; }
2289 SET_MAKE="MAKE=${MAKE-make}"
2292 rm -rf .tst 2>/dev/null
2293 mkdir .tst 2>/dev/null
2294 if test -d .tst; then
2299 rmdir .tst 2>/dev/null
2301 # test to see if srcdir already configured
2302 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2303 test -f $srcdir/config.status; then
2304 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2305 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2306 { (exit 1); exit 1; }; }
2309 # test whether we have cygpath
2310 if test -z "$CYGPATH_W"; then
2311 if (cygpath --version) >/dev/null 2>/dev/null; then
2312 CYGPATH_W='cygpath -w'
2319 # Define the identity of the package.
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE "$PACKAGE"
2329 cat >>confdefs.h <<_ACEOF
2330 #define VERSION "$VERSION"
2333 # Some tools Automake needs.
2335 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2338 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2341 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2344 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2347 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2349 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2351 # Installed binaries are usually stripped using `strip' when the user
2352 # run `make install-strip'. However `strip' might not be the right
2353 # tool to use in cross-compilation environments, therefore Automake
2354 # will honor the `STRIP' environment variable to overrule this program.
2355 if test "$cross_compiling" != no; then
2356 if test -n "$ac_tool_prefix"; then
2357 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2358 set dummy ${ac_tool_prefix}strip; ac_word=$2
2359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 $as_echo_n "checking for $ac_word... " >&6; }
2361 if test "${ac_cv_prog_STRIP+set}" = set; then
2362 $as_echo_n "(cached) " >&6
2364 if test -n "$STRIP"; then
2365 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 STRIP=$ac_cv_prog_STRIP
2385 if test -n "$STRIP"; then
2386 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2387 $as_echo "$STRIP" >&6; }
2389 { $as_echo "$as_me:$LINENO: result: no" >&5
2390 $as_echo "no" >&6; }
2395 if test -z "$ac_cv_prog_STRIP"; then
2397 # Extract the first word of "strip", so it can be a program name with args.
2398 set dummy strip; ac_word=$2
2399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 $as_echo_n "checking for $ac_word... " >&6; }
2401 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2402 $as_echo_n "(cached) " >&6
2404 if test -n "$ac_ct_STRIP"; then
2405 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_ac_ct_STRIP="strip"
2415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2425 if test -n "$ac_ct_STRIP"; then
2426 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2427 $as_echo "$ac_ct_STRIP" >&6; }
2429 { $as_echo "$as_me:$LINENO: result: no" >&5
2430 $as_echo "no" >&6; }
2433 if test "x$ac_ct_STRIP" = x; then
2436 case $cross_compiling:$ac_tool_warned in
2438 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2440 ac_tool_warned=yes ;;
2445 STRIP="$ac_cv_prog_STRIP"
2449 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2451 # We need awk for the "check" target. The system "awk" is bad on
2453 # Always define AMTAR for backward compatibility.
2455 AMTAR=${AMTAR-"${am_missing_run}tar"}
2457 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2463 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2464 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2465 # Check whether --enable-maintainer-mode was given.
2466 if test "${enable_maintainer_mode+set}" = set; then
2467 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2469 USE_MAINTAINER_MODE=no
2472 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2473 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2476 if test $USE_MAINTAINER_MODE = yes; then
2477 MAINTAINER_MODE_TRUE=
2478 MAINTAINER_MODE_FALSE='#'
2480 MAINTAINER_MODE_TRUE='#'
2481 MAINTAINER_MODE_FALSE=
2484 MAINT=$MAINTAINER_MODE_TRUE
2487 ac_config_headers="$ac_config_headers config.h"
2490 DEPDIR="${am__leading_dot}deps"
2492 ac_config_commands="$ac_config_commands depfiles"
2495 am_make=${MAKE-make}
2496 cat > confinc << 'END'
2501 # If we don't find an include directive, just comment out the code.
2502 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2503 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2507 # First try GNU make style include.
2508 echo "include confinc" > confmf
2509 # We grep out `Entering directory' and `Leaving directory'
2510 # messages which can occur if `w' ends up in MAKEFLAGS.
2511 # In particular we don't look at `^make:' because GNU make might
2512 # be invoked under some other name (usually "gmake"), in which
2513 # case it prints its new name instead of `make'.
2514 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2519 # Now try BSD make style include.
2520 if test "$am__include" = "#"; then
2521 echo '.include "confinc"' > confmf
2522 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2523 am__include=.include
2530 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2531 $as_echo "$_am_result" >&6; }
2532 rm -f confinc confmf
2534 # Check whether --enable-dependency-tracking was given.
2535 if test "${enable_dependency_tracking+set}" = set; then
2536 enableval=$enable_dependency_tracking;
2539 if test "x$enable_dependency_tracking" != xno; then
2540 am_depcomp="$ac_aux_dir/depcomp"
2545 if test "x$enable_dependency_tracking" != xno; then
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560 if test -n "$ac_tool_prefix"; then
2561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if test "${ac_cv_prog_CC+set}" = set; then
2566 $as_echo_n "(cached) " >&6
2568 if test -n "$CC"; then
2569 ac_cv_prog_CC="$CC" # Let the user override the test.
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 if test -n "$CC"; then
2590 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2591 $as_echo "$CC" >&6; }
2593 { $as_echo "$as_me:$LINENO: result: no" >&5
2594 $as_echo "no" >&6; }
2599 if test -z "$ac_cv_prog_CC"; then
2601 # Extract the first word of "gcc", so it can be a program name with args.
2602 set dummy gcc; ac_word=$2
2603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2606 $as_echo_n "(cached) " >&6
2608 if test -n "$ac_ct_CC"; then
2609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_ac_ct_CC="gcc"
2619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2629 if test -n "$ac_ct_CC"; then
2630 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2631 $as_echo "$ac_ct_CC" >&6; }
2633 { $as_echo "$as_me:$LINENO: result: no" >&5
2634 $as_echo "no" >&6; }
2637 if test "x$ac_ct_CC" = x; then
2640 case $cross_compiling:$ac_tool_warned in
2642 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2644 ac_tool_warned=yes ;;
2652 if test -z "$CC"; then
2653 if test -n "$ac_tool_prefix"; then
2654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2655 set dummy ${ac_tool_prefix}cc; ac_word=$2
2656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if test "${ac_cv_prog_CC+set}" = set; then
2659 $as_echo_n "(cached) " >&6
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_CC="${ac_tool_prefix}cc"
2672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 if test -n "$CC"; then
2683 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2684 $as_echo "$CC" >&6; }
2686 { $as_echo "$as_me:$LINENO: result: no" >&5
2687 $as_echo "no" >&6; }
2693 if test -z "$CC"; then
2694 # Extract the first word of "cc", so it can be a program name with args.
2695 set dummy cc; ac_word=$2
2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_prog_CC+set}" = set; then
2699 $as_echo_n "(cached) " >&6
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2713 ac_prog_rejected=yes
2717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 if test $ac_prog_rejected = yes; then
2725 # We found a bogon in the path, so make sure we never use it.
2726 set dummy $ac_cv_prog_CC
2728 if test $# != 0; then
2729 # We chose a different compiler from the bogus one.
2730 # However, it has the same basename, so the bogon will be chosen
2731 # first if we set CC to just the basename; use the full file name.
2733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2739 if test -n "$CC"; then
2740 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2741 $as_echo "$CC" >&6; }
2743 { $as_echo "$as_me:$LINENO: result: no" >&5
2744 $as_echo "no" >&6; }
2749 if test -z "$CC"; then
2750 if test -n "$ac_tool_prefix"; then
2751 for ac_prog in cl.exe
2753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if test "${ac_cv_prog_CC+set}" = set; then
2758 $as_echo_n "(cached) " >&6
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 if test -n "$CC"; then
2782 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2783 $as_echo "$CC" >&6; }
2785 { $as_echo "$as_me:$LINENO: result: no" >&5
2786 $as_echo "no" >&6; }
2790 test -n "$CC" && break
2793 if test -z "$CC"; then
2795 for ac_prog in cl.exe
2797 # Extract the first word of "$ac_prog", so it can be a program name with args.
2798 set dummy $ac_prog; ac_word=$2
2799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 $as_echo_n "checking for $ac_word... " >&6; }
2801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2802 $as_echo_n "(cached) " >&6
2804 if test -n "$ac_ct_CC"; then
2805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 ac_cv_prog_ac_ct_CC="$ac_prog"
2815 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2825 if test -n "$ac_ct_CC"; then
2826 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2827 $as_echo "$ac_ct_CC" >&6; }
2829 { $as_echo "$as_me:$LINENO: result: no" >&5
2830 $as_echo "no" >&6; }
2834 test -n "$ac_ct_CC" && break
2837 if test "x$ac_ct_CC" = x; then
2840 case $cross_compiling:$ac_tool_warned in
2842 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2844 ac_tool_warned=yes ;;
2853 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2855 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2856 See \`config.log' for more details." >&5
2857 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2858 See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }; }
2861 # Provide some information about the compiler.
2862 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2865 { (ac_try="$ac_compiler --version >&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 --version >&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); }
2887 { (ac_try="$ac_compiler -V >&5"
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2893 $as_echo "$ac_try_echo") >&5
2894 (eval "$ac_compiler -V >&5") 2>&5
2896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }
2899 cat >conftest.$ac_ext <<_ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2914 ac_clean_files_save=$ac_clean_files
2915 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2916 # Try to create an executable without -o first, disregard a.out.
2917 # It will help us diagnose broken compilers, and finding out an intuition
2919 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2920 $as_echo_n "checking for C compiler default output file name... " >&6; }
2921 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2923 # The possible output files:
2924 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2927 for ac_file in $ac_files
2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2931 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2936 if { (ac_try="$ac_link_default"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2942 $as_echo "$ac_try_echo") >&5
2943 (eval "$ac_link_default") 2>&5
2945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
2947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2948 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2949 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2950 # so that the user can short-circuit this test for compilers unknown to
2952 for ac_file in $ac_files ''
2954 test -f "$ac_file" || continue
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2959 # We found the default executable, but exeext='' is most
2963 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2967 # We set ac_cv_exeext here because the later test for it is not
2968 # safe: cross compilers may not add the suffix if given an `-o'
2969 # argument, so we may need to know it at that point already.
2970 # Even if this section looks crufty: it has the advantage of
2977 test "$ac_cv_exeext" = no && ac_cv_exeext=
2983 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2984 $as_echo "$ac_file" >&6; }
2985 if test -z "$ac_file"; then
2986 $as_echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2989 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2992 See \`config.log' for more details." >&5
2993 $as_echo "$as_me: error: C compiler cannot create executables
2994 See \`config.log' for more details." >&2;}
2995 { (exit 77); exit 77; }; }; }
2998 ac_exeext=$ac_cv_exeext
3000 # Check that the compiler produces executables we can run. If not, either
3001 # the compiler is broken, or we cross compile.
3002 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3003 $as_echo_n "checking whether the C compiler works... " >&6; }
3004 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3005 # If not cross compiling, check that we can run a simple program.
3006 if test "$cross_compiling" != yes; then
3007 if { ac_try='./$ac_file'
3008 { (case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3013 $as_echo "$ac_try_echo") >&5
3014 (eval "$ac_try") 2>&5
3016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3020 if test "$cross_compiling" = maybe; then
3023 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3026 If you meant to cross compile, use \`--host'.
3027 See \`config.log' for more details." >&5
3028 $as_echo "$as_me: error: cannot run C compiled programs.
3029 If you meant to cross compile, use \`--host'.
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }; }
3035 { $as_echo "$as_me:$LINENO: result: yes" >&5
3036 $as_echo "yes" >&6; }
3038 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3039 ac_clean_files=$ac_clean_files_save
3040 # Check that the compiler produces executables we can run. If not, either
3041 # the compiler is broken, or we cross compile.
3042 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3043 $as_echo_n "checking whether we are cross compiling... " >&6; }
3044 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3045 $as_echo "$cross_compiling" >&6; }
3047 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3048 $as_echo_n "checking for suffix of executables... " >&6; }
3049 if { (ac_try="$ac_link"
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3055 $as_echo "$ac_try_echo") >&5
3056 (eval "$ac_link") 2>&5
3058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; then
3060 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3061 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3062 # work properly (i.e., refer to `conftest.exe'), while it won't with
3064 for ac_file in conftest.exe conftest conftest.*; do
3065 test -f "$ac_file" || continue
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3077 See \`config.log' for more details." >&5
3078 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3079 See \`config.log' for more details." >&2;}
3080 { (exit 1); exit 1; }; }; }
3083 rm -f conftest$ac_cv_exeext
3084 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3085 $as_echo "$ac_cv_exeext" >&6; }
3087 rm -f conftest.$ac_ext
3088 EXEEXT=$ac_cv_exeext
3090 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3091 $as_echo_n "checking for suffix of object files... " >&6; }
3092 if test "${ac_cv_objext+set}" = set; then
3093 $as_echo_n "(cached) " >&6
3095 cat >conftest.$ac_ext <<_ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3110 rm -f conftest.o conftest.obj
3111 if { (ac_try="$ac_compile"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3117 $as_echo "$ac_try_echo") >&5
3118 (eval "$ac_compile") 2>&5
3120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; then
3122 for ac_file in conftest.o conftest.obj conftest.*; do
3123 test -f "$ac_file" || continue;
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3131 $as_echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3137 See \`config.log' for more details." >&5
3138 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3139 See \`config.log' for more details." >&2;}
3140 { (exit 1); exit 1; }; }; }
3143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3145 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3146 $as_echo "$ac_cv_objext" >&6; }
3147 OBJEXT=$ac_cv_objext
3149 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3150 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3152 $as_echo_n "(cached) " >&6
3154 cat >conftest.$ac_ext <<_ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3179 $as_echo "$ac_try_echo") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3182 grep -v '^ *+' conftest.er1 >conftest.err
3184 cat conftest.err >&5
3185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } && {
3187 test -z "$ac_c_werror_flag" ||
3188 test ! -s conftest.err
3189 } && test -s conftest.$ac_objext; then
3192 $as_echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3202 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3203 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3204 if test $ac_compiler_gnu = yes; then
3209 ac_test_CFLAGS=${CFLAGS+set}
3210 ac_save_CFLAGS=$CFLAGS
3211 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3212 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3213 if test "${ac_cv_prog_cc_g+set}" = set; then
3214 $as_echo_n "(cached) " >&6
3216 ac_save_c_werror_flag=$ac_c_werror_flag
3217 ac_c_werror_flag=yes
3220 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3235 rm -f conftest.$ac_objext
3236 if { (ac_try="$ac_compile"
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3242 $as_echo "$ac_try_echo") >&5
3243 (eval "$ac_compile") 2>conftest.er1
3245 grep -v '^ *+' conftest.er1 >conftest.err
3247 cat conftest.err >&5
3248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } && {
3250 test -z "$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 } && test -s conftest.$ac_objext; then
3255 $as_echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3259 cat >conftest.$ac_ext <<_ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3274 rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3281 $as_echo "$ac_try_echo") >&5
3282 (eval "$ac_compile") 2>conftest.er1
3284 grep -v '^ *+' conftest.er1 >conftest.err
3286 cat conftest.err >&5
3287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } && {
3289 test -z "$ac_c_werror_flag" ||
3290 test ! -s conftest.err
3291 } && test -s conftest.$ac_objext; then
3294 $as_echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 ac_c_werror_flag=$ac_save_c_werror_flag
3299 cat >conftest.$ac_ext <<_ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3314 rm -f conftest.$ac_objext
3315 if { (ac_try="$ac_compile"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3321 $as_echo "$ac_try_echo") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } && {
3329 test -z "$ac_c_werror_flag" ||
3330 test ! -s conftest.err
3331 } && test -s conftest.$ac_objext; then
3334 $as_echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_c_werror_flag=$ac_save_c_werror_flag
3349 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3350 $as_echo "$ac_cv_prog_cc_g" >&6; }
3351 if test "$ac_test_CFLAGS" = set; then
3352 CFLAGS=$ac_save_CFLAGS
3353 elif test $ac_cv_prog_cc_g = yes; then
3354 if test "$GCC" = yes; then
3360 if test "$GCC" = yes; then
3366 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3367 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3368 if test "${ac_cv_prog_cc_c89+set}" = set; then
3369 $as_echo_n "(cached) " >&6
3371 ac_cv_prog_cc_c89=no
3373 cat >conftest.$ac_ext <<_ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3381 #include <sys/types.h>
3382 #include <sys/stat.h>
3383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3384 struct buf { int x; };
3385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3386 static char *e (p, i)
3392 static char *f (char * (*g) (char **, int), char **p, ...)
3397 s = g (p, va_arg (v,int));
3402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3403 function prototypes and stuff, but not '\xHH' hex character constants.
3404 These don't provoke an error unfortunately, instead are silently treated
3405 as 'x'. The following induces an error, until -std is added to get
3406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3407 array size at least. It's necessary to write '\x00'==0 to get something
3408 that's true only with -std. */
3409 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3411 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3412 inside strings and character constants. */
3414 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3416 int test (int i, double x);
3417 struct s1 {int (*f) (int a);};
3418 struct s2 {int (*f) (double a);};
3419 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3425 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3430 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3431 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3433 CC="$ac_save_CC $ac_arg"
3434 rm -f conftest.$ac_objext
3435 if { (ac_try="$ac_compile"
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3441 $as_echo "$ac_try_echo") >&5
3442 (eval "$ac_compile") 2>conftest.er1
3444 grep -v '^ *+' conftest.er1 >conftest.err
3446 cat conftest.err >&5
3447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } && {
3449 test -z "$ac_c_werror_flag" ||
3450 test ! -s conftest.err
3451 } && test -s conftest.$ac_objext; then
3452 ac_cv_prog_cc_c89=$ac_arg
3454 $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3460 rm -f core conftest.err conftest.$ac_objext
3461 test "x$ac_cv_prog_cc_c89" != "xno" && break
3463 rm -f conftest.$ac_ext
3468 case "x$ac_cv_prog_cc_c89" in
3470 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3471 $as_echo "none needed" >&6; } ;;
3473 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3474 $as_echo "unsupported" >&6; } ;;
3476 CC="$CC $ac_cv_prog_cc_c89"
3477 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3478 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 depcc="$CC" am_compiler_list=
3490 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3491 $as_echo_n "checking dependency style of $depcc... " >&6; }
3492 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3493 $as_echo_n "(cached) " >&6
3495 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3496 # We make a subdir and do the tests there. Otherwise we can end up
3497 # making bogus files that we don't know about and never remove. For
3498 # instance it was reported that on HP-UX the gcc test will end up
3499 # making a dummy file named `D' -- because `-MD' means `put the output
3502 # Copy depcomp to subdir because otherwise we won't find it if we're
3503 # using a relative directory.
3504 cp "$am_depcomp" conftest.dir
3506 # We will build objects and dependencies in a subdirectory because
3507 # it helps to detect inapplicable dependency modes. For instance
3508 # both Tru64's cc and ICC support -MD to output dependencies as a
3509 # side effect of compilation, but ICC will put the dependencies in
3510 # the current directory while Tru64 will put them in the object
3514 am_cv_CC_dependencies_compiler_type=none
3515 if test "$am_compiler_list" = ""; then
3516 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3518 for depmode in $am_compiler_list; do
3519 # Setup a source with many dependencies, because some compilers
3520 # like to wrap large dependency lists on column 80 (with \), and
3521 # we should not choose a depcomp mode which is confused by this.
3523 # We need to recreate these files for each test, as the compiler may
3524 # overwrite some of them when testing with obscure command lines.
3525 # This happens at least with the AIX C compiler.
3527 for i in 1 2 3 4 5 6; do
3528 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3529 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3530 # Solaris 8's {/usr,}/bin/sh.
3531 touch sub/conftst$i.h
3533 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3537 # after this tag, mechanisms are not by side-effect, so they'll
3538 # only be used when explicitly requested
3539 if test "x$enable_dependency_tracking" = xyes; then
3547 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3548 # mode. It turns out that the SunPro C++ compiler does not properly
3549 # handle `-M -o', and we need to detect this.
3550 if depmode=$depmode \
3551 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3552 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3553 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3554 >/dev/null 2>conftest.err &&
3555 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3556 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3557 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3558 # icc doesn't choke on unknown options, it will just issue warnings
3559 # or remarks (even with -Werror). So we grep stderr for any message
3560 # that says an option was ignored or not supported.
3561 # When given -MP, icc 7.0 and 7.1 complain thusly:
3562 # icc: Command line warning: ignoring option '-M'; no argument required
3563 # The diagnosis changed in icc 8.0:
3564 # icc: Command line remark: option '-MP' not supported
3565 if (grep 'ignoring option' conftest.err ||
3566 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3567 am_cv_CC_dependencies_compiler_type=$depmode
3576 am_cv_CC_dependencies_compiler_type=none
3580 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3581 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3582 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3587 test "x$enable_dependency_tracking" != xno \
3588 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3590 am__fastdepCC_FALSE='#'
3592 am__fastdepCC_TRUE='#'
3593 am__fastdepCC_FALSE=
3599 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3600 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3601 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3602 $as_echo_n "(cached) " >&6
3604 ac_check_lib_save_LIBS=$LIBS
3605 LIBS="-lcposix $LIBS"
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3613 /* Override any GCC internal prototype to avoid an error.
3614 Use char because int might match the return type of a GCC
3615 builtin and then its argument prototype would still apply. */
3628 rm -f conftest.$ac_objext conftest$ac_exeext
3629 if { (ac_try="$ac_link"
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3635 $as_echo "$ac_try_echo") >&5
3636 (eval "$ac_link") 2>conftest.er1
3638 grep -v '^ *+' conftest.er1 >conftest.err
3640 cat conftest.err >&5
3641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } && {
3643 test -z "$ac_c_werror_flag" ||
3644 test ! -s conftest.err
3645 } && test -s conftest$ac_exeext && {
3646 test "$cross_compiling" = yes ||
3647 $as_test_x conftest$ac_exeext
3649 ac_cv_lib_cposix_strerror=yes
3651 $as_echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3654 ac_cv_lib_cposix_strerror=no
3657 rm -rf conftest.dSYM
3658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3659 conftest$ac_exeext conftest.$ac_ext
3660 LIBS=$ac_check_lib_save_LIBS
3662 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3663 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3664 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
3665 LIBS="$LIBS -lcposix"
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_CC+set}" = set; then
3681 $as_echo_n "(cached) " >&6
3683 if test -n "$CC"; then
3684 ac_cv_prog_CC="$CC" # Let the user override the test.
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 if test -n "$CC"; then
3705 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3706 $as_echo "$CC" >&6; }
3708 { $as_echo "$as_me:$LINENO: result: no" >&5
3709 $as_echo "no" >&6; }
3714 if test -z "$ac_cv_prog_CC"; then
3716 # Extract the first word of "gcc", so it can be a program name with args.
3717 set dummy gcc; ac_word=$2
3718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3721 $as_echo_n "(cached) " >&6
3723 if test -n "$ac_ct_CC"; then
3724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_ac_ct_CC="gcc"
3734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3744 if test -n "$ac_ct_CC"; then
3745 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3746 $as_echo "$ac_ct_CC" >&6; }
3748 { $as_echo "$as_me:$LINENO: result: no" >&5
3749 $as_echo "no" >&6; }
3752 if test "x$ac_ct_CC" = x; then
3755 case $cross_compiling:$ac_tool_warned in
3757 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759 ac_tool_warned=yes ;;
3767 if test -z "$CC"; then
3768 if test -n "$ac_tool_prefix"; then
3769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3770 set dummy ${ac_tool_prefix}cc; ac_word=$2
3771 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 $as_echo_n "checking for $ac_word... " >&6; }
3773 if test "${ac_cv_prog_CC+set}" = set; then
3774 $as_echo_n "(cached) " >&6
3776 if test -n "$CC"; then
3777 ac_cv_prog_CC="$CC" # Let the user override the test.
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3786 ac_cv_prog_CC="${ac_tool_prefix}cc"
3787 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 if test -n "$CC"; then
3798 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3799 $as_echo "$CC" >&6; }
3801 { $as_echo "$as_me:$LINENO: result: no" >&5
3802 $as_echo "no" >&6; }
3808 if test -z "$CC"; then
3809 # Extract the first word of "cc", so it can be a program name with args.
3810 set dummy cc; ac_word=$2
3811 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 $as_echo_n "checking for $ac_word... " >&6; }
3813 if test "${ac_cv_prog_CC+set}" = set; then
3814 $as_echo_n "(cached) " >&6
3816 if test -n "$CC"; then
3817 ac_cv_prog_CC="$CC" # Let the user override the test.
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3828 ac_prog_rejected=yes
3832 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 if test $ac_prog_rejected = yes; then
3840 # We found a bogon in the path, so make sure we never use it.
3841 set dummy $ac_cv_prog_CC
3843 if test $# != 0; then
3844 # We chose a different compiler from the bogus one.
3845 # However, it has the same basename, so the bogon will be chosen
3846 # first if we set CC to just the basename; use the full file name.
3848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3854 if test -n "$CC"; then
3855 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3856 $as_echo "$CC" >&6; }
3858 { $as_echo "$as_me:$LINENO: result: no" >&5
3859 $as_echo "no" >&6; }
3864 if test -z "$CC"; then
3865 if test -n "$ac_tool_prefix"; then
3866 for ac_prog in cl.exe
3868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if test "${ac_cv_prog_CC+set}" = set; then
3873 $as_echo_n "(cached) " >&6
3875 if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3886 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 if test -n "$CC"; then
3897 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3898 $as_echo "$CC" >&6; }
3900 { $as_echo "$as_me:$LINENO: result: no" >&5
3901 $as_echo "no" >&6; }
3905 test -n "$CC" && break
3908 if test -z "$CC"; then
3910 for ac_prog in cl.exe
3912 # Extract the first word of "$ac_prog", so it can be a program name with args.
3913 set dummy $ac_prog; ac_word=$2
3914 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3917 $as_echo_n "(cached) " >&6
3919 if test -n "$ac_ct_CC"; then
3920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3929 ac_cv_prog_ac_ct_CC="$ac_prog"
3930 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3940 if test -n "$ac_ct_CC"; then
3941 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3942 $as_echo "$ac_ct_CC" >&6; }
3944 { $as_echo "$as_me:$LINENO: result: no" >&5
3945 $as_echo "no" >&6; }
3949 test -n "$ac_ct_CC" && break
3952 if test "x$ac_ct_CC" = x; then
3955 case $cross_compiling:$ac_tool_warned in
3957 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3959 ac_tool_warned=yes ;;
3968 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3971 See \`config.log' for more details." >&5
3972 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3973 See \`config.log' for more details." >&2;}
3974 { (exit 1); exit 1; }; }; }
3976 # Provide some information about the compiler.
3977 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3980 { (ac_try="$ac_compiler --version >&5"
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3986 $as_echo "$ac_try_echo") >&5
3987 (eval "$ac_compiler --version >&5") 2>&5
3989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }
3991 { (ac_try="$ac_compiler -v >&5"
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3997 $as_echo "$ac_try_echo") >&5
3998 (eval "$ac_compiler -v >&5") 2>&5
4000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }
4002 { (ac_try="$ac_compiler -V >&5"
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4008 $as_echo "$ac_try_echo") >&5
4009 (eval "$ac_compiler -V >&5") 2>&5
4011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }
4014 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4015 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4016 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4017 $as_echo_n "(cached) " >&6
4019 cat >conftest.$ac_ext <<_ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4037 rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4044 $as_echo "$ac_try_echo") >&5
4045 (eval "$ac_compile") 2>conftest.er1
4047 grep -v '^ *+' conftest.er1 >conftest.err
4049 cat conftest.err >&5
4050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } && {
4052 test -z "$ac_c_werror_flag" ||
4053 test ! -s conftest.err
4054 } && test -s conftest.$ac_objext; then
4057 $as_echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4067 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4068 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4069 if test $ac_compiler_gnu = yes; then
4074 ac_test_CFLAGS=${CFLAGS+set}
4075 ac_save_CFLAGS=$CFLAGS
4076 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4077 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4078 if test "${ac_cv_prog_cc_g+set}" = set; then
4079 $as_echo_n "(cached) " >&6
4081 ac_save_c_werror_flag=$ac_c_werror_flag
4082 ac_c_werror_flag=yes
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4100 rm -f conftest.$ac_objext
4101 if { (ac_try="$ac_compile"
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4107 $as_echo "$ac_try_echo") >&5
4108 (eval "$ac_compile") 2>conftest.er1
4110 grep -v '^ *+' conftest.er1 >conftest.err
4112 cat conftest.err >&5
4113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } && {
4115 test -z "$ac_c_werror_flag" ||
4116 test ! -s conftest.err
4117 } && test -s conftest.$ac_objext; then
4120 $as_echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4124 cat >conftest.$ac_ext <<_ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4139 rm -f conftest.$ac_objext
4140 if { (ac_try="$ac_compile"
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4146 $as_echo "$ac_try_echo") >&5
4147 (eval "$ac_compile") 2>conftest.er1
4149 grep -v '^ *+' conftest.er1 >conftest.err
4151 cat conftest.err >&5
4152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } && {
4154 test -z "$ac_c_werror_flag" ||
4155 test ! -s conftest.err
4156 } && test -s conftest.$ac_objext; then
4159 $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 ac_c_werror_flag=$ac_save_c_werror_flag
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4179 rm -f conftest.$ac_objext
4180 if { (ac_try="$ac_compile"
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187 (eval "$ac_compile") 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } && {
4194 test -z "$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4196 } && test -s conftest.$ac_objext; then
4199 $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 ac_c_werror_flag=$ac_save_c_werror_flag
4214 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4215 $as_echo "$ac_cv_prog_cc_g" >&6; }
4216 if test "$ac_test_CFLAGS" = set; then
4217 CFLAGS=$ac_save_CFLAGS
4218 elif test $ac_cv_prog_cc_g = yes; then
4219 if test "$GCC" = yes; then
4225 if test "$GCC" = yes; then
4231 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4232 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4233 if test "${ac_cv_prog_cc_c89+set}" = set; then
4234 $as_echo_n "(cached) " >&6
4236 ac_cv_prog_cc_c89=no
4238 cat >conftest.$ac_ext <<_ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4246 #include <sys/types.h>
4247 #include <sys/stat.h>
4248 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4249 struct buf { int x; };
4250 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4251 static char *e (p, i)
4257 static char *f (char * (*g) (char **, int), char **p, ...)
4262 s = g (p, va_arg (v,int));
4267 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4268 function prototypes and stuff, but not '\xHH' hex character constants.
4269 These don't provoke an error unfortunately, instead are silently treated
4270 as 'x'. The following induces an error, until -std is added to get
4271 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4272 array size at least. It's necessary to write '\x00'==0 to get something
4273 that's true only with -std. */
4274 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4276 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4277 inside strings and character constants. */
4279 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4281 int test (int i, double x);
4282 struct s1 {int (*f) (int a);};
4283 struct s2 {int (*f) (double a);};
4284 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4290 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4295 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4296 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4298 CC="$ac_save_CC $ac_arg"
4299 rm -f conftest.$ac_objext
4300 if { (ac_try="$ac_compile"
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4306 $as_echo "$ac_try_echo") >&5
4307 (eval "$ac_compile") 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && {
4314 test -z "$ac_c_werror_flag" ||
4315 test ! -s conftest.err
4316 } && test -s conftest.$ac_objext; then
4317 ac_cv_prog_cc_c89=$ac_arg
4319 $as_echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4325 rm -f core conftest.err conftest.$ac_objext
4326 test "x$ac_cv_prog_cc_c89" != "xno" && break
4328 rm -f conftest.$ac_ext
4333 case "x$ac_cv_prog_cc_c89" in
4335 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4336 $as_echo "none needed" >&6; } ;;
4338 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4339 $as_echo "unsupported" >&6; } ;;
4341 CC="$CC $ac_cv_prog_cc_c89"
4342 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4343 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4348 ac_cpp='$CPP $CPPFLAGS'
4349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353 depcc="$CC" am_compiler_list=
4355 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4356 $as_echo_n "checking dependency style of $depcc... " >&6; }
4357 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4358 $as_echo_n "(cached) " >&6
4360 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4361 # We make a subdir and do the tests there. Otherwise we can end up
4362 # making bogus files that we don't know about and never remove. For
4363 # instance it was reported that on HP-UX the gcc test will end up
4364 # making a dummy file named `D' -- because `-MD' means `put the output
4367 # Copy depcomp to subdir because otherwise we won't find it if we're
4368 # using a relative directory.
4369 cp "$am_depcomp" conftest.dir
4371 # We will build objects and dependencies in a subdirectory because
4372 # it helps to detect inapplicable dependency modes. For instance
4373 # both Tru64's cc and ICC support -MD to output dependencies as a
4374 # side effect of compilation, but ICC will put the dependencies in
4375 # the current directory while Tru64 will put them in the object
4379 am_cv_CC_dependencies_compiler_type=none
4380 if test "$am_compiler_list" = ""; then
4381 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4383 for depmode in $am_compiler_list; do
4384 # Setup a source with many dependencies, because some compilers
4385 # like to wrap large dependency lists on column 80 (with \), and
4386 # we should not choose a depcomp mode which is confused by this.
4388 # We need to recreate these files for each test, as the compiler may
4389 # overwrite some of them when testing with obscure command lines.
4390 # This happens at least with the AIX C compiler.
4392 for i in 1 2 3 4 5 6; do
4393 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4394 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4395 # Solaris 8's {/usr,}/bin/sh.
4396 touch sub/conftst$i.h
4398 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4402 # after this tag, mechanisms are not by side-effect, so they'll
4403 # only be used when explicitly requested
4404 if test "x$enable_dependency_tracking" = xyes; then
4412 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4413 # mode. It turns out that the SunPro C++ compiler does not properly
4414 # handle `-M -o', and we need to detect this.
4415 if depmode=$depmode \
4416 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4417 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4418 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4419 >/dev/null 2>conftest.err &&
4420 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4421 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4422 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4423 # icc doesn't choke on unknown options, it will just issue warnings
4424 # or remarks (even with -Werror). So we grep stderr for any message
4425 # that says an option was ignored or not supported.
4426 # When given -MP, icc 7.0 and 7.1 complain thusly:
4427 # icc: Command line warning: ignoring option '-M'; no argument required
4428 # The diagnosis changed in icc 8.0:
4429 # icc: Command line remark: option '-MP' not supported
4430 if (grep 'ignoring option' conftest.err ||
4431 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4432 am_cv_CC_dependencies_compiler_type=$depmode
4441 am_cv_CC_dependencies_compiler_type=none
4445 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4446 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4447 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4452 test "x$enable_dependency_tracking" != xno \
4453 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4455 am__fastdepCC_FALSE='#'
4457 am__fastdepCC_TRUE='#'
4458 am__fastdepCC_FALSE=
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467 if test -n "$ac_tool_prefix"; then
4468 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 $as_echo_n "checking for $ac_word... " >&6; }
4472 if test "${ac_cv_prog_CC+set}" = set; then
4473 $as_echo_n "(cached) " >&6
4475 if test -n "$CC"; then
4476 ac_cv_prog_CC="$CC" # Let the user override the test.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 if test -n "$CC"; then
4497 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4498 $as_echo "$CC" >&6; }
4500 { $as_echo "$as_me:$LINENO: result: no" >&5
4501 $as_echo "no" >&6; }
4506 if test -z "$ac_cv_prog_CC"; then
4508 # Extract the first word of "gcc", so it can be a program name with args.
4509 set dummy gcc; ac_word=$2
4510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 $as_echo_n "checking for $ac_word... " >&6; }
4512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4513 $as_echo_n "(cached) " >&6
4515 if test -n "$ac_ct_CC"; then
4516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525 ac_cv_prog_ac_ct_CC="gcc"
4526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4536 if test -n "$ac_ct_CC"; then
4537 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4538 $as_echo "$ac_ct_CC" >&6; }
4540 { $as_echo "$as_me:$LINENO: result: no" >&5
4541 $as_echo "no" >&6; }
4544 if test "x$ac_ct_CC" = x; then
4547 case $cross_compiling:$ac_tool_warned in
4549 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4551 ac_tool_warned=yes ;;
4559 if test -z "$CC"; then
4560 if test -n "$ac_tool_prefix"; then
4561 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4562 set dummy ${ac_tool_prefix}cc; ac_word=$2
4563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if test "${ac_cv_prog_CC+set}" = set; then
4566 $as_echo_n "(cached) " >&6
4568 if test -n "$CC"; then
4569 ac_cv_prog_CC="$CC" # Let the user override the test.
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_CC="${ac_tool_prefix}cc"
4579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 if test -n "$CC"; then
4590 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4591 $as_echo "$CC" >&6; }
4593 { $as_echo "$as_me:$LINENO: result: no" >&5
4594 $as_echo "no" >&6; }
4600 if test -z "$CC"; then
4601 # Extract the first word of "cc", so it can be a program name with args.
4602 set dummy cc; ac_word=$2
4603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_CC+set}" = set; then
4606 $as_echo_n "(cached) " >&6
4608 if test -n "$CC"; then
4609 ac_cv_prog_CC="$CC" # Let the user override the test.
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4620 ac_prog_rejected=yes
4624 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 if test $ac_prog_rejected = yes; then
4632 # We found a bogon in the path, so make sure we never use it.
4633 set dummy $ac_cv_prog_CC
4635 if test $# != 0; then
4636 # We chose a different compiler from the bogus one.
4637 # However, it has the same basename, so the bogon will be chosen
4638 # first if we set CC to just the basename; use the full file name.
4640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4646 if test -n "$CC"; then
4647 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4648 $as_echo "$CC" >&6; }
4650 { $as_echo "$as_me:$LINENO: result: no" >&5
4651 $as_echo "no" >&6; }
4656 if test -z "$CC"; then
4657 if test -n "$ac_tool_prefix"; then
4658 for ac_prog in cl.exe
4660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4662 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_CC+set}" = set; then
4665 $as_echo_n "(cached) " >&6
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC="$CC" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 if test -n "$CC"; then
4689 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4690 $as_echo "$CC" >&6; }
4692 { $as_echo "$as_me:$LINENO: result: no" >&5
4693 $as_echo "no" >&6; }
4697 test -n "$CC" && break
4700 if test -z "$CC"; then
4702 for ac_prog in cl.exe
4704 # Extract the first word of "$ac_prog", so it can be a program name with args.
4705 set dummy $ac_prog; ac_word=$2
4706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4709 $as_echo_n "(cached) " >&6
4711 if test -n "$ac_ct_CC"; then
4712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_ac_ct_CC="$ac_prog"
4722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4732 if test -n "$ac_ct_CC"; then
4733 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4734 $as_echo "$ac_ct_CC" >&6; }
4736 { $as_echo "$as_me:$LINENO: result: no" >&5
4737 $as_echo "no" >&6; }
4741 test -n "$ac_ct_CC" && break
4744 if test "x$ac_ct_CC" = x; then
4747 case $cross_compiling:$ac_tool_warned in
4749 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4751 ac_tool_warned=yes ;;
4760 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4762 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4763 See \`config.log' for more details." >&5
4764 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4765 See \`config.log' for more details." >&2;}
4766 { (exit 1); exit 1; }; }; }
4768 # Provide some information about the compiler.
4769 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4772 { (ac_try="$ac_compiler --version >&5"
4774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775 *) ac_try_echo=$ac_try;;
4777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4778 $as_echo "$ac_try_echo") >&5
4779 (eval "$ac_compiler --version >&5") 2>&5
4781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }
4783 { (ac_try="$ac_compiler -v >&5"
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4789 $as_echo "$ac_try_echo") >&5
4790 (eval "$ac_compiler -v >&5") 2>&5
4792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }
4794 { (ac_try="$ac_compiler -V >&5"
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4800 $as_echo "$ac_try_echo") >&5
4801 (eval "$ac_compiler -V >&5") 2>&5
4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }
4806 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4807 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4808 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4809 $as_echo_n "(cached) " >&6
4811 cat >conftest.$ac_ext <<_ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4829 rm -f conftest.$ac_objext
4830 if { (ac_try="$ac_compile"
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836 $as_echo "$ac_try_echo") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
4849 $as_echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4859 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4860 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4861 if test $ac_compiler_gnu = yes; then
4866 ac_test_CFLAGS=${CFLAGS+set}
4867 ac_save_CFLAGS=$CFLAGS
4868 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4869 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4870 if test "${ac_cv_prog_cc_g+set}" = set; then
4871 $as_echo_n "(cached) " >&6
4873 ac_save_c_werror_flag=$ac_c_werror_flag
4874 ac_c_werror_flag=yes
4877 cat >conftest.$ac_ext <<_ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4892 rm -f conftest.$ac_objext
4893 if { (ac_try="$ac_compile"
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4899 $as_echo "$ac_try_echo") >&5
4900 (eval "$ac_compile") 2>conftest.er1
4902 grep -v '^ *+' conftest.er1 >conftest.err
4904 cat conftest.err >&5
4905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } && {
4907 test -z "$ac_c_werror_flag" ||
4908 test ! -s conftest.err
4909 } && test -s conftest.$ac_objext; then
4912 $as_echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4916 cat >conftest.$ac_ext <<_ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4938 $as_echo "$ac_try_echo") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4941 grep -v '^ *+' conftest.er1 >conftest.err
4943 cat conftest.err >&5
4944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.$ac_objext; then
4951 $as_echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4954 ac_c_werror_flag=$ac_save_c_werror_flag
4956 cat >conftest.$ac_ext <<_ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4971 rm -f conftest.$ac_objext
4972 if { (ac_try="$ac_compile"
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4978 $as_echo "$ac_try_echo") >&5
4979 (eval "$ac_compile") 2>conftest.er1
4981 grep -v '^ *+' conftest.er1 >conftest.err
4983 cat conftest.err >&5
4984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && {
4986 test -z "$ac_c_werror_flag" ||
4987 test ! -s conftest.err
4988 } && test -s conftest.$ac_objext; then
4991 $as_echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 ac_c_werror_flag=$ac_save_c_werror_flag
5006 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5007 $as_echo "$ac_cv_prog_cc_g" >&6; }
5008 if test "$ac_test_CFLAGS" = set; then
5009 CFLAGS=$ac_save_CFLAGS
5010 elif test $ac_cv_prog_cc_g = yes; then
5011 if test "$GCC" = yes; then
5017 if test "$GCC" = yes; then
5023 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5024 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5025 if test "${ac_cv_prog_cc_c89+set}" = set; then
5026 $as_echo_n "(cached) " >&6
5028 ac_cv_prog_cc_c89=no
5030 cat >conftest.$ac_ext <<_ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5038 #include <sys/types.h>
5039 #include <sys/stat.h>
5040 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5041 struct buf { int x; };
5042 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5043 static char *e (p, i)
5049 static char *f (char * (*g) (char **, int), char **p, ...)
5054 s = g (p, va_arg (v,int));
5059 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5060 function prototypes and stuff, but not '\xHH' hex character constants.
5061 These don't provoke an error unfortunately, instead are silently treated
5062 as 'x'. The following induces an error, until -std is added to get
5063 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5064 array size at least. It's necessary to write '\x00'==0 to get something
5065 that's true only with -std. */
5066 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5068 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5069 inside strings and character constants. */
5071 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5073 int test (int i, double x);
5074 struct s1 {int (*f) (int a);};
5075 struct s2 {int (*f) (double a);};
5076 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5082 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5087 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5088 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5090 CC="$ac_save_CC $ac_arg"
5091 rm -f conftest.$ac_objext
5092 if { (ac_try="$ac_compile"
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5098 $as_echo "$ac_try_echo") >&5
5099 (eval "$ac_compile") 2>conftest.er1
5101 grep -v '^ *+' conftest.er1 >conftest.err
5103 cat conftest.err >&5
5104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } && {
5106 test -z "$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 } && test -s conftest.$ac_objext; then
5109 ac_cv_prog_cc_c89=$ac_arg
5111 $as_echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5117 rm -f core conftest.err conftest.$ac_objext
5118 test "x$ac_cv_prog_cc_c89" != "xno" && break
5120 rm -f conftest.$ac_ext
5125 case "x$ac_cv_prog_cc_c89" in
5127 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5128 $as_echo "none needed" >&6; } ;;
5130 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5131 $as_echo "unsupported" >&6; } ;;
5133 CC="$CC $ac_cv_prog_cc_c89"
5134 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5135 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5140 ac_cpp='$CPP $CPPFLAGS'
5141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145 depcc="$CC" am_compiler_list=
5147 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5148 $as_echo_n "checking dependency style of $depcc... " >&6; }
5149 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5150 $as_echo_n "(cached) " >&6
5152 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5153 # We make a subdir and do the tests there. Otherwise we can end up
5154 # making bogus files that we don't know about and never remove. For
5155 # instance it was reported that on HP-UX the gcc test will end up
5156 # making a dummy file named `D' -- because `-MD' means `put the output
5159 # Copy depcomp to subdir because otherwise we won't find it if we're
5160 # using a relative directory.
5161 cp "$am_depcomp" conftest.dir
5163 # We will build objects and dependencies in a subdirectory because
5164 # it helps to detect inapplicable dependency modes. For instance
5165 # both Tru64's cc and ICC support -MD to output dependencies as a
5166 # side effect of compilation, but ICC will put the dependencies in
5167 # the current directory while Tru64 will put them in the object
5171 am_cv_CC_dependencies_compiler_type=none
5172 if test "$am_compiler_list" = ""; then
5173 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5175 for depmode in $am_compiler_list; do
5176 # Setup a source with many dependencies, because some compilers
5177 # like to wrap large dependency lists on column 80 (with \), and
5178 # we should not choose a depcomp mode which is confused by this.
5180 # We need to recreate these files for each test, as the compiler may
5181 # overwrite some of them when testing with obscure command lines.
5182 # This happens at least with the AIX C compiler.
5184 for i in 1 2 3 4 5 6; do
5185 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5186 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5187 # Solaris 8's {/usr,}/bin/sh.
5188 touch sub/conftst$i.h
5190 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5194 # after this tag, mechanisms are not by side-effect, so they'll
5195 # only be used when explicitly requested
5196 if test "x$enable_dependency_tracking" = xyes; then
5204 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5205 # mode. It turns out that the SunPro C++ compiler does not properly
5206 # handle `-M -o', and we need to detect this.
5207 if depmode=$depmode \
5208 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5210 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5211 >/dev/null 2>conftest.err &&
5212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5215 # icc doesn't choke on unknown options, it will just issue warnings
5216 # or remarks (even with -Werror). So we grep stderr for any message
5217 # that says an option was ignored or not supported.
5218 # When given -MP, icc 7.0 and 7.1 complain thusly:
5219 # icc: Command line warning: ignoring option '-M'; no argument required
5220 # The diagnosis changed in icc 8.0:
5221 # icc: Command line remark: option '-MP' not supported
5222 if (grep 'ignoring option' conftest.err ||
5223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5224 am_cv_CC_dependencies_compiler_type=$depmode
5233 am_cv_CC_dependencies_compiler_type=none
5237 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5238 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5239 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5244 test "x$enable_dependency_tracking" != xno \
5245 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5247 am__fastdepCC_FALSE='#'
5249 am__fastdepCC_TRUE='#'
5250 am__fastdepCC_FALSE=
5255 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5258 ac_cpp='$OBJCPP $CPPFLAGS'
5259 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5262 if test -n "$ac_tool_prefix"; then
5263 for ac_prog in gcc objcc objc cc CC
5265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_OBJC+set}" = set; then
5270 $as_echo_n "(cached) " >&6
5272 if test -n "$OBJC"; then
5273 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 OBJC=$ac_cv_prog_OBJC
5293 if test -n "$OBJC"; then
5294 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
5295 $as_echo "$OBJC" >&6; }
5297 { $as_echo "$as_me:$LINENO: result: no" >&5
5298 $as_echo "no" >&6; }
5302 test -n "$OBJC" && break
5305 if test -z "$OBJC"; then
5307 for ac_prog in gcc objcc objc cc CC
5309 # Extract the first word of "$ac_prog", so it can be a program name with args.
5310 set dummy $ac_prog; ac_word=$2
5311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
5314 $as_echo_n "(cached) " >&6
5316 if test -n "$ac_ct_OBJC"; then
5317 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_ac_ct_OBJC="$ac_prog"
5327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5337 if test -n "$ac_ct_OBJC"; then
5338 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
5339 $as_echo "$ac_ct_OBJC" >&6; }
5341 { $as_echo "$as_me:$LINENO: result: no" >&5
5342 $as_echo "no" >&6; }
5346 test -n "$ac_ct_OBJC" && break
5349 if test "x$ac_ct_OBJC" = x; then
5352 case $cross_compiling:$ac_tool_warned in
5354 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5356 ac_tool_warned=yes ;;
5362 # Provide some information about the compiler.
5363 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
5366 { (ac_try="$ac_compiler --version >&5"
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5372 $as_echo "$ac_try_echo") >&5
5373 (eval "$ac_compiler --version >&5") 2>&5
5375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }
5377 { (ac_try="$ac_compiler -v >&5"
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5383 $as_echo "$ac_try_echo") >&5
5384 (eval "$ac_compiler -v >&5") 2>&5
5386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }
5388 { (ac_try="$ac_compiler -V >&5"
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5394 $as_echo "$ac_try_echo") >&5
5395 (eval "$ac_compiler -V >&5") 2>&5
5397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }
5400 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
5401 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5402 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
5403 $as_echo_n "(cached) " >&6
5405 cat >conftest.$ac_ext <<_ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5423 rm -f conftest.$ac_objext
5424 if { (ac_try="$ac_compile"
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5430 $as_echo "$ac_try_echo") >&5
5431 (eval "$ac_compile") 2>conftest.er1
5433 grep -v '^ *+' conftest.er1 >conftest.err
5435 cat conftest.err >&5
5436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } && {
5438 test -z "$ac_objc_werror_flag" ||
5439 test ! -s conftest.err
5440 } && test -s conftest.$ac_objext; then
5443 $as_echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5453 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
5454 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5455 if test $ac_compiler_gnu = yes; then
5460 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5461 ac_save_OBJCFLAGS=$OBJCFLAGS
5462 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
5463 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5464 if test "${ac_cv_prog_objc_g+set}" = set; then
5465 $as_echo_n "(cached) " >&6
5467 ac_save_objc_werror_flag=$ac_objc_werror_flag
5468 ac_objc_werror_flag=yes
5469 ac_cv_prog_objc_g=no
5471 cat >conftest.$ac_ext <<_ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5486 rm -f conftest.$ac_objext
5487 if { (ac_try="$ac_compile"
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5493 $as_echo "$ac_try_echo") >&5
5494 (eval "$ac_compile") 2>conftest.er1
5496 grep -v '^ *+' conftest.er1 >conftest.err
5498 cat conftest.err >&5
5499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } && {
5501 test -z "$ac_objc_werror_flag" ||
5502 test ! -s conftest.err
5503 } && test -s conftest.$ac_objext; then
5504 ac_cv_prog_objc_g=yes
5506 $as_echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5510 cat >conftest.$ac_ext <<_ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5532 $as_echo "$ac_try_echo") >&5
5533 (eval "$ac_compile") 2>conftest.er1
5535 grep -v '^ *+' conftest.er1 >conftest.err
5537 cat conftest.err >&5
5538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && {
5540 test -z "$ac_objc_werror_flag" ||
5541 test ! -s conftest.err
5542 } && test -s conftest.$ac_objext; then
5545 $as_echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5548 ac_objc_werror_flag=$ac_save_objc_werror_flag
5550 cat >conftest.$ac_ext <<_ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5565 rm -f conftest.$ac_objext
5566 if { (ac_try="$ac_compile"
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5572 $as_echo "$ac_try_echo") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5575 grep -v '^ *+' conftest.er1 >conftest.err
5577 cat conftest.err >&5
5578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && {
5580 test -z "$ac_objc_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
5583 ac_cv_prog_objc_g=yes
5585 $as_echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 ac_objc_werror_flag=$ac_save_objc_werror_flag
5600 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
5601 $as_echo "$ac_cv_prog_objc_g" >&6; }
5602 if test "$ac_test_OBJCFLAGS" = set; then
5603 OBJCFLAGS=$ac_save_OBJCFLAGS
5604 elif test $ac_cv_prog_objc_g = yes; then
5605 if test "$GOBJC" = yes; then
5611 if test "$GOBJC" = yes; then
5618 ac_cpp='$CPP $CPPFLAGS'
5619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5623 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5624 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5625 if test "${ac_cv_path_SED+set}" = set; then
5626 $as_echo_n "(cached) " >&6
5628 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5629 for ac_i in 1 2 3 4 5 6 7; do
5630 ac_script="$ac_script$as_nl$ac_script"
5632 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5633 $as_unset ac_script || ac_script=
5634 if test -z "$SED"; then
5635 ac_path_SED_found=false
5636 # Loop through the user's path and test for each of PROGNAME-LIST
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 test -z "$as_dir" && as_dir=.
5642 for ac_prog in sed gsed; do
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5645 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5646 # Check for GNU ac_path_SED and select it if it is found.
5647 # Check for GNU $ac_path_SED
5648 case `"$ac_path_SED" --version 2>&1` in
5650 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5653 $as_echo_n 0123456789 >"conftest.in"
5656 cat "conftest.in" "conftest.in" >"conftest.tmp"
5657 mv "conftest.tmp" "conftest.in"
5658 cp "conftest.in" "conftest.nl"
5659 $as_echo '' >> "conftest.nl"
5660 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5662 ac_count=`expr $ac_count + 1`
5663 if test $ac_count -gt ${ac_path_SED_max-0}; then
5664 # Best one so far, save it but keep looking for a better one
5665 ac_cv_path_SED="$ac_path_SED"
5666 ac_path_SED_max=$ac_count
5668 # 10*(2^10) chars as input seems more than enough
5669 test $ac_count -gt 10 && break
5671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5674 $ac_path_SED_found && break 3
5679 if test -z "$ac_cv_path_SED"; then
5680 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5681 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5682 { (exit 1); exit 1; }; }
5689 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5690 $as_echo "$ac_cv_path_SED" >&6; }
5691 SED="$ac_cv_path_SED"
5694 # By default we simply use the C compiler to build assembly code.
5696 test "${CCAS+set}" = set || CCAS=$CC
5697 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5702 ac_cpp='$CPP $CPPFLAGS'
5703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5707 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5708 # On Suns, sometimes $CPP names a directory.
5709 if test -n "$CPP" && test -d "$CPP"; then
5712 if test -z "$CPP"; then
5713 if test "${ac_cv_prog_CPP+set}" = set; then
5714 $as_echo_n "(cached) " >&6
5716 # Double quotes because CPP needs to be expanded
5717 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5720 for ac_c_preproc_warn_flag in '' yes
5722 # Use a header file that comes with gcc, so configuring glibc
5723 # with a fresh cross-compiler works.
5724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5725 # <limits.h> exists even on freestanding compilers.
5726 # On the NeXT, cc -E runs the code through the compiler's parser,
5727 # not just through cpp. "Syntax error" is here to catch this case.
5728 cat >conftest.$ac_ext <<_ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5735 # include <limits.h>
5737 # include <assert.h>
5741 if { (ac_try="$ac_cpp conftest.$ac_ext"
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5747 $as_echo "$ac_try_echo") >&5
5748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5750 grep -v '^ *+' conftest.er1 >conftest.err
5752 cat conftest.err >&5
5753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } >/dev/null && {
5755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5756 test ! -s conftest.err
5760 $as_echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5763 # Broken: fails on valid input.
5767 rm -f conftest.err conftest.$ac_ext
5769 # OK, works on sane cases. Now check whether nonexistent headers
5770 # can be detected and how.
5771 cat >conftest.$ac_ext <<_ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 #include <ac_nonexistent.h>
5779 if { (ac_try="$ac_cpp conftest.$ac_ext"
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5785 $as_echo "$ac_try_echo") >&5
5786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5788 grep -v '^ *+' conftest.er1 >conftest.err
5790 cat conftest.err >&5
5791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } >/dev/null && {
5793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5794 test ! -s conftest.err
5796 # Broken: success on invalid input.
5799 $as_echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5802 # Passes both tests.
5807 rm -f conftest.err conftest.$ac_ext
5810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5811 rm -f conftest.err conftest.$ac_ext
5812 if $ac_preproc_ok; then
5824 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5825 $as_echo "$CPP" >&6; }
5827 for ac_c_preproc_warn_flag in '' yes
5829 # Use a header file that comes with gcc, so configuring glibc
5830 # with a fresh cross-compiler works.
5831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832 # <limits.h> exists even on freestanding compilers.
5833 # On the NeXT, cc -E runs the code through the compiler's parser,
5834 # not just through cpp. "Syntax error" is here to catch this case.
5835 cat >conftest.$ac_ext <<_ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5842 # include <limits.h>
5844 # include <assert.h>
5848 if { (ac_try="$ac_cpp conftest.$ac_ext"
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5854 $as_echo "$ac_try_echo") >&5
5855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5857 grep -v '^ *+' conftest.er1 >conftest.err
5859 cat conftest.err >&5
5860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } >/dev/null && {
5862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5867 $as_echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 # Broken: fails on valid input.
5874 rm -f conftest.err conftest.$ac_ext
5876 # OK, works on sane cases. Now check whether nonexistent headers
5877 # can be detected and how.
5878 cat >conftest.$ac_ext <<_ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 #include <ac_nonexistent.h>
5886 if { (ac_try="$ac_cpp conftest.$ac_ext"
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5892 $as_echo "$ac_try_echo") >&5
5893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5895 grep -v '^ *+' conftest.er1 >conftest.err
5897 cat conftest.err >&5
5898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } >/dev/null && {
5900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5903 # Broken: success on invalid input.
5906 $as_echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5909 # Passes both tests.
5914 rm -f conftest.err conftest.$ac_ext
5917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5918 rm -f conftest.err conftest.$ac_ext
5919 if $ac_preproc_ok; then
5922 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5924 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5925 See \`config.log' for more details." >&5
5926 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5927 See \`config.log' for more details." >&2;}
5928 { (exit 1); exit 1; }; }; }
5932 ac_cpp='$CPP $CPPFLAGS'
5933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5938 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5939 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5940 if test "${ac_cv_path_GREP+set}" = set; then
5941 $as_echo_n "(cached) " >&6
5943 if test -z "$GREP"; then
5944 ac_path_GREP_found=false
5945 # Loop through the user's path and test for each of PROGNAME-LIST
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5950 test -z "$as_dir" && as_dir=.
5951 for ac_prog in grep ggrep; do
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5954 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5955 # Check for GNU ac_path_GREP and select it if it is found.
5956 # Check for GNU $ac_path_GREP
5957 case `"$ac_path_GREP" --version 2>&1` in
5959 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5962 $as_echo_n 0123456789 >"conftest.in"
5965 cat "conftest.in" "conftest.in" >"conftest.tmp"
5966 mv "conftest.tmp" "conftest.in"
5967 cp "conftest.in" "conftest.nl"
5968 $as_echo 'GREP' >> "conftest.nl"
5969 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5971 ac_count=`expr $ac_count + 1`
5972 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5973 # Best one so far, save it but keep looking for a better one
5974 ac_cv_path_GREP="$ac_path_GREP"
5975 ac_path_GREP_max=$ac_count
5977 # 10*(2^10) chars as input seems more than enough
5978 test $ac_count -gt 10 && break
5980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5983 $ac_path_GREP_found && break 3
5988 if test -z "$ac_cv_path_GREP"; then
5989 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5990 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5991 { (exit 1); exit 1; }; }
5994 ac_cv_path_GREP=$GREP
5998 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5999 $as_echo "$ac_cv_path_GREP" >&6; }
6000 GREP="$ac_cv_path_GREP"
6003 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6004 $as_echo_n "checking for egrep... " >&6; }
6005 if test "${ac_cv_path_EGREP+set}" = set; then
6006 $as_echo_n "(cached) " >&6
6008 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6009 then ac_cv_path_EGREP="$GREP -E"
6011 if test -z "$EGREP"; then
6012 ac_path_EGREP_found=false
6013 # Loop through the user's path and test for each of PROGNAME-LIST
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6018 test -z "$as_dir" && as_dir=.
6019 for ac_prog in egrep; do
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6022 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6023 # Check for GNU ac_path_EGREP and select it if it is found.
6024 # Check for GNU $ac_path_EGREP
6025 case `"$ac_path_EGREP" --version 2>&1` in
6027 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6030 $as_echo_n 0123456789 >"conftest.in"
6033 cat "conftest.in" "conftest.in" >"conftest.tmp"
6034 mv "conftest.tmp" "conftest.in"
6035 cp "conftest.in" "conftest.nl"
6036 $as_echo 'EGREP' >> "conftest.nl"
6037 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6038 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6039 ac_count=`expr $ac_count + 1`
6040 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6041 # Best one so far, save it but keep looking for a better one
6042 ac_cv_path_EGREP="$ac_path_EGREP"
6043 ac_path_EGREP_max=$ac_count
6045 # 10*(2^10) chars as input seems more than enough
6046 test $ac_count -gt 10 && break
6048 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6051 $ac_path_EGREP_found && break 3
6056 if test -z "$ac_cv_path_EGREP"; then
6057 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6058 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6059 { (exit 1); exit 1; }; }
6062 ac_cv_path_EGREP=$EGREP
6067 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6068 $as_echo "$ac_cv_path_EGREP" >&6; }
6069 EGREP="$ac_cv_path_EGREP"
6072 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6073 $as_echo_n "checking for ANSI C header files... " >&6; }
6074 if test "${ac_cv_header_stdc+set}" = set; then
6075 $as_echo_n "(cached) " >&6
6077 cat >conftest.$ac_ext <<_ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6103 $as_echo "$ac_try_echo") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6106 grep -v '^ *+' conftest.er1 >conftest.err
6108 cat conftest.err >&5
6109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
6114 ac_cv_header_stdc=yes
6116 $as_echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 ac_cv_header_stdc=no
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 if test $ac_cv_header_stdc = yes; then
6125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6126 cat >conftest.$ac_ext <<_ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6136 $EGREP "memchr" >/dev/null 2>&1; then
6139 ac_cv_header_stdc=no
6145 if test $ac_cv_header_stdc = yes; then
6146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6157 $EGREP "free" >/dev/null 2>&1; then
6160 ac_cv_header_stdc=no
6166 if test $ac_cv_header_stdc = yes; then
6167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6168 if test "$cross_compiling" = yes; then
6171 cat >conftest.$ac_ext <<_ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6179 #if ((' ' & 0x0FF) == 0x020)
6180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6183 # define ISLOWER(c) \
6184 (('a' <= (c) && (c) <= 'i') \
6185 || ('j' <= (c) && (c) <= 'r') \
6186 || ('s' <= (c) && (c) <= 'z'))
6187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6195 for (i = 0; i < 256; i++)
6196 if (XOR (islower (i), ISLOWER (i))
6197 || toupper (i) != TOUPPER (i))
6202 rm -f conftest$ac_exeext
6203 if { (ac_try="$ac_link"
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209 $as_echo "$ac_try_echo") >&5
6210 (eval "$ac_link") 2>&5
6212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6214 { (case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219 $as_echo "$ac_try_echo") >&5
6220 (eval "$ac_try") 2>&5
6222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6226 $as_echo "$as_me: program exited with status $ac_status" >&5
6227 $as_echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6231 ac_cv_header_stdc=no
6233 rm -rf conftest.dSYM
6234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6240 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6241 $as_echo "$ac_cv_header_stdc" >&6; }
6242 if test $ac_cv_header_stdc = yes; then
6244 cat >>confdefs.h <<\_ACEOF
6245 #define STDC_HEADERS 1
6250 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6260 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6261 inttypes.h stdint.h unistd.h
6263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6265 $as_echo_n "checking for $ac_header... " >&6; }
6266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6267 $as_echo_n "(cached) " >&6
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 $ac_includes_default
6277 #include <$ac_header>
6279 rm -f conftest.$ac_objext
6280 if { (ac_try="$ac_compile"
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6286 $as_echo "$ac_try_echo") >&5
6287 (eval "$ac_compile") 2>conftest.er1
6289 grep -v '^ *+' conftest.er1 >conftest.err
6291 cat conftest.err >&5
6292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } && {
6294 test -z "$ac_c_werror_flag" ||
6295 test ! -s conftest.err
6296 } && test -s conftest.$ac_objext; then
6297 eval "$as_ac_Header=yes"
6299 $as_echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 eval "$as_ac_Header=no"
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 ac_res=`eval 'as_val=${'$as_ac_Header'}
6308 $as_echo "$as_val"'`
6309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6310 $as_echo "$ac_res" >&6; }
6311 as_val=`eval 'as_val=${'$as_ac_Header'}
6312 $as_echo "$as_val"'`
6313 if test "x$as_val" = x""yes; then
6314 cat >>confdefs.h <<_ACEOF
6315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6323 # The cast to long int works around a bug in the HP C Compiler
6324 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6325 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6326 # This bug is HP SR number 8606223364.
6327 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
6328 $as_echo_n "checking size of void *... " >&6; }
6329 if test "${ac_cv_sizeof_void_p+set}" = set; then
6330 $as_echo_n "(cached) " >&6
6332 if test "$cross_compiling" = yes; then
6333 # Depending upon the size, compute the lo and hi bounds.
6334 cat >conftest.$ac_ext <<_ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 $ac_includes_default
6344 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6358 $as_echo "$ac_try_echo") >&5
6359 (eval "$ac_compile") 2>conftest.er1
6361 grep -v '^ *+' conftest.er1 >conftest.err
6363 cat conftest.err >&5
6364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } && {
6366 test -z "$ac_c_werror_flag" ||
6367 test ! -s conftest.err
6368 } && test -s conftest.$ac_objext; then
6371 cat >conftest.$ac_ext <<_ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 $ac_includes_default
6381 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6388 rm -f conftest.$ac_objext
6389 if { (ac_try="$ac_compile"
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6395 $as_echo "$ac_try_echo") >&5
6396 (eval "$ac_compile") 2>conftest.er1
6398 grep -v '^ *+' conftest.er1 >conftest.err
6400 cat conftest.err >&5
6401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } && {
6403 test -z "$ac_c_werror_flag" ||
6404 test ! -s conftest.err
6405 } && test -s conftest.$ac_objext; then
6406 ac_hi=$ac_mid; break
6408 $as_echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6411 ac_lo=`expr $ac_mid + 1`
6412 if test $ac_lo -le $ac_mid; then
6416 ac_mid=`expr 2 '*' $ac_mid + 1`
6419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422 $as_echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 cat >conftest.$ac_ext <<_ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 $ac_includes_default
6435 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
6442 rm -f conftest.$ac_objext
6443 if { (ac_try="$ac_compile"
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6449 $as_echo "$ac_try_echo") >&5
6450 (eval "$ac_compile") 2>conftest.er1
6452 grep -v '^ *+' conftest.er1 >conftest.err
6454 cat conftest.err >&5
6455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } && {
6457 test -z "$ac_c_werror_flag" ||
6458 test ! -s conftest.err
6459 } && test -s conftest.$ac_objext; then
6462 cat >conftest.$ac_ext <<_ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 $ac_includes_default
6472 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6479 rm -f conftest.$ac_objext
6480 if { (ac_try="$ac_compile"
6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6486 $as_echo "$ac_try_echo") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6489 grep -v '^ *+' conftest.er1 >conftest.err
6491 cat conftest.err >&5
6492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 ac_lo=$ac_mid; break
6499 $as_echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 ac_hi=`expr '(' $ac_mid ')' - 1`
6503 if test $ac_mid -le $ac_hi; then
6507 ac_mid=`expr 2 '*' $ac_mid`
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513 $as_echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 # Binary search between lo and hi bounds.
6524 while test "x$ac_lo" != "x$ac_hi"; do
6525 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6526 cat >conftest.$ac_ext <<_ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 $ac_includes_default
6536 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6543 rm -f conftest.$ac_objext
6544 if { (ac_try="$ac_compile"
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6550 $as_echo "$ac_try_echo") >&5
6551 (eval "$ac_compile") 2>conftest.er1
6553 grep -v '^ *+' conftest.er1 >conftest.err
6555 cat conftest.err >&5
6556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } && {
6558 test -z "$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest.$ac_objext; then
6563 $as_echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6566 ac_lo=`expr '(' $ac_mid ')' + 1`
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6573 '') if test "$ac_cv_type_void_p" = yes; then
6574 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6576 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6577 See \`config.log' for more details." >&5
6578 $as_echo "$as_me: error: cannot compute sizeof (void *)
6579 See \`config.log' for more details." >&2;}
6580 { (exit 77); exit 77; }; }; }
6582 ac_cv_sizeof_void_p=0
6586 cat >conftest.$ac_ext <<_ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 $ac_includes_default
6593 static long int longval () { return (long int) (sizeof (void *)); }
6594 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6601 FILE *f = fopen ("conftest.val", "w");
6604 if (((long int) (sizeof (void *))) < 0)
6606 long int i = longval ();
6607 if (i != ((long int) (sizeof (void *))))
6609 fprintf (f, "%ld", i);
6613 unsigned long int i = ulongval ();
6614 if (i != ((long int) (sizeof (void *))))
6616 fprintf (f, "%lu", i);
6618 /* Do not output a trailing newline, as this causes \r\n confusion
6619 on some platforms. */
6620 return ferror (f) || fclose (f) != 0;
6626 rm -f conftest$ac_exeext
6627 if { (ac_try="$ac_link"
6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630 *) ac_try_echo=$ac_try;;
6632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6633 $as_echo "$ac_try_echo") >&5
6634 (eval "$ac_link") 2>&5
6636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6638 { (case "(($ac_try" in
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6643 $as_echo "$ac_try_echo") >&5
6644 (eval "$ac_try") 2>&5
6646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_sizeof_void_p=`cat conftest.val`
6650 $as_echo "$as_me: program exited with status $ac_status" >&5
6651 $as_echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6655 if test "$ac_cv_type_void_p" = yes; then
6656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6658 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6659 See \`config.log' for more details." >&5
6660 $as_echo "$as_me: error: cannot compute sizeof (void *)
6661 See \`config.log' for more details." >&2;}
6662 { (exit 77); exit 77; }; }; }
6664 ac_cv_sizeof_void_p=0
6667 rm -rf conftest.dSYM
6668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6672 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6673 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6677 cat >>confdefs.h <<_ACEOF
6678 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6682 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6683 $as_echo_n "checking for ANSI C header files... " >&6; }
6684 if test "${ac_cv_header_stdc+set}" = set; then
6685 $as_echo_n "(cached) " >&6
6687 cat >conftest.$ac_ext <<_ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6706 rm -f conftest.$ac_objext
6707 if { (ac_try="$ac_compile"
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6713 $as_echo "$ac_try_echo") >&5
6714 (eval "$ac_compile") 2>conftest.er1
6716 grep -v '^ *+' conftest.er1 >conftest.err
6718 cat conftest.err >&5
6719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && {
6721 test -z "$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest.$ac_objext; then
6724 ac_cv_header_stdc=yes
6726 $as_echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 ac_cv_header_stdc=no
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 if test $ac_cv_header_stdc = yes; then
6735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6736 cat >conftest.$ac_ext <<_ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6746 $EGREP "memchr" >/dev/null 2>&1; then
6749 ac_cv_header_stdc=no
6755 if test $ac_cv_header_stdc = yes; then
6756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6757 cat >conftest.$ac_ext <<_ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6767 $EGREP "free" >/dev/null 2>&1; then
6770 ac_cv_header_stdc=no
6776 if test $ac_cv_header_stdc = yes; then
6777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6778 if test "$cross_compiling" = yes; then
6781 cat >conftest.$ac_ext <<_ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6789 #if ((' ' & 0x0FF) == 0x020)
6790 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6791 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6793 # define ISLOWER(c) \
6794 (('a' <= (c) && (c) <= 'i') \
6795 || ('j' <= (c) && (c) <= 'r') \
6796 || ('s' <= (c) && (c) <= 'z'))
6797 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6800 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6805 for (i = 0; i < 256; i++)
6806 if (XOR (islower (i), ISLOWER (i))
6807 || toupper (i) != TOUPPER (i))
6812 rm -f conftest$ac_exeext
6813 if { (ac_try="$ac_link"
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_link") 2>&5
6822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6824 { (case "(($ac_try" in
6825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6826 *) ac_try_echo=$ac_try;;
6828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6829 $as_echo "$ac_try_echo") >&5
6830 (eval "$ac_try") 2>&5
6832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; }; then
6836 $as_echo "$as_me: program exited with status $ac_status" >&5
6837 $as_echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6841 ac_cv_header_stdc=no
6843 rm -rf conftest.dSYM
6844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6850 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6851 $as_echo "$ac_cv_header_stdc" >&6; }
6852 if test $ac_cv_header_stdc = yes; then
6854 cat >>confdefs.h <<\_ACEOF
6855 #define STDC_HEADERS 1
6860 # Make sure we can run config.sub.
6861 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6862 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6863 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6864 { (exit 1); exit 1; }; }
6866 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6867 $as_echo_n "checking build system type... " >&6; }
6868 if test "${ac_cv_build+set}" = set; then
6869 $as_echo_n "(cached) " >&6
6871 ac_build_alias=$build_alias
6872 test "x$ac_build_alias" = x &&
6873 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6874 test "x$ac_build_alias" = x &&
6875 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6876 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6877 { (exit 1); exit 1; }; }
6878 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6879 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6880 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6881 { (exit 1); exit 1; }; }
6884 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6885 $as_echo "$ac_cv_build" >&6; }
6886 case $ac_cv_build in
6888 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6889 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6890 { (exit 1); exit 1; }; };;
6893 ac_save_IFS=$IFS; IFS='-'
6899 # Remember, the first character of IFS is used to create $*,
6900 # except with old shells:
6903 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6906 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6907 $as_echo_n "checking host system type... " >&6; }
6908 if test "${ac_cv_host+set}" = set; then
6909 $as_echo_n "(cached) " >&6
6911 if test "x$host_alias" = x; then
6912 ac_cv_host=$ac_cv_build
6914 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6915 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6916 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6917 { (exit 1); exit 1; }; }
6921 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6922 $as_echo "$ac_cv_host" >&6; }
6925 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6926 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6927 { (exit 1); exit 1; }; };;
6930 ac_save_IFS=$IFS; IFS='-'
6936 # Remember, the first character of IFS is used to create $*,
6937 # except with old shells:
6940 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6945 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6947 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6948 $as_echo_n "checking dependency style of $depcc... " >&6; }
6949 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
6950 $as_echo_n "(cached) " >&6
6952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6953 # We make a subdir and do the tests there. Otherwise we can end up
6954 # making bogus files that we don't know about and never remove. For
6955 # instance it was reported that on HP-UX the gcc test will end up
6956 # making a dummy file named `D' -- because `-MD' means `put the output
6959 # Copy depcomp to subdir because otherwise we won't find it if we're
6960 # using a relative directory.
6961 cp "$am_depcomp" conftest.dir
6963 # We will build objects and dependencies in a subdirectory because
6964 # it helps to detect inapplicable dependency modes. For instance
6965 # both Tru64's cc and ICC support -MD to output dependencies as a
6966 # side effect of compilation, but ICC will put the dependencies in
6967 # the current directory while Tru64 will put them in the object
6971 am_cv_OBJC_dependencies_compiler_type=none
6972 if test "$am_compiler_list" = ""; then
6973 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6975 for depmode in $am_compiler_list; do
6976 # Setup a source with many dependencies, because some compilers
6977 # like to wrap large dependency lists on column 80 (with \), and
6978 # we should not choose a depcomp mode which is confused by this.
6980 # We need to recreate these files for each test, as the compiler may
6981 # overwrite some of them when testing with obscure command lines.
6982 # This happens at least with the AIX C compiler.
6984 for i in 1 2 3 4 5 6; do
6985 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6986 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6987 # Solaris 8's {/usr,}/bin/sh.
6988 touch sub/conftst$i.h
6990 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6994 # after this tag, mechanisms are not by side-effect, so they'll
6995 # only be used when explicitly requested
6996 if test "x$enable_dependency_tracking" = xyes; then
7004 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7005 # mode. It turns out that the SunPro C++ compiler does not properly
7006 # handle `-M -o', and we need to detect this.
7007 if depmode=$depmode \
7008 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7009 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7010 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7011 >/dev/null 2>conftest.err &&
7012 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7013 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7014 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7015 # icc doesn't choke on unknown options, it will just issue warnings
7016 # or remarks (even with -Werror). So we grep stderr for any message
7017 # that says an option was ignored or not supported.
7018 # When given -MP, icc 7.0 and 7.1 complain thusly:
7019 # icc: Command line warning: ignoring option '-M'; no argument required
7020 # The diagnosis changed in icc 8.0:
7021 # icc: Command line remark: option '-MP' not supported
7022 if (grep 'ignoring option' conftest.err ||
7023 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7024 am_cv_OBJC_dependencies_compiler_type=$depmode
7033 am_cv_OBJC_dependencies_compiler_type=none
7037 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
7038 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
7039 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
7044 test "x$enable_dependency_tracking" != xno \
7045 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
7046 am__fastdepOBJC_TRUE=
7047 am__fastdepOBJC_FALSE='#'
7049 am__fastdepOBJC_TRUE='#'
7050 am__fastdepOBJC_FALSE=
7055 # Extract the first word of "pod2man", so it can be a program name with args.
7056 set dummy pod2man; ac_word=$2
7057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if test "${ac_cv_path_POD2MAN+set}" = set; then
7060 $as_echo_n "(cached) " >&6
7064 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 POD2MAN=$ac_cv_path_POD2MAN
7086 if test -n "$POD2MAN"; then
7087 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
7088 $as_echo "$POD2MAN" >&6; }
7090 { $as_echo "$as_me:$LINENO: result: no" >&5
7091 $as_echo "no" >&6; }
7095 # Extract the first word of "pod2html", so it can be a program name with args.
7096 set dummy pod2html; ac_word=$2
7097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if test "${ac_cv_path_POD2HTML+set}" = set; then
7100 $as_echo_n "(cached) " >&6
7104 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 POD2HTML=$ac_cv_path_POD2HTML
7126 if test -n "$POD2HTML"; then
7127 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
7128 $as_echo "$POD2HTML" >&6; }
7130 { $as_echo "$as_me:$LINENO: result: no" >&5
7131 $as_echo "no" >&6; }
7137 # Check whether --enable-strict-warn was given.
7138 if test "${enable_strict_warn+set}" = set; then
7139 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
7140 enable_strictwarn=yes
7144 # Check whether --enable-translator was given.
7145 if test "${enable_translator+set}" = set; then
7146 enableval=$enable_translator; true
7148 enable_translator=yes
7151 # Check whether --enable-optimized was given.
7152 if test "${enable_optimized+set}" = set; then
7153 enableval=$enable_optimized; true
7155 enable_optimized=yes
7158 # Check whether --enable-shared was given.
7159 if test "${enable_shared+set}" = set; then
7160 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
7165 # Check whether --enable-profiled was given.
7166 if test "${enable_profiled+set}" = set; then
7167 enableval=$enable_profiled; if test "$enableval" == "yes"; then
7168 enable_profiled=yes;
7172 # Check whether --enable-trace was given.
7173 if test "${enable_trace+set}" = set; then
7174 enableval=$enable_trace; if test "$enableval" == "yes"; then
7176 cat >>confdefs.h <<\_ACEOF
7177 #define ENABLE_TRACE_IO 1
7183 # Check whether --enable-watch was given.
7184 if test "${enable_watch+set}" = set; then
7185 enableval=$enable_watch; if test "$enableval" == "yes"; then
7187 cat >>confdefs.h <<\_ACEOF
7188 #define ENABLE_WATCH 1
7194 # Check whether --enable-sh4stats was given.
7195 if test "${enable_sh4stats+set}" = set; then
7196 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
7198 cat >>confdefs.h <<\_ACEOF
7199 #define ENABLE_SH4STATS 1
7206 # Check whether --with-osmesa was given.
7207 if test "${with_osmesa+set}" = set; then
7208 withval=$with_osmesa;
7214 # Check whether --with-gtk was given.
7215 if test "${with_gtk+set}" = set; then
7216 withval=$with_gtk; with_gtk=yes
7222 # Check whether --with-esd was given.
7223 if test "${with_esd+set}" = set; then
7228 # Check whether --with-pulse was given.
7229 if test "${with_pulse+set}" = set; then
7230 withval=$with_pulse;
7234 # Check whether --with-sdl was given.
7235 if test "${with_sdl+set}" = set; then
7245 ac_cpp='$OBJCPP $CPPFLAGS'
7246 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7249 if test -n "$ac_tool_prefix"; then
7250 for ac_prog in gcc objcc objc cc CC
7252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7254 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if test "${ac_cv_prog_OBJC+set}" = set; then
7257 $as_echo_n "(cached) " >&6
7259 if test -n "$OBJC"; then
7260 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7269 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 OBJC=$ac_cv_prog_OBJC
7280 if test -n "$OBJC"; then
7281 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
7282 $as_echo "$OBJC" >&6; }
7284 { $as_echo "$as_me:$LINENO: result: no" >&5
7285 $as_echo "no" >&6; }
7289 test -n "$OBJC" && break
7292 if test -z "$OBJC"; then
7294 for ac_prog in gcc objcc objc cc CC
7296 # Extract the first word of "$ac_prog", so it can be a program name with args.
7297 set dummy $ac_prog; ac_word=$2
7298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7301 $as_echo_n "(cached) " >&6
7303 if test -n "$ac_ct_OBJC"; then
7304 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7313 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7314 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7324 if test -n "$ac_ct_OBJC"; then
7325 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7326 $as_echo "$ac_ct_OBJC" >&6; }
7328 { $as_echo "$as_me:$LINENO: result: no" >&5
7329 $as_echo "no" >&6; }
7333 test -n "$ac_ct_OBJC" && break
7336 if test "x$ac_ct_OBJC" = x; then
7339 case $cross_compiling:$ac_tool_warned in
7341 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343 ac_tool_warned=yes ;;
7349 # Provide some information about the compiler.
7350 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7353 { (ac_try="$ac_compiler --version >&5"
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7359 $as_echo "$ac_try_echo") >&5
7360 (eval "$ac_compiler --version >&5") 2>&5
7362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }
7364 { (ac_try="$ac_compiler -v >&5"
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7370 $as_echo "$ac_try_echo") >&5
7371 (eval "$ac_compiler -v >&5") 2>&5
7373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }
7375 { (ac_try="$ac_compiler -V >&5"
7377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7381 $as_echo "$ac_try_echo") >&5
7382 (eval "$ac_compiler -V >&5") 2>&5
7384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }
7387 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7388 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
7389 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7390 $as_echo_n "(cached) " >&6
7392 cat >conftest.$ac_ext <<_ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7410 rm -f conftest.$ac_objext
7411 if { (ac_try="$ac_compile"
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7417 $as_echo "$ac_try_echo") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7420 grep -v '^ *+' conftest.er1 >conftest.err
7422 cat conftest.err >&5
7423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_objc_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7430 $as_echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7440 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7441 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
7442 if test $ac_compiler_gnu = yes; then
7447 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7448 ac_save_OBJCFLAGS=$OBJCFLAGS
7449 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7450 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
7451 if test "${ac_cv_prog_objc_g+set}" = set; then
7452 $as_echo_n "(cached) " >&6
7454 ac_save_objc_werror_flag=$ac_objc_werror_flag
7455 ac_objc_werror_flag=yes
7456 ac_cv_prog_objc_g=no
7458 cat >conftest.$ac_ext <<_ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7473 rm -f conftest.$ac_objext
7474 if { (ac_try="$ac_compile"
7476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7477 *) ac_try_echo=$ac_try;;
7479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7480 $as_echo "$ac_try_echo") >&5
7481 (eval "$ac_compile") 2>conftest.er1
7483 grep -v '^ *+' conftest.er1 >conftest.err
7485 cat conftest.err >&5
7486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } && {
7488 test -z "$ac_objc_werror_flag" ||
7489 test ! -s conftest.err
7490 } && test -s conftest.$ac_objext; then
7491 ac_cv_prog_objc_g=yes
7493 $as_echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7497 cat >conftest.$ac_ext <<_ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7512 rm -f conftest.$ac_objext
7513 if { (ac_try="$ac_compile"
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7519 $as_echo "$ac_try_echo") >&5
7520 (eval "$ac_compile") 2>conftest.er1
7522 grep -v '^ *+' conftest.er1 >conftest.err
7524 cat conftest.err >&5
7525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } && {
7527 test -z "$ac_objc_werror_flag" ||
7528 test ! -s conftest.err
7529 } && test -s conftest.$ac_objext; then
7532 $as_echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 ac_objc_werror_flag=$ac_save_objc_werror_flag
7537 cat >conftest.$ac_ext <<_ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7559 $as_echo "$ac_try_echo") >&5
7560 (eval "$ac_compile") 2>conftest.er1
7562 grep -v '^ *+' conftest.er1 >conftest.err
7564 cat conftest.err >&5
7565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } && {
7567 test -z "$ac_objc_werror_flag" ||
7568 test ! -s conftest.err
7569 } && test -s conftest.$ac_objext; then
7570 ac_cv_prog_objc_g=yes
7572 $as_echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 ac_objc_werror_flag=$ac_save_objc_werror_flag
7587 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7588 $as_echo "$ac_cv_prog_objc_g" >&6; }
7589 if test "$ac_test_OBJCFLAGS" = set; then
7590 OBJCFLAGS=$ac_save_OBJCFLAGS
7591 elif test $ac_cv_prog_objc_g = yes; then
7592 if test "$GOBJC" = yes; then
7598 if test "$GOBJC" = yes; then
7605 ac_cpp='$CPP $CPPFLAGS'
7606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7610 { $as_echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
7611 $as_echo_n "checking for a working Objective-C compiler... " >&6; }
7613 ac_cpp='$OBJCPP $CPPFLAGS'
7614 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7615 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7616 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7617 cat >conftest.$ac_ext <<_ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7632 rm -f conftest.$ac_objext
7633 if { (ac_try="$ac_compile"
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7639 $as_echo "$ac_try_echo") >&5
7640 (eval "$ac_compile") 2>conftest.er1
7642 grep -v '^ *+' conftest.er1 >conftest.err
7644 cat conftest.err >&5
7645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } && {
7647 test -z "$ac_objc_werror_flag" ||
7648 test ! -s conftest.err
7649 } && test -s conftest.$ac_objext; then
7650 { $as_echo "$as_me:$LINENO: result: yes" >&5
7651 $as_echo "yes" >&6; }
7653 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7654 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7655 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7656 $as_echo_n "(cached) " >&6
7658 cat >conftest.$ac_ext <<_ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7664 $ac_includes_default
7666 #include <Cocoa/Cocoa.h>
7668 rm -f conftest.$ac_objext
7669 if { (ac_try="$ac_compile"
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7675 $as_echo "$ac_try_echo") >&5
7676 (eval "$ac_compile") 2>conftest.er1
7678 grep -v '^ *+' conftest.er1 >conftest.err
7680 cat conftest.err >&5
7681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } && {
7683 test -z "$ac_objc_werror_flag" ||
7684 test ! -s conftest.err
7685 } && test -s conftest.$ac_objext; then
7686 ac_cv_header_Cocoa_Cocoa_h=yes
7688 $as_echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7691 ac_cv_header_Cocoa_Cocoa_h=no
7694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7697 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7698 if test "x$ac_cv_header_Cocoa_Cocoa_h" = x""yes; then
7702 LIBS="$LIBS -framework AppKit -framework Carbon"
7703 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"
7704 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
7705 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
7707 cat >>confdefs.h <<\_ACEOF
7708 #define HAVE_COCOA 1
7712 cat >>confdefs.h <<\_ACEOF
7713 #define APPLE_BUILD 1
7716 if test "x$with_gtk" = "xx11"; then
7725 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
7726 $as_echo_n "checking OBJC version... " >&6; }
7727 if test -n "$OBJC"; then
7728 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
7729 if test -n "$_GOBJC_VERSION"; then
7730 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7731 $as_echo "GCC" >&6; }
7732 OBJCOPT="-O2 -msse2 -mfpmath=sse"
7733 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
7735 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7736 $as_echo "Unknown" >&6; }
7740 { $as_echo "$as_me:$LINENO: result: None" >&5
7741 $as_echo "None" >&6; }
7747 $as_echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 { $as_echo "$as_me:$LINENO: result: No" >&5
7751 $as_echo "No" >&6; }
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
7757 ac_cpp='$CPP $CPPFLAGS'
7758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7766 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
7774 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
7776 cat >>confdefs.h <<\_ACEOF
7777 #define OSX_BUNDLE 1
7782 CFLAGS="-g -fexceptions"
7783 OBJCFLAGS="-g -fexceptions"
7785 cat >>confdefs.h <<\_ACEOF
7786 #define HAVE_EXCEPTIONS 1
7792 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
7793 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
7794 { $as_echo "$as_me:$LINENO: checking CC version" >&5
7795 $as_echo_n "checking CC version... " >&6; }
7796 if test -n "$_ICC_VERSION"; then
7797 { $as_echo "$as_me:$LINENO: result: ICC" >&5
7798 $as_echo "ICC" >&6; }
7799 CCOPT="$CFLAGS -fast"
7800 CFLAGS="$CFLAGS -fno-strict-aliasing"
7801 elif test -n "$_GCC_VERSION"; then
7802 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7803 $as_echo "GCC" >&6; }
7804 CCOPT="-O2 -msse2 -mfpmath=sse"
7805 CFLAGS="$CFLAGS -fno-strict-aliasing"
7807 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7808 $as_echo "Unknown" >&6; }
7813 if test "x$enable_optimized" = "xyes"; then
7814 CFLAGS="$CFLAGS $CCOPT"
7815 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
7816 if test "x$enable_profiled" != "xyes"; then
7817 CFLAGS="$CFLAGS -fomit-frame-pointer"
7818 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
7821 CFLAGS="$CFLAGS -g3"
7822 OBJCFLAGS="$OBJCFLAGS -g3"
7825 if test "x$enable_profiled" = "xyes"; then
7826 CFLAGS="$CFLAGS -pg"
7827 LDFLAGS="$LDFLAGS -pg";
7828 OBJCFLAGS="$OBJCFLAGS -pg";
7831 if test "x$enable_strictwarn" = "xyes"; then
7832 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
7833 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
7836 if test "x$enable_shared" != "xno"; then
7838 cat >>confdefs.h <<\_ACEOF
7839 #define ENABLE_SHARED 1
7842 if test "x$APPLE_BUILD" = "xyes"; then
7844 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
7847 PLUGINLDFLAGS="-shared"
7849 PLUGINCFLAGS="-fPIC"
7851 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7852 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
7853 $as_echo_n "checking for dlfcn.h... " >&6; }
7854 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7855 $as_echo_n "(cached) " >&6
7857 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
7858 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
7860 # Is the header compilable?
7861 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
7862 $as_echo_n "checking dlfcn.h usability... " >&6; }
7863 cat >conftest.$ac_ext <<_ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7869 $ac_includes_default
7872 rm -f conftest.$ac_objext
7873 if { (ac_try="$ac_compile"
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7879 $as_echo "$ac_try_echo") >&5
7880 (eval "$ac_compile") 2>conftest.er1
7882 grep -v '^ *+' conftest.er1 >conftest.err
7884 cat conftest.err >&5
7885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } && {
7887 test -z "$ac_c_werror_flag" ||
7888 test ! -s conftest.err
7889 } && test -s conftest.$ac_objext; then
7890 ac_header_compiler=yes
7892 $as_echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7895 ac_header_compiler=no
7898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7900 $as_echo "$ac_header_compiler" >&6; }
7902 # Is the header present?
7903 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
7904 $as_echo_n "checking dlfcn.h presence... " >&6; }
7905 cat >conftest.$ac_ext <<_ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7913 if { (ac_try="$ac_cpp conftest.$ac_ext"
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7919 $as_echo "$ac_try_echo") >&5
7920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7922 grep -v '^ *+' conftest.er1 >conftest.err
7924 cat conftest.err >&5
7925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } >/dev/null && {
7927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7928 test ! -s conftest.err
7930 ac_header_preproc=yes
7932 $as_echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 ac_header_preproc=no
7938 rm -f conftest.err conftest.$ac_ext
7939 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7940 $as_echo "$ac_header_preproc" >&6; }
7942 # So? What about this header?
7943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7945 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
7946 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7947 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
7948 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
7949 ac_header_preproc=yes
7952 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
7953 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
7954 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
7955 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
7956 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
7957 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
7958 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
7959 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
7960 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
7961 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
7962 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
7963 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
7967 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
7968 $as_echo_n "checking for dlfcn.h... " >&6; }
7969 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7970 $as_echo_n "(cached) " >&6
7972 ac_cv_header_dlfcn_h=$ac_header_preproc
7974 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
7975 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
7978 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
7980 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7981 $as_echo_n "checking for library containing dlopen... " >&6; }
7982 if test "${ac_cv_search_dlopen+set}" = set; then
7983 $as_echo_n "(cached) " >&6
7985 ac_func_search_save_LIBS=$LIBS
7986 cat >conftest.$ac_ext <<_ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7993 /* Override any GCC internal prototype to avoid an error.
7994 Use char because int might match the return type of a GCC
7995 builtin and then its argument prototype would still apply. */
8008 for ac_lib in '' dl; do
8009 if test -z "$ac_lib"; then
8010 ac_res="none required"
8013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8015 rm -f conftest.$ac_objext conftest$ac_exeext
8016 if { (ac_try="$ac_link"
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8022 $as_echo "$ac_try_echo") >&5
8023 (eval "$ac_link") 2>conftest.er1
8025 grep -v '^ *+' conftest.er1 >conftest.err
8027 cat conftest.err >&5
8028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest$ac_exeext && {
8033 test "$cross_compiling" = yes ||
8034 $as_test_x conftest$ac_exeext
8036 ac_cv_search_dlopen=$ac_res
8038 $as_echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8044 rm -rf conftest.dSYM
8045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8047 if test "${ac_cv_search_dlopen+set}" = set; then
8051 if test "${ac_cv_search_dlopen+set}" = set; then
8054 ac_cv_search_dlopen=no
8057 LIBS=$ac_func_search_save_LIBS
8059 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8060 $as_echo "$ac_cv_search_dlopen" >&6; }
8061 ac_res=$ac_cv_search_dlopen
8062 if test "$ac_res" != no; then
8063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8070 if test "x$have_dlopen" != "xyes"; then
8071 if test "x$enable_shared" == "xyes"; then
8072 { { $as_echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
8073 $as_echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
8074 { (exit 1); exit 1; }; }
8076 { $as_echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
8077 $as_echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
8081 { $as_echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
8082 $as_echo_n "checking if linker accepts -rdynamic... " >&6; }
8083 old_LDFLAGS="$LDFLAGS"
8084 LDFLAGS="$LDFLAGS -rdynamic"
8085 cat >conftest.$ac_ext <<_ACEOF
8088 rm -f conftest.$ac_objext conftest$ac_exeext
8089 if { (ac_try="$ac_link"
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8095 $as_echo "$ac_try_echo") >&5
8096 (eval "$ac_link") 2>conftest.er1
8098 grep -v '^ *+' conftest.er1 >conftest.err
8100 cat conftest.err >&5
8101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } && {
8103 test -z "$ac_c_werror_flag" ||
8104 test ! -s conftest.err
8105 } && test -s conftest$ac_exeext && {
8106 test "$cross_compiling" = yes ||
8107 $as_test_x conftest$ac_exeext
8110 LXDREAMLDFLAGS="-rdynamic"
8111 { $as_echo "$as_me:$LINENO: result: yes" >&5
8112 $as_echo "yes" >&6; }
8115 $as_echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8120 { $as_echo "$as_me:$LINENO: result: no" >&5
8121 $as_echo "no" >&6; }
8124 rm -rf conftest.dSYM
8125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8126 conftest$ac_exeext conftest.$ac_ext
8127 LDFLAGS="$old_LDFLAGS"
8136 if test "x$have_dlopen" = "xyes"; then
8138 BUILD_SHARED_FALSE='#'
8140 BUILD_SHARED_TRUE='#'
8146 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
8147 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
8148 if test "$cross_compiling" = yes; then
8149 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8151 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8152 See \`config.log' for more details." >&5
8153 $as_echo "$as_me: error: cannot run test program while cross compiling
8154 See \`config.log' for more details." >&2;}
8155 { (exit 1); exit 1; }; }; }
8157 cat >conftest.$ac_ext <<_ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8165 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
8167 int main(int argc, char *argv[])
8169 return foo( 1, 2 ) == 3 ? 0 : 1;
8172 rm -f conftest$ac_exeext
8173 if { (ac_try="$ac_link"
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8179 $as_echo "$ac_try_echo") >&5
8180 (eval "$ac_link") 2>&5
8182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8184 { (case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8189 $as_echo "$ac_try_echo") >&5
8190 (eval "$ac_try") 2>&5
8192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8195 { $as_echo "$as_me:$LINENO: result: yes" >&5
8196 $as_echo "yes" >&6; }
8199 cat >>confdefs.h <<\_ACEOF
8200 #define HAVE_FASTCALL 1
8205 $as_echo "$as_me: program exited with status $ac_status" >&5
8206 $as_echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8211 { $as_echo "$as_me:$LINENO: result: no" >&5
8212 $as_echo "no" >&6; }
8215 rm -rf conftest.dSYM
8216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8222 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
8223 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
8224 if test "$cross_compiling" = yes; then
8225 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8227 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8228 See \`config.log' for more details." >&5
8229 $as_echo "$as_me: error: cannot run test program while cross compiling
8230 See \`config.log' for more details." >&2;}
8231 { (exit 1); exit 1; }; }; }
8233 cat >conftest.$ac_ext <<_ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8241 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
8242 int __attribute__((noinline)) foo( int arg, void *exc )
8245 *(((void **)__builtin_frame_address(0))+1) = exc;
8250 int main(int argc, char *argv[])
8252 goto *first_arg(&&start, &&except);
8255 return foo( argc, &&except ) + 1;
8261 rm -f conftest$ac_exeext
8262 if { (ac_try="$ac_link"
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8268 $as_echo "$ac_try_echo") >&5
8269 (eval "$ac_link") 2>&5
8271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8273 { (case "(($ac_try" in
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8278 $as_echo "$ac_try_echo") >&5
8279 (eval "$ac_try") 2>&5
8281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8284 { $as_echo "$as_me:$LINENO: result: yes" >&5
8285 $as_echo "yes" >&6; }
8288 cat >>confdefs.h <<\_ACEOF
8289 #define HAVE_FRAME_ADDRESS 1
8294 $as_echo "$as_me: program exited with status $ac_status" >&5
8295 $as_echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8300 { $as_echo "$as_me:$LINENO: result: no" >&5
8301 $as_echo "no" >&6; }
8302 { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
8303 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
8305 rm -rf conftest.dSYM
8306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8313 { $as_echo "$as_me:$LINENO: checking for library containing listen" >&5
8314 $as_echo_n "checking for library containing listen... " >&6; }
8315 if test "${ac_cv_search_listen+set}" = set; then
8316 $as_echo_n "(cached) " >&6
8318 ac_func_search_save_LIBS=$LIBS
8319 cat >conftest.$ac_ext <<_ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8326 /* Override any GCC internal prototype to avoid an error.
8327 Use char because int might match the return type of a GCC
8328 builtin and then its argument prototype would still apply. */
8341 for ac_lib in '' socket; do
8342 if test -z "$ac_lib"; then
8343 ac_res="none required"
8346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8348 rm -f conftest.$ac_objext conftest$ac_exeext
8349 if { (ac_try="$ac_link"
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8355 $as_echo "$ac_try_echo") >&5
8356 (eval "$ac_link") 2>conftest.er1
8358 grep -v '^ *+' conftest.er1 >conftest.err
8360 cat conftest.err >&5
8361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest$ac_exeext && {
8366 test "$cross_compiling" = yes ||
8367 $as_test_x conftest$ac_exeext
8369 ac_cv_search_listen=$ac_res
8371 $as_echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8377 rm -rf conftest.dSYM
8378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8380 if test "${ac_cv_search_listen+set}" = set; then
8384 if test "${ac_cv_search_listen+set}" = set; then
8387 ac_cv_search_listen=no
8390 LIBS=$ac_func_search_save_LIBS
8392 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
8393 $as_echo "$ac_cv_search_listen" >&6; }
8394 ac_res=$ac_cv_search_listen
8395 if test "$ac_res" != no; then
8396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8400 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
8401 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
8402 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8403 $as_echo_n "(cached) " >&6
8405 ac_func_search_save_LIBS=$LIBS
8406 cat >conftest.$ac_ext <<_ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8413 /* Override any GCC internal prototype to avoid an error.
8414 Use char because int might match the return type of a GCC
8415 builtin and then its argument prototype would still apply. */
8423 return inet_ntoa ();
8428 for ac_lib in '' nsl; do
8429 if test -z "$ac_lib"; then
8430 ac_res="none required"
8433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8435 rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (ac_try="$ac_link"
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8442 $as_echo "$ac_try_echo") >&5
8443 (eval "$ac_link") 2>conftest.er1
8445 grep -v '^ *+' conftest.er1 >conftest.err
8447 cat conftest.err >&5
8448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } && {
8450 test -z "$ac_c_werror_flag" ||
8451 test ! -s conftest.err
8452 } && test -s conftest$ac_exeext && {
8453 test "$cross_compiling" = yes ||
8454 $as_test_x conftest$ac_exeext
8456 ac_cv_search_inet_ntoa=$ac_res
8458 $as_echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8464 rm -rf conftest.dSYM
8465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8467 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8471 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8474 ac_cv_search_inet_ntoa=no
8477 LIBS=$ac_func_search_save_LIBS
8479 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
8480 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
8481 ac_res=$ac_cv_search_inet_ntoa
8482 if test "$ac_res" != no; then
8483 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8490 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8491 if test -n "$ac_tool_prefix"; then
8492 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8493 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8497 $as_echo_n "(cached) " >&6
8501 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8511 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8523 if test -n "$PKG_CONFIG"; then
8524 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8525 $as_echo "$PKG_CONFIG" >&6; }
8527 { $as_echo "$as_me:$LINENO: result: no" >&5
8528 $as_echo "no" >&6; }
8533 if test -z "$ac_cv_path_PKG_CONFIG"; then
8534 ac_pt_PKG_CONFIG=$PKG_CONFIG
8535 # Extract the first word of "pkg-config", so it can be a program name with args.
8536 set dummy pkg-config; ac_word=$2
8537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8540 $as_echo_n "(cached) " >&6
8542 case $ac_pt_PKG_CONFIG in
8544 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8554 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8566 if test -n "$ac_pt_PKG_CONFIG"; then
8567 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8568 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8570 { $as_echo "$as_me:$LINENO: result: no" >&5
8571 $as_echo "no" >&6; }
8574 if test "x$ac_pt_PKG_CONFIG" = x; then
8577 case $cross_compiling:$ac_tool_warned in
8579 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8581 ac_tool_warned=yes ;;
8583 PKG_CONFIG=$ac_pt_PKG_CONFIG
8586 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8590 if test -n "$PKG_CONFIG"; then
8591 _pkg_min_version=0.9.0
8592 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8593 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8594 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8595 { $as_echo "$as_me:$LINENO: result: yes" >&5
8596 $as_echo "yes" >&6; }
8598 { $as_echo "$as_me:$LINENO: result: no" >&5
8599 $as_echo "no" >&6; }
8606 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
8607 $as_echo_n "checking for LIBPNG... " >&6; }
8609 if test -n "$LIBPNG_CFLAGS"; then
8610 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
8611 elif test -n "$PKG_CONFIG"; then
8612 if test -n "$PKG_CONFIG" && \
8613 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8614 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; then
8618 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
8625 if test -n "$LIBPNG_LIBS"; then
8626 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8627 elif test -n "$PKG_CONFIG"; then
8628 if test -n "$PKG_CONFIG" && \
8629 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8630 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; then
8634 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
8644 if test $pkg_failed = yes; then
8646 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8647 _pkg_short_errors_supported=yes
8649 _pkg_short_errors_supported=no
8651 if test $_pkg_short_errors_supported = yes; then
8652 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
8654 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
8656 # Put the nasty error message in config.log where it belongs
8657 echo "$LIBPNG_PKG_ERRORS" >&5
8659 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
8663 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8664 installed software in a non-standard prefix.
8666 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8667 and LIBPNG_LIBS to avoid the need to call pkg-config.
8668 See the pkg-config man page for more details.
8670 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
8674 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8675 installed software in a non-standard prefix.
8677 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8678 and LIBPNG_LIBS to avoid the need to call pkg-config.
8679 See the pkg-config man page for more details.
8681 { (exit 1); exit 1; }; }
8682 elif test $pkg_failed = untried; then
8683 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8685 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8686 is in your PATH or set the PKG_CONFIG environment variable to the full
8689 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8690 and LIBPNG_LIBS to avoid the need to call pkg-config.
8691 See the pkg-config man page for more details.
8693 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8694 See \`config.log' for more details." >&5
8695 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8696 is in your PATH or set the PKG_CONFIG environment variable to the full
8699 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8700 and LIBPNG_LIBS to avoid the need to call pkg-config.
8701 See the pkg-config man page for more details.
8703 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8704 See \`config.log' for more details." >&2;}
8705 { (exit 1); exit 1; }; }; }
8707 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8708 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8709 { $as_echo "$as_me:$LINENO: result: yes" >&5
8710 $as_echo "yes" >&6; }
8715 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
8716 $as_echo_n "checking for uncompress in -lz... " >&6; }
8717 if test "${ac_cv_lib_z_uncompress+set}" = set; then
8718 $as_echo_n "(cached) " >&6
8720 ac_check_lib_save_LIBS=$LIBS
8722 cat >conftest.$ac_ext <<_ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8729 /* Override any GCC internal prototype to avoid an error.
8730 Use char because int might match the return type of a GCC
8731 builtin and then its argument prototype would still apply. */
8739 return uncompress ();
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (ac_try="$ac_link"
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8751 $as_echo "$ac_try_echo") >&5
8752 (eval "$ac_link") 2>conftest.er1
8754 grep -v '^ *+' conftest.er1 >conftest.err
8756 cat conftest.err >&5
8757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } && {
8759 test -z "$ac_c_werror_flag" ||
8760 test ! -s conftest.err
8761 } && test -s conftest$ac_exeext && {
8762 test "$cross_compiling" = yes ||
8763 $as_test_x conftest$ac_exeext
8765 ac_cv_lib_z_uncompress=yes
8767 $as_echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8770 ac_cv_lib_z_uncompress=no
8773 rm -rf conftest.dSYM
8774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8775 conftest$ac_exeext conftest.$ac_ext
8776 LIBS=$ac_check_lib_save_LIBS
8778 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
8779 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
8780 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
8781 cat >>confdefs.h <<_ACEOF
8789 echo "Zlib (libz.so) could not be found, but is required."
8794 if test "x$with_gtk" = "xno"; then
8797 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
8798 $as_echo_n "checking for GLIB... " >&6; }
8800 if test -n "$GLIB_CFLAGS"; then
8801 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8802 elif test -n "$PKG_CONFIG"; then
8803 if test -n "$PKG_CONFIG" && \
8804 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8805 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; then
8809 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
8816 if test -n "$GLIB_LIBS"; then
8817 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8818 elif test -n "$PKG_CONFIG"; then
8819 if test -n "$PKG_CONFIG" && \
8820 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8821 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; then
8825 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
8835 if test $pkg_failed = yes; then
8837 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8838 _pkg_short_errors_supported=yes
8840 _pkg_short_errors_supported=no
8842 if test $_pkg_short_errors_supported = yes; then
8843 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
8845 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
8847 # Put the nasty error message in config.log where it belongs
8848 echo "$GLIB_PKG_ERRORS" >&5
8850 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
8854 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8855 installed software in a non-standard prefix.
8857 Alternatively, you may set the environment variables GLIB_CFLAGS
8858 and GLIB_LIBS to avoid the need to call pkg-config.
8859 See the pkg-config man page for more details.
8861 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
8865 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8866 installed software in a non-standard prefix.
8868 Alternatively, you may set the environment variables GLIB_CFLAGS
8869 and GLIB_LIBS to avoid the need to call pkg-config.
8870 See the pkg-config man page for more details.
8872 { (exit 1); exit 1; }; }
8873 elif test $pkg_failed = untried; then
8874 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8876 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8877 is in your PATH or set the PKG_CONFIG environment variable to the full
8880 Alternatively, you may set the environment variables GLIB_CFLAGS
8881 and GLIB_LIBS to avoid the need to call pkg-config.
8882 See the pkg-config man page for more details.
8884 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8885 See \`config.log' for more details." >&5
8886 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8887 is in your PATH or set the PKG_CONFIG environment variable to the full
8890 Alternatively, you may set the environment variables GLIB_CFLAGS
8891 and GLIB_LIBS to avoid the need to call pkg-config.
8892 See the pkg-config man page for more details.
8894 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8895 See \`config.log' for more details." >&2;}
8896 { (exit 1); exit 1; }; }; }
8898 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8899 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8900 { $as_echo "$as_me:$LINENO: result: yes" >&5
8901 $as_echo "yes" >&6; }
8907 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
8908 $as_echo_n "checking for GTK... " >&6; }
8910 if test -n "$GTK_CFLAGS"; then
8911 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8912 elif test -n "$PKG_CONFIG"; then
8913 if test -n "$PKG_CONFIG" && \
8914 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8915 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; then
8919 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
8926 if test -n "$GTK_LIBS"; then
8927 pkg_cv_GTK_LIBS="$GTK_LIBS"
8928 elif test -n "$PKG_CONFIG"; then
8929 if test -n "$PKG_CONFIG" && \
8930 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8931 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; then
8935 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
8945 if test $pkg_failed = yes; then
8947 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8948 _pkg_short_errors_supported=yes
8950 _pkg_short_errors_supported=no
8952 if test $_pkg_short_errors_supported = yes; then
8953 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
8955 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
8957 # Put the nasty error message in config.log where it belongs
8958 echo "$GTK_PKG_ERRORS" >&5
8960 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
8964 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8965 installed software in a non-standard prefix.
8967 Alternatively, you may set the environment variables GTK_CFLAGS
8968 and GTK_LIBS to avoid the need to call pkg-config.
8969 See the pkg-config man page for more details.
8971 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
8975 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8976 installed software in a non-standard prefix.
8978 Alternatively, you may set the environment variables GTK_CFLAGS
8979 and GTK_LIBS to avoid the need to call pkg-config.
8980 See the pkg-config man page for more details.
8982 { (exit 1); exit 1; }; }
8983 elif test $pkg_failed = untried; then
8984 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8986 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8987 is in your PATH or set the PKG_CONFIG environment variable to the full
8990 Alternatively, you may set the environment variables GTK_CFLAGS
8991 and GTK_LIBS to avoid the need to call pkg-config.
8992 See the pkg-config man page for more details.
8994 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8995 See \`config.log' for more details." >&5
8996 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8997 is in your PATH or set the PKG_CONFIG environment variable to the full
9000 Alternatively, you may set the environment variables GTK_CFLAGS
9001 and GTK_LIBS to avoid the need to call pkg-config.
9002 See the pkg-config man page for more details.
9004 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9005 See \`config.log' for more details." >&2;}
9006 { (exit 1); exit 1; }; }; }
9008 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
9009 GTK_LIBS=$pkg_cv_GTK_LIBS
9010 { $as_echo "$as_me:$LINENO: result: yes" >&5
9011 $as_echo "yes" >&6; }
9015 cat >>confdefs.h <<\_ACEOF
9022 LIBS="$LIBS $GTK_LIBS"
9023 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
9024 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
9025 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
9026 $as_echo_n "(cached) " >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9034 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
9035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9036 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
9038 /* System header to define __stub macros and hopefully few prototypes,
9039 which can conflict with char gdk_x11_display_get_xdisplay (); below.
9040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9041 <limits.h> exists even on freestanding compilers. */
9044 # include <limits.h>
9046 # include <assert.h>
9049 #undef gdk_x11_display_get_xdisplay
9051 /* Override any GCC internal prototype to avoid an error.
9052 Use char because int might match the return type of a GCC
9053 builtin and then its argument prototype would still apply. */
9057 char gdk_x11_display_get_xdisplay ();
9058 /* The GNU C library defines this for functions which it implements
9059 to always fail with ENOSYS. Some functions are actually named
9060 something starting with __ and the normal name is an alias. */
9061 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
9068 return gdk_x11_display_get_xdisplay ();
9073 rm -f conftest.$ac_objext conftest$ac_exeext
9074 if { (ac_try="$ac_link"
9076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9077 *) ac_try_echo=$ac_try;;
9079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9080 $as_echo "$ac_try_echo") >&5
9081 (eval "$ac_link") 2>conftest.er1
9083 grep -v '^ *+' conftest.er1 >conftest.err
9085 cat conftest.err >&5
9086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest$ac_exeext && {
9091 test "$cross_compiling" = yes ||
9092 $as_test_x conftest$ac_exeext
9094 ac_cv_func_gdk_x11_display_get_xdisplay=yes
9096 $as_echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9099 ac_cv_func_gdk_x11_display_get_xdisplay=no
9102 rm -rf conftest.dSYM
9103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9104 conftest$ac_exeext conftest.$ac_ext
9106 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
9107 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
9108 if test "x$ac_cv_func_gdk_x11_display_get_xdisplay" = x""yes; then
9112 cat >>confdefs.h <<\_ACEOF
9113 #define HAVE_GTK_X11 1
9118 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
9119 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
9120 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
9121 $as_echo_n "(cached) " >&6
9123 cat >conftest.$ac_ext <<_ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9129 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
9130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9131 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
9133 /* System header to define __stub macros and hopefully few prototypes,
9134 which can conflict with char gdk_quartz_window_get_nsview (); below.
9135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9136 <limits.h> exists even on freestanding compilers. */
9139 # include <limits.h>
9141 # include <assert.h>
9144 #undef gdk_quartz_window_get_nsview
9146 /* Override any GCC internal prototype to avoid an error.
9147 Use char because int might match the return type of a GCC
9148 builtin and then its argument prototype would still apply. */
9152 char gdk_quartz_window_get_nsview ();
9153 /* The GNU C library defines this for functions which it implements
9154 to always fail with ENOSYS. Some functions are actually named
9155 something starting with __ and the normal name is an alias. */
9156 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
9163 return gdk_quartz_window_get_nsview ();
9168 rm -f conftest.$ac_objext conftest$ac_exeext
9169 if { (ac_try="$ac_link"
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9175 $as_echo "$ac_try_echo") >&5
9176 (eval "$ac_link") 2>conftest.er1
9178 grep -v '^ *+' conftest.er1 >conftest.err
9180 cat conftest.err >&5
9181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } && {
9183 test -z "$ac_c_werror_flag" ||
9184 test ! -s conftest.err
9185 } && test -s conftest$ac_exeext && {
9186 test "$cross_compiling" = yes ||
9187 $as_test_x conftest$ac_exeext
9189 ac_cv_func_gdk_quartz_window_get_nsview=yes
9191 $as_echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9194 ac_cv_func_gdk_quartz_window_get_nsview=no
9197 rm -rf conftest.dSYM
9198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9199 conftest$ac_exeext conftest.$ac_ext
9201 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
9202 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
9203 if test "x$ac_cv_func_gdk_quartz_window_get_nsview" = x""yes; then
9207 cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_GTK_OSX 1
9217 if test "$HAVE_GTK" = 'yes'; then
9226 if test "x$with_osmesa" != xno; then
9230 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
9231 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
9232 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
9233 $as_echo_n "(cached) " >&6
9235 ac_check_lib_save_LIBS=$LIBS
9236 LIBS="-lOSMesa $LIBS"
9237 cat >conftest.$ac_ext <<_ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9244 /* Override any GCC internal prototype to avoid an error.
9245 Use char because int might match the return type of a GCC
9246 builtin and then its argument prototype would still apply. */
9250 char OSMesaCreateContext ();
9254 return OSMesaCreateContext ();
9259 rm -f conftest.$ac_objext conftest$ac_exeext
9260 if { (ac_try="$ac_link"
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9266 $as_echo "$ac_try_echo") >&5
9267 (eval "$ac_link") 2>conftest.er1
9269 grep -v '^ *+' conftest.er1 >conftest.err
9271 cat conftest.err >&5
9272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest$ac_exeext && {
9277 test "$cross_compiling" = yes ||
9278 $as_test_x conftest$ac_exeext
9280 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
9282 $as_echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9285 ac_cv_lib_OSMesa_OSMesaCreateContext=no
9288 rm -rf conftest.dSYM
9289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9290 conftest$ac_exeext conftest.$ac_ext
9291 LIBS=$ac_check_lib_save_LIBS
9293 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
9294 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
9295 if test "x$ac_cv_lib_OSMesa_OSMesaCreateContext" = x""yes; then
9296 cat >>confdefs.h <<_ACEOF
9297 #define HAVE_LIBOSMESA 1
9300 LIBS="-lOSMesa $LIBS"
9303 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9305 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
9306 See \`config.log' for more details." >&5
9307 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
9308 See \`config.log' for more details." >&2;}
9309 { (exit 1); exit 1; }; }; }
9312 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9313 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9314 $as_echo_n "checking for GL/osmesa.h... " >&6; }
9315 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9316 $as_echo_n "(cached) " >&6
9318 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9319 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
9321 # Is the header compilable?
9322 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
9323 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
9324 cat >conftest.$ac_ext <<_ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9330 $ac_includes_default
9331 #include <GL/osmesa.h>
9333 rm -f conftest.$ac_objext
9334 if { (ac_try="$ac_compile"
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9340 $as_echo "$ac_try_echo") >&5
9341 (eval "$ac_compile") 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && {
9348 test -z "$ac_c_werror_flag" ||
9349 test ! -s conftest.err
9350 } && test -s conftest.$ac_objext; then
9351 ac_header_compiler=yes
9353 $as_echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9356 ac_header_compiler=no
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9361 $as_echo "$ac_header_compiler" >&6; }
9363 # Is the header present?
9364 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
9365 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
9366 cat >conftest.$ac_ext <<_ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9372 #include <GL/osmesa.h>
9374 if { (ac_try="$ac_cpp conftest.$ac_ext"
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9380 $as_echo "$ac_try_echo") >&5
9381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9383 grep -v '^ *+' conftest.er1 >conftest.err
9385 cat conftest.err >&5
9386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } >/dev/null && {
9388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9389 test ! -s conftest.err
9391 ac_header_preproc=yes
9393 $as_echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 ac_header_preproc=no
9399 rm -f conftest.err conftest.$ac_ext
9400 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9401 $as_echo "$ac_header_preproc" >&6; }
9403 # So? What about this header?
9404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9406 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
9407 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9408 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
9409 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
9410 ac_header_preproc=yes
9413 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
9414 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
9415 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
9416 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
9417 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
9418 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
9419 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
9420 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
9421 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
9422 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
9423 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
9424 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
9428 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9429 $as_echo_n "checking for GL/osmesa.h... " >&6; }
9430 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9431 $as_echo_n "(cached) " >&6
9433 ac_cv_header_GL_osmesa_h=$ac_header_preproc
9435 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9436 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
9439 if test "x$ac_cv_header_GL_osmesa_h" = x""yes; then
9442 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9444 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
9445 See \`config.log' for more details." >&5
9446 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
9447 See \`config.log' for more details." >&2;}
9448 { (exit 1); exit 1; }; }; }
9453 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
9455 cat >>confdefs.h <<\_ACEOF
9456 #define HAVE_OSMESA 1
9462 if test "x$APPLE_BUILD" != 'xyes'; then
9464 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
9465 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
9466 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
9467 $as_echo_n "(cached) " >&6
9469 ac_check_lib_save_LIBS=$LIBS
9471 cat >conftest.$ac_ext <<_ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9478 /* Override any GCC internal prototype to avoid an error.
9479 Use char because int might match the return type of a GCC
9480 builtin and then its argument prototype would still apply. */
9488 return glVertex3f ();
9493 rm -f conftest.$ac_objext conftest$ac_exeext
9494 if { (ac_try="$ac_link"
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9500 $as_echo "$ac_try_echo") >&5
9501 (eval "$ac_link") 2>conftest.er1
9503 grep -v '^ *+' conftest.er1 >conftest.err
9505 cat conftest.err >&5
9506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && {
9508 test -z "$ac_c_werror_flag" ||
9509 test ! -s conftest.err
9510 } && test -s conftest$ac_exeext && {
9511 test "$cross_compiling" = yes ||
9512 $as_test_x conftest$ac_exeext
9514 ac_cv_lib_GL_glVertex3f=yes
9516 $as_echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9519 ac_cv_lib_GL_glVertex3f=no
9522 rm -rf conftest.dSYM
9523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9524 conftest$ac_exeext conftest.$ac_ext
9525 LIBS=$ac_check_lib_save_LIBS
9527 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
9528 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
9529 if test "x$ac_cv_lib_GL_glVertex3f" = x""yes; then
9530 cat >>confdefs.h <<_ACEOF
9531 #define HAVE_LIBGL 1
9538 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9540 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9541 See \`config.log' for more details." >&5
9542 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9543 See \`config.log' for more details." >&2;}
9544 { (exit 1); exit 1; }; }; }
9547 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9548 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9549 $as_echo_n "checking for GL/gl.h... " >&6; }
9550 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9551 $as_echo_n "(cached) " >&6
9553 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9554 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9556 # Is the header compilable?
9557 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
9558 $as_echo_n "checking GL/gl.h usability... " >&6; }
9559 cat >conftest.$ac_ext <<_ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 $ac_includes_default
9568 rm -f conftest.$ac_objext
9569 if { (ac_try="$ac_compile"
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9575 $as_echo "$ac_try_echo") >&5
9576 (eval "$ac_compile") 2>conftest.er1
9578 grep -v '^ *+' conftest.er1 >conftest.err
9580 cat conftest.err >&5
9581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } && {
9583 test -z "$ac_c_werror_flag" ||
9584 test ! -s conftest.err
9585 } && test -s conftest.$ac_objext; then
9586 ac_header_compiler=yes
9588 $as_echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9591 ac_header_compiler=no
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9596 $as_echo "$ac_header_compiler" >&6; }
9598 # Is the header present?
9599 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
9600 $as_echo_n "checking GL/gl.h presence... " >&6; }
9601 cat >conftest.$ac_ext <<_ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9609 if { (ac_try="$ac_cpp conftest.$ac_ext"
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9615 $as_echo "$ac_try_echo") >&5
9616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9618 grep -v '^ *+' conftest.er1 >conftest.err
9620 cat conftest.err >&5
9621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } >/dev/null && {
9623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9626 ac_header_preproc=yes
9628 $as_echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9631 ac_header_preproc=no
9634 rm -f conftest.err conftest.$ac_ext
9635 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9636 $as_echo "$ac_header_preproc" >&6; }
9638 # So? What about this header?
9639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9641 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9642 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9643 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
9644 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
9645 ac_header_preproc=yes
9648 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
9649 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
9650 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
9651 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
9652 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
9653 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
9654 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
9655 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9656 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
9657 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
9658 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
9659 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
9663 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9664 $as_echo_n "checking for GL/gl.h... " >&6; }
9665 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9666 $as_echo_n "(cached) " >&6
9668 ac_cv_header_GL_gl_h=$ac_header_preproc
9670 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9671 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9674 if test "x$ac_cv_header_GL_gl_h" = x""yes; then
9678 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9680 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9681 See \`config.log' for more details." >&5
9682 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9683 See \`config.log' for more details." >&2;}
9684 { (exit 1); exit 1; }; }; }
9689 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
9690 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
9691 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
9692 $as_echo_n "(cached) " >&6
9694 cat >conftest.$ac_ext <<_ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
9701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9702 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
9704 /* System header to define __stub macros and hopefully few prototypes,
9705 which can conflict with char NSOpenGLGetVersion (); below.
9706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9707 <limits.h> exists even on freestanding compilers. */
9710 # include <limits.h>
9712 # include <assert.h>
9715 #undef NSOpenGLGetVersion
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9723 char NSOpenGLGetVersion ();
9724 /* The GNU C library defines this for functions which it implements
9725 to always fail with ENOSYS. Some functions are actually named
9726 something starting with __ and the normal name is an alias. */
9727 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
9734 return NSOpenGLGetVersion ();
9739 rm -f conftest.$ac_objext conftest$ac_exeext
9740 if { (ac_try="$ac_link"
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9746 $as_echo "$ac_try_echo") >&5
9747 (eval "$ac_link") 2>conftest.er1
9749 grep -v '^ *+' conftest.er1 >conftest.err
9751 cat conftest.err >&5
9752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } && {
9754 test -z "$ac_c_werror_flag" ||
9755 test ! -s conftest.err
9756 } && test -s conftest$ac_exeext && {
9757 test "$cross_compiling" = yes ||
9758 $as_test_x conftest$ac_exeext
9760 ac_cv_func_NSOpenGLGetVersion=yes
9762 $as_echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9765 ac_cv_func_NSOpenGLGetVersion=no
9768 rm -rf conftest.dSYM
9769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9770 conftest$ac_exeext conftest.$ac_ext
9772 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
9773 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
9774 if test "x$ac_cv_func_NSOpenGLGetVersion" = x""yes; then
9777 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
9779 cat >>confdefs.h <<\_ACEOF
9787 if test "x$HAVE_GTK_X11" = "xyes"; then
9788 if test "x$APPLE_BUILD" = "xyes"; then
9789 LIBS="$LIBS -L/usr/X11/lib -lGL"
9791 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
9792 $as_echo_n "checking for glXQueryVersion... " >&6; }
9793 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
9794 $as_echo_n "(cached) " >&6
9796 cat >conftest.$ac_ext <<_ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
9803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9804 #define glXQueryVersion innocuous_glXQueryVersion
9806 /* System header to define __stub macros and hopefully few prototypes,
9807 which can conflict with char glXQueryVersion (); below.
9808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9809 <limits.h> exists even on freestanding compilers. */
9812 # include <limits.h>
9814 # include <assert.h>
9817 #undef glXQueryVersion
9819 /* Override any GCC internal prototype to avoid an error.
9820 Use char because int might match the return type of a GCC
9821 builtin and then its argument prototype would still apply. */
9825 char glXQueryVersion ();
9826 /* The GNU C library defines this for functions which it implements
9827 to always fail with ENOSYS. Some functions are actually named
9828 something starting with __ and the normal name is an alias. */
9829 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
9836 return glXQueryVersion ();
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (ac_try="$ac_link"
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9848 $as_echo "$ac_try_echo") >&5
9849 (eval "$ac_link") 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } && {
9856 test -z "$ac_c_werror_flag" ||
9857 test ! -s conftest.err
9858 } && test -s conftest$ac_exeext && {
9859 test "$cross_compiling" = yes ||
9860 $as_test_x conftest$ac_exeext
9862 ac_cv_func_glXQueryVersion=yes
9864 $as_echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9867 ac_cv_func_glXQueryVersion=no
9870 rm -rf conftest.dSYM
9871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9872 conftest$ac_exeext conftest.$ac_ext
9874 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
9875 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
9876 if test "x$ac_cv_func_glXQueryVersion" = x""yes; then
9879 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
9881 cat >>confdefs.h <<\_ACEOF
9897 if test "x$HAVE_OSMESA" = "xyes"; then
9899 VIDEO_OSMESA_FALSE='#'
9901 VIDEO_OSMESA_TRUE='#'
9907 if test "x$HAVE_GLX" = "xyes"; then
9917 if test "x$HAVE_NSGL" = "xyes"; then
9919 VIDEO_NSGL_FALSE='#'
9926 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
9927 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
9928 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
9929 $as_echo_n "(cached) " >&6
9931 cat >conftest.$ac_ext <<_ACEOF
9934 cat confdefs.h >>conftest.$ac_ext
9935 cat >>conftest.$ac_ext <<_ACEOF
9936 /* end confdefs.h. */
9937 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
9938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9939 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
9941 /* System header to define __stub macros and hopefully few prototypes,
9942 which can conflict with char glGenFramebuffersEXT (); below.
9943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9944 <limits.h> exists even on freestanding compilers. */
9947 # include <limits.h>
9949 # include <assert.h>
9952 #undef glGenFramebuffersEXT
9954 /* Override any GCC internal prototype to avoid an error.
9955 Use char because int might match the return type of a GCC
9956 builtin and then its argument prototype would still apply. */
9960 char glGenFramebuffersEXT ();
9961 /* The GNU C library defines this for functions which it implements
9962 to always fail with ENOSYS. Some functions are actually named
9963 something starting with __ and the normal name is an alias. */
9964 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
9971 return glGenFramebuffersEXT ();
9976 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (ac_try="$ac_link"
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9983 $as_echo "$ac_try_echo") >&5
9984 (eval "$ac_link") 2>conftest.er1
9986 grep -v '^ *+' conftest.er1 >conftest.err
9988 cat conftest.err >&5
9989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } && {
9991 test -z "$ac_c_werror_flag" ||
9992 test ! -s conftest.err
9993 } && test -s conftest$ac_exeext && {
9994 test "$cross_compiling" = yes ||
9995 $as_test_x conftest$ac_exeext
9997 ac_cv_func_glGenFramebuffersEXT=yes
9999 $as_echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10002 ac_cv_func_glGenFramebuffersEXT=no
10005 rm -rf conftest.dSYM
10006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10007 conftest$ac_exeext conftest.$ac_ext
10009 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
10010 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
10011 if test "x$ac_cv_func_glGenFramebuffersEXT" = x""yes; then
10013 cat >>confdefs.h <<\_ACEOF
10014 #define HAVE_OPENGL_FBO 1
10019 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
10020 $as_echo_n "checking for glCreateShader... " >&6; }
10021 if test "${ac_cv_func_glCreateShader+set}" = set; then
10022 $as_echo_n "(cached) " >&6
10024 cat >conftest.$ac_ext <<_ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
10031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10032 #define glCreateShader innocuous_glCreateShader
10034 /* System header to define __stub macros and hopefully few prototypes,
10035 which can conflict with char glCreateShader (); below.
10036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10037 <limits.h> exists even on freestanding compilers. */
10040 # include <limits.h>
10042 # include <assert.h>
10045 #undef glCreateShader
10047 /* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
10053 char glCreateShader ();
10054 /* The GNU C library defines this for functions which it implements
10055 to always fail with ENOSYS. Some functions are actually named
10056 something starting with __ and the normal name is an alias. */
10057 #if defined __stub_glCreateShader || defined __stub___glCreateShader
10064 return glCreateShader ();
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (ac_try="$ac_link"
10071 case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10076 $as_echo "$ac_try_echo") >&5
10077 (eval "$ac_link") 2>conftest.er1
10079 grep -v '^ *+' conftest.er1 >conftest.err
10081 cat conftest.err >&5
10082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } && {
10084 test -z "$ac_c_werror_flag" ||
10085 test ! -s conftest.err
10086 } && test -s conftest$ac_exeext && {
10087 test "$cross_compiling" = yes ||
10088 $as_test_x conftest$ac_exeext
10090 ac_cv_func_glCreateShader=yes
10092 $as_echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10095 ac_cv_func_glCreateShader=no
10098 rm -rf conftest.dSYM
10099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10100 conftest$ac_exeext conftest.$ac_ext
10102 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
10103 $as_echo "$ac_cv_func_glCreateShader" >&6; }
10104 if test "x$ac_cv_func_glCreateShader" = x""yes; then
10106 cat >>confdefs.h <<\_ACEOF
10107 #define HAVE_OPENGL_SHADER 1
10112 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
10113 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
10114 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
10115 $as_echo_n "(cached) " >&6
10117 cat >conftest.$ac_ext <<_ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
10124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10125 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
10127 /* System header to define __stub macros and hopefully few prototypes,
10128 which can conflict with char glCreateShaderObjectARB (); below.
10129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10130 <limits.h> exists even on freestanding compilers. */
10133 # include <limits.h>
10135 # include <assert.h>
10138 #undef glCreateShaderObjectARB
10140 /* Override any GCC internal prototype to avoid an error.
10141 Use char because int might match the return type of a GCC
10142 builtin and then its argument prototype would still apply. */
10146 char glCreateShaderObjectARB ();
10147 /* The GNU C library defines this for functions which it implements
10148 to always fail with ENOSYS. Some functions are actually named
10149 something starting with __ and the normal name is an alias. */
10150 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
10157 return glCreateShaderObjectARB ();
10162 rm -f conftest.$ac_objext conftest$ac_exeext
10163 if { (ac_try="$ac_link"
10164 case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10169 $as_echo "$ac_try_echo") >&5
10170 (eval "$ac_link") 2>conftest.er1
10172 grep -v '^ *+' conftest.er1 >conftest.err
10174 cat conftest.err >&5
10175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && {
10177 test -z "$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest$ac_exeext && {
10180 test "$cross_compiling" = yes ||
10181 $as_test_x conftest$ac_exeext
10183 ac_cv_func_glCreateShaderObjectARB=yes
10185 $as_echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_cv_func_glCreateShaderObjectARB=no
10191 rm -rf conftest.dSYM
10192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193 conftest$ac_exeext conftest.$ac_ext
10195 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
10196 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
10197 if test "x$ac_cv_func_glCreateShaderObjectARB" = x""yes; then
10199 cat >>confdefs.h <<\_ACEOF
10200 #define HAVE_OPENGL_SHADER_ARB 1
10205 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
10206 $as_echo_n "checking for glClampColorARB... " >&6; }
10207 if test "${ac_cv_func_glClampColorARB+set}" = set; then
10208 $as_echo_n "(cached) " >&6
10210 cat >conftest.$ac_ext <<_ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
10217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10218 #define glClampColorARB innocuous_glClampColorARB
10220 /* System header to define __stub macros and hopefully few prototypes,
10221 which can conflict with char glClampColorARB (); below.
10222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10223 <limits.h> exists even on freestanding compilers. */
10226 # include <limits.h>
10228 # include <assert.h>
10231 #undef glClampColorARB
10233 /* Override any GCC internal prototype to avoid an error.
10234 Use char because int might match the return type of a GCC
10235 builtin and then its argument prototype would still apply. */
10239 char glClampColorARB ();
10240 /* The GNU C library defines this for functions which it implements
10241 to always fail with ENOSYS. Some functions are actually named
10242 something starting with __ and the normal name is an alias. */
10243 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
10250 return glClampColorARB ();
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10262 $as_echo "$ac_try_echo") >&5
10263 (eval "$ac_link") 2>conftest.er1
10265 grep -v '^ *+' conftest.er1 >conftest.err
10267 cat conftest.err >&5
10268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } && {
10270 test -z "$ac_c_werror_flag" ||
10271 test ! -s conftest.err
10272 } && test -s conftest$ac_exeext && {
10273 test "$cross_compiling" = yes ||
10274 $as_test_x conftest$ac_exeext
10276 ac_cv_func_glClampColorARB=yes
10278 $as_echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10281 ac_cv_func_glClampColorARB=no
10284 rm -rf conftest.dSYM
10285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10286 conftest$ac_exeext conftest.$ac_ext
10288 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
10289 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
10290 if test "x$ac_cv_func_glClampColorARB" = x""yes; then
10292 cat >>confdefs.h <<\_ACEOF
10293 #define HAVE_OPENGL_CLAMP_COLOR 1
10301 if test "x$enable_translator" != "xno"; then
10303 i386|i486|i586|i686|x86_64)
10304 SH4_TRANSLATOR="x86"
10306 cat >>confdefs.h <<_ACEOF
10307 #define SH4_TRANSLATOR TARGET_X86
10314 if test "$SH4_TRANSLATOR" = "x86"; then
10316 BUILD_SH4X86_FALSE='#'
10318 BUILD_SH4X86_TRUE='#'
10319 BUILD_SH4X86_FALSE=
10323 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10324 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10325 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
10326 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10327 $as_echo_n "(cached) " >&6
10329 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10330 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10332 # Is the header compilable?
10333 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
10334 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
10335 cat >conftest.$ac_ext <<_ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 $ac_includes_default
10342 #include <CoreAudio/CoreAudio.h>
10344 rm -f conftest.$ac_objext
10345 if { (ac_try="$ac_compile"
10346 case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10351 $as_echo "$ac_try_echo") >&5
10352 (eval "$ac_compile") 2>conftest.er1
10354 grep -v '^ *+' conftest.er1 >conftest.err
10356 cat conftest.err >&5
10357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } && {
10359 test -z "$ac_c_werror_flag" ||
10360 test ! -s conftest.err
10361 } && test -s conftest.$ac_objext; then
10362 ac_header_compiler=yes
10364 $as_echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10367 ac_header_compiler=no
10370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10371 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10372 $as_echo "$ac_header_compiler" >&6; }
10374 # Is the header present?
10375 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
10376 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
10377 cat >conftest.$ac_ext <<_ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10383 #include <CoreAudio/CoreAudio.h>
10385 if { (ac_try="$ac_cpp conftest.$ac_ext"
10386 case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10391 $as_echo "$ac_try_echo") >&5
10392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10394 grep -v '^ *+' conftest.er1 >conftest.err
10396 cat conftest.err >&5
10397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } >/dev/null && {
10399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10402 ac_header_preproc=yes
10404 $as_echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 ac_header_preproc=no
10410 rm -f conftest.err conftest.$ac_ext
10411 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10412 $as_echo "$ac_header_preproc" >&6; }
10414 # So? What about this header?
10415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10417 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10418 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10419 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
10420 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
10421 ac_header_preproc=yes
10424 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
10425 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
10426 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
10427 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
10428 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
10429 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
10430 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
10431 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10432 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
10433 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
10434 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
10435 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
10439 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10440 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
10441 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10442 $as_echo_n "(cached) " >&6
10444 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
10446 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10447 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10450 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = x""yes; then
10452 HAVE_CORE_AUDIO=yes
10453 LIBS="$LIBS -framework CoreAudio"
10454 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
10456 cat >>confdefs.h <<\_ACEOF
10457 #define HAVE_CORE_AUDIO 1
10467 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
10469 AUDIO_OSX_FALSE='#'
10476 if test "x$with_sdl" != "xno"; then
10479 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
10480 $as_echo_n "checking for SDL... " >&6; }
10482 if test -n "$SDL_CFLAGS"; then
10483 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
10484 elif test -n "$PKG_CONFIG"; then
10485 if test -n "$PKG_CONFIG" && \
10486 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10487 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; then
10491 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
10498 if test -n "$SDL_LIBS"; then
10499 pkg_cv_SDL_LIBS="$SDL_LIBS"
10500 elif test -n "$PKG_CONFIG"; then
10501 if test -n "$PKG_CONFIG" && \
10502 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10503 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; then
10507 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
10517 if test $pkg_failed = yes; then
10519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10520 _pkg_short_errors_supported=yes
10522 _pkg_short_errors_supported=no
10524 if test $_pkg_short_errors_supported = yes; then
10525 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
10527 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
10529 # Put the nasty error message in config.log where it belongs
10530 echo "$SDL_PKG_ERRORS" >&5
10532 { $as_echo "$as_me:$LINENO: result: no" >&5
10533 $as_echo "no" >&6; }
10535 if test "x$with_sdl" = "xyes"; then
10536 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10538 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10539 See \`config.log' for more details." >&5
10540 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10541 See \`config.log' for more details." >&2;}
10542 { (exit 1); exit 1; }; }; }
10545 elif test $pkg_failed = untried; then
10547 if test "x$with_sdl" = "xyes"; then
10548 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10550 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10551 See \`config.log' for more details." >&5
10552 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10553 See \`config.log' for more details." >&2;}
10554 { (exit 1); exit 1; }; }; }
10558 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
10559 SDL_LIBS=$pkg_cv_SDL_LIBS
10560 { $as_echo "$as_me:$LINENO: result: yes" >&5
10561 $as_echo "yes" >&6; }
10564 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
10566 cat >>confdefs.h <<\_ACEOF
10575 if test "$HAVE_SDL" = 'yes' ; then
10577 AUDIO_SDL_FALSE='#'
10584 if test "x$with_pulse" != "xno"; then
10587 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
10588 $as_echo_n "checking for PULSE... " >&6; }
10590 if test -n "$PULSE_CFLAGS"; then
10591 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
10592 elif test -n "$PKG_CONFIG"; then
10593 if test -n "$PKG_CONFIG" && \
10594 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10595 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; then
10599 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
10606 if test -n "$PULSE_LIBS"; then
10607 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
10608 elif test -n "$PKG_CONFIG"; then
10609 if test -n "$PKG_CONFIG" && \
10610 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10611 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; then
10615 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
10625 if test $pkg_failed = yes; then
10627 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10628 _pkg_short_errors_supported=yes
10630 _pkg_short_errors_supported=no
10632 if test $_pkg_short_errors_supported = yes; then
10633 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
10635 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
10637 # Put the nasty error message in config.log where it belongs
10638 echo "$PULSE_PKG_ERRORS" >&5
10640 { $as_echo "$as_me:$LINENO: result: no" >&5
10641 $as_echo "no" >&6; }
10643 if test "x$with_pulse" = "xyes"; then
10644 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10646 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10647 See \`config.log' for more details." >&5
10648 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10649 See \`config.log' for more details." >&2;}
10650 { (exit 1); exit 1; }; }; }
10653 elif test $pkg_failed = untried; then
10655 if test "x$with_pulse" = "xyes"; then
10656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10658 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10659 See \`config.log' for more details." >&5
10660 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10661 See \`config.log' for more details." >&2;}
10662 { (exit 1); exit 1; }; }; }
10666 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
10667 PULSE_LIBS=$pkg_cv_PULSE_LIBS
10668 { $as_echo "$as_me:$LINENO: result: yes" >&5
10669 $as_echo "yes" >&6; }
10672 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
10674 cat >>confdefs.h <<\_ACEOF
10675 #define HAVE_PULSE 1
10683 if test "$HAVE_PULSE" = 'yes' ; then
10685 AUDIO_PULSE_FALSE='#'
10687 AUDIO_PULSE_TRUE='#'
10692 if test "x$with_esd" != "xno"; then
10695 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
10696 $as_echo_n "checking for ESOUND... " >&6; }
10698 if test -n "$ESOUND_CFLAGS"; then
10699 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
10700 elif test -n "$PKG_CONFIG"; then
10701 if test -n "$PKG_CONFIG" && \
10702 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10703 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; then
10707 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
10714 if test -n "$ESOUND_LIBS"; then
10715 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
10716 elif test -n "$PKG_CONFIG"; then
10717 if test -n "$PKG_CONFIG" && \
10718 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10719 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; then
10723 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
10733 if test $pkg_failed = yes; then
10735 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10736 _pkg_short_errors_supported=yes
10738 _pkg_short_errors_supported=no
10740 if test $_pkg_short_errors_supported = yes; then
10741 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
10743 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
10745 # Put the nasty error message in config.log where it belongs
10746 echo "$ESOUND_PKG_ERRORS" >&5
10748 { $as_echo "$as_me:$LINENO: result: no" >&5
10749 $as_echo "no" >&6; }
10751 if test "x$with_esd" = "xyes"; then
10752 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10754 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10755 See \`config.log' for more details." >&5
10756 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10757 See \`config.log' for more details." >&2;}
10758 { (exit 1); exit 1; }; }; }
10761 elif test $pkg_failed = untried; then
10763 if test "x$with_esd" = "xyes"; then
10764 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10766 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10767 See \`config.log' for more details." >&5
10768 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10769 See \`config.log' for more details." >&2;}
10770 { (exit 1); exit 1; }; }; }
10774 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
10775 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
10776 { $as_echo "$as_me:$LINENO: result: yes" >&5
10777 $as_echo "yes" >&6; }
10780 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
10782 cat >>confdefs.h <<\_ACEOF
10783 #define HAVE_ESOUND 1
10791 if test "$HAVE_ESOUND" = 'yes' ; then
10793 AUDIO_ESOUND_FALSE='#'
10795 AUDIO_ESOUND_TRUE='#'
10796 AUDIO_ESOUND_FALSE=
10802 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
10803 $as_echo_n "checking for ALSA... " >&6; }
10805 if test -n "$ALSA_CFLAGS"; then
10806 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
10807 elif test -n "$PKG_CONFIG"; then
10808 if test -n "$PKG_CONFIG" && \
10809 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10810 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; then
10814 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
10821 if test -n "$ALSA_LIBS"; then
10822 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
10823 elif test -n "$PKG_CONFIG"; then
10824 if test -n "$PKG_CONFIG" && \
10825 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10826 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; then
10830 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
10840 if test $pkg_failed = yes; then
10842 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10843 _pkg_short_errors_supported=yes
10845 _pkg_short_errors_supported=no
10847 if test $_pkg_short_errors_supported = yes; then
10848 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
10850 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
10852 # Put the nasty error message in config.log where it belongs
10853 echo "$ALSA_PKG_ERRORS" >&5
10855 { $as_echo "$as_me:$LINENO: result: no" >&5
10856 $as_echo "no" >&6; }
10858 elif test $pkg_failed = untried; then
10861 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
10862 ALSA_LIBS=$pkg_cv_ALSA_LIBS
10863 { $as_echo "$as_me:$LINENO: result: yes" >&5
10864 $as_echo "yes" >&6; }
10867 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
10869 cat >>confdefs.h <<\_ACEOF
10870 #define HAVE_ALSA 1
10876 if test "$HAVE_ALSA" = 'yes' ; then
10878 AUDIO_ALSA_FALSE='#'
10880 AUDIO_ALSA_TRUE='#'
10886 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10887 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10888 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10889 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10890 $as_echo_n "(cached) " >&6
10892 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10893 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10895 # Is the header compilable?
10896 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
10897 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
10898 cat >conftest.$ac_ext <<_ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 $ac_includes_default
10905 #include <linux/cdrom.h>
10907 rm -f conftest.$ac_objext
10908 if { (ac_try="$ac_compile"
10909 case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10914 $as_echo "$ac_try_echo") >&5
10915 (eval "$ac_compile") 2>conftest.er1
10917 grep -v '^ *+' conftest.er1 >conftest.err
10919 cat conftest.err >&5
10920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } && {
10922 test -z "$ac_c_werror_flag" ||
10923 test ! -s conftest.err
10924 } && test -s conftest.$ac_objext; then
10925 ac_header_compiler=yes
10927 $as_echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_header_compiler=no
10933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10935 $as_echo "$ac_header_compiler" >&6; }
10937 # Is the header present?
10938 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
10939 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
10940 cat >conftest.$ac_ext <<_ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h. */
10946 #include <linux/cdrom.h>
10948 if { (ac_try="$ac_cpp conftest.$ac_ext"
10949 case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10954 $as_echo "$ac_try_echo") >&5
10955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10957 grep -v '^ *+' conftest.er1 >conftest.err
10959 cat conftest.err >&5
10960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } >/dev/null && {
10962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10963 test ! -s conftest.err
10965 ac_header_preproc=yes
10967 $as_echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 ac_header_preproc=no
10973 rm -f conftest.err conftest.$ac_ext
10974 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10975 $as_echo "$ac_header_preproc" >&6; }
10977 # So? What about this header?
10978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10980 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
10981 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10982 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
10983 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
10984 ac_header_preproc=yes
10987 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
10988 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
10989 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
10990 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
10991 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
10992 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
10993 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
10994 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
10995 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
10996 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
10997 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
10998 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
11002 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
11003 $as_echo_n "checking for linux/cdrom.h... " >&6; }
11004 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
11005 $as_echo_n "(cached) " >&6
11007 ac_cv_header_linux_cdrom_h=$ac_header_preproc
11009 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
11010 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
11013 if test "x$ac_cv_header_linux_cdrom_h" = x""yes; then
11016 { $as_echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
11017 $as_echo_n "checking C99 compliant kernel headers... " >&6; }
11018 old_CFLAGS="$CFLAGS"
11019 CFLAGS="$CFLAGS $STDCFLAG"
11020 cat >conftest.$ac_ext <<_ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 #include <linux/cdrom.h>
11035 rm -f conftest.$ac_objext
11036 if { (ac_try="$ac_compile"
11037 case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11042 $as_echo "$ac_try_echo") >&5
11043 (eval "$ac_compile") 2>conftest.er1
11045 grep -v '^ *+' conftest.er1 >conftest.err
11047 cat conftest.err >&5
11048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } && {
11050 test -z "$ac_c_werror_flag" ||
11051 test ! -s conftest.err
11052 } && test -s conftest.$ac_objext; then
11053 { $as_echo "$as_me:$LINENO: result: Yes" >&5
11054 $as_echo "Yes" >&6; }
11056 $as_echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11060 { $as_echo "$as_me:$LINENO: result: No" >&5
11061 $as_echo "No" >&6; }
11062 STDCFLAG="-std=gnu99"
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066 CFLAGS="$old_CFLAGS"
11073 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11074 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
11075 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
11076 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11077 $as_echo_n "(cached) " >&6
11079 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
11080 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
11082 # Is the header compilable?
11083 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
11084 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
11085 cat >conftest.$ac_ext <<_ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 $ac_includes_default
11092 #include <IOKit/IOKitLib.h>
11094 rm -f conftest.$ac_objext
11095 if { (ac_try="$ac_compile"
11096 case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11101 $as_echo "$ac_try_echo") >&5
11102 (eval "$ac_compile") 2>conftest.er1
11104 grep -v '^ *+' conftest.er1 >conftest.err
11106 cat conftest.err >&5
11107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } && {
11109 test -z "$ac_c_werror_flag" ||
11110 test ! -s conftest.err
11111 } && test -s conftest.$ac_objext; then
11112 ac_header_compiler=yes
11114 $as_echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11117 ac_header_compiler=no
11120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11121 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11122 $as_echo "$ac_header_compiler" >&6; }
11124 # Is the header present?
11125 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
11126 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
11127 cat >conftest.$ac_ext <<_ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 #include <IOKit/IOKitLib.h>
11135 if { (ac_try="$ac_cpp conftest.$ac_ext"
11136 case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11141 $as_echo "$ac_try_echo") >&5
11142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11144 grep -v '^ *+' conftest.er1 >conftest.err
11146 cat conftest.err >&5
11147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } >/dev/null && {
11149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11150 test ! -s conftest.err
11152 ac_header_preproc=yes
11154 $as_echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_header_preproc=no
11160 rm -f conftest.err conftest.$ac_ext
11161 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11162 $as_echo "$ac_header_preproc" >&6; }
11164 # So? What about this header?
11165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11167 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11168 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11169 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
11170 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
11171 ac_header_preproc=yes
11174 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
11175 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
11176 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
11177 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
11178 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
11179 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
11180 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
11181 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11182 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
11183 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
11184 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
11185 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
11189 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
11190 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
11191 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11192 $as_echo_n "(cached) " >&6
11194 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
11196 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
11197 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
11200 if test "x$ac_cv_header_IOKit_IOKitLib_h" = x""yes; then
11203 LIBS="$LIBS -framework IOKit"
11211 if test "x$CDROM_DRIVER" = "xlinux"; then
11213 CDROM_LINUX_FALSE='#'
11215 CDROM_LINUX_TRUE='#'
11221 if test "x$CDROM_DRIVER" = "xosx"; then
11223 CDROM_OSX_FALSE='#'
11231 if test "x$CDROM_DRIVER" = "x"; then
11233 CDROM_NONE_FALSE='#'
11235 CDROM_NONE_TRUE='#'
11240 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11241 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11242 $as_echo_n "checking for linux/joystick.h... " >&6; }
11243 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11244 $as_echo_n "(cached) " >&6
11246 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11247 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
11249 # Is the header compilable?
11250 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
11251 $as_echo_n "checking linux/joystick.h usability... " >&6; }
11252 cat >conftest.$ac_ext <<_ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h. */
11258 $ac_includes_default
11259 #include <linux/joystick.h>
11261 rm -f conftest.$ac_objext
11262 if { (ac_try="$ac_compile"
11263 case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11268 $as_echo "$ac_try_echo") >&5
11269 (eval "$ac_compile") 2>conftest.er1
11271 grep -v '^ *+' conftest.er1 >conftest.err
11273 cat conftest.err >&5
11274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } && {
11276 test -z "$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 } && test -s conftest.$ac_objext; then
11279 ac_header_compiler=yes
11281 $as_echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_header_compiler=no
11287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11289 $as_echo "$ac_header_compiler" >&6; }
11291 # Is the header present?
11292 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
11293 $as_echo_n "checking linux/joystick.h presence... " >&6; }
11294 cat >conftest.$ac_ext <<_ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 #include <linux/joystick.h>
11302 if { (ac_try="$ac_cpp conftest.$ac_ext"
11303 case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11308 $as_echo "$ac_try_echo") >&5
11309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11311 grep -v '^ *+' conftest.er1 >conftest.err
11313 cat conftest.err >&5
11314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } >/dev/null && {
11316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11317 test ! -s conftest.err
11319 ac_header_preproc=yes
11321 $as_echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 ac_header_preproc=no
11327 rm -f conftest.err conftest.$ac_ext
11328 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11329 $as_echo "$ac_header_preproc" >&6; }
11331 # So? What about this header?
11332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11334 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
11335 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11336 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
11337 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
11338 ac_header_preproc=yes
11341 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
11342 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
11343 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
11344 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
11345 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
11346 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
11347 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
11348 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
11349 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
11350 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
11351 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
11352 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
11356 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11357 $as_echo_n "checking for linux/joystick.h... " >&6; }
11358 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11359 $as_echo_n "(cached) " >&6
11361 ac_cv_header_linux_joystick_h=$ac_header_preproc
11363 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11364 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
11367 if test "x$ac_cv_header_linux_joystick_h" = x""yes; then
11369 HAVE_LINUX_JOYSTICK_H=yes
11371 cat >>confdefs.h <<\_ACEOF
11372 #define HAVE_LINUX_JOYSTICK 1
11375 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
11377 echo "Linux Joystick support not found, building without it."
11383 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
11385 JOY_LINUX_FALSE='#'
11392 if test "x$with_lirc" != "xno"; then
11393 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11394 { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
11395 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
11396 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11397 $as_echo_n "(cached) " >&6
11399 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
11400 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
11402 # Is the header compilable?
11403 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
11404 $as_echo_n "checking lirc/lirc_client.h usability... " >&6; }
11405 cat >conftest.$ac_ext <<_ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11411 $ac_includes_default
11412 #include <lirc/lirc_client.h>
11414 rm -f conftest.$ac_objext
11415 if { (ac_try="$ac_compile"
11416 case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11421 $as_echo "$ac_try_echo") >&5
11422 (eval "$ac_compile") 2>conftest.er1
11424 grep -v '^ *+' conftest.er1 >conftest.err
11426 cat conftest.err >&5
11427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } && {
11429 test -z "$ac_c_werror_flag" ||
11430 test ! -s conftest.err
11431 } && test -s conftest.$ac_objext; then
11432 ac_header_compiler=yes
11434 $as_echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 ac_header_compiler=no
11440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11441 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11442 $as_echo "$ac_header_compiler" >&6; }
11444 # Is the header present?
11445 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
11446 $as_echo_n "checking lirc/lirc_client.h presence... " >&6; }
11447 cat >conftest.$ac_ext <<_ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 #include <lirc/lirc_client.h>
11455 if { (ac_try="$ac_cpp conftest.$ac_ext"
11456 case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11461 $as_echo "$ac_try_echo") >&5
11462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11464 grep -v '^ *+' conftest.er1 >conftest.err
11466 cat conftest.err >&5
11467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } >/dev/null && {
11469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11470 test ! -s conftest.err
11472 ac_header_preproc=yes
11474 $as_echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11477 ac_header_preproc=no
11480 rm -f conftest.err conftest.$ac_ext
11481 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11482 $as_echo "$ac_header_preproc" >&6; }
11484 # So? What about this header?
11485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11487 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
11488 $as_echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11489 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
11490 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
11491 ac_header_preproc=yes
11494 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
11495 $as_echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
11496 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
11497 $as_echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
11498 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
11499 $as_echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
11500 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
11501 $as_echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
11502 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
11503 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
11504 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
11505 $as_echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
11509 { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
11510 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
11511 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11512 $as_echo_n "(cached) " >&6
11514 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
11516 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
11517 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
11520 if test "x$ac_cv_header_lirc_lirc_client_h" = x""yes; then
11522 HAVE_LIRC_CLIENT_H=yes
11524 cat >>confdefs.h <<\_ACEOF
11525 #define HAVE_LIRC 1
11528 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
11531 echo "LIRC support not found, building without it."
11538 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
11540 INPUT_LIRC_FALSE='#'
11542 INPUT_LIRC_TRUE='#'
11547 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
11548 set dummy sh-elf-gcc; ac_word=$2
11549 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11550 $as_echo_n "checking for $ac_word... " >&6; }
11551 if test "${ac_cv_path_SHCC+set}" = set; then
11552 $as_echo_n "(cached) " >&6
11556 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
11559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11560 for as_dir in $PATH
11563 test -z "$as_dir" && as_dir=.
11564 for ac_exec_ext in '' $ac_executable_extensions; do
11565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11566 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
11567 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11577 SHCC=$ac_cv_path_SHCC
11578 if test -n "$SHCC"; then
11579 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
11580 $as_echo "$SHCC" >&6; }
11582 { $as_echo "$as_me:$LINENO: result: no" >&5
11583 $as_echo "no" >&6; }
11587 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
11588 set dummy sh-elf-ld; ac_word=$2
11589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if test "${ac_cv_path_SHLD+set}" = set; then
11592 $as_echo_n "(cached) " >&6
11596 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11606 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
11607 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 SHLD=$ac_cv_path_SHLD
11618 if test -n "$SHLD"; then
11619 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
11620 $as_echo "$SHLD" >&6; }
11622 { $as_echo "$as_me:$LINENO: result: no" >&5
11623 $as_echo "no" >&6; }
11627 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
11628 set dummy sh-elf-objcopy; ac_word=$2
11629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11630 $as_echo_n "checking for $ac_word... " >&6; }
11631 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
11632 $as_echo_n "(cached) " >&6
11636 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640 for as_dir in $PATH
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
11645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11646 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11657 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
11658 if test -n "$SHOBJCOPY"; then
11659 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
11660 $as_echo "$SHOBJCOPY" >&6; }
11662 { $as_echo "$as_me:$LINENO: result: no" >&5
11663 $as_echo "no" >&6; }
11667 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
11668 set dummy arm-elf-gcc; ac_word=$2
11669 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11670 $as_echo_n "checking for $ac_word... " >&6; }
11671 if test "${ac_cv_path_ARMCC+set}" = set; then
11672 $as_echo_n "(cached) " >&6
11676 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
11679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11680 for as_dir in $PATH
11683 test -z "$as_dir" && as_dir=.
11684 for ac_exec_ext in '' $ac_executable_extensions; do
11685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11686 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
11687 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11697 ARMCC=$ac_cv_path_ARMCC
11698 if test -n "$ARMCC"; then
11699 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
11700 $as_echo "$ARMCC" >&6; }
11702 { $as_echo "$as_me:$LINENO: result: no" >&5
11703 $as_echo "no" >&6; }
11707 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
11708 set dummy arm-elf-ld; ac_word=$2
11709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11710 $as_echo_n "checking for $ac_word... " >&6; }
11711 if test "${ac_cv_path_ARMLD+set}" = set; then
11712 $as_echo_n "(cached) " >&6
11716 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
11727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11737 ARMLD=$ac_cv_path_ARMLD
11738 if test -n "$ARMLD"; then
11739 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
11740 $as_echo "$ARMLD" >&6; }
11742 { $as_echo "$as_me:$LINENO: result: no" >&5
11743 $as_echo "no" >&6; }
11747 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
11748 set dummy arm-elf-objcopy; ac_word=$2
11749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11750 $as_echo_n "checking for $ac_word... " >&6; }
11751 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
11752 $as_echo_n "(cached) " >&6
11754 case $ARMOBJCOPY in
11756 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760 for as_dir in $PATH
11763 test -z "$as_dir" && as_dir=.
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11766 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11777 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
11778 if test -n "$ARMOBJCOPY"; then
11779 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
11780 $as_echo "$ARMOBJCOPY" >&6; }
11782 { $as_echo "$as_me:$LINENO: result: no" >&5
11783 $as_echo "no" >&6; }
11788 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
11790 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
11794 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
11796 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
11802 if test "$BUILD_SH" = "yes"; then
11803 BUILD_SYSTEST_TRUE=
11804 BUILD_SYSTEST_FALSE='#'
11806 BUILD_SYSTEST_TRUE='#'
11807 BUILD_SYSTEST_FALSE=
11812 if test "$BUILD_ARM" = "yes"; then
11813 BUILD_ARMTEST_TRUE=
11814 BUILD_ARMTEST_FALSE='#'
11816 BUILD_ARMTEST_TRUE='#'
11817 BUILD_ARMTEST_FALSE=
11821 CFLAGS="$CFLAGS $STDCFLAG"
11823 GETTEXT_PACKAGE=lxdream
11826 cat >>confdefs.h <<_ACEOF
11827 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11831 ALL_LINGUAS="de es it pt_BR"
11834 for ac_header in locale.h
11836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11838 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11839 $as_echo_n "checking for $ac_header... " >&6; }
11840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11841 $as_echo_n "(cached) " >&6
11843 ac_res=`eval 'as_val=${'$as_ac_Header'}
11844 $as_echo "$as_val"'`
11845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11846 $as_echo "$ac_res" >&6; }
11848 # Is the header compilable?
11849 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11850 $as_echo_n "checking $ac_header usability... " >&6; }
11851 cat >conftest.$ac_ext <<_ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 $ac_includes_default
11858 #include <$ac_header>
11860 rm -f conftest.$ac_objext
11861 if { (ac_try="$ac_compile"
11862 case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11867 $as_echo "$ac_try_echo") >&5
11868 (eval "$ac_compile") 2>conftest.er1
11870 grep -v '^ *+' conftest.er1 >conftest.err
11872 cat conftest.err >&5
11873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } && {
11875 test -z "$ac_c_werror_flag" ||
11876 test ! -s conftest.err
11877 } && test -s conftest.$ac_objext; then
11878 ac_header_compiler=yes
11880 $as_echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11883 ac_header_compiler=no
11886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11887 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11888 $as_echo "$ac_header_compiler" >&6; }
11890 # Is the header present?
11891 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11892 $as_echo_n "checking $ac_header presence... " >&6; }
11893 cat >conftest.$ac_ext <<_ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11899 #include <$ac_header>
11901 if { (ac_try="$ac_cpp conftest.$ac_ext"
11902 case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11907 $as_echo "$ac_try_echo") >&5
11908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11910 grep -v '^ *+' conftest.er1 >conftest.err
11912 cat conftest.err >&5
11913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } >/dev/null && {
11915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11916 test ! -s conftest.err
11918 ac_header_preproc=yes
11920 $as_echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 ac_header_preproc=no
11926 rm -f conftest.err conftest.$ac_ext
11927 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11928 $as_echo "$ac_header_preproc" >&6; }
11930 # So? What about this header?
11931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11934 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11937 ac_header_preproc=yes
11940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11941 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11943 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11945 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11947 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11949 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11951 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11956 $as_echo_n "checking for $ac_header... " >&6; }
11957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11958 $as_echo_n "(cached) " >&6
11960 eval "$as_ac_Header=\$ac_header_preproc"
11962 ac_res=`eval 'as_val=${'$as_ac_Header'}
11963 $as_echo "$as_val"'`
11964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11965 $as_echo "$ac_res" >&6; }
11968 as_val=`eval 'as_val=${'$as_ac_Header'}
11969 $as_echo "$as_val"'`
11970 if test "x$as_val" = x""yes; then
11971 cat >>confdefs.h <<_ACEOF
11972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11979 if test $ac_cv_header_locale_h = yes; then
11980 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11981 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11982 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11983 $as_echo_n "(cached) " >&6
11985 cat >conftest.$ac_ext <<_ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h. */
11991 #include <locale.h>
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (ac_try="$ac_link"
12002 case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12007 $as_echo "$ac_try_echo") >&5
12008 (eval "$ac_link") 2>conftest.er1
12010 grep -v '^ *+' conftest.er1 >conftest.err
12012 cat conftest.err >&5
12013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } && {
12015 test -z "$ac_c_werror_flag" ||
12016 test ! -s conftest.err
12017 } && test -s conftest$ac_exeext && {
12018 test "$cross_compiling" = yes ||
12019 $as_test_x conftest$ac_exeext
12021 am_cv_val_LC_MESSAGES=yes
12023 $as_echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12026 am_cv_val_LC_MESSAGES=no
12029 rm -rf conftest.dSYM
12030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12031 conftest$ac_exeext conftest.$ac_ext
12033 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12034 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12035 if test $am_cv_val_LC_MESSAGES = yes; then
12037 cat >>confdefs.h <<\_ACEOF
12038 #define HAVE_LC_MESSAGES 1
12046 gt_cv_have_gettext=no
12052 if test "${ac_cv_header_libintl_h+set}" = set; then
12053 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
12054 $as_echo_n "checking for libintl.h... " >&6; }
12055 if test "${ac_cv_header_libintl_h+set}" = set; then
12056 $as_echo_n "(cached) " >&6
12058 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12059 $as_echo "$ac_cv_header_libintl_h" >&6; }
12061 # Is the header compilable?
12062 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
12063 $as_echo_n "checking libintl.h usability... " >&6; }
12064 cat >conftest.$ac_ext <<_ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12070 $ac_includes_default
12071 #include <libintl.h>
12073 rm -f conftest.$ac_objext
12074 if { (ac_try="$ac_compile"
12075 case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12080 $as_echo "$ac_try_echo") >&5
12081 (eval "$ac_compile") 2>conftest.er1
12083 grep -v '^ *+' conftest.er1 >conftest.err
12085 cat conftest.err >&5
12086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } && {
12088 test -z "$ac_c_werror_flag" ||
12089 test ! -s conftest.err
12090 } && test -s conftest.$ac_objext; then
12091 ac_header_compiler=yes
12093 $as_echo "$as_me: failed program was:" >&5
12094 sed 's/^/| /' conftest.$ac_ext >&5
12096 ac_header_compiler=no
12099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12101 $as_echo "$ac_header_compiler" >&6; }
12103 # Is the header present?
12104 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
12105 $as_echo_n "checking libintl.h presence... " >&6; }
12106 cat >conftest.$ac_ext <<_ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 #include <libintl.h>
12114 if { (ac_try="$ac_cpp conftest.$ac_ext"
12115 case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12120 $as_echo "$ac_try_echo") >&5
12121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12123 grep -v '^ *+' conftest.er1 >conftest.err
12125 cat conftest.err >&5
12126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } >/dev/null && {
12128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12129 test ! -s conftest.err
12131 ac_header_preproc=yes
12133 $as_echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12136 ac_header_preproc=no
12139 rm -f conftest.err conftest.$ac_ext
12140 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12141 $as_echo "$ac_header_preproc" >&6; }
12143 # So? What about this header?
12144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12146 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12147 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12148 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
12149 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
12150 ac_header_preproc=yes
12153 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
12154 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
12155 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
12156 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
12157 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
12158 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
12159 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
12160 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12161 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
12162 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
12163 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
12164 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
12168 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
12169 $as_echo_n "checking for libintl.h... " >&6; }
12170 if test "${ac_cv_header_libintl_h+set}" = set; then
12171 $as_echo_n "(cached) " >&6
12173 ac_cv_header_libintl_h=$ac_header_preproc
12175 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12176 $as_echo "$ac_cv_header_libintl_h" >&6; }
12179 if test "x$ac_cv_header_libintl_h" = x""yes; then
12180 gt_cv_func_dgettext_libintl="no"
12181 libintl_extra_libs=""
12184 # First check in libc
12186 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
12187 $as_echo_n "checking for ngettext in libc... " >&6; }
12188 if test "${gt_cv_func_ngettext_libc+set}" = set; then
12189 $as_echo_n "(cached) " >&6
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 #include <libintl.h>
12203 return !ngettext ("","", 1)
12208 rm -f conftest.$ac_objext conftest$ac_exeext
12209 if { (ac_try="$ac_link"
12210 case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12215 $as_echo "$ac_try_echo") >&5
12216 (eval "$ac_link") 2>conftest.er1
12218 grep -v '^ *+' conftest.er1 >conftest.err
12220 cat conftest.err >&5
12221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest$ac_exeext && {
12226 test "$cross_compiling" = yes ||
12227 $as_test_x conftest$ac_exeext
12229 gt_cv_func_ngettext_libc=yes
12231 $as_echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 gt_cv_func_ngettext_libc=no
12237 rm -rf conftest.dSYM
12238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12239 conftest$ac_exeext conftest.$ac_ext
12242 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
12243 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
12245 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12246 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
12247 $as_echo_n "checking for dgettext in libc... " >&6; }
12248 if test "${gt_cv_func_dgettext_libc+set}" = set; then
12249 $as_echo_n "(cached) " >&6
12251 cat >conftest.$ac_ext <<_ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 #include <libintl.h>
12263 return !dgettext ("","")
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (ac_try="$ac_link"
12270 case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12275 $as_echo "$ac_try_echo") >&5
12276 (eval "$ac_link") 2>conftest.er1
12278 grep -v '^ *+' conftest.er1 >conftest.err
12280 cat conftest.err >&5
12281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } && {
12283 test -z "$ac_c_werror_flag" ||
12284 test ! -s conftest.err
12285 } && test -s conftest$ac_exeext && {
12286 test "$cross_compiling" = yes ||
12287 $as_test_x conftest$ac_exeext
12289 gt_cv_func_dgettext_libc=yes
12291 $as_echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 gt_cv_func_dgettext_libc=no
12297 rm -rf conftest.dSYM
12298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12299 conftest$ac_exeext conftest.$ac_ext
12302 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
12303 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
12306 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12308 for ac_func in bind_textdomain_codeset
12310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12311 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12312 $as_echo_n "checking for $ac_func... " >&6; }
12313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12314 $as_echo_n "(cached) " >&6
12316 cat >conftest.$ac_ext <<_ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12324 #define $ac_func innocuous_$ac_func
12326 /* System header to define __stub macros and hopefully few prototypes,
12327 which can conflict with char $ac_func (); below.
12328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12329 <limits.h> exists even on freestanding compilers. */
12332 # include <limits.h>
12334 # include <assert.h>
12339 /* Override any GCC internal prototype to avoid an error.
12340 Use char because int might match the return type of a GCC
12341 builtin and then its argument prototype would still apply. */
12346 /* The GNU C library defines this for functions which it implements
12347 to always fail with ENOSYS. Some functions are actually named
12348 something starting with __ and the normal name is an alias. */
12349 #if defined __stub_$ac_func || defined __stub___$ac_func
12356 return $ac_func ();
12361 rm -f conftest.$ac_objext conftest$ac_exeext
12362 if { (ac_try="$ac_link"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12368 $as_echo "$ac_try_echo") >&5
12369 (eval "$ac_link") 2>conftest.er1
12371 grep -v '^ *+' conftest.er1 >conftest.err
12373 cat conftest.err >&5
12374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } && {
12376 test -z "$ac_c_werror_flag" ||
12377 test ! -s conftest.err
12378 } && test -s conftest$ac_exeext && {
12379 test "$cross_compiling" = yes ||
12380 $as_test_x conftest$ac_exeext
12382 eval "$as_ac_var=yes"
12384 $as_echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12387 eval "$as_ac_var=no"
12390 rm -rf conftest.dSYM
12391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12392 conftest$ac_exeext conftest.$ac_ext
12394 ac_res=`eval 'as_val=${'$as_ac_var'}
12395 $as_echo "$as_val"'`
12396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12397 $as_echo "$ac_res" >&6; }
12398 as_val=`eval 'as_val=${'$as_ac_var'}
12399 $as_echo "$as_val"'`
12400 if test "x$as_val" = x""yes; then
12401 cat >>confdefs.h <<_ACEOF
12402 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12411 # If we don't have everything we want, check in libintl
12413 if test "$gt_cv_func_dgettext_libc" != "yes" \
12414 || test "$gt_cv_func_ngettext_libc" != "yes" \
12415 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
12417 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
12418 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
12419 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
12420 $as_echo_n "(cached) " >&6
12422 ac_check_lib_save_LIBS=$LIBS
12423 LIBS="-lintl $LIBS"
12424 cat >conftest.$ac_ext <<_ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12431 /* Override any GCC internal prototype to avoid an error.
12432 Use char because int might match the return type of a GCC
12433 builtin and then its argument prototype would still apply. */
12437 char bindtextdomain ();
12441 return bindtextdomain ();
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (ac_try="$ac_link"
12448 case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12453 $as_echo "$ac_try_echo") >&5
12454 (eval "$ac_link") 2>conftest.er1
12456 grep -v '^ *+' conftest.er1 >conftest.err
12458 cat conftest.err >&5
12459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } && {
12461 test -z "$ac_c_werror_flag" ||
12462 test ! -s conftest.err
12463 } && test -s conftest$ac_exeext && {
12464 test "$cross_compiling" = yes ||
12465 $as_test_x conftest$ac_exeext
12467 ac_cv_lib_intl_bindtextdomain=yes
12469 $as_echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ac_cv_lib_intl_bindtextdomain=no
12475 rm -rf conftest.dSYM
12476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12477 conftest$ac_exeext conftest.$ac_ext
12478 LIBS=$ac_check_lib_save_LIBS
12480 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
12481 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
12482 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
12483 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12484 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12485 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12486 $as_echo_n "(cached) " >&6
12488 ac_check_lib_save_LIBS=$LIBS
12489 LIBS="-lintl $LIBS"
12490 cat >conftest.$ac_ext <<_ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12497 /* Override any GCC internal prototype to avoid an error.
12498 Use char because int might match the return type of a GCC
12499 builtin and then its argument prototype would still apply. */
12507 return ngettext ();
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (ac_try="$ac_link"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12519 $as_echo "$ac_try_echo") >&5
12520 (eval "$ac_link") 2>conftest.er1
12522 grep -v '^ *+' conftest.er1 >conftest.err
12524 cat conftest.err >&5
12525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } && {
12527 test -z "$ac_c_werror_flag" ||
12528 test ! -s conftest.err
12529 } && test -s conftest$ac_exeext && {
12530 test "$cross_compiling" = yes ||
12531 $as_test_x conftest$ac_exeext
12533 ac_cv_lib_intl_ngettext=yes
12535 $as_echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12538 ac_cv_lib_intl_ngettext=no
12541 rm -rf conftest.dSYM
12542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12543 conftest$ac_exeext conftest.$ac_ext
12544 LIBS=$ac_check_lib_save_LIBS
12546 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12547 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12548 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
12549 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12550 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12551 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12552 $as_echo_n "(cached) " >&6
12554 ac_check_lib_save_LIBS=$LIBS
12555 LIBS="-lintl $LIBS"
12556 cat >conftest.$ac_ext <<_ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12563 /* Override any GCC internal prototype to avoid an error.
12564 Use char because int might match the return type of a GCC
12565 builtin and then its argument prototype would still apply. */
12573 return dgettext ();
12578 rm -f conftest.$ac_objext conftest$ac_exeext
12579 if { (ac_try="$ac_link"
12580 case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12585 $as_echo "$ac_try_echo") >&5
12586 (eval "$ac_link") 2>conftest.er1
12588 grep -v '^ *+' conftest.er1 >conftest.err
12590 cat conftest.err >&5
12591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } && {
12593 test -z "$ac_c_werror_flag" ||
12594 test ! -s conftest.err
12595 } && test -s conftest$ac_exeext && {
12596 test "$cross_compiling" = yes ||
12597 $as_test_x conftest$ac_exeext
12599 ac_cv_lib_intl_dgettext=yes
12601 $as_echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12604 ac_cv_lib_intl_dgettext=no
12607 rm -rf conftest.dSYM
12608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12609 conftest$ac_exeext conftest.$ac_ext
12610 LIBS=$ac_check_lib_save_LIBS
12612 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12613 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12614 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
12615 gt_cv_func_dgettext_libintl=yes
12623 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
12624 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
12625 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
12626 { $as_echo "$as_me:$LINENO: result: " >&5
12628 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12629 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12630 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12631 $as_echo_n "(cached) " >&6
12633 ac_check_lib_save_LIBS=$LIBS
12634 LIBS="-lintl -liconv $LIBS"
12635 cat >conftest.$ac_ext <<_ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12642 /* Override any GCC internal prototype to avoid an error.
12643 Use char because int might match the return type of a GCC
12644 builtin and then its argument prototype would still apply. */
12652 return ngettext ();
12657 rm -f conftest.$ac_objext conftest$ac_exeext
12658 if { (ac_try="$ac_link"
12659 case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12664 $as_echo "$ac_try_echo") >&5
12665 (eval "$ac_link") 2>conftest.er1
12667 grep -v '^ *+' conftest.er1 >conftest.err
12669 cat conftest.err >&5
12670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } && {
12672 test -z "$ac_c_werror_flag" ||
12673 test ! -s conftest.err
12674 } && test -s conftest$ac_exeext && {
12675 test "$cross_compiling" = yes ||
12676 $as_test_x conftest$ac_exeext
12678 ac_cv_lib_intl_ngettext=yes
12680 $as_echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 ac_cv_lib_intl_ngettext=no
12686 rm -rf conftest.dSYM
12687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12688 conftest$ac_exeext conftest.$ac_ext
12689 LIBS=$ac_check_lib_save_LIBS
12691 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12692 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12693 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
12694 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
12695 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
12696 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
12697 $as_echo_n "(cached) " >&6
12699 ac_check_lib_save_LIBS=$LIBS
12700 LIBS="-lintl -liconv $LIBS"
12701 cat >conftest.$ac_ext <<_ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12718 return dcgettext ();
12723 rm -f conftest.$ac_objext conftest$ac_exeext
12724 if { (ac_try="$ac_link"
12725 case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12730 $as_echo "$ac_try_echo") >&5
12731 (eval "$ac_link") 2>conftest.er1
12733 grep -v '^ *+' conftest.er1 >conftest.err
12735 cat conftest.err >&5
12736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } && {
12738 test -z "$ac_c_werror_flag" ||
12739 test ! -s conftest.err
12740 } && test -s conftest$ac_exeext && {
12741 test "$cross_compiling" = yes ||
12742 $as_test_x conftest$ac_exeext
12744 ac_cv_lib_intl_dcgettext=yes
12746 $as_echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 ac_cv_lib_intl_dcgettext=no
12752 rm -rf conftest.dSYM
12753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12754 conftest$ac_exeext conftest.$ac_ext
12755 LIBS=$ac_check_lib_save_LIBS
12757 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
12758 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
12759 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
12760 gt_cv_func_dgettext_libintl=yes
12761 libintl_extra_libs=-liconv
12773 # If we found libintl, then check in it for bind_textdomain_codeset();
12774 # we'll prefer libc if neither have bind_textdomain_codeset(),
12775 # and both have dgettext and ngettext
12777 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
12778 glib_save_LIBS="$LIBS"
12779 LIBS="$LIBS -lintl $libintl_extra_libs"
12780 unset ac_cv_func_bind_textdomain_codeset
12782 for ac_func in bind_textdomain_codeset
12784 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12785 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12786 $as_echo_n "checking for $ac_func... " >&6; }
12787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12788 $as_echo_n "(cached) " >&6
12790 cat >conftest.$ac_ext <<_ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12798 #define $ac_func innocuous_$ac_func
12800 /* System header to define __stub macros and hopefully few prototypes,
12801 which can conflict with char $ac_func (); below.
12802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12803 <limits.h> exists even on freestanding compilers. */
12806 # include <limits.h>
12808 # include <assert.h>
12813 /* Override any GCC internal prototype to avoid an error.
12814 Use char because int might match the return type of a GCC
12815 builtin and then its argument prototype would still apply. */
12820 /* The GNU C library defines this for functions which it implements
12821 to always fail with ENOSYS. Some functions are actually named
12822 something starting with __ and the normal name is an alias. */
12823 #if defined __stub_$ac_func || defined __stub___$ac_func
12830 return $ac_func ();
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (ac_try="$ac_link"
12837 case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12842 $as_echo "$ac_try_echo") >&5
12843 (eval "$ac_link") 2>conftest.er1
12845 grep -v '^ *+' conftest.er1 >conftest.err
12847 cat conftest.err >&5
12848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } && {
12850 test -z "$ac_c_werror_flag" ||
12851 test ! -s conftest.err
12852 } && test -s conftest$ac_exeext && {
12853 test "$cross_compiling" = yes ||
12854 $as_test_x conftest$ac_exeext
12856 eval "$as_ac_var=yes"
12858 $as_echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12861 eval "$as_ac_var=no"
12864 rm -rf conftest.dSYM
12865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12866 conftest$ac_exeext conftest.$ac_ext
12868 ac_res=`eval 'as_val=${'$as_ac_var'}
12869 $as_echo "$as_val"'`
12870 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12871 $as_echo "$ac_res" >&6; }
12872 as_val=`eval 'as_val=${'$as_ac_var'}
12873 $as_echo "$as_val"'`
12874 if test "x$as_val" = x""yes; then
12875 cat >>confdefs.h <<_ACEOF
12876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12882 LIBS="$glib_save_LIBS"
12884 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
12885 gt_cv_func_dgettext_libc=no
12887 if test "$gt_cv_func_dgettext_libc" = "yes" \
12888 && test "$gt_cv_func_ngettext_libc" = "yes"; then
12889 gt_cv_func_dgettext_libintl=no
12895 if test "$gt_cv_func_dgettext_libc" = "yes" \
12896 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
12897 gt_cv_have_gettext=yes
12900 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
12901 INTLLIBS="-lintl $libintl_extra_libs"
12904 if test "$gt_cv_have_gettext" = "yes"; then
12906 cat >>confdefs.h <<\_ACEOF
12907 #define HAVE_GETTEXT 1
12910 # Extract the first word of "msgfmt", so it can be a program name with args.
12911 set dummy msgfmt; ac_word=$2
12912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12913 $as_echo_n "checking for $ac_word... " >&6; }
12914 if test "${ac_cv_path_MSGFMT+set}" = set; then
12915 $as_echo_n "(cached) " >&6
12919 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12923 for ac_dir in $PATH; do
12924 test -z "$ac_dir" && ac_dir=.
12925 if test -f $ac_dir/$ac_word; then
12926 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12927 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12933 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
12937 MSGFMT="$ac_cv_path_MSGFMT"
12938 if test "$MSGFMT" != "no"; then
12939 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
12940 $as_echo "$MSGFMT" >&6; }
12942 { $as_echo "$as_me:$LINENO: result: no" >&5
12943 $as_echo "no" >&6; }
12945 if test "$MSGFMT" != "no"; then
12946 glib_save_LIBS="$LIBS"
12947 LIBS="$LIBS $INTLLIBS"
12949 for ac_func in dcgettext
12951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12952 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12953 $as_echo_n "checking for $ac_func... " >&6; }
12954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12955 $as_echo_n "(cached) " >&6
12957 cat >conftest.$ac_ext <<_ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12965 #define $ac_func innocuous_$ac_func
12967 /* System header to define __stub macros and hopefully few prototypes,
12968 which can conflict with char $ac_func (); below.
12969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12970 <limits.h> exists even on freestanding compilers. */
12973 # include <limits.h>
12975 # include <assert.h>
12980 /* Override any GCC internal prototype to avoid an error.
12981 Use char because int might match the return type of a GCC
12982 builtin and then its argument prototype would still apply. */
12987 /* The GNU C library defines this for functions which it implements
12988 to always fail with ENOSYS. Some functions are actually named
12989 something starting with __ and the normal name is an alias. */
12990 #if defined __stub_$ac_func || defined __stub___$ac_func
12997 return $ac_func ();
13002 rm -f conftest.$ac_objext conftest$ac_exeext
13003 if { (ac_try="$ac_link"
13004 case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13009 $as_echo "$ac_try_echo") >&5
13010 (eval "$ac_link") 2>conftest.er1
13012 grep -v '^ *+' conftest.er1 >conftest.err
13014 cat conftest.err >&5
13015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } && {
13017 test -z "$ac_c_werror_flag" ||
13018 test ! -s conftest.err
13019 } && test -s conftest$ac_exeext && {
13020 test "$cross_compiling" = yes ||
13021 $as_test_x conftest$ac_exeext
13023 eval "$as_ac_var=yes"
13025 $as_echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 eval "$as_ac_var=no"
13031 rm -rf conftest.dSYM
13032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13033 conftest$ac_exeext conftest.$ac_ext
13035 ac_res=`eval 'as_val=${'$as_ac_var'}
13036 $as_echo "$as_val"'`
13037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13038 $as_echo "$ac_res" >&6; }
13039 as_val=`eval 'as_val=${'$as_ac_var'}
13040 $as_echo "$as_val"'`
13041 if test "x$as_val" = x""yes; then
13042 cat >>confdefs.h <<_ACEOF
13043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13050 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
13051 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
13052 cat >conftest.foo <<_ACEOF
13056 "Content-Type: text/plain; charset=UTF-8\n"
13057 "Project-Id-Version: test 1.0\n"
13058 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
13059 "Last-Translator: test <foo@bar.xx>\n"
13060 "Language-Team: C <LL@li.org>\n"
13061 "MIME-Version: 1.0\n"
13062 "Content-Transfer-Encoding: 8bit\n"
13065 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
13066 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
13068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; then
13070 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
13071 $as_echo "yes" >&6; }
13072 else { $as_echo "$as_me:$LINENO: result: no" >&5
13073 $as_echo "no" >&6; }
13074 echo "$as_me: failed input was:" >&5
13075 sed 's/^/| /' conftest.foo >&5
13078 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13079 set dummy gmsgfmt; ac_word=$2
13080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13081 $as_echo_n "checking for $ac_word... " >&6; }
13082 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13083 $as_echo_n "(cached) " >&6
13087 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091 for as_dir in $PATH
13094 test -z "$as_dir" && as_dir=.
13095 for ac_exec_ext in '' $ac_executable_extensions; do
13096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13097 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13109 GMSGFMT=$ac_cv_path_GMSGFMT
13110 if test -n "$GMSGFMT"; then
13111 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13112 $as_echo "$GMSGFMT" >&6; }
13114 { $as_echo "$as_me:$LINENO: result: no" >&5
13115 $as_echo "no" >&6; }
13119 # Extract the first word of "xgettext", so it can be a program name with args.
13120 set dummy xgettext; ac_word=$2
13121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13122 $as_echo_n "checking for $ac_word... " >&6; }
13123 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13124 $as_echo_n "(cached) " >&6
13126 case "$XGETTEXT" in
13128 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13132 for ac_dir in $PATH; do
13133 test -z "$ac_dir" && ac_dir=.
13134 if test -f $ac_dir/$ac_word; then
13135 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13136 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13142 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13146 XGETTEXT="$ac_cv_path_XGETTEXT"
13147 if test "$XGETTEXT" != ":"; then
13148 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13149 $as_echo "$XGETTEXT" >&6; }
13151 { $as_echo "$as_me:$LINENO: result: no" >&5
13152 $as_echo "no" >&6; }
13155 cat >conftest.$ac_ext <<_ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13165 extern int _nl_msg_cat_cntr;
13166 return _nl_msg_cat_cntr
13171 rm -f conftest.$ac_objext conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13178 $as_echo "$ac_try_echo") >&5
13179 (eval "$ac_link") 2>conftest.er1
13181 grep -v '^ *+' conftest.er1 >conftest.err
13183 cat conftest.err >&5
13184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } && {
13186 test -z "$ac_c_werror_flag" ||
13187 test ! -s conftest.err
13188 } && test -s conftest$ac_exeext && {
13189 test "$cross_compiling" = yes ||
13190 $as_test_x conftest$ac_exeext
13195 $as_echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13200 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
13201 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
13202 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
13203 $as_echo_n "(cached) " >&6
13205 cat >conftest.$ac_ext <<_ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h. */
13211 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
13212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13213 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
13215 /* System header to define __stub macros and hopefully few prototypes,
13216 which can conflict with char bind_textdomain_codeset (); below.
13217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13218 <limits.h> exists even on freestanding compilers. */
13221 # include <limits.h>
13223 # include <assert.h>
13226 #undef bind_textdomain_codeset
13228 /* Override any GCC internal prototype to avoid an error.
13229 Use char because int might match the return type of a GCC
13230 builtin and then its argument prototype would still apply. */
13234 char bind_textdomain_codeset ();
13235 /* The GNU C library defines this for functions which it implements
13236 to always fail with ENOSYS. Some functions are actually named
13237 something starting with __ and the normal name is an alias. */
13238 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
13245 return bind_textdomain_codeset ();
13250 rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (ac_try="$ac_link"
13252 case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13257 $as_echo "$ac_try_echo") >&5
13258 (eval "$ac_link") 2>conftest.er1
13260 grep -v '^ *+' conftest.er1 >conftest.err
13262 cat conftest.err >&5
13263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } && {
13265 test -z "$ac_c_werror_flag" ||
13266 test ! -s conftest.err
13267 } && test -s conftest$ac_exeext && {
13268 test "$cross_compiling" = yes ||
13269 $as_test_x conftest$ac_exeext
13271 ac_cv_func_bind_textdomain_codeset=yes
13273 $as_echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13276 ac_cv_func_bind_textdomain_codeset=no
13279 rm -rf conftest.dSYM
13280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13281 conftest$ac_exeext conftest.$ac_ext
13283 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
13284 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
13285 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
13301 rm -rf conftest.dSYM
13302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13303 conftest$ac_exeext conftest.$ac_ext
13304 LIBS="$glib_save_LIBS"
13307 gt_cv_have_gettext=no
13315 if test "$gt_cv_have_gettext" = "yes" ; then
13317 cat >>confdefs.h <<\_ACEOF
13318 #define ENABLE_NLS 1
13323 if test "$XGETTEXT" != ":"; then
13324 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
13327 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13328 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13333 # We need to process the po/ directory.
13336 ac_config_commands="$ac_config_commands default-1"
13339 for lang in $ALL_LINGUAS; do
13340 GMOFILES="$GMOFILES $lang.gmo"
13341 POFILES="$POFILES $lang.po"
13356 if test "$gt_cv_have_gettext" = "yes"; then
13357 if test "x$ALL_LINGUAS" = "x"; then
13360 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13361 $as_echo_n "checking for catalogs to be installed... " >&6; }
13363 for presentlang in $ALL_LINGUAS; do
13365 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
13366 desiredlanguages="$LINGUAS"
13368 desiredlanguages="$ALL_LINGUAS"
13370 for desiredlang in $desiredlanguages; do
13371 # Use the presentlang catalog if desiredlang is
13372 # a. equal to presentlang, or
13373 # b. a variant of presentlang (because in this case,
13374 # presentlang can be used as a fallback for messages
13375 # which are not translated in the desiredlang catalog).
13376 case "$desiredlang" in
13377 "$presentlang"*) useit=yes;;
13380 if test $useit = yes; then
13381 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13384 LINGUAS=$NEW_LINGUAS
13385 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
13386 $as_echo "$LINGUAS" >&6; }
13389 if test -n "$LINGUAS"; then
13390 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13395 if test -n "$ac_aux_dir"; then
13396 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13398 if test -z "$MKINSTALLDIRS"; then
13399 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13403 test -d po || mkdir po
13404 if test "x$srcdir" != "x."; then
13405 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
13406 posrcprefix="$srcdir/"
13408 posrcprefix="../$srcdir/"
13414 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
13415 < $srcdir/po/POTFILES.in > po/POTFILES
13418 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
13420 cat >confcache <<\_ACEOF
13421 # This file is a shell script that caches the results of configure
13422 # tests run on this system so they can be shared between configure
13423 # scripts and configure runs, see configure's option --config-cache.
13424 # It is not useful on other systems. If it contains results you don't
13425 # want to keep, you may remove or edit it.
13427 # config.status only pays attention to the cache file if you give it
13428 # the --recheck option to rerun configure.
13430 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13431 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13432 # following values.
13436 # The following way of writing the cache mishandles newlines in values,
13437 # but we know of no workaround that is simple, portable, and efficient.
13438 # So, we kill variables containing newlines.
13439 # Ultrix sh set writes to stderr and can't be redirected directly,
13440 # and sets the high bit in the cache file unless we assign to the vars.
13442 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13443 eval ac_val=\$$ac_var
13447 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13448 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13451 _ | IFS | as_nl) ;; #(
13452 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13453 *) $as_unset $ac_var ;;
13459 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13460 *${as_nl}ac_space=\ *)
13461 # `set' does not quote correctly, so add quotes (double-quote
13462 # substitution turns \\\\ into \\, and sed turns \\ into \).
13465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13468 # `set' quotes correctly as required by POSIX, so do not add quotes.
13469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13478 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13480 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13482 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13483 if test -w "$cache_file"; then
13484 test "x$cache_file" != "x/dev/null" &&
13485 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13486 $as_echo "$as_me: updating cache $cache_file" >&6;}
13487 cat confcache >$cache_file
13489 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13490 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13495 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13496 # Let make expand exec_prefix.
13497 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13499 DEFS=-DHAVE_CONFIG_H
13503 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13504 # 1. Remove the extension, and $U if already installed.
13505 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13506 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13507 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13508 # will be set to the directory where LIBOBJS objects are built.
13509 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13510 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13512 LIBOBJS=$ac_libobjs
13514 LTLIBOBJS=$ac_ltlibobjs
13517 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13518 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13519 Usually this means the macro was only invoked conditionally." >&5
13520 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13521 Usually this means the macro was only invoked conditionally." >&2;}
13522 { (exit 1); exit 1; }; }
13524 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13525 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13526 Usually this means the macro was only invoked conditionally." >&5
13527 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13528 Usually this means the macro was only invoked conditionally." >&2;}
13529 { (exit 1); exit 1; }; }
13531 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13532 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13533 Usually this means the macro was only invoked conditionally." >&5
13534 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13535 Usually this means the macro was only invoked conditionally." >&2;}
13536 { (exit 1); exit 1; }; }
13538 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13539 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13540 Usually this means the macro was only invoked conditionally." >&5
13541 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13542 Usually this means the macro was only invoked conditionally." >&2;}
13543 { (exit 1); exit 1; }; }
13545 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13546 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13547 Usually this means the macro was only invoked conditionally." >&5
13548 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13549 Usually this means the macro was only invoked conditionally." >&2;}
13550 { (exit 1); exit 1; }; }
13552 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
13553 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
13554 Usually this means the macro was only invoked conditionally." >&5
13555 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
13556 Usually this means the macro was only invoked conditionally." >&2;}
13557 { (exit 1); exit 1; }; }
13559 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
13560 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
13561 Usually this means the macro was only invoked conditionally." >&5
13562 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
13563 Usually this means the macro was only invoked conditionally." >&2;}
13564 { (exit 1); exit 1; }; }
13566 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
13567 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SHARED\" was never defined.
13568 Usually this means the macro was only invoked conditionally." >&5
13569 $as_echo "$as_me: error: conditional \"BUILD_SHARED\" was never defined.
13570 Usually this means the macro was only invoked conditionally." >&2;}
13571 { (exit 1); exit 1; }; }
13573 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
13574 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
13575 Usually this means the macro was only invoked conditionally." >&5
13576 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
13577 Usually this means the macro was only invoked conditionally." >&2;}
13578 { (exit 1); exit 1; }; }
13580 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
13581 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
13582 Usually this means the macro was only invoked conditionally." >&5
13583 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
13584 Usually this means the macro was only invoked conditionally." >&2;}
13585 { (exit 1); exit 1; }; }
13587 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
13588 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
13589 Usually this means the macro was only invoked conditionally." >&5
13590 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
13591 Usually this means the macro was only invoked conditionally." >&2;}
13592 { (exit 1); exit 1; }; }
13594 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
13595 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
13596 Usually this means the macro was only invoked conditionally." >&5
13597 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
13598 Usually this means the macro was only invoked conditionally." >&2;}
13599 { (exit 1); exit 1; }; }
13601 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
13602 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
13603 Usually this means the macro was only invoked conditionally." >&5
13604 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
13605 Usually this means the macro was only invoked conditionally." >&2;}
13606 { (exit 1); exit 1; }; }
13608 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
13609 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
13610 Usually this means the macro was only invoked conditionally." >&5
13611 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
13612 Usually this means the macro was only invoked conditionally." >&2;}
13613 { (exit 1); exit 1; }; }
13615 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
13616 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
13617 Usually this means the macro was only invoked conditionally." >&5
13618 $as_echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
13619 Usually this means the macro was only invoked conditionally." >&2;}
13620 { (exit 1); exit 1; }; }
13622 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
13623 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
13624 Usually this means the macro was only invoked conditionally." >&5
13625 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
13626 Usually this means the macro was only invoked conditionally." >&2;}
13627 { (exit 1); exit 1; }; }
13629 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
13630 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
13631 Usually this means the macro was only invoked conditionally." >&5
13632 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
13633 Usually this means the macro was only invoked conditionally." >&2;}
13634 { (exit 1); exit 1; }; }
13636 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
13637 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
13638 Usually this means the macro was only invoked conditionally." >&5
13639 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
13640 Usually this means the macro was only invoked conditionally." >&2;}
13641 { (exit 1); exit 1; }; }
13643 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
13644 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
13645 Usually this means the macro was only invoked conditionally." >&5
13646 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
13647 Usually this means the macro was only invoked conditionally." >&2;}
13648 { (exit 1); exit 1; }; }
13650 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
13651 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
13652 Usually this means the macro was only invoked conditionally." >&5
13653 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
13654 Usually this means the macro was only invoked conditionally." >&2;}
13655 { (exit 1); exit 1; }; }
13657 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
13658 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
13659 Usually this means the macro was only invoked conditionally." >&5
13660 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
13661 Usually this means the macro was only invoked conditionally." >&2;}
13662 { (exit 1); exit 1; }; }
13664 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
13665 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
13666 Usually this means the macro was only invoked conditionally." >&5
13667 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
13668 Usually this means the macro was only invoked conditionally." >&2;}
13669 { (exit 1); exit 1; }; }
13671 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
13672 { { $as_echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
13673 Usually this means the macro was only invoked conditionally." >&5
13674 $as_echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
13675 Usually this means the macro was only invoked conditionally." >&2;}
13676 { (exit 1); exit 1; }; }
13678 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
13679 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
13680 Usually this means the macro was only invoked conditionally." >&5
13681 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
13682 Usually this means the macro was only invoked conditionally." >&2;}
13683 { (exit 1); exit 1; }; }
13685 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
13686 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
13687 Usually this means the macro was only invoked conditionally." >&5
13688 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
13689 Usually this means the macro was only invoked conditionally." >&2;}
13690 { (exit 1); exit 1; }; }
13693 : ${CONFIG_STATUS=./config.status}
13695 ac_clean_files_save=$ac_clean_files
13696 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13697 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13698 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13699 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13701 # Generated by $as_me.
13702 # Run this file to recreate the current configuration.
13703 # Compiler output produced by configure, useful for debugging
13704 # configure, is in config.log if it exists.
13707 ac_cs_recheck=false
13709 SHELL=\${CONFIG_SHELL-$SHELL}
13712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13713 ## --------------------- ##
13714 ## M4sh Initialization. ##
13715 ## --------------------- ##
13717 # Be more Bourne compatible
13718 DUALCASE=1; export DUALCASE # for MKS sh
13719 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13722 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13723 # is contrary to our usage. Disable this feature.
13724 alias -g '${1+"$@"}'='"$@"'
13725 setopt NO_GLOB_SUBST
13727 case `(set -o) 2>/dev/null` in
13728 *posix*) set -o posix ;;
13737 # Avoid depending upon Character Ranges.
13738 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13739 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13740 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13741 as_cr_digits='0123456789'
13742 as_cr_alnum=$as_cr_Letters$as_cr_digits
13747 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13748 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13749 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13751 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13752 as_echo='printf %s\n'
13753 as_echo_n='printf %s'
13755 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13756 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13757 as_echo_n='/usr/ucb/echo -n'
13759 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13760 as_echo_n_body='eval
13764 expr "X$arg" : "X\\(.*\\)$as_nl";
13765 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13767 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13769 export as_echo_n_body
13770 as_echo_n='sh -c $as_echo_n_body as_echo'
13772 export as_echo_body
13773 as_echo='sh -c $as_echo_body as_echo'
13776 # The user is always right.
13777 if test "${PATH_SEPARATOR+set}" != set; then
13779 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13780 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13785 # Support unset when possible.
13786 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13794 # We need space, tab and new line, in precisely that order. Quoting is
13795 # there to prevent editors from complaining about space-tab.
13796 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13797 # splitting by setting IFS to empty value.)
13800 # Find who we are. Look in the path if we contain no directory separator.
13802 *[\\/]* ) as_myself=$0 ;;
13803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13807 test -z "$as_dir" && as_dir=.
13808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13814 # We did not find ourselves, most probably we were run as `sh COMMAND'
13815 # in which case we are not to be found in the path.
13816 if test "x$as_myself" = x; then
13819 if test ! -f "$as_myself"; then
13820 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13821 { (exit 1); exit 1; }
13824 # Work around bugs in pre-3.0 UWIN ksh.
13825 for as_var in ENV MAIL MAILPATH
13826 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13838 # Required to use basename.
13839 if expr a : '\(a\)' >/dev/null 2>&1 &&
13840 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13846 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13847 as_basename=basename
13853 # Name of the executable.
13854 as_me=`$as_basename -- "$0" ||
13855 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13856 X"$0" : 'X\(//\)$' \| \
13857 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13859 sed '/^.*\/\([^/][^/]*\)\/*$/{
13878 as_lineno_1=$LINENO
13879 as_lineno_2=$LINENO
13880 test "x$as_lineno_1" != "x$as_lineno_2" &&
13881 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13883 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13884 # uniformly replaced by the line number. The first 'sed' inserts a
13885 # line-number line after each line using $LINENO; the second 'sed'
13886 # does the real work. The second script uses 'N' to pair each
13887 # line-number line with the line containing $LINENO, and appends
13888 # trailing '-' during substitution so that $LINENO is not a special
13889 # case at line end.
13890 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13891 # scripts with optimization help from Paolo Bonzini. Blame Lee
13892 # E. McMahon (1931-1989) for sed's syntax. :-)
13904 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13907 ' >$as_me.lineno &&
13908 chmod +x "$as_me.lineno" ||
13909 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13910 { (exit 1); exit 1; }; }
13912 # Don't try to exec as it changes $[0], causing all sort of problems
13913 # (the dirname of $[0] is not the place where we might find the
13914 # original and so on. Autoconf is especially sensitive to this).
13915 . "./$as_me.lineno"
13916 # Exit status is that of the last command.
13921 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13927 ECHO_C= ECHO_N= ECHO_T=
13928 case `echo -n x` in
13930 case `echo 'x\c'` in
13931 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13937 if expr a : '\(a\)' >/dev/null 2>&1 &&
13938 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13944 rm -f conf$$ conf$$.exe conf$$.file
13945 if test -d conf$$.dir; then
13946 rm -f conf$$.dir/conf$$.file
13949 mkdir conf$$.dir 2>/dev/null
13951 if (echo >conf$$.file) 2>/dev/null; then
13952 if ln -s conf$$.file conf$$ 2>/dev/null; then
13954 # ... but there are two gotchas:
13955 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13956 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13957 # In both cases, we have to default to `cp -p'.
13958 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13960 elif ln conf$$.file conf$$ 2>/dev/null; then
13968 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13969 rmdir conf$$.dir 2>/dev/null
13971 if mkdir -p . 2>/dev/null; then
13974 test -d ./-p && rmdir ./-p
13978 if test -x / >/dev/null 2>&1; then
13979 as_test_x='test -x'
13981 if ls -dL / >/dev/null 2>&1; then
13988 if test -d "$1"; then
13994 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13995 ???[sx]*):;;*)false;;esac;fi
13999 as_executable_p=$as_test_x
14001 # Sed expression to map a string onto a valid CPP name.
14002 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14004 # Sed expression to map a string onto a valid variable name.
14005 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14010 # Save the log message, to keep $[0] and so on meaningful, and to
14011 # report actual input values of CONFIG_FILES etc. instead of their
14012 # values after options handling.
14014 This file was extended by $as_me, which was
14015 generated by GNU Autoconf 2.63. Invocation command line was
14017 CONFIG_FILES = $CONFIG_FILES
14018 CONFIG_HEADERS = $CONFIG_HEADERS
14019 CONFIG_LINKS = $CONFIG_LINKS
14020 CONFIG_COMMANDS = $CONFIG_COMMANDS
14023 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14028 case $ac_config_files in *"
14029 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14032 case $ac_config_headers in *"
14033 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14038 # Files that config.status was made for.
14039 config_files="$ac_config_files"
14040 config_headers="$ac_config_headers"
14041 config_commands="$ac_config_commands"
14045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14047 \`$as_me' instantiates files from templates according to the
14048 current configuration.
14050 Usage: $0 [OPTION]... [FILE]...
14052 -h, --help print this help, then exit
14053 -V, --version print version number and configuration settings, then exit
14054 -q, --quiet, --silent
14055 do not print progress messages
14056 -d, --debug don't remove temporary files
14057 --recheck update $as_me by reconfiguring in the same conditions
14058 --file=FILE[:TEMPLATE]
14059 instantiate the configuration file FILE
14060 --header=FILE[:TEMPLATE]
14061 instantiate the configuration header FILE
14063 Configuration files:
14066 Configuration headers:
14069 Configuration commands:
14072 Report bugs to <bug-autoconf@gnu.org>."
14075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14078 configured by $0, generated by GNU Autoconf 2.63,
14079 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14081 Copyright (C) 2008 Free Software Foundation, Inc.
14082 This config.status script is free software; the Free Software Foundation
14083 gives unlimited permission to copy, distribute and modify it."
14089 test -n "\$AWK" || AWK=awk
14092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14093 # The default lists apply if the user does not specify any file.
14099 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14111 # Handling of the options.
14112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14114 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14115 $as_echo "$ac_cs_version"; exit ;;
14116 --debug | --debu | --deb | --de | --d | -d )
14118 --file | --fil | --fi | --f )
14121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14123 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14124 ac_need_defaults=false;;
14125 --header | --heade | --head | --hea )
14128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14130 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14131 ac_need_defaults=false;;
14133 # Conflict between --help and --header
14134 { $as_echo "$as_me: error: ambiguous option: $1
14135 Try \`$0 --help' for more information." >&2
14136 { (exit 1); exit 1; }; };;
14137 --help | --hel | -h )
14138 $as_echo "$ac_cs_usage"; exit ;;
14139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14140 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14143 # This is an error.
14144 -*) { $as_echo "$as_me: error: unrecognized option: $1
14145 Try \`$0 --help' for more information." >&2
14146 { (exit 1); exit 1; }; } ;;
14148 *) ac_config_targets="$ac_config_targets $1"
14149 ac_need_defaults=false ;;
14155 ac_configure_extra_args=
14157 if $ac_cs_silent; then
14159 ac_configure_extra_args="$ac_configure_extra_args --silent"
14163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14164 if \$ac_cs_recheck; then
14165 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14167 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14168 CONFIG_SHELL='$SHELL'
14169 export CONFIG_SHELL
14174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14179 ## Running $as_me. ##
14185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14189 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14196 # Handling of arguments.
14197 for ac_config_target in $ac_config_targets
14199 case $ac_config_target in
14200 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14201 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14202 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14203 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14204 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14205 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14206 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14207 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
14209 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14210 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14211 { (exit 1); exit 1; }; };;
14216 # If the user did not use the arguments to specify the items to instantiate,
14217 # then the envvar interface is used. Set only those that are not.
14218 # We use the long form for the default assignment because of an extremely
14219 # bizarre bug on SunOS 4.1.3.
14220 if $ac_need_defaults; then
14221 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14222 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14223 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14226 # Have a temporary directory for convenience. Make it in the build tree
14227 # simply because there is no reason against having it here, and in addition,
14228 # creating and moving files from /tmp can sometimes cause problems.
14229 # Hook for its removal unless debugging.
14230 # Note that there is a small window in which the directory will not be cleaned:
14231 # after its creation but before its name has been assigned to `$tmp'.
14235 trap 'exit_status=$?
14236 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14238 trap '{ (exit 1); exit 1; }' 1 2 13 15
14240 # Create a (secure) tmp directory for tmp files.
14243 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14244 test -n "$tmp" && test -d "$tmp"
14247 tmp=./conf$$-$RANDOM
14248 (umask 077 && mkdir "$tmp")
14251 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14252 { (exit 1); exit 1; }
14255 # Set up the scripts for CONFIG_FILES section.
14256 # No need to generate them if there are no CONFIG_FILES.
14257 # This happens for instance with `./config.status config.h'.
14258 if test -n "$CONFIG_FILES"; then
14263 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14264 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14267 ac_cs_awk_cr=$ac_cr
14270 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14275 echo "cat >conf$$subs.awk <<_ACEOF" &&
14276 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14278 } >conf$$subs.sh ||
14279 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14280 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14281 { (exit 1); exit 1; }; }
14282 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14284 for ac_last_try in false false false false false :; do
14285 . ./conf$$subs.sh ||
14286 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14287 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14288 { (exit 1); exit 1; }; }
14290 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14291 if test $ac_delim_n = $ac_delim_num; then
14293 elif $ac_last_try; then
14294 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14295 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14296 { (exit 1); exit 1; }; }
14298 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14301 rm -f conf$$subs.sh
14303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14304 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14308 s/^/S["/; s/!.*/"]=/
14318 s/\(.\{148\}\).*/\1/
14320 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14325 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14332 s/\(.\{148\}\).*/\1/
14334 s/["\\]/\\&/g; s/^/"/; s/$/"/
14338 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14343 ' <conf$$subs.awk | sed '
14348 ' >>$CONFIG_STATUS || ac_write_fail=1
14349 rm -f conf$$subs.awk
14350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14352 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14353 for (key in S) S_is_set[key] = 1
14359 nfields = split(line, field, "@")
14361 len = length(field[1])
14362 for (i = 2; i < nfields; i++) {
14364 keylen = length(key)
14365 if (S_is_set[key]) {
14367 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14368 len += length(value) + length(field[++i])
14379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14380 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14381 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14384 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14385 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14386 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14387 { (exit 1); exit 1; }; }
14390 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14391 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14392 # trailing colons and then remove the whole line if VPATH becomes empty
14393 # (actually we leave an empty line to preserve line numbers).
14394 if test "x$srcdir" = x.; then
14395 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14396 s/:*\$(srcdir):*/:/
14397 s/:*\${srcdir}:*/:/
14399 s/^\([^=]*=[ ]*\):*/\1/
14405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14406 fi # test -n "$CONFIG_FILES"
14408 # Set up the scripts for CONFIG_HEADERS section.
14409 # No need to generate them if there are no CONFIG_HEADERS.
14410 # This happens for instance with `./config.status Makefile'.
14411 if test -n "$CONFIG_HEADERS"; then
14412 cat >"$tmp/defines.awk" <<\_ACAWK ||
14416 # Transform confdefs.h into an awk script `defines.awk', embedded as
14417 # here-document in config.status, that substitutes the proper values into
14418 # config.h.in to produce config.h.
14420 # Create a delimiter string that does not exist in confdefs.h, to ease
14421 # handling of long lines.
14423 for ac_last_try in false false :; do
14424 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14425 if test -z "$ac_t"; then
14427 elif $ac_last_try; then
14428 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14429 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14430 { (exit 1); exit 1; }; }
14432 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14436 # For the awk script, D is an array of macro values keyed by name,
14437 # likewise P contains macro parameters if any. Preserve backslash
14438 # newline sequences.
14440 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14442 s/.\{148\}/&'"$ac_delim"'/g
14445 s/^[ ]*#[ ]*define[ ][ ]*/ /
14452 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14454 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14458 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14459 D["\1"]=" \3\\\\\\n"\\/p
14461 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14466 s/.\{148\}/&'"$ac_delim"'/g
14471 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14474 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14476 ' <confdefs.h | sed '
14477 s/'"$ac_delim"'/"\\\
14478 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14481 for (key in D) D_is_set[key] = 1
14484 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14486 split(line, arg, " ")
14487 if (arg[1] == "#") {
14491 defundef = substr(arg[1], 2)
14494 split(mac1, mac2, "(") #)
14496 prefix = substr(line, 1, index(line, defundef) - 1)
14497 if (D_is_set[macro]) {
14498 # Preserve the white space surrounding the "#".
14499 print prefix "define", macro P[macro] D[macro]
14502 # Replace #undef with comments. This is necessary, for example,
14503 # in the case of _POSIX_SOURCE, which is predefined and required
14504 # on some systems where configure will not decide to define it.
14505 if (defundef == "undef") {
14506 print "/*", prefix defundef, macro, "*/"
14514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14515 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14516 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14517 { (exit 1); exit 1; }; }
14518 fi # test -n "$CONFIG_HEADERS"
14521 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14526 :[FHLC]) ac_mode=$ac_tag; continue;;
14528 case $ac_mode$ac_tag in
14530 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14531 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14532 { (exit 1); exit 1; }; };;
14533 :[FH]-) ac_tag=-:-;;
14534 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14551 -) ac_f="$tmp/stdin";;
14552 *) # Look for the file first in the build tree, then in the source tree
14553 # (if the path is not absolute). The absolute path cannot be DOS-style,
14554 # because $ac_f cannot contain `:'.
14558 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14560 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14561 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14562 { (exit 1); exit 1; }; };;
14564 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14565 ac_file_inputs="$ac_file_inputs '$ac_f'"
14568 # Let's still pretend it is `configure' which instantiates (i.e., don't
14569 # use $as_me), people would be surprised to read:
14570 # /* config.h. Generated by config.status. */
14571 configure_input='Generated from '`
14572 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14574 if test x"$ac_file" != x-; then
14575 configure_input="$ac_file. $configure_input"
14576 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14577 $as_echo "$as_me: creating $ac_file" >&6;}
14579 # Neutralize special characters interpreted by sed in replacement strings.
14580 case $configure_input in #(
14581 *\&* | *\|* | *\\* )
14582 ac_sed_conf_input=`$as_echo "$configure_input" |
14583 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14584 *) ac_sed_conf_input=$configure_input;;
14588 *:-:* | *:-) cat >"$tmp/stdin" \
14589 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14590 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14591 { (exit 1); exit 1; }; } ;;
14596 ac_dir=`$as_dirname -- "$ac_file" ||
14597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14598 X"$ac_file" : 'X\(//\)[^/]' \| \
14599 X"$ac_file" : 'X\(//\)$' \| \
14600 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14601 $as_echo X"$ac_file" |
14602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14606 /^X\(\/\/\)[^/].*/{
14621 -*) as_dir=./$as_dir;;
14623 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14627 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14628 *) as_qdir=$as_dir;;
14630 as_dirs="'$as_qdir' $as_dirs"
14631 as_dir=`$as_dirname -- "$as_dir" ||
14632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14633 X"$as_dir" : 'X\(//\)[^/]' \| \
14634 X"$as_dir" : 'X\(//\)$' \| \
14635 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14636 $as_echo X"$as_dir" |
14637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14641 /^X\(\/\/\)[^/].*/{
14654 test -d "$as_dir" && break
14656 test -z "$as_dirs" || eval "mkdir $as_dirs"
14657 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14658 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14659 { (exit 1); exit 1; }; }; }
14663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14665 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14666 # A ".." for each directory in $ac_dir_suffix.
14667 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14668 case $ac_top_builddir_sub in
14669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14673 ac_abs_top_builddir=$ac_pwd
14674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14675 # for backward compatibility:
14676 ac_top_builddir=$ac_top_build_prefix
14679 .) # We are building in place.
14681 ac_top_srcdir=$ac_top_builddir_sub
14682 ac_abs_top_srcdir=$ac_pwd ;;
14683 [\\/]* | ?:[\\/]* ) # Absolute name.
14684 ac_srcdir=$srcdir$ac_dir_suffix;
14685 ac_top_srcdir=$srcdir
14686 ac_abs_top_srcdir=$srcdir ;;
14687 *) # Relative name.
14688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14689 ac_top_srcdir=$ac_top_build_prefix$srcdir
14690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14702 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14703 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14708 # If the template does not know about datarootdir, expand it.
14709 # FIXME: This hack should be removed a few years after 2.60.
14710 ac_datarootdir_hack=; ac_datarootdir_seen=
14723 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14724 *datarootdir*) ac_datarootdir_seen=yes;;
14725 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14726 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14727 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14730 ac_datarootdir_hack='
14731 s&@datadir@&$datadir&g
14732 s&@docdir@&$docdir&g
14733 s&@infodir@&$infodir&g
14734 s&@localedir@&$localedir&g
14735 s&@mandir@&$mandir&g
14736 s&\\\${datarootdir}&$datarootdir&g' ;;
14740 # Neutralize VPATH when `$srcdir' = `.'.
14741 # Shell code in configure.ac might set extrasub.
14742 # FIXME: do we really want to maintain this feature?
14743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14744 ac_sed_extra="$ac_vpsub
14747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14750 s|@configure_input@|$ac_sed_conf_input|;t t
14751 s&@top_builddir@&$ac_top_builddir_sub&;t t
14752 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14753 s&@srcdir@&$ac_srcdir&;t t
14754 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14755 s&@top_srcdir@&$ac_top_srcdir&;t t
14756 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14757 s&@builddir@&$ac_builddir&;t t
14758 s&@abs_builddir@&$ac_abs_builddir&;t t
14759 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14760 s&@INSTALL@&$ac_INSTALL&;t t
14761 $ac_datarootdir_hack
14763 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14764 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14765 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14766 { (exit 1); exit 1; }; }
14768 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14769 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14770 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14771 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14772 which seems to be undefined. Please make sure it is defined." >&5
14773 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14774 which seems to be undefined. Please make sure it is defined." >&2;}
14778 -) cat "$tmp/out" && rm -f "$tmp/out";;
14779 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14781 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14782 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14783 { (exit 1); exit 1; }; }
14789 if test x"$ac_file" != x-; then
14791 $as_echo "/* $configure_input */" \
14792 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14793 } >"$tmp/config.h" \
14794 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14795 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14796 { (exit 1); exit 1; }; }
14797 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14798 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14799 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14802 mv "$tmp/config.h" "$ac_file" \
14803 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14804 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14805 { (exit 1); exit 1; }; }
14808 $as_echo "/* $configure_input */" \
14809 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14810 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14811 $as_echo "$as_me: error: could not create -" >&2;}
14812 { (exit 1); exit 1; }; }
14814 # Compute "$ac_file"'s index in $config_headers.
14816 for _am_header in $config_headers :; do
14817 case $_am_header in
14818 "$ac_file" | "$ac_file":* )
14821 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14824 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
14825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14826 X"$ac_file" : 'X\(//\)[^/]' \| \
14827 X"$ac_file" : 'X\(//\)$' \| \
14828 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14829 $as_echo X"$ac_file" |
14830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14834 /^X\(\/\/\)[^/].*/{
14846 s/.*/./; q'`/stamp-h$_am_stamp_count
14849 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14850 $as_echo "$as_me: executing $ac_file commands" >&6;}
14855 case $ac_file$ac_mode in
14856 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14857 # Strip MF so we end up with the name of the file.
14858 mf=`echo "$mf" | sed -e 's/:.*$//'`
14859 # Check whether this is an Automake generated Makefile or not.
14860 # We used to match only the files named `Makefile.in', but
14861 # some people rename them; so instead we look at the file content.
14862 # Grep'ing the first line is not enough: some people post-process
14863 # each Makefile.in and add a new line on top of each file to say so.
14864 # So let's grep whole file.
14865 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14866 dirpart=`$as_dirname -- "$mf" ||
14867 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14868 X"$mf" : 'X\(//\)[^/]' \| \
14869 X"$mf" : 'X\(//\)$' \| \
14870 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14876 /^X\(\/\/\)[^/].*/{
14892 # Extract the definition of DEPDIR, am__include, and am__quote
14893 # from the Makefile without running `make'.
14894 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14895 test -z "$DEPDIR" && continue
14896 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14897 test -z "am__include" && continue
14898 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14899 # When using ansi2knr, U may be empty or an underscore; expand it
14900 U=`sed -n 's/^U = //p' < "$mf"`
14901 # Find all dependency output files, they are included files with
14902 # $(DEPDIR) in their names. We invoke sed twice because it is the
14903 # simplest approach to changing $(DEPDIR) to its actual value in the
14905 for file in `sed -n "
14906 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14907 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14908 # Make sure the directory exists.
14909 test -f "$dirpart/$file" && continue
14910 fdir=`$as_dirname -- "$file" ||
14911 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14912 X"$file" : 'X\(//\)[^/]' \| \
14913 X"$file" : 'X\(//\)$' \| \
14914 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14915 $as_echo X"$file" |
14916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14920 /^X\(\/\/\)[^/].*/{
14933 { as_dir=$dirpart/$fdir
14935 -*) as_dir=./$as_dir;;
14937 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14942 *) as_qdir=$as_dir;;
14944 as_dirs="'$as_qdir' $as_dirs"
14945 as_dir=`$as_dirname -- "$as_dir" ||
14946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14947 X"$as_dir" : 'X\(//\)[^/]' \| \
14948 X"$as_dir" : 'X\(//\)$' \| \
14949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14950 $as_echo X"$as_dir" |
14951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14955 /^X\(\/\/\)[^/].*/{
14968 test -d "$as_dir" && break
14970 test -z "$as_dirs" || eval "mkdir $as_dirs"
14971 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14972 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14973 { (exit 1); exit 1; }; }; }
14974 # echo "creating $dirpart/$file"
14975 echo '# dummy' > "$dirpart/$file"
14979 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
14980 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14987 { (exit 0); exit 0; }
14989 chmod +x $CONFIG_STATUS
14990 ac_clean_files=$ac_clean_files_save
14992 test $ac_write_fail = 0 ||
14993 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14994 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14995 { (exit 1); exit 1; }; }
14998 # configure is writing to config.log, and then calls config.status.
14999 # config.status does its own redirection, appending to config.log.
15000 # Unfortunately, on DOS this fails, as config.log is still kept open
15001 # by configure, so config.status won't be able to write to it; its
15002 # output is simply discarded. So we exec the FD to /dev/null,
15003 # effectively closing config.log, so it can be properly (re)opened and
15004 # appended to by config.status. When coming back to configure, we
15005 # need to make the FD available again.
15006 if test "$no_create" != yes; then
15008 ac_config_status_args=
15009 test "$silent" = yes &&
15010 ac_config_status_args="$ac_config_status_args --quiet"
15012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15015 # would make configure fail if this is the last instruction.
15016 $ac_cs_success || { (exit 1); exit 1; }
15018 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15019 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15020 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15025 -*) as_dir=./$as_dir;;
15027 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15031 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15032 *) as_qdir=$as_dir;;
15034 as_dirs="'$as_qdir' $as_dirs"
15035 as_dir=`$as_dirname -- "$as_dir" ||
15036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15037 X"$as_dir" : 'X\(//\)[^/]' \| \
15038 X"$as_dir" : 'X\(//\)$' \| \
15039 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15040 $as_echo X"$as_dir" |
15041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15045 /^X\(\/\/\)[^/].*/{
15058 test -d "$as_dir" && break
15060 test -z "$as_dirs" || eval "mkdir $as_dirs"
15061 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15062 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15063 { (exit 1); exit 1; }; }; }
15067 echo "Configuration complete"
15070 if test "x$HAVE_GTK" = x; then
15071 if test "x$HAVE_COCOA" = x; then
15072 echo " User interface: none"
15074 echo " User interface: Cocoa"
15077 echo " User interface: GTK"
15080 if test "x$SH4_TRANSLATOR" = "x"; then
15081 echo " SH4 translator: None (emulation core only)"
15083 echo " SH4 translator: $SH4_TRANSLATOR"
15086 if test "x$VIDEO_DRIVERS" = "x"; then
15087 echo " Video drivers: none (no supported GL found)"
15089 echo " Video drivers: $VIDEO_DRIVERS"
15092 if test "x$AUDIO_DRIVERS" = "x"; then
15093 echo " Audio drivers: none (no supported output devices found)"
15095 echo " Audio drivers: $AUDIO_DRIVERS"
15098 if test "x$INPUT_DRIVERS" = "x"; then
15099 echo " Input drivers: none (no supported input devices found)"
15101 echo " Input drivers: $INPUT_DRIVERS"
15104 if test "x$CDROM_DRIVER" = "x"; then
15105 echo " CD-ROM driver: none (no supported cd-rom devices found)"
15107 echo " CD-ROM driver: $CDROM_DRIVER"
.