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=
3598 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3599 $as_echo_n "checking for library containing strerror... " >&6; }
3600 if test "${ac_cv_search_strerror+set}" = set; then
3601 $as_echo_n "(cached) " >&6
3603 ac_func_search_save_LIBS=$LIBS
3604 cat >conftest.$ac_ext <<_ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3611 /* Override any GCC internal prototype to avoid an error.
3612 Use char because int might match the return type of a GCC
3613 builtin and then its argument prototype would still apply. */
3626 for ac_lib in '' cposix; do
3627 if test -z "$ac_lib"; then
3628 ac_res="none required"
3631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3633 rm -f conftest.$ac_objext conftest$ac_exeext
3634 if { (ac_try="$ac_link"
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3640 $as_echo "$ac_try_echo") >&5
3641 (eval "$ac_link") 2>conftest.er1
3643 grep -v '^ *+' conftest.er1 >conftest.err
3645 cat conftest.err >&5
3646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } && {
3648 test -z "$ac_c_werror_flag" ||
3649 test ! -s conftest.err
3650 } && test -s conftest$ac_exeext && {
3651 test "$cross_compiling" = yes ||
3652 $as_test_x conftest$ac_exeext
3654 ac_cv_search_strerror=$ac_res
3656 $as_echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3662 rm -rf conftest.dSYM
3663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3665 if test "${ac_cv_search_strerror+set}" = set; then
3669 if test "${ac_cv_search_strerror+set}" = set; then
3672 ac_cv_search_strerror=no
3675 LIBS=$ac_func_search_save_LIBS
3677 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3678 $as_echo "$ac_cv_search_strerror" >&6; }
3679 ac_res=$ac_cv_search_strerror
3680 if test "$ac_res" != no; then
3681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 if test -n "$ac_tool_prefix"; then
3691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if test "${ac_cv_prog_CC+set}" = set; then
3696 $as_echo_n "(cached) " >&6
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 if test -n "$CC"; then
3720 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3721 $as_echo "$CC" >&6; }
3723 { $as_echo "$as_me:$LINENO: result: no" >&5
3724 $as_echo "no" >&6; }
3729 if test -z "$ac_cv_prog_CC"; then
3731 # Extract the first word of "gcc", so it can be a program name with args.
3732 set dummy gcc; ac_word=$2
3733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3736 $as_echo_n "(cached) " >&6
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC="gcc"
3749 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3763 { $as_echo "$as_me:$LINENO: result: no" >&5
3764 $as_echo "no" >&6; }
3767 if test "x$ac_ct_CC" = x; then
3770 case $cross_compiling:$ac_tool_warned in
3772 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774 ac_tool_warned=yes ;;
3782 if test -z "$CC"; then
3783 if test -n "$ac_tool_prefix"; then
3784 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3785 set dummy ${ac_tool_prefix}cc; ac_word=$2
3786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if test "${ac_cv_prog_CC+set}" = set; then
3789 $as_echo_n "(cached) " >&6
3791 if test -n "$CC"; then
3792 ac_cv_prog_CC="$CC" # Let the user override the test.
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3801 ac_cv_prog_CC="${ac_tool_prefix}cc"
3802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 if test -n "$CC"; then
3813 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3814 $as_echo "$CC" >&6; }
3816 { $as_echo "$as_me:$LINENO: result: no" >&5
3817 $as_echo "no" >&6; }
3823 if test -z "$CC"; then
3824 # Extract the first word of "cc", so it can be a program name with args.
3825 set dummy cc; ac_word=$2
3826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 $as_echo_n "checking for $ac_word... " >&6; }
3828 if test "${ac_cv_prog_CC+set}" = set; then
3829 $as_echo_n "(cached) " >&6
3831 if test -n "$CC"; then
3832 ac_cv_prog_CC="$CC" # Let the user override the test.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3843 ac_prog_rejected=yes
3847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 if test $ac_prog_rejected = yes; then
3855 # We found a bogon in the path, so make sure we never use it.
3856 set dummy $ac_cv_prog_CC
3858 if test $# != 0; then
3859 # We chose a different compiler from the bogus one.
3860 # However, it has the same basename, so the bogon will be chosen
3861 # first if we set CC to just the basename; use the full file name.
3863 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3869 if test -n "$CC"; then
3870 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3871 $as_echo "$CC" >&6; }
3873 { $as_echo "$as_me:$LINENO: result: no" >&5
3874 $as_echo "no" >&6; }
3879 if test -z "$CC"; then
3880 if test -n "$ac_tool_prefix"; then
3881 for ac_prog in cl.exe
3883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3885 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if test "${ac_cv_prog_CC+set}" = set; then
3888 $as_echo_n "(cached) " >&6
3890 if test -n "$CC"; then
3891 ac_cv_prog_CC="$CC" # Let the user override the test.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3901 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 if test -n "$CC"; then
3912 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3913 $as_echo "$CC" >&6; }
3915 { $as_echo "$as_me:$LINENO: result: no" >&5
3916 $as_echo "no" >&6; }
3920 test -n "$CC" && break
3923 if test -z "$CC"; then
3925 for ac_prog in cl.exe
3927 # Extract the first word of "$ac_prog", so it can be a program name with args.
3928 set dummy $ac_prog; ac_word=$2
3929 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3932 $as_echo_n "(cached) " >&6
3934 if test -n "$ac_ct_CC"; then
3935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_prog_ac_ct_CC="$ac_prog"
3945 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3955 if test -n "$ac_ct_CC"; then
3956 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3957 $as_echo "$ac_ct_CC" >&6; }
3959 { $as_echo "$as_me:$LINENO: result: no" >&5
3960 $as_echo "no" >&6; }
3964 test -n "$ac_ct_CC" && break
3967 if test "x$ac_ct_CC" = x; then
3970 case $cross_compiling:$ac_tool_warned in
3972 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974 ac_tool_warned=yes ;;
3983 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3986 See \`config.log' for more details." >&5
3987 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3988 See \`config.log' for more details." >&2;}
3989 { (exit 1); exit 1; }; }; }
3991 # Provide some information about the compiler.
3992 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3995 { (ac_try="$ac_compiler --version >&5"
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4001 $as_echo "$ac_try_echo") >&5
4002 (eval "$ac_compiler --version >&5") 2>&5
4004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }
4006 { (ac_try="$ac_compiler -v >&5"
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4012 $as_echo "$ac_try_echo") >&5
4013 (eval "$ac_compiler -v >&5") 2>&5
4015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }
4017 { (ac_try="$ac_compiler -V >&5"
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4023 $as_echo "$ac_try_echo") >&5
4024 (eval "$ac_compiler -V >&5") 2>&5
4026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }
4029 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4030 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4031 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4032 $as_echo_n "(cached) " >&6
4034 cat >conftest.$ac_ext <<_ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4052 rm -f conftest.$ac_objext
4053 if { (ac_try="$ac_compile"
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4059 $as_echo "$ac_try_echo") >&5
4060 (eval "$ac_compile") 2>conftest.er1
4062 grep -v '^ *+' conftest.er1 >conftest.err
4064 cat conftest.err >&5
4065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } && {
4067 test -z "$ac_c_werror_flag" ||
4068 test ! -s conftest.err
4069 } && test -s conftest.$ac_objext; then
4072 $as_echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4082 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4083 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4084 if test $ac_compiler_gnu = yes; then
4089 ac_test_CFLAGS=${CFLAGS+set}
4090 ac_save_CFLAGS=$CFLAGS
4091 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4092 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4093 if test "${ac_cv_prog_cc_g+set}" = set; then
4094 $as_echo_n "(cached) " >&6
4096 ac_save_c_werror_flag=$ac_c_werror_flag
4097 ac_c_werror_flag=yes
4100 cat >conftest.$ac_ext <<_ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4115 rm -f conftest.$ac_objext
4116 if { (ac_try="$ac_compile"
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4122 $as_echo "$ac_try_echo") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4125 grep -v '^ *+' conftest.er1 >conftest.err
4127 cat conftest.err >&5
4128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } && {
4130 test -z "$ac_c_werror_flag" ||
4131 test ! -s conftest.err
4132 } && test -s conftest.$ac_objext; then
4135 $as_echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4139 cat >conftest.$ac_ext <<_ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4154 rm -f conftest.$ac_objext
4155 if { (ac_try="$ac_compile"
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4161 $as_echo "$ac_try_echo") >&5
4162 (eval "$ac_compile") 2>conftest.er1
4164 grep -v '^ *+' conftest.er1 >conftest.err
4166 cat conftest.err >&5
4167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } && {
4169 test -z "$ac_c_werror_flag" ||
4170 test ! -s conftest.err
4171 } && test -s conftest.$ac_objext; then
4174 $as_echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4177 ac_c_werror_flag=$ac_save_c_werror_flag
4179 cat >conftest.$ac_ext <<_ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4194 rm -f conftest.$ac_objext
4195 if { (ac_try="$ac_compile"
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4201 $as_echo "$ac_try_echo") >&5
4202 (eval "$ac_compile") 2>conftest.er1
4204 grep -v '^ *+' conftest.er1 >conftest.err
4206 cat conftest.err >&5
4207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } && {
4209 test -z "$ac_c_werror_flag" ||
4210 test ! -s conftest.err
4211 } && test -s conftest.$ac_objext; then
4214 $as_echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 ac_c_werror_flag=$ac_save_c_werror_flag
4229 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4230 $as_echo "$ac_cv_prog_cc_g" >&6; }
4231 if test "$ac_test_CFLAGS" = set; then
4232 CFLAGS=$ac_save_CFLAGS
4233 elif test $ac_cv_prog_cc_g = yes; then
4234 if test "$GCC" = yes; then
4240 if test "$GCC" = yes; then
4246 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4247 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4248 if test "${ac_cv_prog_cc_c89+set}" = set; then
4249 $as_echo_n "(cached) " >&6
4251 ac_cv_prog_cc_c89=no
4253 cat >conftest.$ac_ext <<_ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4261 #include <sys/types.h>
4262 #include <sys/stat.h>
4263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4264 struct buf { int x; };
4265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4266 static char *e (p, i)
4272 static char *f (char * (*g) (char **, int), char **p, ...)
4277 s = g (p, va_arg (v,int));
4282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4283 function prototypes and stuff, but not '\xHH' hex character constants.
4284 These don't provoke an error unfortunately, instead are silently treated
4285 as 'x'. The following induces an error, until -std is added to get
4286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4287 array size at least. It's necessary to write '\x00'==0 to get something
4288 that's true only with -std. */
4289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4292 inside strings and character constants. */
4294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4296 int test (int i, double x);
4297 struct s1 {int (*f) (int a);};
4298 struct s2 {int (*f) (double a);};
4299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4313 CC="$ac_save_CC $ac_arg"
4314 rm -f conftest.$ac_objext
4315 if { (ac_try="$ac_compile"
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4321 $as_echo "$ac_try_echo") >&5
4322 (eval "$ac_compile") 2>conftest.er1
4324 grep -v '^ *+' conftest.er1 >conftest.err
4326 cat conftest.err >&5
4327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } && {
4329 test -z "$ac_c_werror_flag" ||
4330 test ! -s conftest.err
4331 } && test -s conftest.$ac_objext; then
4332 ac_cv_prog_cc_c89=$ac_arg
4334 $as_echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4340 rm -f core conftest.err conftest.$ac_objext
4341 test "x$ac_cv_prog_cc_c89" != "xno" && break
4343 rm -f conftest.$ac_ext
4348 case "x$ac_cv_prog_cc_c89" in
4350 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4351 $as_echo "none needed" >&6; } ;;
4353 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4354 $as_echo "unsupported" >&6; } ;;
4356 CC="$CC $ac_cv_prog_cc_c89"
4357 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4358 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4363 ac_cpp='$CPP $CPPFLAGS'
4364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368 depcc="$CC" am_compiler_list=
4370 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4371 $as_echo_n "checking dependency style of $depcc... " >&6; }
4372 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4373 $as_echo_n "(cached) " >&6
4375 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4376 # We make a subdir and do the tests there. Otherwise we can end up
4377 # making bogus files that we don't know about and never remove. For
4378 # instance it was reported that on HP-UX the gcc test will end up
4379 # making a dummy file named `D' -- because `-MD' means `put the output
4382 # Copy depcomp to subdir because otherwise we won't find it if we're
4383 # using a relative directory.
4384 cp "$am_depcomp" conftest.dir
4386 # We will build objects and dependencies in a subdirectory because
4387 # it helps to detect inapplicable dependency modes. For instance
4388 # both Tru64's cc and ICC support -MD to output dependencies as a
4389 # side effect of compilation, but ICC will put the dependencies in
4390 # the current directory while Tru64 will put them in the object
4394 am_cv_CC_dependencies_compiler_type=none
4395 if test "$am_compiler_list" = ""; then
4396 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4398 for depmode in $am_compiler_list; do
4399 # Setup a source with many dependencies, because some compilers
4400 # like to wrap large dependency lists on column 80 (with \), and
4401 # we should not choose a depcomp mode which is confused by this.
4403 # We need to recreate these files for each test, as the compiler may
4404 # overwrite some of them when testing with obscure command lines.
4405 # This happens at least with the AIX C compiler.
4407 for i in 1 2 3 4 5 6; do
4408 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4409 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4410 # Solaris 8's {/usr,}/bin/sh.
4411 touch sub/conftst$i.h
4413 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4417 # after this tag, mechanisms are not by side-effect, so they'll
4418 # only be used when explicitly requested
4419 if test "x$enable_dependency_tracking" = xyes; then
4427 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4428 # mode. It turns out that the SunPro C++ compiler does not properly
4429 # handle `-M -o', and we need to detect this.
4430 if depmode=$depmode \
4431 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4432 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4433 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4434 >/dev/null 2>conftest.err &&
4435 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4436 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4437 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4438 # icc doesn't choke on unknown options, it will just issue warnings
4439 # or remarks (even with -Werror). So we grep stderr for any message
4440 # that says an option was ignored or not supported.
4441 # When given -MP, icc 7.0 and 7.1 complain thusly:
4442 # icc: Command line warning: ignoring option '-M'; no argument required
4443 # The diagnosis changed in icc 8.0:
4444 # icc: Command line remark: option '-MP' not supported
4445 if (grep 'ignoring option' conftest.err ||
4446 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4447 am_cv_CC_dependencies_compiler_type=$depmode
4456 am_cv_CC_dependencies_compiler_type=none
4460 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4461 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4462 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4467 test "x$enable_dependency_tracking" != xno \
4468 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4470 am__fastdepCC_FALSE='#'
4472 am__fastdepCC_TRUE='#'
4473 am__fastdepCC_FALSE=
4478 ac_cpp='$CPP $CPPFLAGS'
4479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482 if test -n "$ac_tool_prefix"; then
4483 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4484 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4485 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if test "${ac_cv_prog_CC+set}" = set; then
4488 $as_echo_n "(cached) " >&6
4490 if test -n "$CC"; then
4491 ac_cv_prog_CC="$CC" # Let the user override the test.
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 if test -n "$CC"; then
4512 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4513 $as_echo "$CC" >&6; }
4515 { $as_echo "$as_me:$LINENO: result: no" >&5
4516 $as_echo "no" >&6; }
4521 if test -z "$ac_cv_prog_CC"; then
4523 # Extract the first word of "gcc", so it can be a program name with args.
4524 set dummy gcc; ac_word=$2
4525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4528 $as_echo_n "(cached) " >&6
4530 if test -n "$ac_ct_CC"; then
4531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_prog_ac_ct_CC="gcc"
4541 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4551 if test -n "$ac_ct_CC"; then
4552 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4553 $as_echo "$ac_ct_CC" >&6; }
4555 { $as_echo "$as_me:$LINENO: result: no" >&5
4556 $as_echo "no" >&6; }
4559 if test "x$ac_ct_CC" = x; then
4562 case $cross_compiling:$ac_tool_warned in
4564 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4566 ac_tool_warned=yes ;;
4574 if test -z "$CC"; then
4575 if test -n "$ac_tool_prefix"; then
4576 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4577 set dummy ${ac_tool_prefix}cc; ac_word=$2
4578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if test "${ac_cv_prog_CC+set}" = set; then
4581 $as_echo_n "(cached) " >&6
4583 if test -n "$CC"; then
4584 ac_cv_prog_CC="$CC" # Let the user override the test.
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_prog_CC="${ac_tool_prefix}cc"
4594 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 if test -n "$CC"; then
4605 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4606 $as_echo "$CC" >&6; }
4608 { $as_echo "$as_me:$LINENO: result: no" >&5
4609 $as_echo "no" >&6; }
4615 if test -z "$CC"; then
4616 # Extract the first word of "cc", so it can be a program name with args.
4617 set dummy cc; ac_word=$2
4618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if test "${ac_cv_prog_CC+set}" = set; then
4621 $as_echo_n "(cached) " >&6
4623 if test -n "$CC"; then
4624 ac_cv_prog_CC="$CC" # Let the user override the test.
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4635 ac_prog_rejected=yes
4639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 if test $ac_prog_rejected = yes; then
4647 # We found a bogon in the path, so make sure we never use it.
4648 set dummy $ac_cv_prog_CC
4650 if test $# != 0; then
4651 # We chose a different compiler from the bogus one.
4652 # However, it has the same basename, so the bogon will be chosen
4653 # first if we set CC to just the basename; use the full file name.
4655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4661 if test -n "$CC"; then
4662 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4663 $as_echo "$CC" >&6; }
4665 { $as_echo "$as_me:$LINENO: result: no" >&5
4666 $as_echo "no" >&6; }
4671 if test -z "$CC"; then
4672 if test -n "$ac_tool_prefix"; then
4673 for ac_prog in cl.exe
4675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4677 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if test "${ac_cv_prog_CC+set}" = set; then
4680 $as_echo_n "(cached) " >&6
4682 if test -n "$CC"; then
4683 ac_cv_prog_CC="$CC" # Let the user override the test.
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 if test -n "$CC"; then
4704 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4705 $as_echo "$CC" >&6; }
4707 { $as_echo "$as_me:$LINENO: result: no" >&5
4708 $as_echo "no" >&6; }
4712 test -n "$CC" && break
4715 if test -z "$CC"; then
4717 for ac_prog in cl.exe
4719 # Extract the first word of "$ac_prog", so it can be a program name with args.
4720 set dummy $ac_prog; ac_word=$2
4721 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4724 $as_echo_n "(cached) " >&6
4726 if test -n "$ac_ct_CC"; then
4727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_prog_ac_ct_CC="$ac_prog"
4737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4747 if test -n "$ac_ct_CC"; then
4748 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4749 $as_echo "$ac_ct_CC" >&6; }
4751 { $as_echo "$as_me:$LINENO: result: no" >&5
4752 $as_echo "no" >&6; }
4756 test -n "$ac_ct_CC" && break
4759 if test "x$ac_ct_CC" = x; then
4762 case $cross_compiling:$ac_tool_warned in
4764 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4766 ac_tool_warned=yes ;;
4775 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4777 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4778 See \`config.log' for more details." >&5
4779 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4780 See \`config.log' for more details." >&2;}
4781 { (exit 1); exit 1; }; }; }
4783 # Provide some information about the compiler.
4784 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4787 { (ac_try="$ac_compiler --version >&5"
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4793 $as_echo "$ac_try_echo") >&5
4794 (eval "$ac_compiler --version >&5") 2>&5
4796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }
4798 { (ac_try="$ac_compiler -v >&5"
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4804 $as_echo "$ac_try_echo") >&5
4805 (eval "$ac_compiler -v >&5") 2>&5
4807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }
4809 { (ac_try="$ac_compiler -V >&5"
4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812 *) ac_try_echo=$ac_try;;
4814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4815 $as_echo "$ac_try_echo") >&5
4816 (eval "$ac_compiler -V >&5") 2>&5
4818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }
4821 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4822 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4823 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4824 $as_echo_n "(cached) " >&6
4826 cat >conftest.$ac_ext <<_ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4844 rm -f conftest.$ac_objext
4845 if { (ac_try="$ac_compile"
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4851 $as_echo "$ac_try_echo") >&5
4852 (eval "$ac_compile") 2>conftest.er1
4854 grep -v '^ *+' conftest.er1 >conftest.err
4856 cat conftest.err >&5
4857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } && {
4859 test -z "$ac_c_werror_flag" ||
4860 test ! -s conftest.err
4861 } && test -s conftest.$ac_objext; then
4864 $as_echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4874 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4875 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4876 if test $ac_compiler_gnu = yes; then
4881 ac_test_CFLAGS=${CFLAGS+set}
4882 ac_save_CFLAGS=$CFLAGS
4883 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4884 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4885 if test "${ac_cv_prog_cc_g+set}" = set; then
4886 $as_echo_n "(cached) " >&6
4888 ac_save_c_werror_flag=$ac_c_werror_flag
4889 ac_c_werror_flag=yes
4892 cat >conftest.$ac_ext <<_ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4907 rm -f conftest.$ac_objext
4908 if { (ac_try="$ac_compile"
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4914 $as_echo "$ac_try_echo") >&5
4915 (eval "$ac_compile") 2>conftest.er1
4917 grep -v '^ *+' conftest.er1 >conftest.err
4919 cat conftest.err >&5
4920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } && {
4922 test -z "$ac_c_werror_flag" ||
4923 test ! -s conftest.err
4924 } && test -s conftest.$ac_objext; then
4927 $as_echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4931 cat >conftest.$ac_ext <<_ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4946 rm -f conftest.$ac_objext
4947 if { (ac_try="$ac_compile"
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4953 $as_echo "$ac_try_echo") >&5
4954 (eval "$ac_compile") 2>conftest.er1
4956 grep -v '^ *+' conftest.er1 >conftest.err
4958 cat conftest.err >&5
4959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } && {
4961 test -z "$ac_c_werror_flag" ||
4962 test ! -s conftest.err
4963 } && test -s conftest.$ac_objext; then
4966 $as_echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4969 ac_c_werror_flag=$ac_save_c_werror_flag
4971 cat >conftest.$ac_ext <<_ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4986 rm -f conftest.$ac_objext
4987 if { (ac_try="$ac_compile"
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4993 $as_echo "$ac_try_echo") >&5
4994 (eval "$ac_compile") 2>conftest.er1
4996 grep -v '^ *+' conftest.er1 >conftest.err
4998 cat conftest.err >&5
4999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } && {
5001 test -z "$ac_c_werror_flag" ||
5002 test ! -s conftest.err
5003 } && test -s conftest.$ac_objext; then
5006 $as_echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 ac_c_werror_flag=$ac_save_c_werror_flag
5021 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5022 $as_echo "$ac_cv_prog_cc_g" >&6; }
5023 if test "$ac_test_CFLAGS" = set; then
5024 CFLAGS=$ac_save_CFLAGS
5025 elif test $ac_cv_prog_cc_g = yes; then
5026 if test "$GCC" = yes; then
5032 if test "$GCC" = yes; then
5038 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5039 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5040 if test "${ac_cv_prog_cc_c89+set}" = set; then
5041 $as_echo_n "(cached) " >&6
5043 ac_cv_prog_cc_c89=no
5045 cat >conftest.$ac_ext <<_ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5053 #include <sys/types.h>
5054 #include <sys/stat.h>
5055 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5056 struct buf { int x; };
5057 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5058 static char *e (p, i)
5064 static char *f (char * (*g) (char **, int), char **p, ...)
5069 s = g (p, va_arg (v,int));
5074 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5075 function prototypes and stuff, but not '\xHH' hex character constants.
5076 These don't provoke an error unfortunately, instead are silently treated
5077 as 'x'. The following induces an error, until -std is added to get
5078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5079 array size at least. It's necessary to write '\x00'==0 to get something
5080 that's true only with -std. */
5081 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5083 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5084 inside strings and character constants. */
5086 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5088 int test (int i, double x);
5089 struct s1 {int (*f) (int a);};
5090 struct s2 {int (*f) (double a);};
5091 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5097 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5102 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5103 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5105 CC="$ac_save_CC $ac_arg"
5106 rm -f conftest.$ac_objext
5107 if { (ac_try="$ac_compile"
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5113 $as_echo "$ac_try_echo") >&5
5114 (eval "$ac_compile") 2>conftest.er1
5116 grep -v '^ *+' conftest.er1 >conftest.err
5118 cat conftest.err >&5
5119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } && {
5121 test -z "$ac_c_werror_flag" ||
5122 test ! -s conftest.err
5123 } && test -s conftest.$ac_objext; then
5124 ac_cv_prog_cc_c89=$ac_arg
5126 $as_echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5132 rm -f core conftest.err conftest.$ac_objext
5133 test "x$ac_cv_prog_cc_c89" != "xno" && break
5135 rm -f conftest.$ac_ext
5140 case "x$ac_cv_prog_cc_c89" in
5142 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5143 $as_echo "none needed" >&6; } ;;
5145 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5146 $as_echo "unsupported" >&6; } ;;
5148 CC="$CC $ac_cv_prog_cc_c89"
5149 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5150 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5155 ac_cpp='$CPP $CPPFLAGS'
5156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5160 depcc="$CC" am_compiler_list=
5162 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5163 $as_echo_n "checking dependency style of $depcc... " >&6; }
5164 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5165 $as_echo_n "(cached) " >&6
5167 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5168 # We make a subdir and do the tests there. Otherwise we can end up
5169 # making bogus files that we don't know about and never remove. For
5170 # instance it was reported that on HP-UX the gcc test will end up
5171 # making a dummy file named `D' -- because `-MD' means `put the output
5174 # Copy depcomp to subdir because otherwise we won't find it if we're
5175 # using a relative directory.
5176 cp "$am_depcomp" conftest.dir
5178 # We will build objects and dependencies in a subdirectory because
5179 # it helps to detect inapplicable dependency modes. For instance
5180 # both Tru64's cc and ICC support -MD to output dependencies as a
5181 # side effect of compilation, but ICC will put the dependencies in
5182 # the current directory while Tru64 will put them in the object
5186 am_cv_CC_dependencies_compiler_type=none
5187 if test "$am_compiler_list" = ""; then
5188 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5190 for depmode in $am_compiler_list; do
5191 # Setup a source with many dependencies, because some compilers
5192 # like to wrap large dependency lists on column 80 (with \), and
5193 # we should not choose a depcomp mode which is confused by this.
5195 # We need to recreate these files for each test, as the compiler may
5196 # overwrite some of them when testing with obscure command lines.
5197 # This happens at least with the AIX C compiler.
5199 for i in 1 2 3 4 5 6; do
5200 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5201 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5202 # Solaris 8's {/usr,}/bin/sh.
5203 touch sub/conftst$i.h
5205 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5209 # after this tag, mechanisms are not by side-effect, so they'll
5210 # only be used when explicitly requested
5211 if test "x$enable_dependency_tracking" = xyes; then
5219 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5220 # mode. It turns out that the SunPro C++ compiler does not properly
5221 # handle `-M -o', and we need to detect this.
5222 if depmode=$depmode \
5223 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5224 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5225 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5226 >/dev/null 2>conftest.err &&
5227 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5228 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5229 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5230 # icc doesn't choke on unknown options, it will just issue warnings
5231 # or remarks (even with -Werror). So we grep stderr for any message
5232 # that says an option was ignored or not supported.
5233 # When given -MP, icc 7.0 and 7.1 complain thusly:
5234 # icc: Command line warning: ignoring option '-M'; no argument required
5235 # The diagnosis changed in icc 8.0:
5236 # icc: Command line remark: option '-MP' not supported
5237 if (grep 'ignoring option' conftest.err ||
5238 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5239 am_cv_CC_dependencies_compiler_type=$depmode
5248 am_cv_CC_dependencies_compiler_type=none
5252 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5253 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5254 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5259 test "x$enable_dependency_tracking" != xno \
5260 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5262 am__fastdepCC_FALSE='#'
5264 am__fastdepCC_TRUE='#'
5265 am__fastdepCC_FALSE=
5270 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5273 ac_cpp='$OBJCPP $CPPFLAGS'
5274 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5277 if test -n "$ac_tool_prefix"; then
5278 for ac_prog in gcc objcc objc cc CC
5280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if test "${ac_cv_prog_OBJC+set}" = set; then
5285 $as_echo_n "(cached) " >&6
5287 if test -n "$OBJC"; then
5288 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 OBJC=$ac_cv_prog_OBJC
5308 if test -n "$OBJC"; then
5309 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
5310 $as_echo "$OBJC" >&6; }
5312 { $as_echo "$as_me:$LINENO: result: no" >&5
5313 $as_echo "no" >&6; }
5317 test -n "$OBJC" && break
5320 if test -z "$OBJC"; then
5322 for ac_prog in gcc objcc objc cc CC
5324 # Extract the first word of "$ac_prog", so it can be a program name with args.
5325 set dummy $ac_prog; ac_word=$2
5326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
5329 $as_echo_n "(cached) " >&6
5331 if test -n "$ac_ct_OBJC"; then
5332 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_prog_ac_ct_OBJC="$ac_prog"
5342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5352 if test -n "$ac_ct_OBJC"; then
5353 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
5354 $as_echo "$ac_ct_OBJC" >&6; }
5356 { $as_echo "$as_me:$LINENO: result: no" >&5
5357 $as_echo "no" >&6; }
5361 test -n "$ac_ct_OBJC" && break
5364 if test "x$ac_ct_OBJC" = x; then
5367 case $cross_compiling:$ac_tool_warned in
5369 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5371 ac_tool_warned=yes ;;
5377 # Provide some information about the compiler.
5378 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
5381 { (ac_try="$ac_compiler --version >&5"
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5387 $as_echo "$ac_try_echo") >&5
5388 (eval "$ac_compiler --version >&5") 2>&5
5390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }
5392 { (ac_try="$ac_compiler -v >&5"
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5398 $as_echo "$ac_try_echo") >&5
5399 (eval "$ac_compiler -v >&5") 2>&5
5401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }
5403 { (ac_try="$ac_compiler -V >&5"
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5409 $as_echo "$ac_try_echo") >&5
5410 (eval "$ac_compiler -V >&5") 2>&5
5412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }
5415 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
5416 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5417 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
5418 $as_echo_n "(cached) " >&6
5420 cat >conftest.$ac_ext <<_ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5438 rm -f conftest.$ac_objext
5439 if { (ac_try="$ac_compile"
5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442 *) ac_try_echo=$ac_try;;
5444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5445 $as_echo "$ac_try_echo") >&5
5446 (eval "$ac_compile") 2>conftest.er1
5448 grep -v '^ *+' conftest.er1 >conftest.err
5450 cat conftest.err >&5
5451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } && {
5453 test -z "$ac_objc_werror_flag" ||
5454 test ! -s conftest.err
5455 } && test -s conftest.$ac_objext; then
5458 $as_echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5468 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
5469 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5470 if test $ac_compiler_gnu = yes; then
5475 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5476 ac_save_OBJCFLAGS=$OBJCFLAGS
5477 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
5478 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5479 if test "${ac_cv_prog_objc_g+set}" = set; then
5480 $as_echo_n "(cached) " >&6
5482 ac_save_objc_werror_flag=$ac_objc_werror_flag
5483 ac_objc_werror_flag=yes
5484 ac_cv_prog_objc_g=no
5486 cat >conftest.$ac_ext <<_ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5501 rm -f conftest.$ac_objext
5502 if { (ac_try="$ac_compile"
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5508 $as_echo "$ac_try_echo") >&5
5509 (eval "$ac_compile") 2>conftest.er1
5511 grep -v '^ *+' conftest.er1 >conftest.err
5513 cat conftest.err >&5
5514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } && {
5516 test -z "$ac_objc_werror_flag" ||
5517 test ! -s conftest.err
5518 } && test -s conftest.$ac_objext; then
5519 ac_cv_prog_objc_g=yes
5521 $as_echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5525 cat >conftest.$ac_ext <<_ACEOF
5528 cat confdefs.h >>conftest.$ac_ext
5529 cat >>conftest.$ac_ext <<_ACEOF
5530 /* end confdefs.h. */
5540 rm -f conftest.$ac_objext
5541 if { (ac_try="$ac_compile"
5543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544 *) ac_try_echo=$ac_try;;
5546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5547 $as_echo "$ac_try_echo") >&5
5548 (eval "$ac_compile") 2>conftest.er1
5550 grep -v '^ *+' conftest.er1 >conftest.err
5552 cat conftest.err >&5
5553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } && {
5555 test -z "$ac_objc_werror_flag" ||
5556 test ! -s conftest.err
5557 } && test -s conftest.$ac_objext; then
5560 $as_echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 ac_objc_werror_flag=$ac_save_objc_werror_flag
5565 cat >conftest.$ac_ext <<_ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5587 $as_echo "$ac_try_echo") >&5
5588 (eval "$ac_compile") 2>conftest.er1
5590 grep -v '^ *+' conftest.er1 >conftest.err
5592 cat conftest.err >&5
5593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && {
5595 test -z "$ac_objc_werror_flag" ||
5596 test ! -s conftest.err
5597 } && test -s conftest.$ac_objext; then
5598 ac_cv_prog_objc_g=yes
5600 $as_echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 ac_objc_werror_flag=$ac_save_objc_werror_flag
5615 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
5616 $as_echo "$ac_cv_prog_objc_g" >&6; }
5617 if test "$ac_test_OBJCFLAGS" = set; then
5618 OBJCFLAGS=$ac_save_OBJCFLAGS
5619 elif test $ac_cv_prog_objc_g = yes; then
5620 if test "$GOBJC" = yes; then
5626 if test "$GOBJC" = yes; then
5633 ac_cpp='$CPP $CPPFLAGS'
5634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5639 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5640 if test "${ac_cv_path_SED+set}" = set; then
5641 $as_echo_n "(cached) " >&6
5643 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5644 for ac_i in 1 2 3 4 5 6 7; do
5645 ac_script="$ac_script$as_nl$ac_script"
5647 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5648 $as_unset ac_script || ac_script=
5649 if test -z "$SED"; then
5650 ac_path_SED_found=false
5651 # Loop through the user's path and test for each of PROGNAME-LIST
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 test -z "$as_dir" && as_dir=.
5657 for ac_prog in sed gsed; do
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5660 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5661 # Check for GNU ac_path_SED and select it if it is found.
5662 # Check for GNU $ac_path_SED
5663 case `"$ac_path_SED" --version 2>&1` in
5665 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5668 $as_echo_n 0123456789 >"conftest.in"
5671 cat "conftest.in" "conftest.in" >"conftest.tmp"
5672 mv "conftest.tmp" "conftest.in"
5673 cp "conftest.in" "conftest.nl"
5674 $as_echo '' >> "conftest.nl"
5675 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5677 ac_count=`expr $ac_count + 1`
5678 if test $ac_count -gt ${ac_path_SED_max-0}; then
5679 # Best one so far, save it but keep looking for a better one
5680 ac_cv_path_SED="$ac_path_SED"
5681 ac_path_SED_max=$ac_count
5683 # 10*(2^10) chars as input seems more than enough
5684 test $ac_count -gt 10 && break
5686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5689 $ac_path_SED_found && break 3
5694 if test -z "$ac_cv_path_SED"; then
5695 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5696 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5697 { (exit 1); exit 1; }; }
5704 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5705 $as_echo "$ac_cv_path_SED" >&6; }
5706 SED="$ac_cv_path_SED"
5709 # By default we simply use the C compiler to build assembly code.
5711 test "${CCAS+set}" = set || CCAS=$CC
5712 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5717 ac_cpp='$CPP $CPPFLAGS'
5718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5721 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5722 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5723 # On Suns, sometimes $CPP names a directory.
5724 if test -n "$CPP" && test -d "$CPP"; then
5727 if test -z "$CPP"; then
5728 if test "${ac_cv_prog_CPP+set}" = set; then
5729 $as_echo_n "(cached) " >&6
5731 # Double quotes because CPP needs to be expanded
5732 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5735 for ac_c_preproc_warn_flag in '' yes
5737 # Use a header file that comes with gcc, so configuring glibc
5738 # with a fresh cross-compiler works.
5739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5740 # <limits.h> exists even on freestanding compilers.
5741 # On the NeXT, cc -E runs the code through the compiler's parser,
5742 # not just through cpp. "Syntax error" is here to catch this case.
5743 cat >conftest.$ac_ext <<_ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5750 # include <limits.h>
5752 # include <assert.h>
5756 if { (ac_try="$ac_cpp conftest.$ac_ext"
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5762 $as_echo "$ac_try_echo") >&5
5763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5765 grep -v '^ *+' conftest.er1 >conftest.err
5767 cat conftest.err >&5
5768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } >/dev/null && {
5770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5775 $as_echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5778 # Broken: fails on valid input.
5782 rm -f conftest.err conftest.$ac_ext
5784 # OK, works on sane cases. Now check whether nonexistent headers
5785 # can be detected and how.
5786 cat >conftest.$ac_ext <<_ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5792 #include <ac_nonexistent.h>
5794 if { (ac_try="$ac_cpp conftest.$ac_ext"
5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5800 $as_echo "$ac_try_echo") >&5
5801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5803 grep -v '^ *+' conftest.er1 >conftest.err
5805 cat conftest.err >&5
5806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } >/dev/null && {
5808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5809 test ! -s conftest.err
5811 # Broken: success on invalid input.
5814 $as_echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5817 # Passes both tests.
5822 rm -f conftest.err conftest.$ac_ext
5825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5826 rm -f conftest.err conftest.$ac_ext
5827 if $ac_preproc_ok; then
5839 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5840 $as_echo "$CPP" >&6; }
5842 for ac_c_preproc_warn_flag in '' yes
5844 # Use a header file that comes with gcc, so configuring glibc
5845 # with a fresh cross-compiler works.
5846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5847 # <limits.h> exists even on freestanding compilers.
5848 # On the NeXT, cc -E runs the code through the compiler's parser,
5849 # not just through cpp. "Syntax error" is here to catch this case.
5850 cat >conftest.$ac_ext <<_ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5857 # include <limits.h>
5859 # include <assert.h>
5863 if { (ac_try="$ac_cpp conftest.$ac_ext"
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5869 $as_echo "$ac_try_echo") >&5
5870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5872 grep -v '^ *+' conftest.er1 >conftest.err
5874 cat conftest.err >&5
5875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } >/dev/null && {
5877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5878 test ! -s conftest.err
5882 $as_echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 # Broken: fails on valid input.
5889 rm -f conftest.err conftest.$ac_ext
5891 # OK, works on sane cases. Now check whether nonexistent headers
5892 # can be detected and how.
5893 cat >conftest.$ac_ext <<_ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #include <ac_nonexistent.h>
5901 if { (ac_try="$ac_cpp conftest.$ac_ext"
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5907 $as_echo "$ac_try_echo") >&5
5908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5910 grep -v '^ *+' conftest.er1 >conftest.err
5912 cat conftest.err >&5
5913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } >/dev/null && {
5915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5916 test ! -s conftest.err
5918 # Broken: success on invalid input.
5921 $as_echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5924 # Passes both tests.
5929 rm -f conftest.err conftest.$ac_ext
5932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5933 rm -f conftest.err conftest.$ac_ext
5934 if $ac_preproc_ok; then
5937 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5939 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5940 See \`config.log' for more details." >&5
5941 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5942 See \`config.log' for more details." >&2;}
5943 { (exit 1); exit 1; }; }; }
5947 ac_cpp='$CPP $CPPFLAGS'
5948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5953 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5954 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5955 if test "${ac_cv_path_GREP+set}" = set; then
5956 $as_echo_n "(cached) " >&6
5958 if test -z "$GREP"; then
5959 ac_path_GREP_found=false
5960 # Loop through the user's path and test for each of PROGNAME-LIST
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5965 test -z "$as_dir" && as_dir=.
5966 for ac_prog in grep ggrep; do
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5969 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5970 # Check for GNU ac_path_GREP and select it if it is found.
5971 # Check for GNU $ac_path_GREP
5972 case `"$ac_path_GREP" --version 2>&1` in
5974 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5977 $as_echo_n 0123456789 >"conftest.in"
5980 cat "conftest.in" "conftest.in" >"conftest.tmp"
5981 mv "conftest.tmp" "conftest.in"
5982 cp "conftest.in" "conftest.nl"
5983 $as_echo 'GREP' >> "conftest.nl"
5984 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5986 ac_count=`expr $ac_count + 1`
5987 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5988 # Best one so far, save it but keep looking for a better one
5989 ac_cv_path_GREP="$ac_path_GREP"
5990 ac_path_GREP_max=$ac_count
5992 # 10*(2^10) chars as input seems more than enough
5993 test $ac_count -gt 10 && break
5995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5998 $ac_path_GREP_found && break 3
6003 if test -z "$ac_cv_path_GREP"; then
6004 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6005 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6006 { (exit 1); exit 1; }; }
6009 ac_cv_path_GREP=$GREP
6013 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6014 $as_echo "$ac_cv_path_GREP" >&6; }
6015 GREP="$ac_cv_path_GREP"
6018 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6019 $as_echo_n "checking for egrep... " >&6; }
6020 if test "${ac_cv_path_EGREP+set}" = set; then
6021 $as_echo_n "(cached) " >&6
6023 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6024 then ac_cv_path_EGREP="$GREP -E"
6026 if test -z "$EGREP"; then
6027 ac_path_EGREP_found=false
6028 # Loop through the user's path and test for each of PROGNAME-LIST
6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6033 test -z "$as_dir" && as_dir=.
6034 for ac_prog in egrep; do
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6037 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6038 # Check for GNU ac_path_EGREP and select it if it is found.
6039 # Check for GNU $ac_path_EGREP
6040 case `"$ac_path_EGREP" --version 2>&1` in
6042 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6045 $as_echo_n 0123456789 >"conftest.in"
6048 cat "conftest.in" "conftest.in" >"conftest.tmp"
6049 mv "conftest.tmp" "conftest.in"
6050 cp "conftest.in" "conftest.nl"
6051 $as_echo 'EGREP' >> "conftest.nl"
6052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6054 ac_count=`expr $ac_count + 1`
6055 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6056 # Best one so far, save it but keep looking for a better one
6057 ac_cv_path_EGREP="$ac_path_EGREP"
6058 ac_path_EGREP_max=$ac_count
6060 # 10*(2^10) chars as input seems more than enough
6061 test $ac_count -gt 10 && break
6063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6066 $ac_path_EGREP_found && break 3
6071 if test -z "$ac_cv_path_EGREP"; then
6072 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6073 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6074 { (exit 1); exit 1; }; }
6077 ac_cv_path_EGREP=$EGREP
6082 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6083 $as_echo "$ac_cv_path_EGREP" >&6; }
6084 EGREP="$ac_cv_path_EGREP"
6087 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6088 $as_echo_n "checking for ANSI C header files... " >&6; }
6089 if test "${ac_cv_header_stdc+set}" = set; then
6090 $as_echo_n "(cached) " >&6
6092 cat >conftest.$ac_ext <<_ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6111 rm -f conftest.$ac_objext
6112 if { (ac_try="$ac_compile"
6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 *) ac_try_echo=$ac_try;;
6117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6118 $as_echo "$ac_try_echo") >&5
6119 (eval "$ac_compile") 2>conftest.er1
6121 grep -v '^ *+' conftest.er1 >conftest.err
6123 cat conftest.err >&5
6124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } && {
6126 test -z "$ac_c_werror_flag" ||
6127 test ! -s conftest.err
6128 } && test -s conftest.$ac_objext; then
6129 ac_cv_header_stdc=yes
6131 $as_echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6134 ac_cv_header_stdc=no
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 if test $ac_cv_header_stdc = yes; then
6140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6141 cat >conftest.$ac_ext <<_ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6151 $EGREP "memchr" >/dev/null 2>&1; then
6154 ac_cv_header_stdc=no
6160 if test $ac_cv_header_stdc = yes; then
6161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6162 cat >conftest.$ac_ext <<_ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6172 $EGREP "free" >/dev/null 2>&1; then
6175 ac_cv_header_stdc=no
6181 if test $ac_cv_header_stdc = yes; then
6182 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6183 if test "$cross_compiling" = yes; then
6186 cat >conftest.$ac_ext <<_ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6194 #if ((' ' & 0x0FF) == 0x020)
6195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6198 # define ISLOWER(c) \
6199 (('a' <= (c) && (c) <= 'i') \
6200 || ('j' <= (c) && (c) <= 'r') \
6201 || ('s' <= (c) && (c) <= 'z'))
6202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6210 for (i = 0; i < 256; i++)
6211 if (XOR (islower (i), ISLOWER (i))
6212 || toupper (i) != TOUPPER (i))
6217 rm -f conftest$ac_exeext
6218 if { (ac_try="$ac_link"
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6224 $as_echo "$ac_try_echo") >&5
6225 (eval "$ac_link") 2>&5
6227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6229 { (case "(($ac_try" in
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6234 $as_echo "$ac_try_echo") >&5
6235 (eval "$ac_try") 2>&5
6237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6241 $as_echo "$as_me: program exited with status $ac_status" >&5
6242 $as_echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_cv_header_stdc=no
6248 rm -rf conftest.dSYM
6249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6255 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6256 $as_echo "$ac_cv_header_stdc" >&6; }
6257 if test $ac_cv_header_stdc = yes; then
6259 cat >>confdefs.h <<\_ACEOF
6260 #define STDC_HEADERS 1
6265 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6275 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6276 inttypes.h stdint.h unistd.h
6278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6279 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6280 $as_echo_n "checking for $ac_header... " >&6; }
6281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6282 $as_echo_n "(cached) " >&6
6284 cat >conftest.$ac_ext <<_ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6290 $ac_includes_default
6292 #include <$ac_header>
6294 rm -f conftest.$ac_objext
6295 if { (ac_try="$ac_compile"
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6301 $as_echo "$ac_try_echo") >&5
6302 (eval "$ac_compile") 2>conftest.er1
6304 grep -v '^ *+' conftest.er1 >conftest.err
6306 cat conftest.err >&5
6307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } && {
6309 test -z "$ac_c_werror_flag" ||
6310 test ! -s conftest.err
6311 } && test -s conftest.$ac_objext; then
6312 eval "$as_ac_Header=yes"
6314 $as_echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 eval "$as_ac_Header=no"
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 ac_res=`eval 'as_val=${'$as_ac_Header'}
6323 $as_echo "$as_val"'`
6324 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6325 $as_echo "$ac_res" >&6; }
6326 as_val=`eval 'as_val=${'$as_ac_Header'}
6327 $as_echo "$as_val"'`
6328 if test "x$as_val" = x""yes; then
6329 cat >>confdefs.h <<_ACEOF
6330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6338 # The cast to long int works around a bug in the HP C Compiler
6339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6341 # This bug is HP SR number 8606223364.
6342 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
6343 $as_echo_n "checking size of void *... " >&6; }
6344 if test "${ac_cv_sizeof_void_p+set}" = set; then
6345 $as_echo_n "(cached) " >&6
6347 if test "$cross_compiling" = yes; then
6348 # Depending upon the size, compute the lo and hi bounds.
6349 cat >conftest.$ac_ext <<_ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 $ac_includes_default
6359 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
6366 rm -f conftest.$ac_objext
6367 if { (ac_try="$ac_compile"
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6373 $as_echo "$ac_try_echo") >&5
6374 (eval "$ac_compile") 2>conftest.er1
6376 grep -v '^ *+' conftest.er1 >conftest.err
6378 cat conftest.err >&5
6379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } && {
6381 test -z "$ac_c_werror_flag" ||
6382 test ! -s conftest.err
6383 } && test -s conftest.$ac_objext; then
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 $ac_includes_default
6396 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6403 rm -f conftest.$ac_objext
6404 if { (ac_try="$ac_compile"
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6410 $as_echo "$ac_try_echo") >&5
6411 (eval "$ac_compile") 2>conftest.er1
6413 grep -v '^ *+' conftest.er1 >conftest.err
6415 cat conftest.err >&5
6416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } && {
6418 test -z "$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 } && test -s conftest.$ac_objext; then
6421 ac_hi=$ac_mid; break
6423 $as_echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 ac_lo=`expr $ac_mid + 1`
6427 if test $ac_lo -le $ac_mid; then
6431 ac_mid=`expr 2 '*' $ac_mid + 1`
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 $as_echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6440 cat >conftest.$ac_ext <<_ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 $ac_includes_default
6450 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
6457 rm -f conftest.$ac_objext
6458 if { (ac_try="$ac_compile"
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6464 $as_echo "$ac_try_echo") >&5
6465 (eval "$ac_compile") 2>conftest.er1
6467 grep -v '^ *+' conftest.er1 >conftest.err
6469 cat conftest.err >&5
6470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } && {
6472 test -z "$ac_c_werror_flag" ||
6473 test ! -s conftest.err
6474 } && test -s conftest.$ac_objext; then
6477 cat >conftest.$ac_ext <<_ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 $ac_includes_default
6487 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6494 rm -f conftest.$ac_objext
6495 if { (ac_try="$ac_compile"
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6501 $as_echo "$ac_try_echo") >&5
6502 (eval "$ac_compile") 2>conftest.er1
6504 grep -v '^ *+' conftest.er1 >conftest.err
6506 cat conftest.err >&5
6507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } && {
6509 test -z "$ac_c_werror_flag" ||
6510 test ! -s conftest.err
6511 } && test -s conftest.$ac_objext; then
6512 ac_lo=$ac_mid; break
6514 $as_echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6517 ac_hi=`expr '(' $ac_mid ')' - 1`
6518 if test $ac_mid -le $ac_hi; then
6522 ac_mid=`expr 2 '*' $ac_mid`
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 $as_echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 # Binary search between lo and hi bounds.
6539 while test "x$ac_lo" != "x$ac_hi"; do
6540 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6541 cat >conftest.$ac_ext <<_ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 $ac_includes_default
6551 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6558 rm -f conftest.$ac_objext
6559 if { (ac_try="$ac_compile"
6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562 *) ac_try_echo=$ac_try;;
6564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6565 $as_echo "$ac_try_echo") >&5
6566 (eval "$ac_compile") 2>conftest.er1
6568 grep -v '^ *+' conftest.er1 >conftest.err
6570 cat conftest.err >&5
6571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } && {
6573 test -z "$ac_c_werror_flag" ||
6574 test ! -s conftest.err
6575 } && test -s conftest.$ac_objext; then
6578 $as_echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 ac_lo=`expr '(' $ac_mid ')' + 1`
6584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6588 '') if test "$ac_cv_type_void_p" = yes; then
6589 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6591 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6592 See \`config.log' for more details." >&5
6593 $as_echo "$as_me: error: cannot compute sizeof (void *)
6594 See \`config.log' for more details." >&2;}
6595 { (exit 77); exit 77; }; }; }
6597 ac_cv_sizeof_void_p=0
6601 cat >conftest.$ac_ext <<_ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 $ac_includes_default
6608 static long int longval () { return (long int) (sizeof (void *)); }
6609 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6616 FILE *f = fopen ("conftest.val", "w");
6619 if (((long int) (sizeof (void *))) < 0)
6621 long int i = longval ();
6622 if (i != ((long int) (sizeof (void *))))
6624 fprintf (f, "%ld", i);
6628 unsigned long int i = ulongval ();
6629 if (i != ((long int) (sizeof (void *))))
6631 fprintf (f, "%lu", i);
6633 /* Do not output a trailing newline, as this causes \r\n confusion
6634 on some platforms. */
6635 return ferror (f) || fclose (f) != 0;
6641 rm -f conftest$ac_exeext
6642 if { (ac_try="$ac_link"
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6648 $as_echo "$ac_try_echo") >&5
6649 (eval "$ac_link") 2>&5
6651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6653 { (case "(($ac_try" in
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6658 $as_echo "$ac_try_echo") >&5
6659 (eval "$ac_try") 2>&5
6661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_sizeof_void_p=`cat conftest.val`
6665 $as_echo "$as_me: program exited with status $ac_status" >&5
6666 $as_echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6670 if test "$ac_cv_type_void_p" = yes; then
6671 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6673 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6674 See \`config.log' for more details." >&5
6675 $as_echo "$as_me: error: cannot compute sizeof (void *)
6676 See \`config.log' for more details." >&2;}
6677 { (exit 77); exit 77; }; }; }
6679 ac_cv_sizeof_void_p=0
6682 rm -rf conftest.dSYM
6683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6687 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6688 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6692 cat >>confdefs.h <<_ACEOF
6693 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6697 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6698 $as_echo_n "checking for ANSI C header files... " >&6; }
6699 if test "${ac_cv_header_stdc+set}" = set; then
6700 $as_echo_n "(cached) " >&6
6702 cat >conftest.$ac_ext <<_ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6721 rm -f conftest.$ac_objext
6722 if { (ac_try="$ac_compile"
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6728 $as_echo "$ac_try_echo") >&5
6729 (eval "$ac_compile") 2>conftest.er1
6731 grep -v '^ *+' conftest.er1 >conftest.err
6733 cat conftest.err >&5
6734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } && {
6736 test -z "$ac_c_werror_flag" ||
6737 test ! -s conftest.err
6738 } && test -s conftest.$ac_objext; then
6739 ac_cv_header_stdc=yes
6741 $as_echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 ac_cv_header_stdc=no
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 if test $ac_cv_header_stdc = yes; then
6750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6751 cat >conftest.$ac_ext <<_ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6761 $EGREP "memchr" >/dev/null 2>&1; then
6764 ac_cv_header_stdc=no
6770 if test $ac_cv_header_stdc = yes; then
6771 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6772 cat >conftest.$ac_ext <<_ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6782 $EGREP "free" >/dev/null 2>&1; then
6785 ac_cv_header_stdc=no
6791 if test $ac_cv_header_stdc = yes; then
6792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6793 if test "$cross_compiling" = yes; then
6796 cat >conftest.$ac_ext <<_ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6804 #if ((' ' & 0x0FF) == 0x020)
6805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6808 # define ISLOWER(c) \
6809 (('a' <= (c) && (c) <= 'i') \
6810 || ('j' <= (c) && (c) <= 'r') \
6811 || ('s' <= (c) && (c) <= 'z'))
6812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6820 for (i = 0; i < 256; i++)
6821 if (XOR (islower (i), ISLOWER (i))
6822 || toupper (i) != TOUPPER (i))
6827 rm -f conftest$ac_exeext
6828 if { (ac_try="$ac_link"
6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831 *) ac_try_echo=$ac_try;;
6833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6834 $as_echo "$ac_try_echo") >&5
6835 (eval "$ac_link") 2>&5
6837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6839 { (case "(($ac_try" in
6840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841 *) ac_try_echo=$ac_try;;
6843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6844 $as_echo "$ac_try_echo") >&5
6845 (eval "$ac_try") 2>&5
6847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6851 $as_echo "$as_me: program exited with status $ac_status" >&5
6852 $as_echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6856 ac_cv_header_stdc=no
6858 rm -rf conftest.dSYM
6859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6865 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6866 $as_echo "$ac_cv_header_stdc" >&6; }
6867 if test $ac_cv_header_stdc = yes; then
6869 cat >>confdefs.h <<\_ACEOF
6870 #define STDC_HEADERS 1
6875 # Make sure we can run config.sub.
6876 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6877 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6878 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6879 { (exit 1); exit 1; }; }
6881 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6882 $as_echo_n "checking build system type... " >&6; }
6883 if test "${ac_cv_build+set}" = set; then
6884 $as_echo_n "(cached) " >&6
6886 ac_build_alias=$build_alias
6887 test "x$ac_build_alias" = x &&
6888 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6889 test "x$ac_build_alias" = x &&
6890 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6891 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6892 { (exit 1); exit 1; }; }
6893 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6894 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6895 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6896 { (exit 1); exit 1; }; }
6899 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6900 $as_echo "$ac_cv_build" >&6; }
6901 case $ac_cv_build in
6903 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6904 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6905 { (exit 1); exit 1; }; };;
6908 ac_save_IFS=$IFS; IFS='-'
6914 # Remember, the first character of IFS is used to create $*,
6915 # except with old shells:
6918 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6921 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6922 $as_echo_n "checking host system type... " >&6; }
6923 if test "${ac_cv_host+set}" = set; then
6924 $as_echo_n "(cached) " >&6
6926 if test "x$host_alias" = x; then
6927 ac_cv_host=$ac_cv_build
6929 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6930 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6931 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6932 { (exit 1); exit 1; }; }
6936 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6937 $as_echo "$ac_cv_host" >&6; }
6940 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6941 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6942 { (exit 1); exit 1; }; };;
6945 ac_save_IFS=$IFS; IFS='-'
6951 # Remember, the first character of IFS is used to create $*,
6952 # except with old shells:
6955 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6960 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6962 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6963 $as_echo_n "checking dependency style of $depcc... " >&6; }
6964 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
6965 $as_echo_n "(cached) " >&6
6967 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6968 # We make a subdir and do the tests there. Otherwise we can end up
6969 # making bogus files that we don't know about and never remove. For
6970 # instance it was reported that on HP-UX the gcc test will end up
6971 # making a dummy file named `D' -- because `-MD' means `put the output
6974 # Copy depcomp to subdir because otherwise we won't find it if we're
6975 # using a relative directory.
6976 cp "$am_depcomp" conftest.dir
6978 # We will build objects and dependencies in a subdirectory because
6979 # it helps to detect inapplicable dependency modes. For instance
6980 # both Tru64's cc and ICC support -MD to output dependencies as a
6981 # side effect of compilation, but ICC will put the dependencies in
6982 # the current directory while Tru64 will put them in the object
6986 am_cv_OBJC_dependencies_compiler_type=none
6987 if test "$am_compiler_list" = ""; then
6988 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6990 for depmode in $am_compiler_list; do
6991 # Setup a source with many dependencies, because some compilers
6992 # like to wrap large dependency lists on column 80 (with \), and
6993 # we should not choose a depcomp mode which is confused by this.
6995 # We need to recreate these files for each test, as the compiler may
6996 # overwrite some of them when testing with obscure command lines.
6997 # This happens at least with the AIX C compiler.
6999 for i in 1 2 3 4 5 6; do
7000 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7001 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7002 # Solaris 8's {/usr,}/bin/sh.
7003 touch sub/conftst$i.h
7005 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7009 # after this tag, mechanisms are not by side-effect, so they'll
7010 # only be used when explicitly requested
7011 if test "x$enable_dependency_tracking" = xyes; then
7019 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7020 # mode. It turns out that the SunPro C++ compiler does not properly
7021 # handle `-M -o', and we need to detect this.
7022 if depmode=$depmode \
7023 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7025 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7026 >/dev/null 2>conftest.err &&
7027 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7028 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7029 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7030 # icc doesn't choke on unknown options, it will just issue warnings
7031 # or remarks (even with -Werror). So we grep stderr for any message
7032 # that says an option was ignored or not supported.
7033 # When given -MP, icc 7.0 and 7.1 complain thusly:
7034 # icc: Command line warning: ignoring option '-M'; no argument required
7035 # The diagnosis changed in icc 8.0:
7036 # icc: Command line remark: option '-MP' not supported
7037 if (grep 'ignoring option' conftest.err ||
7038 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7039 am_cv_OBJC_dependencies_compiler_type=$depmode
7048 am_cv_OBJC_dependencies_compiler_type=none
7052 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
7053 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
7054 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
7059 test "x$enable_dependency_tracking" != xno \
7060 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
7061 am__fastdepOBJC_TRUE=
7062 am__fastdepOBJC_FALSE='#'
7064 am__fastdepOBJC_TRUE='#'
7065 am__fastdepOBJC_FALSE=
7070 # Extract the first word of "pod2man", so it can be a program name with args.
7071 set dummy pod2man; ac_word=$2
7072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if test "${ac_cv_path_POD2MAN+set}" = set; then
7075 $as_echo_n "(cached) " >&6
7079 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 POD2MAN=$ac_cv_path_POD2MAN
7101 if test -n "$POD2MAN"; then
7102 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
7103 $as_echo "$POD2MAN" >&6; }
7105 { $as_echo "$as_me:$LINENO: result: no" >&5
7106 $as_echo "no" >&6; }
7110 # Extract the first word of "pod2html", so it can be a program name with args.
7111 set dummy pod2html; ac_word=$2
7112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if test "${ac_cv_path_POD2HTML+set}" = set; then
7115 $as_echo_n "(cached) " >&6
7119 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 POD2HTML=$ac_cv_path_POD2HTML
7141 if test -n "$POD2HTML"; then
7142 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
7143 $as_echo "$POD2HTML" >&6; }
7145 { $as_echo "$as_me:$LINENO: result: no" >&5
7146 $as_echo "no" >&6; }
7152 # Check whether --enable-strict-warn was given.
7153 if test "${enable_strict_warn+set}" = set; then
7154 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
7155 enable_strictwarn=yes
7159 # Check whether --enable-translator was given.
7160 if test "${enable_translator+set}" = set; then
7161 enableval=$enable_translator; true
7163 enable_translator=yes
7166 # Check whether --enable-optimized was given.
7167 if test "${enable_optimized+set}" = set; then
7168 enableval=$enable_optimized; true
7170 enable_optimized=yes
7173 # Check whether --enable-shared was given.
7174 if test "${enable_shared+set}" = set; then
7175 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
7180 # Check whether --enable-profiled was given.
7181 if test "${enable_profiled+set}" = set; then
7182 enableval=$enable_profiled; if test "$enableval" == "yes"; then
7183 enable_profiled=yes;
7187 # Check whether --enable-trace was given.
7188 if test "${enable_trace+set}" = set; then
7189 enableval=$enable_trace; if test "$enableval" == "yes"; then
7191 cat >>confdefs.h <<\_ACEOF
7192 #define ENABLE_TRACE_IO 1
7198 # Check whether --enable-watch was given.
7199 if test "${enable_watch+set}" = set; then
7200 enableval=$enable_watch; if test "$enableval" == "yes"; then
7202 cat >>confdefs.h <<\_ACEOF
7203 #define ENABLE_WATCH 1
7209 # Check whether --enable-sh4stats was given.
7210 if test "${enable_sh4stats+set}" = set; then
7211 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
7213 cat >>confdefs.h <<\_ACEOF
7214 #define ENABLE_SH4STATS 1
7221 # Check whether --with-osmesa was given.
7222 if test "${with_osmesa+set}" = set; then
7223 withval=$with_osmesa;
7229 # Check whether --with-gtk was given.
7230 if test "${with_gtk+set}" = set; then
7231 withval=$with_gtk; with_gtk=yes
7237 # Check whether --with-esd was given.
7238 if test "${with_esd+set}" = set; then
7243 # Check whether --with-pulse was given.
7244 if test "${with_pulse+set}" = set; then
7245 withval=$with_pulse;
7249 # Check whether --with-sdl was given.
7250 if test "${with_sdl+set}" = set; then
7260 ac_cpp='$OBJCPP $CPPFLAGS'
7261 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7264 if test -n "$ac_tool_prefix"; then
7265 for ac_prog in gcc objcc objc cc CC
7267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7269 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if test "${ac_cv_prog_OBJC+set}" = set; then
7272 $as_echo_n "(cached) " >&6
7274 if test -n "$OBJC"; then
7275 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 OBJC=$ac_cv_prog_OBJC
7295 if test -n "$OBJC"; then
7296 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
7297 $as_echo "$OBJC" >&6; }
7299 { $as_echo "$as_me:$LINENO: result: no" >&5
7300 $as_echo "no" >&6; }
7304 test -n "$OBJC" && break
7307 if test -z "$OBJC"; then
7309 for ac_prog in gcc objcc objc cc CC
7311 # Extract the first word of "$ac_prog", so it can be a program name with args.
7312 set dummy $ac_prog; ac_word=$2
7313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7316 $as_echo_n "(cached) " >&6
7318 if test -n "$ac_ct_OBJC"; then
7319 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7328 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7339 if test -n "$ac_ct_OBJC"; then
7340 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7341 $as_echo "$ac_ct_OBJC" >&6; }
7343 { $as_echo "$as_me:$LINENO: result: no" >&5
7344 $as_echo "no" >&6; }
7348 test -n "$ac_ct_OBJC" && break
7351 if test "x$ac_ct_OBJC" = x; then
7354 case $cross_compiling:$ac_tool_warned in
7356 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358 ac_tool_warned=yes ;;
7364 # Provide some information about the compiler.
7365 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7368 { (ac_try="$ac_compiler --version >&5"
7370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7374 $as_echo "$ac_try_echo") >&5
7375 (eval "$ac_compiler --version >&5") 2>&5
7377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }
7379 { (ac_try="$ac_compiler -v >&5"
7381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7382 *) ac_try_echo=$ac_try;;
7384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7385 $as_echo "$ac_try_echo") >&5
7386 (eval "$ac_compiler -v >&5") 2>&5
7388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }
7390 { (ac_try="$ac_compiler -V >&5"
7392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393 *) ac_try_echo=$ac_try;;
7395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7396 $as_echo "$ac_try_echo") >&5
7397 (eval "$ac_compiler -V >&5") 2>&5
7399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }
7402 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7403 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
7404 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7405 $as_echo_n "(cached) " >&6
7407 cat >conftest.$ac_ext <<_ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7425 rm -f conftest.$ac_objext
7426 if { (ac_try="$ac_compile"
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7432 $as_echo "$ac_try_echo") >&5
7433 (eval "$ac_compile") 2>conftest.er1
7435 grep -v '^ *+' conftest.er1 >conftest.err
7437 cat conftest.err >&5
7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_objc_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest.$ac_objext; then
7445 $as_echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7452 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7455 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7456 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
7457 if test $ac_compiler_gnu = yes; then
7462 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7463 ac_save_OBJCFLAGS=$OBJCFLAGS
7464 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7465 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
7466 if test "${ac_cv_prog_objc_g+set}" = set; then
7467 $as_echo_n "(cached) " >&6
7469 ac_save_objc_werror_flag=$ac_objc_werror_flag
7470 ac_objc_werror_flag=yes
7471 ac_cv_prog_objc_g=no
7473 cat >conftest.$ac_ext <<_ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7488 rm -f conftest.$ac_objext
7489 if { (ac_try="$ac_compile"
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7495 $as_echo "$ac_try_echo") >&5
7496 (eval "$ac_compile") 2>conftest.er1
7498 grep -v '^ *+' conftest.er1 >conftest.err
7500 cat conftest.err >&5
7501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } && {
7503 test -z "$ac_objc_werror_flag" ||
7504 test ! -s conftest.err
7505 } && test -s conftest.$ac_objext; then
7506 ac_cv_prog_objc_g=yes
7508 $as_echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7512 cat >conftest.$ac_ext <<_ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7527 rm -f conftest.$ac_objext
7528 if { (ac_try="$ac_compile"
7530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531 *) ac_try_echo=$ac_try;;
7533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7534 $as_echo "$ac_try_echo") >&5
7535 (eval "$ac_compile") 2>conftest.er1
7537 grep -v '^ *+' conftest.er1 >conftest.err
7539 cat conftest.err >&5
7540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_objc_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest.$ac_objext; then
7547 $as_echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7550 ac_objc_werror_flag=$ac_save_objc_werror_flag
7552 cat >conftest.$ac_ext <<_ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7567 rm -f conftest.$ac_objext
7568 if { (ac_try="$ac_compile"
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7574 $as_echo "$ac_try_echo") >&5
7575 (eval "$ac_compile") 2>conftest.er1
7577 grep -v '^ *+' conftest.er1 >conftest.err
7579 cat conftest.err >&5
7580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } && {
7582 test -z "$ac_objc_werror_flag" ||
7583 test ! -s conftest.err
7584 } && test -s conftest.$ac_objext; then
7585 ac_cv_prog_objc_g=yes
7587 $as_echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600 ac_objc_werror_flag=$ac_save_objc_werror_flag
7602 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7603 $as_echo "$ac_cv_prog_objc_g" >&6; }
7604 if test "$ac_test_OBJCFLAGS" = set; then
7605 OBJCFLAGS=$ac_save_OBJCFLAGS
7606 elif test $ac_cv_prog_objc_g = yes; then
7607 if test "$GOBJC" = yes; then
7613 if test "$GOBJC" = yes; then
7620 ac_cpp='$CPP $CPPFLAGS'
7621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7625 { $as_echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
7626 $as_echo_n "checking for a working Objective-C compiler... " >&6; }
7628 ac_cpp='$OBJCPP $CPPFLAGS'
7629 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7630 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7631 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7632 cat >conftest.$ac_ext <<_ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7647 rm -f conftest.$ac_objext
7648 if { (ac_try="$ac_compile"
7650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7654 $as_echo "$ac_try_echo") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7657 grep -v '^ *+' conftest.er1 >conftest.err
7659 cat conftest.err >&5
7660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_objc_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7665 { $as_echo "$as_me:$LINENO: result: yes" >&5
7666 $as_echo "yes" >&6; }
7668 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7669 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7670 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7671 $as_echo_n "(cached) " >&6
7673 cat >conftest.$ac_ext <<_ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 $ac_includes_default
7681 #include <Cocoa/Cocoa.h>
7683 rm -f conftest.$ac_objext
7684 if { (ac_try="$ac_compile"
7686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7687 *) ac_try_echo=$ac_try;;
7689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7690 $as_echo "$ac_try_echo") >&5
7691 (eval "$ac_compile") 2>conftest.er1
7693 grep -v '^ *+' conftest.er1 >conftest.err
7695 cat conftest.err >&5
7696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } && {
7698 test -z "$ac_objc_werror_flag" ||
7699 test ! -s conftest.err
7700 } && test -s conftest.$ac_objext; then
7701 ac_cv_header_Cocoa_Cocoa_h=yes
7703 $as_echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7706 ac_cv_header_Cocoa_Cocoa_h=no
7709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7712 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7713 if test "x$ac_cv_header_Cocoa_Cocoa_h" = x""yes; then
7717 LIBS="$LIBS -framework AppKit"
7718 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"
7719 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
7720 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
7722 cat >>confdefs.h <<\_ACEOF
7723 #define HAVE_COCOA 1
7727 cat >>confdefs.h <<\_ACEOF
7728 #define APPLE_BUILD 1
7731 if test "x$with_gtk" = "xx11"; then
7740 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
7741 $as_echo_n "checking OBJC version... " >&6; }
7742 if test -n "$OBJC"; then
7743 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
7744 if test -n "$_GOBJC_VERSION"; then
7745 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7746 $as_echo "GCC" >&6; }
7747 OBJCOPT="-O2 -msse2 -mfpmath=sse"
7748 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
7750 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7751 $as_echo "Unknown" >&6; }
7755 { $as_echo "$as_me:$LINENO: result: None" >&5
7756 $as_echo "None" >&6; }
7762 $as_echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7765 { $as_echo "$as_me:$LINENO: result: No" >&5
7766 $as_echo "No" >&6; }
7770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
7789 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
7791 cat >>confdefs.h <<\_ACEOF
7792 #define OSX_BUNDLE 1
7797 CFLAGS="-g -fexceptions"
7798 OBJCFLAGS="-g -fexceptions"
7800 cat >>confdefs.h <<\_ACEOF
7801 #define HAVE_EXCEPTIONS 1
7807 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
7808 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
7809 { $as_echo "$as_me:$LINENO: checking CC version" >&5
7810 $as_echo_n "checking CC version... " >&6; }
7811 if test -n "$_ICC_VERSION"; then
7812 { $as_echo "$as_me:$LINENO: result: ICC" >&5
7813 $as_echo "ICC" >&6; }
7814 CCOPT="$CFLAGS -fast"
7815 CFLAGS="$CFLAGS -fno-strict-aliasing"
7816 elif test -n "$_GCC_VERSION"; then
7817 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7818 $as_echo "GCC" >&6; }
7819 CCOPT="-O2 -msse2 -mfpmath=sse"
7820 CFLAGS="$CFLAGS -fno-strict-aliasing"
7822 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7823 $as_echo "Unknown" >&6; }
7828 if test "x$enable_optimized" = "xyes"; then
7829 CFLAGS="$CFLAGS $CCOPT"
7830 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
7831 if test "x$enable_profiled" != "xyes"; then
7832 CFLAGS="$CFLAGS -fomit-frame-pointer"
7833 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
7836 CFLAGS="$CFLAGS -g3"
7837 OBJCFLAGS="$OBJCFLAGS -g3"
7840 if test "x$enable_profiled" = "xyes"; then
7841 CFLAGS="$CFLAGS -pg"
7842 LDFLAGS="$LDFLAGS -pg";
7843 OBJCFLAGS="$OBJCFLAGS -pg";
7846 if test "x$enable_strictwarn" = "xyes"; then
7847 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
7848 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
7851 if test "x$enable_shared" != "xno"; then
7853 cat >>confdefs.h <<\_ACEOF
7854 #define ENABLE_SHARED 1
7857 if test "x$APPLE_BUILD" = "xyes"; then
7859 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
7862 PLUGINLDFLAGS="-shared"
7864 PLUGINCFLAGS="-fPIC"
7866 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7867 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
7868 $as_echo_n "checking for dlfcn.h... " >&6; }
7869 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7870 $as_echo_n "(cached) " >&6
7872 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
7873 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
7875 # Is the header compilable?
7876 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
7877 $as_echo_n "checking dlfcn.h usability... " >&6; }
7878 cat >conftest.$ac_ext <<_ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 $ac_includes_default
7887 rm -f conftest.$ac_objext
7888 if { (ac_try="$ac_compile"
7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891 *) ac_try_echo=$ac_try;;
7893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7894 $as_echo "$ac_try_echo") >&5
7895 (eval "$ac_compile") 2>conftest.er1
7897 grep -v '^ *+' conftest.er1 >conftest.err
7899 cat conftest.err >&5
7900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } && {
7902 test -z "$ac_c_werror_flag" ||
7903 test ! -s conftest.err
7904 } && test -s conftest.$ac_objext; then
7905 ac_header_compiler=yes
7907 $as_echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7910 ac_header_compiler=no
7913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7914 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7915 $as_echo "$ac_header_compiler" >&6; }
7917 # Is the header present?
7918 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
7919 $as_echo_n "checking dlfcn.h presence... " >&6; }
7920 cat >conftest.$ac_ext <<_ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7928 if { (ac_try="$ac_cpp conftest.$ac_ext"
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7934 $as_echo "$ac_try_echo") >&5
7935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7937 grep -v '^ *+' conftest.er1 >conftest.err
7939 cat conftest.err >&5
7940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } >/dev/null && {
7942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7945 ac_header_preproc=yes
7947 $as_echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7950 ac_header_preproc=no
7953 rm -f conftest.err conftest.$ac_ext
7954 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7955 $as_echo "$ac_header_preproc" >&6; }
7957 # So? What about this header?
7958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7960 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
7961 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7962 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
7963 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
7964 ac_header_preproc=yes
7967 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
7968 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
7969 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
7970 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
7971 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
7972 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
7973 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
7974 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
7975 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
7976 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
7977 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
7978 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
7982 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
7983 $as_echo_n "checking for dlfcn.h... " >&6; }
7984 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7985 $as_echo_n "(cached) " >&6
7987 ac_cv_header_dlfcn_h=$ac_header_preproc
7989 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
7990 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
7993 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
7995 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7996 $as_echo_n "checking for library containing dlopen... " >&6; }
7997 if test "${ac_cv_search_dlopen+set}" = set; then
7998 $as_echo_n "(cached) " >&6
8000 ac_func_search_save_LIBS=$LIBS
8001 cat >conftest.$ac_ext <<_ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8008 /* Override any GCC internal prototype to avoid an error.
8009 Use char because int might match the return type of a GCC
8010 builtin and then its argument prototype would still apply. */
8023 for ac_lib in '' dl; do
8024 if test -z "$ac_lib"; then
8025 ac_res="none required"
8028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8030 rm -f conftest.$ac_objext conftest$ac_exeext
8031 if { (ac_try="$ac_link"
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8037 $as_echo "$ac_try_echo") >&5
8038 (eval "$ac_link") 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest$ac_exeext && {
8048 test "$cross_compiling" = yes ||
8049 $as_test_x conftest$ac_exeext
8051 ac_cv_search_dlopen=$ac_res
8053 $as_echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8059 rm -rf conftest.dSYM
8060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8062 if test "${ac_cv_search_dlopen+set}" = set; then
8066 if test "${ac_cv_search_dlopen+set}" = set; then
8069 ac_cv_search_dlopen=no
8072 LIBS=$ac_func_search_save_LIBS
8074 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8075 $as_echo "$ac_cv_search_dlopen" >&6; }
8076 ac_res=$ac_cv_search_dlopen
8077 if test "$ac_res" != no; then
8078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8085 if test "x$have_dlopen" != "xyes"; then
8086 if test "x$enable_shared" == "xyes"; then
8087 { { $as_echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
8088 $as_echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
8089 { (exit 1); exit 1; }; }
8091 { $as_echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
8092 $as_echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
8096 { $as_echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
8097 $as_echo_n "checking if linker accepts -rdynamic... " >&6; }
8098 old_LDFLAGS="$LDFLAGS"
8099 LDFLAGS="$LDFLAGS -rdynamic"
8100 cat >conftest.$ac_ext <<_ACEOF
8103 rm -f conftest.$ac_objext conftest$ac_exeext
8104 if { (ac_try="$ac_link"
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8110 $as_echo "$ac_try_echo") >&5
8111 (eval "$ac_link") 2>conftest.er1
8113 grep -v '^ *+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest$ac_exeext && {
8121 test "$cross_compiling" = yes ||
8122 $as_test_x conftest$ac_exeext
8125 LXDREAMLDFLAGS="-rdynamic"
8126 { $as_echo "$as_me:$LINENO: result: yes" >&5
8127 $as_echo "yes" >&6; }
8130 $as_echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8135 { $as_echo "$as_me:$LINENO: result: no" >&5
8136 $as_echo "no" >&6; }
8139 rm -rf conftest.dSYM
8140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8141 conftest$ac_exeext conftest.$ac_ext
8142 LDFLAGS="$old_LDFLAGS"
8151 if test "x$have_dlopen" = "xyes"; then
8153 BUILD_SHARED_FALSE='#'
8155 BUILD_SHARED_TRUE='#'
8161 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
8162 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
8163 if test "$cross_compiling" = yes; then
8164 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8166 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8167 See \`config.log' for more details." >&5
8168 $as_echo "$as_me: error: cannot run test program while cross compiling
8169 See \`config.log' for more details." >&2;}
8170 { (exit 1); exit 1; }; }; }
8172 cat >conftest.$ac_ext <<_ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8180 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
8182 int main(int argc, char *argv[])
8184 return foo( 1, 2 ) == 3 ? 0 : 1;
8187 rm -f conftest$ac_exeext
8188 if { (ac_try="$ac_link"
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8194 $as_echo "$ac_try_echo") >&5
8195 (eval "$ac_link") 2>&5
8197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8199 { (case "(($ac_try" in
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8204 $as_echo "$ac_try_echo") >&5
8205 (eval "$ac_try") 2>&5
8207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
8210 { $as_echo "$as_me:$LINENO: result: yes" >&5
8211 $as_echo "yes" >&6; }
8214 cat >>confdefs.h <<\_ACEOF
8215 #define HAVE_FASTCALL 1
8220 $as_echo "$as_me: program exited with status $ac_status" >&5
8221 $as_echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8226 { $as_echo "$as_me:$LINENO: result: no" >&5
8227 $as_echo "no" >&6; }
8230 rm -rf conftest.dSYM
8231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8237 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
8238 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
8239 if test "$cross_compiling" = yes; then
8240 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8242 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8243 See \`config.log' for more details." >&5
8244 $as_echo "$as_me: error: cannot run test program while cross compiling
8245 See \`config.log' for more details." >&2;}
8246 { (exit 1); exit 1; }; }; }
8248 cat >conftest.$ac_ext <<_ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8256 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
8257 int __attribute__((noinline)) foo( int arg, void *exc )
8260 *(((void **)__builtin_frame_address(0))+1) = exc;
8265 int main(int argc, char *argv[])
8267 goto *first_arg(&&start, &&except);
8270 return foo( argc, &&except ) + 1;
8276 rm -f conftest$ac_exeext
8277 if { (ac_try="$ac_link"
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8283 $as_echo "$ac_try_echo") >&5
8284 (eval "$ac_link") 2>&5
8286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8288 { (case "(($ac_try" in
8289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8293 $as_echo "$ac_try_echo") >&5
8294 (eval "$ac_try") 2>&5
8296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8299 { $as_echo "$as_me:$LINENO: result: yes" >&5
8300 $as_echo "yes" >&6; }
8303 cat >>confdefs.h <<\_ACEOF
8304 #define HAVE_FRAME_ADDRESS 1
8309 $as_echo "$as_me: program exited with status $ac_status" >&5
8310 $as_echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8315 { $as_echo "$as_me:$LINENO: result: no" >&5
8316 $as_echo "no" >&6; }
8317 { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
8318 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
8320 rm -rf conftest.dSYM
8321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8328 { $as_echo "$as_me:$LINENO: checking for library containing listen" >&5
8329 $as_echo_n "checking for library containing listen... " >&6; }
8330 if test "${ac_cv_search_listen+set}" = set; then
8331 $as_echo_n "(cached) " >&6
8333 ac_func_search_save_LIBS=$LIBS
8334 cat >conftest.$ac_ext <<_ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8341 /* Override any GCC internal prototype to avoid an error.
8342 Use char because int might match the return type of a GCC
8343 builtin and then its argument prototype would still apply. */
8356 for ac_lib in '' socket; do
8357 if test -z "$ac_lib"; then
8358 ac_res="none required"
8361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8363 rm -f conftest.$ac_objext conftest$ac_exeext
8364 if { (ac_try="$ac_link"
8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367 *) ac_try_echo=$ac_try;;
8369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8370 $as_echo "$ac_try_echo") >&5
8371 (eval "$ac_link") 2>conftest.er1
8373 grep -v '^ *+' conftest.er1 >conftest.err
8375 cat conftest.err >&5
8376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } && {
8378 test -z "$ac_c_werror_flag" ||
8379 test ! -s conftest.err
8380 } && test -s conftest$ac_exeext && {
8381 test "$cross_compiling" = yes ||
8382 $as_test_x conftest$ac_exeext
8384 ac_cv_search_listen=$ac_res
8386 $as_echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8392 rm -rf conftest.dSYM
8393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8395 if test "${ac_cv_search_listen+set}" = set; then
8399 if test "${ac_cv_search_listen+set}" = set; then
8402 ac_cv_search_listen=no
8405 LIBS=$ac_func_search_save_LIBS
8407 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
8408 $as_echo "$ac_cv_search_listen" >&6; }
8409 ac_res=$ac_cv_search_listen
8410 if test "$ac_res" != no; then
8411 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8415 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
8416 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
8417 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8418 $as_echo_n "(cached) " >&6
8420 ac_func_search_save_LIBS=$LIBS
8421 cat >conftest.$ac_ext <<_ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8428 /* Override any GCC internal prototype to avoid an error.
8429 Use char because int might match the return type of a GCC
8430 builtin and then its argument prototype would still apply. */
8438 return inet_ntoa ();
8443 for ac_lib in '' nsl; do
8444 if test -z "$ac_lib"; then
8445 ac_res="none required"
8448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (ac_try="$ac_link"
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8457 $as_echo "$ac_try_echo") >&5
8458 (eval "$ac_link") 2>conftest.er1
8460 grep -v '^ *+' conftest.er1 >conftest.err
8462 cat conftest.err >&5
8463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } && {
8465 test -z "$ac_c_werror_flag" ||
8466 test ! -s conftest.err
8467 } && test -s conftest$ac_exeext && {
8468 test "$cross_compiling" = yes ||
8469 $as_test_x conftest$ac_exeext
8471 ac_cv_search_inet_ntoa=$ac_res
8473 $as_echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8479 rm -rf conftest.dSYM
8480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8482 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8486 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8489 ac_cv_search_inet_ntoa=no
8492 LIBS=$ac_func_search_save_LIBS
8494 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
8495 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
8496 ac_res=$ac_cv_search_inet_ntoa
8497 if test "$ac_res" != no; then
8498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8505 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8506 if test -n "$ac_tool_prefix"; then
8507 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8508 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8512 $as_echo_n "(cached) " >&6
8516 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8537 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8538 if test -n "$PKG_CONFIG"; then
8539 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8540 $as_echo "$PKG_CONFIG" >&6; }
8542 { $as_echo "$as_me:$LINENO: result: no" >&5
8543 $as_echo "no" >&6; }
8548 if test -z "$ac_cv_path_PKG_CONFIG"; then
8549 ac_pt_PKG_CONFIG=$PKG_CONFIG
8550 # Extract the first word of "pkg-config", so it can be a program name with args.
8551 set dummy pkg-config; ac_word=$2
8552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8553 $as_echo_n "checking for $ac_word... " >&6; }
8554 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8555 $as_echo_n "(cached) " >&6
8557 case $ac_pt_PKG_CONFIG in
8559 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8580 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8581 if test -n "$ac_pt_PKG_CONFIG"; then
8582 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8583 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8585 { $as_echo "$as_me:$LINENO: result: no" >&5
8586 $as_echo "no" >&6; }
8589 if test "x$ac_pt_PKG_CONFIG" = x; then
8592 case $cross_compiling:$ac_tool_warned in
8594 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8596 ac_tool_warned=yes ;;
8598 PKG_CONFIG=$ac_pt_PKG_CONFIG
8601 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8605 if test -n "$PKG_CONFIG"; then
8606 _pkg_min_version=0.9.0
8607 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8608 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8609 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8610 { $as_echo "$as_me:$LINENO: result: yes" >&5
8611 $as_echo "yes" >&6; }
8613 { $as_echo "$as_me:$LINENO: result: no" >&5
8614 $as_echo "no" >&6; }
8621 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
8622 $as_echo_n "checking for LIBPNG... " >&6; }
8624 if test -n "$LIBPNG_CFLAGS"; then
8625 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
8626 elif test -n "$PKG_CONFIG"; then
8627 if test -n "$PKG_CONFIG" && \
8628 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8629 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; then
8633 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
8640 if test -n "$LIBPNG_LIBS"; then
8641 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8642 elif test -n "$PKG_CONFIG"; then
8643 if test -n "$PKG_CONFIG" && \
8644 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8645 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; then
8649 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
8659 if test $pkg_failed = yes; then
8661 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8662 _pkg_short_errors_supported=yes
8664 _pkg_short_errors_supported=no
8666 if test $_pkg_short_errors_supported = yes; then
8667 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
8669 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
8671 # Put the nasty error message in config.log where it belongs
8672 echo "$LIBPNG_PKG_ERRORS" >&5
8674 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
8678 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8679 installed software in a non-standard prefix.
8681 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8682 and LIBPNG_LIBS to avoid the need to call pkg-config.
8683 See the pkg-config man page for more details.
8685 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
8689 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8690 installed software in a non-standard prefix.
8692 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8693 and LIBPNG_LIBS to avoid the need to call pkg-config.
8694 See the pkg-config man page for more details.
8696 { (exit 1); exit 1; }; }
8697 elif test $pkg_failed = untried; then
8698 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8700 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8701 is in your PATH or set the PKG_CONFIG environment variable to the full
8704 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8705 and LIBPNG_LIBS to avoid the need to call pkg-config.
8706 See the pkg-config man page for more details.
8708 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8709 See \`config.log' for more details." >&5
8710 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8711 is in your PATH or set the PKG_CONFIG environment variable to the full
8714 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8715 and LIBPNG_LIBS to avoid the need to call pkg-config.
8716 See the pkg-config man page for more details.
8718 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8719 See \`config.log' for more details." >&2;}
8720 { (exit 1); exit 1; }; }; }
8722 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8723 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8724 { $as_echo "$as_me:$LINENO: result: yes" >&5
8725 $as_echo "yes" >&6; }
8730 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
8731 $as_echo_n "checking for uncompress in -lz... " >&6; }
8732 if test "${ac_cv_lib_z_uncompress+set}" = set; then
8733 $as_echo_n "(cached) " >&6
8735 ac_check_lib_save_LIBS=$LIBS
8737 cat >conftest.$ac_ext <<_ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8744 /* Override any GCC internal prototype to avoid an error.
8745 Use char because int might match the return type of a GCC
8746 builtin and then its argument prototype would still apply. */
8754 return uncompress ();
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (ac_try="$ac_link"
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8766 $as_echo "$ac_try_echo") >&5
8767 (eval "$ac_link") 2>conftest.er1
8769 grep -v '^ *+' conftest.er1 >conftest.err
8771 cat conftest.err >&5
8772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } && {
8774 test -z "$ac_c_werror_flag" ||
8775 test ! -s conftest.err
8776 } && test -s conftest$ac_exeext && {
8777 test "$cross_compiling" = yes ||
8778 $as_test_x conftest$ac_exeext
8780 ac_cv_lib_z_uncompress=yes
8782 $as_echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 ac_cv_lib_z_uncompress=no
8788 rm -rf conftest.dSYM
8789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8790 conftest$ac_exeext conftest.$ac_ext
8791 LIBS=$ac_check_lib_save_LIBS
8793 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
8794 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
8795 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
8796 cat >>confdefs.h <<_ACEOF
8804 echo "Zlib (libz.so) could not be found, but is required."
8809 if test "x$with_gtk" = "xno"; then
8812 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
8813 $as_echo_n "checking for GLIB... " >&6; }
8815 if test -n "$GLIB_CFLAGS"; then
8816 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8817 elif test -n "$PKG_CONFIG"; then
8818 if test -n "$PKG_CONFIG" && \
8819 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8820 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; then
8824 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
8831 if test -n "$GLIB_LIBS"; then
8832 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8833 elif test -n "$PKG_CONFIG"; then
8834 if test -n "$PKG_CONFIG" && \
8835 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8836 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; then
8840 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
8850 if test $pkg_failed = yes; then
8852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8853 _pkg_short_errors_supported=yes
8855 _pkg_short_errors_supported=no
8857 if test $_pkg_short_errors_supported = yes; then
8858 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
8860 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
8862 # Put the nasty error message in config.log where it belongs
8863 echo "$GLIB_PKG_ERRORS" >&5
8865 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
8869 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8870 installed software in a non-standard prefix.
8872 Alternatively, you may set the environment variables GLIB_CFLAGS
8873 and GLIB_LIBS to avoid the need to call pkg-config.
8874 See the pkg-config man page for more details.
8876 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
8880 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8881 installed software in a non-standard prefix.
8883 Alternatively, you may set the environment variables GLIB_CFLAGS
8884 and GLIB_LIBS to avoid the need to call pkg-config.
8885 See the pkg-config man page for more details.
8887 { (exit 1); exit 1; }; }
8888 elif test $pkg_failed = untried; then
8889 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8891 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8892 is in your PATH or set the PKG_CONFIG environment variable to the full
8895 Alternatively, you may set the environment variables GLIB_CFLAGS
8896 and GLIB_LIBS to avoid the need to call pkg-config.
8897 See the pkg-config man page for more details.
8899 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8900 See \`config.log' for more details." >&5
8901 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8902 is in your PATH or set the PKG_CONFIG environment variable to the full
8905 Alternatively, you may set the environment variables GLIB_CFLAGS
8906 and GLIB_LIBS to avoid the need to call pkg-config.
8907 See the pkg-config man page for more details.
8909 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8910 See \`config.log' for more details." >&2;}
8911 { (exit 1); exit 1; }; }; }
8913 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8914 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8915 { $as_echo "$as_me:$LINENO: result: yes" >&5
8916 $as_echo "yes" >&6; }
8922 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
8923 $as_echo_n "checking for GTK... " >&6; }
8925 if test -n "$GTK_CFLAGS"; then
8926 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8927 elif test -n "$PKG_CONFIG"; then
8928 if test -n "$PKG_CONFIG" && \
8929 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8930 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; then
8934 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
8941 if test -n "$GTK_LIBS"; then
8942 pkg_cv_GTK_LIBS="$GTK_LIBS"
8943 elif test -n "$PKG_CONFIG"; then
8944 if test -n "$PKG_CONFIG" && \
8945 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8946 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; then
8950 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
8960 if test $pkg_failed = yes; then
8962 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8963 _pkg_short_errors_supported=yes
8965 _pkg_short_errors_supported=no
8967 if test $_pkg_short_errors_supported = yes; then
8968 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
8970 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
8972 # Put the nasty error message in config.log where it belongs
8973 echo "$GTK_PKG_ERRORS" >&5
8975 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
8979 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8980 installed software in a non-standard prefix.
8982 Alternatively, you may set the environment variables GTK_CFLAGS
8983 and GTK_LIBS to avoid the need to call pkg-config.
8984 See the pkg-config man page for more details.
8986 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
8990 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8991 installed software in a non-standard prefix.
8993 Alternatively, you may set the environment variables GTK_CFLAGS
8994 and GTK_LIBS to avoid the need to call pkg-config.
8995 See the pkg-config man page for more details.
8997 { (exit 1); exit 1; }; }
8998 elif test $pkg_failed = untried; then
8999 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9001 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
9002 is in your PATH or set the PKG_CONFIG environment variable to the full
9005 Alternatively, you may set the environment variables GTK_CFLAGS
9006 and GTK_LIBS to avoid the need to call pkg-config.
9007 See the pkg-config man page for more details.
9009 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9010 See \`config.log' for more details." >&5
9011 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
9012 is in your PATH or set the PKG_CONFIG environment variable to the full
9015 Alternatively, you may set the environment variables GTK_CFLAGS
9016 and GTK_LIBS to avoid the need to call pkg-config.
9017 See the pkg-config man page for more details.
9019 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9020 See \`config.log' for more details." >&2;}
9021 { (exit 1); exit 1; }; }; }
9023 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
9024 GTK_LIBS=$pkg_cv_GTK_LIBS
9025 { $as_echo "$as_me:$LINENO: result: yes" >&5
9026 $as_echo "yes" >&6; }
9030 cat >>confdefs.h <<\_ACEOF
9037 LIBS="$LIBS $GTK_LIBS"
9038 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
9039 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
9040 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
9041 $as_echo_n "(cached) " >&6
9043 cat >conftest.$ac_ext <<_ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h. */
9049 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
9050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9051 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
9053 /* System header to define __stub macros and hopefully few prototypes,
9054 which can conflict with char gdk_x11_display_get_xdisplay (); below.
9055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9056 <limits.h> exists even on freestanding compilers. */
9059 # include <limits.h>
9061 # include <assert.h>
9064 #undef gdk_x11_display_get_xdisplay
9066 /* Override any GCC internal prototype to avoid an error.
9067 Use char because int might match the return type of a GCC
9068 builtin and then its argument prototype would still apply. */
9072 char gdk_x11_display_get_xdisplay ();
9073 /* The GNU C library defines this for functions which it implements
9074 to always fail with ENOSYS. Some functions are actually named
9075 something starting with __ and the normal name is an alias. */
9076 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
9083 return gdk_x11_display_get_xdisplay ();
9088 rm -f conftest.$ac_objext conftest$ac_exeext
9089 if { (ac_try="$ac_link"
9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9095 $as_echo "$ac_try_echo") >&5
9096 (eval "$ac_link") 2>conftest.er1
9098 grep -v '^ *+' conftest.er1 >conftest.err
9100 cat conftest.err >&5
9101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } && {
9103 test -z "$ac_c_werror_flag" ||
9104 test ! -s conftest.err
9105 } && test -s conftest$ac_exeext && {
9106 test "$cross_compiling" = yes ||
9107 $as_test_x conftest$ac_exeext
9109 ac_cv_func_gdk_x11_display_get_xdisplay=yes
9111 $as_echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9114 ac_cv_func_gdk_x11_display_get_xdisplay=no
9117 rm -rf conftest.dSYM
9118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9119 conftest$ac_exeext conftest.$ac_ext
9121 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
9122 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
9123 if test "x$ac_cv_func_gdk_x11_display_get_xdisplay" = x""yes; then
9127 cat >>confdefs.h <<\_ACEOF
9128 #define HAVE_GTK_X11 1
9133 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
9134 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
9135 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
9136 $as_echo_n "(cached) " >&6
9138 cat >conftest.$ac_ext <<_ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
9145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9146 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
9148 /* System header to define __stub macros and hopefully few prototypes,
9149 which can conflict with char gdk_quartz_window_get_nsview (); below.
9150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9151 <limits.h> exists even on freestanding compilers. */
9154 # include <limits.h>
9156 # include <assert.h>
9159 #undef gdk_quartz_window_get_nsview
9161 /* Override any GCC internal prototype to avoid an error.
9162 Use char because int might match the return type of a GCC
9163 builtin and then its argument prototype would still apply. */
9167 char gdk_quartz_window_get_nsview ();
9168 /* The GNU C library defines this for functions which it implements
9169 to always fail with ENOSYS. Some functions are actually named
9170 something starting with __ and the normal name is an alias. */
9171 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
9178 return gdk_quartz_window_get_nsview ();
9183 rm -f conftest.$ac_objext conftest$ac_exeext
9184 if { (ac_try="$ac_link"
9186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187 *) ac_try_echo=$ac_try;;
9189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9190 $as_echo "$ac_try_echo") >&5
9191 (eval "$ac_link") 2>conftest.er1
9193 grep -v '^ *+' conftest.er1 >conftest.err
9195 cat conftest.err >&5
9196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && {
9198 test -z "$ac_c_werror_flag" ||
9199 test ! -s conftest.err
9200 } && test -s conftest$ac_exeext && {
9201 test "$cross_compiling" = yes ||
9202 $as_test_x conftest$ac_exeext
9204 ac_cv_func_gdk_quartz_window_get_nsview=yes
9206 $as_echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9209 ac_cv_func_gdk_quartz_window_get_nsview=no
9212 rm -rf conftest.dSYM
9213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9214 conftest$ac_exeext conftest.$ac_ext
9216 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
9217 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
9218 if test "x$ac_cv_func_gdk_quartz_window_get_nsview" = x""yes; then
9222 cat >>confdefs.h <<\_ACEOF
9223 #define HAVE_GTK_OSX 1
9232 if test "$HAVE_GTK" = 'yes'; then
9241 if test "x$with_osmesa" != xno; then
9245 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
9246 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
9247 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
9248 $as_echo_n "(cached) " >&6
9250 ac_check_lib_save_LIBS=$LIBS
9251 LIBS="-lOSMesa $LIBS"
9252 cat >conftest.$ac_ext <<_ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9259 /* Override any GCC internal prototype to avoid an error.
9260 Use char because int might match the return type of a GCC
9261 builtin and then its argument prototype would still apply. */
9265 char OSMesaCreateContext ();
9269 return OSMesaCreateContext ();
9274 rm -f conftest.$ac_objext conftest$ac_exeext
9275 if { (ac_try="$ac_link"
9277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278 *) ac_try_echo=$ac_try;;
9280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9281 $as_echo "$ac_try_echo") >&5
9282 (eval "$ac_link") 2>conftest.er1
9284 grep -v '^ *+' conftest.er1 >conftest.err
9286 cat conftest.err >&5
9287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } && {
9289 test -z "$ac_c_werror_flag" ||
9290 test ! -s conftest.err
9291 } && test -s conftest$ac_exeext && {
9292 test "$cross_compiling" = yes ||
9293 $as_test_x conftest$ac_exeext
9295 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
9297 $as_echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 ac_cv_lib_OSMesa_OSMesaCreateContext=no
9303 rm -rf conftest.dSYM
9304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9305 conftest$ac_exeext conftest.$ac_ext
9306 LIBS=$ac_check_lib_save_LIBS
9308 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
9309 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
9310 if test "x$ac_cv_lib_OSMesa_OSMesaCreateContext" = x""yes; then
9311 cat >>confdefs.h <<_ACEOF
9312 #define HAVE_LIBOSMESA 1
9315 LIBS="-lOSMesa $LIBS"
9318 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9320 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
9321 See \`config.log' for more details." >&5
9322 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
9323 See \`config.log' for more details." >&2;}
9324 { (exit 1); exit 1; }; }; }
9327 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9328 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9329 $as_echo_n "checking for GL/osmesa.h... " >&6; }
9330 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9331 $as_echo_n "(cached) " >&6
9333 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9334 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
9336 # Is the header compilable?
9337 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
9338 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
9339 cat >conftest.$ac_ext <<_ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 $ac_includes_default
9346 #include <GL/osmesa.h>
9348 rm -f conftest.$ac_objext
9349 if { (ac_try="$ac_compile"
9351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352 *) ac_try_echo=$ac_try;;
9354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9355 $as_echo "$ac_try_echo") >&5
9356 (eval "$ac_compile") 2>conftest.er1
9358 grep -v '^ *+' conftest.er1 >conftest.err
9360 cat conftest.err >&5
9361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && {
9363 test -z "$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9365 } && test -s conftest.$ac_objext; then
9366 ac_header_compiler=yes
9368 $as_echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ac_header_compiler=no
9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9375 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9376 $as_echo "$ac_header_compiler" >&6; }
9378 # Is the header present?
9379 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
9380 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
9381 cat >conftest.$ac_ext <<_ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 #include <GL/osmesa.h>
9389 if { (ac_try="$ac_cpp conftest.$ac_ext"
9391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392 *) ac_try_echo=$ac_try;;
9394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9395 $as_echo "$ac_try_echo") >&5
9396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9398 grep -v '^ *+' conftest.er1 >conftest.err
9400 cat conftest.err >&5
9401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } >/dev/null && {
9403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9404 test ! -s conftest.err
9406 ac_header_preproc=yes
9408 $as_echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9411 ac_header_preproc=no
9414 rm -f conftest.err conftest.$ac_ext
9415 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9416 $as_echo "$ac_header_preproc" >&6; }
9418 # So? What about this header?
9419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9421 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
9422 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9423 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
9424 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
9425 ac_header_preproc=yes
9428 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
9429 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
9430 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
9431 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
9432 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
9433 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
9434 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
9435 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
9436 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
9437 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
9438 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
9439 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
9443 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9444 $as_echo_n "checking for GL/osmesa.h... " >&6; }
9445 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9446 $as_echo_n "(cached) " >&6
9448 ac_cv_header_GL_osmesa_h=$ac_header_preproc
9450 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9451 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
9454 if test "x$ac_cv_header_GL_osmesa_h" = x""yes; then
9457 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9459 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
9460 See \`config.log' for more details." >&5
9461 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
9462 See \`config.log' for more details." >&2;}
9463 { (exit 1); exit 1; }; }; }
9468 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
9470 cat >>confdefs.h <<\_ACEOF
9471 #define HAVE_OSMESA 1
9477 if test "x$APPLE_BUILD" != 'xyes'; then
9479 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
9480 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
9481 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
9482 $as_echo_n "(cached) " >&6
9484 ac_check_lib_save_LIBS=$LIBS
9486 cat >conftest.$ac_ext <<_ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9493 /* Override any GCC internal prototype to avoid an error.
9494 Use char because int might match the return type of a GCC
9495 builtin and then its argument prototype would still apply. */
9503 return glVertex3f ();
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9515 $as_echo "$ac_try_echo") >&5
9516 (eval "$ac_link") 2>conftest.er1
9518 grep -v '^ *+' conftest.er1 >conftest.err
9520 cat conftest.err >&5
9521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } && {
9523 test -z "$ac_c_werror_flag" ||
9524 test ! -s conftest.err
9525 } && test -s conftest$ac_exeext && {
9526 test "$cross_compiling" = yes ||
9527 $as_test_x conftest$ac_exeext
9529 ac_cv_lib_GL_glVertex3f=yes
9531 $as_echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_cv_lib_GL_glVertex3f=no
9537 rm -rf conftest.dSYM
9538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9539 conftest$ac_exeext conftest.$ac_ext
9540 LIBS=$ac_check_lib_save_LIBS
9542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
9543 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
9544 if test "x$ac_cv_lib_GL_glVertex3f" = x""yes; then
9545 cat >>confdefs.h <<_ACEOF
9546 #define HAVE_LIBGL 1
9553 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9555 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9556 See \`config.log' for more details." >&5
9557 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9558 See \`config.log' for more details." >&2;}
9559 { (exit 1); exit 1; }; }; }
9562 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9563 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9564 $as_echo_n "checking for GL/gl.h... " >&6; }
9565 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9566 $as_echo_n "(cached) " >&6
9568 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9569 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9571 # Is the header compilable?
9572 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
9573 $as_echo_n "checking GL/gl.h usability... " >&6; }
9574 cat >conftest.$ac_ext <<_ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580 $ac_includes_default
9583 rm -f conftest.$ac_objext
9584 if { (ac_try="$ac_compile"
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9590 $as_echo "$ac_try_echo") >&5
9591 (eval "$ac_compile") 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } && {
9598 test -z "$ac_c_werror_flag" ||
9599 test ! -s conftest.err
9600 } && test -s conftest.$ac_objext; then
9601 ac_header_compiler=yes
9603 $as_echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 ac_header_compiler=no
9609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9611 $as_echo "$ac_header_compiler" >&6; }
9613 # Is the header present?
9614 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
9615 $as_echo_n "checking GL/gl.h presence... " >&6; }
9616 cat >conftest.$ac_ext <<_ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9624 if { (ac_try="$ac_cpp conftest.$ac_ext"
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9630 $as_echo "$ac_try_echo") >&5
9631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9633 grep -v '^ *+' conftest.er1 >conftest.err
9635 cat conftest.err >&5
9636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } >/dev/null && {
9638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9641 ac_header_preproc=yes
9643 $as_echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_header_preproc=no
9649 rm -f conftest.err conftest.$ac_ext
9650 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9651 $as_echo "$ac_header_preproc" >&6; }
9653 # So? What about this header?
9654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9656 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9657 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9658 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
9659 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
9660 ac_header_preproc=yes
9663 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
9664 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
9665 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
9666 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
9667 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
9668 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
9669 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
9670 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9671 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
9672 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
9673 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
9674 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
9678 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9679 $as_echo_n "checking for GL/gl.h... " >&6; }
9680 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9681 $as_echo_n "(cached) " >&6
9683 ac_cv_header_GL_gl_h=$ac_header_preproc
9685 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9686 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9689 if test "x$ac_cv_header_GL_gl_h" = x""yes; then
9693 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9695 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9696 See \`config.log' for more details." >&5
9697 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9698 See \`config.log' for more details." >&2;}
9699 { (exit 1); exit 1; }; }; }
9704 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
9705 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
9706 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
9707 $as_echo_n "(cached) " >&6
9709 cat >conftest.$ac_ext <<_ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
9716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9717 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
9719 /* System header to define __stub macros and hopefully few prototypes,
9720 which can conflict with char NSOpenGLGetVersion (); below.
9721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9722 <limits.h> exists even on freestanding compilers. */
9725 # include <limits.h>
9727 # include <assert.h>
9730 #undef NSOpenGLGetVersion
9732 /* Override any GCC internal prototype to avoid an error.
9733 Use char because int might match the return type of a GCC
9734 builtin and then its argument prototype would still apply. */
9738 char NSOpenGLGetVersion ();
9739 /* The GNU C library defines this for functions which it implements
9740 to always fail with ENOSYS. Some functions are actually named
9741 something starting with __ and the normal name is an alias. */
9742 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
9749 return NSOpenGLGetVersion ();
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (ac_try="$ac_link"
9757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758 *) ac_try_echo=$ac_try;;
9760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9761 $as_echo "$ac_try_echo") >&5
9762 (eval "$ac_link") 2>conftest.er1
9764 grep -v '^ *+' conftest.er1 >conftest.err
9766 cat conftest.err >&5
9767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } && {
9769 test -z "$ac_c_werror_flag" ||
9770 test ! -s conftest.err
9771 } && test -s conftest$ac_exeext && {
9772 test "$cross_compiling" = yes ||
9773 $as_test_x conftest$ac_exeext
9775 ac_cv_func_NSOpenGLGetVersion=yes
9777 $as_echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_cv_func_NSOpenGLGetVersion=no
9783 rm -rf conftest.dSYM
9784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9785 conftest$ac_exeext conftest.$ac_ext
9787 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
9788 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
9789 if test "x$ac_cv_func_NSOpenGLGetVersion" = x""yes; then
9792 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
9794 cat >>confdefs.h <<\_ACEOF
9802 if test "x$HAVE_GTK_X11" = "xyes"; then
9803 if test "x$APPLE_BUILD" = "xyes"; then
9804 LIBS="$LIBS -L/usr/X11/lib -lGL"
9806 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
9807 $as_echo_n "checking for glXQueryVersion... " >&6; }
9808 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
9809 $as_echo_n "(cached) " >&6
9811 cat >conftest.$ac_ext <<_ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9817 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
9818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9819 #define glXQueryVersion innocuous_glXQueryVersion
9821 /* System header to define __stub macros and hopefully few prototypes,
9822 which can conflict with char glXQueryVersion (); below.
9823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9824 <limits.h> exists even on freestanding compilers. */
9827 # include <limits.h>
9829 # include <assert.h>
9832 #undef glXQueryVersion
9834 /* Override any GCC internal prototype to avoid an error.
9835 Use char because int might match the return type of a GCC
9836 builtin and then its argument prototype would still apply. */
9840 char glXQueryVersion ();
9841 /* The GNU C library defines this for functions which it implements
9842 to always fail with ENOSYS. Some functions are actually named
9843 something starting with __ and the normal name is an alias. */
9844 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
9851 return glXQueryVersion ();
9856 rm -f conftest.$ac_objext conftest$ac_exeext
9857 if { (ac_try="$ac_link"
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9863 $as_echo "$ac_try_echo") >&5
9864 (eval "$ac_link") 2>conftest.er1
9866 grep -v '^ *+' conftest.er1 >conftest.err
9868 cat conftest.err >&5
9869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } && {
9871 test -z "$ac_c_werror_flag" ||
9872 test ! -s conftest.err
9873 } && test -s conftest$ac_exeext && {
9874 test "$cross_compiling" = yes ||
9875 $as_test_x conftest$ac_exeext
9877 ac_cv_func_glXQueryVersion=yes
9879 $as_echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 ac_cv_func_glXQueryVersion=no
9885 rm -rf conftest.dSYM
9886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887 conftest$ac_exeext conftest.$ac_ext
9889 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
9890 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
9891 if test "x$ac_cv_func_glXQueryVersion" = x""yes; then
9894 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
9896 cat >>confdefs.h <<\_ACEOF
9912 if test "x$HAVE_OSMESA" = "xyes"; then
9914 VIDEO_OSMESA_FALSE='#'
9916 VIDEO_OSMESA_TRUE='#'
9922 if test "x$HAVE_GLX" = "xyes"; then
9932 if test "x$HAVE_NSGL" = "xyes"; then
9934 VIDEO_NSGL_FALSE='#'
9941 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
9942 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
9943 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
9944 $as_echo_n "(cached) " >&6
9946 cat >conftest.$ac_ext <<_ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
9953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9954 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
9956 /* System header to define __stub macros and hopefully few prototypes,
9957 which can conflict with char glGenFramebuffersEXT (); below.
9958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9959 <limits.h> exists even on freestanding compilers. */
9962 # include <limits.h>
9964 # include <assert.h>
9967 #undef glGenFramebuffersEXT
9969 /* Override any GCC internal prototype to avoid an error.
9970 Use char because int might match the return type of a GCC
9971 builtin and then its argument prototype would still apply. */
9975 char glGenFramebuffersEXT ();
9976 /* The GNU C library defines this for functions which it implements
9977 to always fail with ENOSYS. Some functions are actually named
9978 something starting with __ and the normal name is an alias. */
9979 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
9986 return glGenFramebuffersEXT ();
9991 rm -f conftest.$ac_objext conftest$ac_exeext
9992 if { (ac_try="$ac_link"
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9998 $as_echo "$ac_try_echo") >&5
9999 (eval "$ac_link") 2>conftest.er1
10001 grep -v '^ *+' conftest.er1 >conftest.err
10003 cat conftest.err >&5
10004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } && {
10006 test -z "$ac_c_werror_flag" ||
10007 test ! -s conftest.err
10008 } && test -s conftest$ac_exeext && {
10009 test "$cross_compiling" = yes ||
10010 $as_test_x conftest$ac_exeext
10012 ac_cv_func_glGenFramebuffersEXT=yes
10014 $as_echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10017 ac_cv_func_glGenFramebuffersEXT=no
10020 rm -rf conftest.dSYM
10021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10022 conftest$ac_exeext conftest.$ac_ext
10024 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
10025 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
10026 if test "x$ac_cv_func_glGenFramebuffersEXT" = x""yes; then
10028 cat >>confdefs.h <<\_ACEOF
10029 #define HAVE_OPENGL_FBO 1
10034 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
10035 $as_echo_n "checking for glCreateShader... " >&6; }
10036 if test "${ac_cv_func_glCreateShader+set}" = set; then
10037 $as_echo_n "(cached) " >&6
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
10046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10047 #define glCreateShader innocuous_glCreateShader
10049 /* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char glCreateShader (); below.
10051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052 <limits.h> exists even on freestanding compilers. */
10055 # include <limits.h>
10057 # include <assert.h>
10060 #undef glCreateShader
10062 /* Override any GCC internal prototype to avoid an error.
10063 Use char because int might match the return type of a GCC
10064 builtin and then its argument prototype would still apply. */
10068 char glCreateShader ();
10069 /* The GNU C library defines this for functions which it implements
10070 to always fail with ENOSYS. Some functions are actually named
10071 something starting with __ and the normal name is an alias. */
10072 #if defined __stub_glCreateShader || defined __stub___glCreateShader
10079 return glCreateShader ();
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (ac_try="$ac_link"
10086 case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10091 $as_echo "$ac_try_echo") >&5
10092 (eval "$ac_link") 2>conftest.er1
10094 grep -v '^ *+' conftest.er1 >conftest.err
10096 cat conftest.err >&5
10097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } && {
10099 test -z "$ac_c_werror_flag" ||
10100 test ! -s conftest.err
10101 } && test -s conftest$ac_exeext && {
10102 test "$cross_compiling" = yes ||
10103 $as_test_x conftest$ac_exeext
10105 ac_cv_func_glCreateShader=yes
10107 $as_echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10110 ac_cv_func_glCreateShader=no
10113 rm -rf conftest.dSYM
10114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10115 conftest$ac_exeext conftest.$ac_ext
10117 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
10118 $as_echo "$ac_cv_func_glCreateShader" >&6; }
10119 if test "x$ac_cv_func_glCreateShader" = x""yes; then
10121 cat >>confdefs.h <<\_ACEOF
10122 #define HAVE_OPENGL_SHADER 1
10127 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
10128 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
10129 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
10130 $as_echo_n "(cached) " >&6
10132 cat >conftest.$ac_ext <<_ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
10139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10140 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
10142 /* System header to define __stub macros and hopefully few prototypes,
10143 which can conflict with char glCreateShaderObjectARB (); below.
10144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10145 <limits.h> exists even on freestanding compilers. */
10148 # include <limits.h>
10150 # include <assert.h>
10153 #undef glCreateShaderObjectARB
10155 /* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
10161 char glCreateShaderObjectARB ();
10162 /* The GNU C library defines this for functions which it implements
10163 to always fail with ENOSYS. Some functions are actually named
10164 something starting with __ and the normal name is an alias. */
10165 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
10172 return glCreateShaderObjectARB ();
10177 rm -f conftest.$ac_objext conftest$ac_exeext
10178 if { (ac_try="$ac_link"
10179 case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10184 $as_echo "$ac_try_echo") >&5
10185 (eval "$ac_link") 2>conftest.er1
10187 grep -v '^ *+' conftest.er1 >conftest.err
10189 cat conftest.err >&5
10190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } && {
10192 test -z "$ac_c_werror_flag" ||
10193 test ! -s conftest.err
10194 } && test -s conftest$ac_exeext && {
10195 test "$cross_compiling" = yes ||
10196 $as_test_x conftest$ac_exeext
10198 ac_cv_func_glCreateShaderObjectARB=yes
10200 $as_echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10203 ac_cv_func_glCreateShaderObjectARB=no
10206 rm -rf conftest.dSYM
10207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10208 conftest$ac_exeext conftest.$ac_ext
10210 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
10211 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
10212 if test "x$ac_cv_func_glCreateShaderObjectARB" = x""yes; then
10214 cat >>confdefs.h <<\_ACEOF
10215 #define HAVE_OPENGL_SHADER_ARB 1
10220 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
10221 $as_echo_n "checking for glClampColorARB... " >&6; }
10222 if test "${ac_cv_func_glClampColorARB+set}" = set; then
10223 $as_echo_n "(cached) " >&6
10225 cat >conftest.$ac_ext <<_ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10231 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
10232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10233 #define glClampColorARB innocuous_glClampColorARB
10235 /* System header to define __stub macros and hopefully few prototypes,
10236 which can conflict with char glClampColorARB (); below.
10237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10238 <limits.h> exists even on freestanding compilers. */
10241 # include <limits.h>
10243 # include <assert.h>
10246 #undef glClampColorARB
10248 /* Override any GCC internal prototype to avoid an error.
10249 Use char because int might match the return type of a GCC
10250 builtin and then its argument prototype would still apply. */
10254 char glClampColorARB ();
10255 /* The GNU C library defines this for functions which it implements
10256 to always fail with ENOSYS. Some functions are actually named
10257 something starting with __ and the normal name is an alias. */
10258 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
10265 return glClampColorARB ();
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (ac_try="$ac_link"
10272 case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10277 $as_echo "$ac_try_echo") >&5
10278 (eval "$ac_link") 2>conftest.er1
10280 grep -v '^ *+' conftest.er1 >conftest.err
10282 cat conftest.err >&5
10283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } && {
10285 test -z "$ac_c_werror_flag" ||
10286 test ! -s conftest.err
10287 } && test -s conftest$ac_exeext && {
10288 test "$cross_compiling" = yes ||
10289 $as_test_x conftest$ac_exeext
10291 ac_cv_func_glClampColorARB=yes
10293 $as_echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10296 ac_cv_func_glClampColorARB=no
10299 rm -rf conftest.dSYM
10300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10301 conftest$ac_exeext conftest.$ac_ext
10303 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
10304 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
10305 if test "x$ac_cv_func_glClampColorARB" = x""yes; then
10307 cat >>confdefs.h <<\_ACEOF
10308 #define HAVE_OPENGL_CLAMP_COLOR 1
10316 if test "x$enable_translator" != "xno"; then
10318 i386|i486|i586|i686|x86_64)
10319 SH4_TRANSLATOR="x86"
10321 cat >>confdefs.h <<_ACEOF
10322 #define SH4_TRANSLATOR TARGET_X86
10329 if test "$SH4_TRANSLATOR" = "x86"; then
10331 BUILD_SH4X86_FALSE='#'
10333 BUILD_SH4X86_TRUE='#'
10334 BUILD_SH4X86_FALSE=
10338 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10339 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10340 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
10341 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10342 $as_echo_n "(cached) " >&6
10344 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10345 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10347 # Is the header compilable?
10348 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
10349 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
10350 cat >conftest.$ac_ext <<_ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h. */
10356 $ac_includes_default
10357 #include <CoreAudio/CoreAudio.h>
10359 rm -f conftest.$ac_objext
10360 if { (ac_try="$ac_compile"
10361 case "(($ac_try" in
10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363 *) ac_try_echo=$ac_try;;
10365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10366 $as_echo "$ac_try_echo") >&5
10367 (eval "$ac_compile") 2>conftest.er1
10369 grep -v '^ *+' conftest.er1 >conftest.err
10371 cat conftest.err >&5
10372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } && {
10374 test -z "$ac_c_werror_flag" ||
10375 test ! -s conftest.err
10376 } && test -s conftest.$ac_objext; then
10377 ac_header_compiler=yes
10379 $as_echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10382 ac_header_compiler=no
10385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10386 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10387 $as_echo "$ac_header_compiler" >&6; }
10389 # Is the header present?
10390 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
10391 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
10392 cat >conftest.$ac_ext <<_ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 #include <CoreAudio/CoreAudio.h>
10400 if { (ac_try="$ac_cpp conftest.$ac_ext"
10401 case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10406 $as_echo "$ac_try_echo") >&5
10407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10409 grep -v '^ *+' conftest.er1 >conftest.err
10411 cat conftest.err >&5
10412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } >/dev/null && {
10414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10415 test ! -s conftest.err
10417 ac_header_preproc=yes
10419 $as_echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10422 ac_header_preproc=no
10425 rm -f conftest.err conftest.$ac_ext
10426 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10427 $as_echo "$ac_header_preproc" >&6; }
10429 # So? What about this header?
10430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10432 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10433 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10434 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
10435 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
10436 ac_header_preproc=yes
10439 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
10440 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
10441 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
10442 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
10443 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
10444 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
10445 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
10446 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10447 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
10448 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
10449 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
10450 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
10454 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10455 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
10456 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10457 $as_echo_n "(cached) " >&6
10459 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
10461 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10462 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10465 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = x""yes; then
10467 HAVE_CORE_AUDIO=yes
10468 LIBS="$LIBS -framework CoreAudio"
10469 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
10471 cat >>confdefs.h <<\_ACEOF
10472 #define HAVE_CORE_AUDIO 1
10482 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
10484 AUDIO_OSX_FALSE='#'
10491 if test "x$with_sdl" != "xno"; then
10494 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
10495 $as_echo_n "checking for SDL... " >&6; }
10497 if test -n "$SDL_CFLAGS"; then
10498 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
10499 elif test -n "$PKG_CONFIG"; then
10500 if test -n "$PKG_CONFIG" && \
10501 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10502 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; then
10506 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
10513 if test -n "$SDL_LIBS"; then
10514 pkg_cv_SDL_LIBS="$SDL_LIBS"
10515 elif test -n "$PKG_CONFIG"; then
10516 if test -n "$PKG_CONFIG" && \
10517 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10518 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; then
10522 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
10532 if test $pkg_failed = yes; then
10534 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10535 _pkg_short_errors_supported=yes
10537 _pkg_short_errors_supported=no
10539 if test $_pkg_short_errors_supported = yes; then
10540 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
10542 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
10544 # Put the nasty error message in config.log where it belongs
10545 echo "$SDL_PKG_ERRORS" >&5
10547 { $as_echo "$as_me:$LINENO: result: no" >&5
10548 $as_echo "no" >&6; }
10550 if test "x$with_sdl" = "xyes"; then
10551 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10553 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10554 See \`config.log' for more details." >&5
10555 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10556 See \`config.log' for more details." >&2;}
10557 { (exit 1); exit 1; }; }; }
10560 elif test $pkg_failed = untried; then
10562 if test "x$with_sdl" = "xyes"; then
10563 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10565 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10566 See \`config.log' for more details." >&5
10567 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10568 See \`config.log' for more details." >&2;}
10569 { (exit 1); exit 1; }; }; }
10573 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
10574 SDL_LIBS=$pkg_cv_SDL_LIBS
10575 { $as_echo "$as_me:$LINENO: result: yes" >&5
10576 $as_echo "yes" >&6; }
10579 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
10581 cat >>confdefs.h <<\_ACEOF
10590 if test "$HAVE_SDL" = 'yes' ; then
10592 AUDIO_SDL_FALSE='#'
10599 if test "x$with_pulse" != "xno"; then
10602 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
10603 $as_echo_n "checking for PULSE... " >&6; }
10605 if test -n "$PULSE_CFLAGS"; then
10606 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
10607 elif test -n "$PKG_CONFIG"; then
10608 if test -n "$PKG_CONFIG" && \
10609 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10610 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; then
10614 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
10621 if test -n "$PULSE_LIBS"; then
10622 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
10623 elif test -n "$PKG_CONFIG"; then
10624 if test -n "$PKG_CONFIG" && \
10625 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10626 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; then
10630 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
10640 if test $pkg_failed = yes; then
10642 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10643 _pkg_short_errors_supported=yes
10645 _pkg_short_errors_supported=no
10647 if test $_pkg_short_errors_supported = yes; then
10648 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
10650 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
10652 # Put the nasty error message in config.log where it belongs
10653 echo "$PULSE_PKG_ERRORS" >&5
10655 { $as_echo "$as_me:$LINENO: result: no" >&5
10656 $as_echo "no" >&6; }
10658 if test "x$with_pulse" = "xyes"; then
10659 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10661 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10662 See \`config.log' for more details." >&5
10663 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10664 See \`config.log' for more details." >&2;}
10665 { (exit 1); exit 1; }; }; }
10668 elif test $pkg_failed = untried; then
10670 if test "x$with_pulse" = "xyes"; then
10671 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10673 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10674 See \`config.log' for more details." >&5
10675 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10676 See \`config.log' for more details." >&2;}
10677 { (exit 1); exit 1; }; }; }
10681 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
10682 PULSE_LIBS=$pkg_cv_PULSE_LIBS
10683 { $as_echo "$as_me:$LINENO: result: yes" >&5
10684 $as_echo "yes" >&6; }
10687 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
10689 cat >>confdefs.h <<\_ACEOF
10690 #define HAVE_PULSE 1
10698 if test "$HAVE_PULSE" = 'yes' ; then
10700 AUDIO_PULSE_FALSE='#'
10702 AUDIO_PULSE_TRUE='#'
10707 if test "x$with_esd" != "xno"; then
10710 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
10711 $as_echo_n "checking for ESOUND... " >&6; }
10713 if test -n "$ESOUND_CFLAGS"; then
10714 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
10715 elif test -n "$PKG_CONFIG"; then
10716 if test -n "$PKG_CONFIG" && \
10717 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10718 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; then
10722 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
10729 if test -n "$ESOUND_LIBS"; then
10730 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
10731 elif test -n "$PKG_CONFIG"; then
10732 if test -n "$PKG_CONFIG" && \
10733 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10734 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; then
10738 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
10748 if test $pkg_failed = yes; then
10750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10751 _pkg_short_errors_supported=yes
10753 _pkg_short_errors_supported=no
10755 if test $_pkg_short_errors_supported = yes; then
10756 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
10758 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
10760 # Put the nasty error message in config.log where it belongs
10761 echo "$ESOUND_PKG_ERRORS" >&5
10763 { $as_echo "$as_me:$LINENO: result: no" >&5
10764 $as_echo "no" >&6; }
10766 if test "x$with_esd" = "xyes"; then
10767 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10769 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10770 See \`config.log' for more details." >&5
10771 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10772 See \`config.log' for more details." >&2;}
10773 { (exit 1); exit 1; }; }; }
10776 elif test $pkg_failed = untried; then
10778 if test "x$with_esd" = "xyes"; then
10779 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10781 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10782 See \`config.log' for more details." >&5
10783 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10784 See \`config.log' for more details." >&2;}
10785 { (exit 1); exit 1; }; }; }
10789 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
10790 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
10791 { $as_echo "$as_me:$LINENO: result: yes" >&5
10792 $as_echo "yes" >&6; }
10795 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
10797 cat >>confdefs.h <<\_ACEOF
10798 #define HAVE_ESOUND 1
10806 if test "$HAVE_ESOUND" = 'yes' ; then
10808 AUDIO_ESOUND_FALSE='#'
10810 AUDIO_ESOUND_TRUE='#'
10811 AUDIO_ESOUND_FALSE=
10817 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
10818 $as_echo_n "checking for ALSA... " >&6; }
10820 if test -n "$ALSA_CFLAGS"; then
10821 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
10822 elif test -n "$PKG_CONFIG"; then
10823 if test -n "$PKG_CONFIG" && \
10824 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10825 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; then
10829 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
10836 if test -n "$ALSA_LIBS"; then
10837 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
10838 elif test -n "$PKG_CONFIG"; then
10839 if test -n "$PKG_CONFIG" && \
10840 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10841 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; then
10845 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
10855 if test $pkg_failed = yes; then
10857 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10858 _pkg_short_errors_supported=yes
10860 _pkg_short_errors_supported=no
10862 if test $_pkg_short_errors_supported = yes; then
10863 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
10865 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
10867 # Put the nasty error message in config.log where it belongs
10868 echo "$ALSA_PKG_ERRORS" >&5
10870 { $as_echo "$as_me:$LINENO: result: no" >&5
10871 $as_echo "no" >&6; }
10873 elif test $pkg_failed = untried; then
10876 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
10877 ALSA_LIBS=$pkg_cv_ALSA_LIBS
10878 { $as_echo "$as_me:$LINENO: result: yes" >&5
10879 $as_echo "yes" >&6; }
10882 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
10884 cat >>confdefs.h <<\_ACEOF
10885 #define HAVE_ALSA 1
10891 if test "$HAVE_ALSA" = 'yes' ; then
10893 AUDIO_ALSA_FALSE='#'
10895 AUDIO_ALSA_TRUE='#'
10901 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10902 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10903 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10904 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10905 $as_echo_n "(cached) " >&6
10907 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10908 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10910 # Is the header compilable?
10911 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
10912 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
10913 cat >conftest.$ac_ext <<_ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10919 $ac_includes_default
10920 #include <linux/cdrom.h>
10922 rm -f conftest.$ac_objext
10923 if { (ac_try="$ac_compile"
10924 case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10929 $as_echo "$ac_try_echo") >&5
10930 (eval "$ac_compile") 2>conftest.er1
10932 grep -v '^ *+' conftest.er1 >conftest.err
10934 cat conftest.err >&5
10935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } && {
10937 test -z "$ac_c_werror_flag" ||
10938 test ! -s conftest.err
10939 } && test -s conftest.$ac_objext; then
10940 ac_header_compiler=yes
10942 $as_echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 ac_header_compiler=no
10948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10949 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10950 $as_echo "$ac_header_compiler" >&6; }
10952 # Is the header present?
10953 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
10954 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
10955 cat >conftest.$ac_ext <<_ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961 #include <linux/cdrom.h>
10963 if { (ac_try="$ac_cpp conftest.$ac_ext"
10964 case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10969 $as_echo "$ac_try_echo") >&5
10970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10972 grep -v '^ *+' conftest.er1 >conftest.err
10974 cat conftest.err >&5
10975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } >/dev/null && {
10977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10978 test ! -s conftest.err
10980 ac_header_preproc=yes
10982 $as_echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10985 ac_header_preproc=no
10988 rm -f conftest.err conftest.$ac_ext
10989 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10990 $as_echo "$ac_header_preproc" >&6; }
10992 # So? What about this header?
10993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10995 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
10996 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10997 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
10998 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
10999 ac_header_preproc=yes
11002 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
11003 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
11004 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
11005 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
11006 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
11007 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
11008 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
11009 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
11010 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
11011 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
11012 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
11013 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
11017 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
11018 $as_echo_n "checking for linux/cdrom.h... " >&6; }
11019 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
11020 $as_echo_n "(cached) " >&6
11022 ac_cv_header_linux_cdrom_h=$ac_header_preproc
11024 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
11025 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
11028 if test "x$ac_cv_header_linux_cdrom_h" = x""yes; then
11031 { $as_echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
11032 $as_echo_n "checking C99 compliant kernel headers... " >&6; }
11033 old_CFLAGS="$CFLAGS"
11034 CFLAGS="$CFLAGS $STDCFLAG"
11035 cat >conftest.$ac_ext <<_ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11041 #include <linux/cdrom.h>
11050 rm -f conftest.$ac_objext
11051 if { (ac_try="$ac_compile"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11057 $as_echo "$ac_try_echo") >&5
11058 (eval "$ac_compile") 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest.$ac_objext; then
11068 { $as_echo "$as_me:$LINENO: result: Yes" >&5
11069 $as_echo "Yes" >&6; }
11071 $as_echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.$ac_ext >&5
11075 { $as_echo "$as_me:$LINENO: result: No" >&5
11076 $as_echo "No" >&6; }
11077 STDCFLAG="-std=gnu99"
11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 CFLAGS="$old_CFLAGS"
11088 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11089 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
11090 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
11091 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11092 $as_echo_n "(cached) " >&6
11094 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
11095 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
11097 # Is the header compilable?
11098 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
11099 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
11100 cat >conftest.$ac_ext <<_ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 $ac_includes_default
11107 #include <IOKit/IOKitLib.h>
11109 rm -f conftest.$ac_objext
11110 if { (ac_try="$ac_compile"
11111 case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11116 $as_echo "$ac_try_echo") >&5
11117 (eval "$ac_compile") 2>conftest.er1
11119 grep -v '^ *+' conftest.er1 >conftest.err
11121 cat conftest.err >&5
11122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } && {
11124 test -z "$ac_c_werror_flag" ||
11125 test ! -s conftest.err
11126 } && test -s conftest.$ac_objext; then
11127 ac_header_compiler=yes
11129 $as_echo "$as_me: failed program was:" >&5
11130 sed 's/^/| /' conftest.$ac_ext >&5
11132 ac_header_compiler=no
11135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11136 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11137 $as_echo "$ac_header_compiler" >&6; }
11139 # Is the header present?
11140 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
11141 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
11142 cat >conftest.$ac_ext <<_ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11148 #include <IOKit/IOKitLib.h>
11150 if { (ac_try="$ac_cpp conftest.$ac_ext"
11151 case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11156 $as_echo "$ac_try_echo") >&5
11157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11159 grep -v '^ *+' conftest.er1 >conftest.err
11161 cat conftest.err >&5
11162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } >/dev/null && {
11164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11165 test ! -s conftest.err
11167 ac_header_preproc=yes
11169 $as_echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11172 ac_header_preproc=no
11175 rm -f conftest.err conftest.$ac_ext
11176 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11177 $as_echo "$ac_header_preproc" >&6; }
11179 # So? What about this header?
11180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11182 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11183 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11184 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
11185 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
11186 ac_header_preproc=yes
11189 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
11190 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
11191 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
11192 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
11193 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
11194 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
11195 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
11196 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11197 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
11198 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
11199 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
11200 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
11204 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
11205 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
11206 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11207 $as_echo_n "(cached) " >&6
11209 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
11211 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
11212 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
11215 if test "x$ac_cv_header_IOKit_IOKitLib_h" = x""yes; then
11218 LIBS="$LIBS -framework IOKit"
11226 if test "x$CDROM_DRIVER" = "xlinux"; then
11228 CDROM_LINUX_FALSE='#'
11230 CDROM_LINUX_TRUE='#'
11236 if test "x$CDROM_DRIVER" = "xosx"; then
11238 CDROM_OSX_FALSE='#'
11246 if test "x$CDROM_DRIVER" = "x"; then
11248 CDROM_NONE_FALSE='#'
11250 CDROM_NONE_TRUE='#'
11255 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11256 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11257 $as_echo_n "checking for linux/joystick.h... " >&6; }
11258 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11259 $as_echo_n "(cached) " >&6
11261 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11262 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
11264 # Is the header compilable?
11265 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
11266 $as_echo_n "checking linux/joystick.h usability... " >&6; }
11267 cat >conftest.$ac_ext <<_ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11273 $ac_includes_default
11274 #include <linux/joystick.h>
11276 rm -f conftest.$ac_objext
11277 if { (ac_try="$ac_compile"
11278 case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11283 $as_echo "$ac_try_echo") >&5
11284 (eval "$ac_compile") 2>conftest.er1
11286 grep -v '^ *+' conftest.er1 >conftest.err
11288 cat conftest.err >&5
11289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && {
11291 test -z "$ac_c_werror_flag" ||
11292 test ! -s conftest.err
11293 } && test -s conftest.$ac_objext; then
11294 ac_header_compiler=yes
11296 $as_echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 ac_header_compiler=no
11302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11304 $as_echo "$ac_header_compiler" >&6; }
11306 # Is the header present?
11307 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
11308 $as_echo_n "checking linux/joystick.h presence... " >&6; }
11309 cat >conftest.$ac_ext <<_ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 #include <linux/joystick.h>
11317 if { (ac_try="$ac_cpp conftest.$ac_ext"
11318 case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11323 $as_echo "$ac_try_echo") >&5
11324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11326 grep -v '^ *+' conftest.er1 >conftest.err
11328 cat conftest.err >&5
11329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } >/dev/null && {
11331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11332 test ! -s conftest.err
11334 ac_header_preproc=yes
11336 $as_echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 ac_header_preproc=no
11342 rm -f conftest.err conftest.$ac_ext
11343 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11344 $as_echo "$ac_header_preproc" >&6; }
11346 # So? What about this header?
11347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
11350 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11351 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
11352 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
11353 ac_header_preproc=yes
11356 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
11357 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
11358 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
11359 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
11360 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
11361 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
11362 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
11363 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
11364 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
11365 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
11366 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
11367 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
11371 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11372 $as_echo_n "checking for linux/joystick.h... " >&6; }
11373 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11374 $as_echo_n "(cached) " >&6
11376 ac_cv_header_linux_joystick_h=$ac_header_preproc
11378 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11379 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
11382 if test "x$ac_cv_header_linux_joystick_h" = x""yes; then
11384 HAVE_LINUX_JOYSTICK_H=yes
11386 cat >>confdefs.h <<\_ACEOF
11387 #define HAVE_LINUX_JOYSTICK 1
11390 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
11392 echo "Linux Joystick support not found, building without it."
11398 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
11400 JOY_LINUX_FALSE='#'
11407 if test "x$with_lirc" != "xno"; then
11408 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11409 { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
11410 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
11411 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11412 $as_echo_n "(cached) " >&6
11414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
11415 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
11417 # Is the header compilable?
11418 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
11419 $as_echo_n "checking lirc/lirc_client.h usability... " >&6; }
11420 cat >conftest.$ac_ext <<_ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 $ac_includes_default
11427 #include <lirc/lirc_client.h>
11429 rm -f conftest.$ac_objext
11430 if { (ac_try="$ac_compile"
11431 case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11436 $as_echo "$ac_try_echo") >&5
11437 (eval "$ac_compile") 2>conftest.er1
11439 grep -v '^ *+' conftest.er1 >conftest.err
11441 cat conftest.err >&5
11442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest.$ac_objext; then
11447 ac_header_compiler=yes
11449 $as_echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11452 ac_header_compiler=no
11455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11456 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11457 $as_echo "$ac_header_compiler" >&6; }
11459 # Is the header present?
11460 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
11461 $as_echo_n "checking lirc/lirc_client.h presence... " >&6; }
11462 cat >conftest.$ac_ext <<_ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 #include <lirc/lirc_client.h>
11470 if { (ac_try="$ac_cpp conftest.$ac_ext"
11471 case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11476 $as_echo "$ac_try_echo") >&5
11477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11479 grep -v '^ *+' conftest.er1 >conftest.err
11481 cat conftest.err >&5
11482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } >/dev/null && {
11484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11485 test ! -s conftest.err
11487 ac_header_preproc=yes
11489 $as_echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11492 ac_header_preproc=no
11495 rm -f conftest.err conftest.$ac_ext
11496 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11497 $as_echo "$ac_header_preproc" >&6; }
11499 # So? What about this header?
11500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11502 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
11503 $as_echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11504 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
11505 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
11506 ac_header_preproc=yes
11509 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
11510 $as_echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
11511 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
11512 $as_echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
11513 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
11514 $as_echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
11515 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
11516 $as_echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
11517 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
11518 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
11519 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
11520 $as_echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
11524 { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
11525 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
11526 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11527 $as_echo_n "(cached) " >&6
11529 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
11531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
11532 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
11535 if test "x$ac_cv_header_lirc_lirc_client_h" = x""yes; then
11537 HAVE_LIRC_CLIENT_H=yes
11539 cat >>confdefs.h <<\_ACEOF
11540 #define HAVE_LIRC 1
11543 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
11546 echo "LIRC support not found, building without it."
11553 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
11555 INPUT_LIRC_FALSE='#'
11557 INPUT_LIRC_TRUE='#'
11562 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
11563 set dummy sh-elf-gcc; ac_word=$2
11564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11565 $as_echo_n "checking for $ac_word... " >&6; }
11566 if test "${ac_cv_path_SHCC+set}" = set; then
11567 $as_echo_n "(cached) " >&6
11571 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
11574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11581 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
11582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 SHCC=$ac_cv_path_SHCC
11593 if test -n "$SHCC"; then
11594 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
11595 $as_echo "$SHCC" >&6; }
11597 { $as_echo "$as_me:$LINENO: result: no" >&5
11598 $as_echo "no" >&6; }
11602 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
11603 set dummy sh-elf-ld; ac_word=$2
11604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11605 $as_echo_n "checking for $ac_word... " >&6; }
11606 if test "${ac_cv_path_SHLD+set}" = set; then
11607 $as_echo_n "(cached) " >&6
11611 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
11614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH
11618 test -z "$as_dir" && as_dir=.
11619 for ac_exec_ext in '' $ac_executable_extensions; do
11620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11621 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
11622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 SHLD=$ac_cv_path_SHLD
11633 if test -n "$SHLD"; then
11634 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
11635 $as_echo "$SHLD" >&6; }
11637 { $as_echo "$as_me:$LINENO: result: no" >&5
11638 $as_echo "no" >&6; }
11642 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
11643 set dummy sh-elf-objcopy; ac_word=$2
11644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11645 $as_echo_n "checking for $ac_word... " >&6; }
11646 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
11647 $as_echo_n "(cached) " >&6
11651 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
11654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11661 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
11673 if test -n "$SHOBJCOPY"; then
11674 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
11675 $as_echo "$SHOBJCOPY" >&6; }
11677 { $as_echo "$as_me:$LINENO: result: no" >&5
11678 $as_echo "no" >&6; }
11682 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
11683 set dummy arm-elf-gcc; ac_word=$2
11684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11685 $as_echo_n "checking for $ac_word... " >&6; }
11686 if test "${ac_cv_path_ARMCC+set}" = set; then
11687 $as_echo_n "(cached) " >&6
11691 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
11694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695 for as_dir in $PATH
11698 test -z "$as_dir" && as_dir=.
11699 for ac_exec_ext in '' $ac_executable_extensions; do
11700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11701 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
11702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11712 ARMCC=$ac_cv_path_ARMCC
11713 if test -n "$ARMCC"; then
11714 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
11715 $as_echo "$ARMCC" >&6; }
11717 { $as_echo "$as_me:$LINENO: result: no" >&5
11718 $as_echo "no" >&6; }
11722 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
11723 set dummy arm-elf-ld; ac_word=$2
11724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11725 $as_echo_n "checking for $ac_word... " >&6; }
11726 if test "${ac_cv_path_ARMLD+set}" = set; then
11727 $as_echo_n "(cached) " >&6
11731 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
11734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735 for as_dir in $PATH
11738 test -z "$as_dir" && as_dir=.
11739 for ac_exec_ext in '' $ac_executable_extensions; do
11740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11741 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
11742 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11752 ARMLD=$ac_cv_path_ARMLD
11753 if test -n "$ARMLD"; then
11754 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
11755 $as_echo "$ARMLD" >&6; }
11757 { $as_echo "$as_me:$LINENO: result: no" >&5
11758 $as_echo "no" >&6; }
11762 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
11763 set dummy arm-elf-objcopy; ac_word=$2
11764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11765 $as_echo_n "checking for $ac_word... " >&6; }
11766 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
11767 $as_echo_n "(cached) " >&6
11769 case $ARMOBJCOPY in
11771 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11778 test -z "$as_dir" && as_dir=.
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11781 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11792 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
11793 if test -n "$ARMOBJCOPY"; then
11794 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
11795 $as_echo "$ARMOBJCOPY" >&6; }
11797 { $as_echo "$as_me:$LINENO: result: no" >&5
11798 $as_echo "no" >&6; }
11803 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
11805 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
11809 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
11811 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
11817 if test "$BUILD_SH" = "yes"; then
11818 BUILD_SYSTEST_TRUE=
11819 BUILD_SYSTEST_FALSE='#'
11821 BUILD_SYSTEST_TRUE='#'
11822 BUILD_SYSTEST_FALSE=
11827 if test "$BUILD_ARM" = "yes"; then
11828 BUILD_ARMTEST_TRUE=
11829 BUILD_ARMTEST_FALSE='#'
11831 BUILD_ARMTEST_TRUE='#'
11832 BUILD_ARMTEST_FALSE=
11836 CFLAGS="$CFLAGS $STDCFLAG"
11838 GETTEXT_PACKAGE=lxdream
11841 cat >>confdefs.h <<_ACEOF
11842 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11846 ALL_LINGUAS="de es it pt_BR"
11849 for ac_header in locale.h
11851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11853 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11854 $as_echo_n "checking for $ac_header... " >&6; }
11855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11856 $as_echo_n "(cached) " >&6
11858 ac_res=`eval 'as_val=${'$as_ac_Header'}
11859 $as_echo "$as_val"'`
11860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11861 $as_echo "$ac_res" >&6; }
11863 # Is the header compilable?
11864 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11865 $as_echo_n "checking $ac_header usability... " >&6; }
11866 cat >conftest.$ac_ext <<_ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 $ac_includes_default
11873 #include <$ac_header>
11875 rm -f conftest.$ac_objext
11876 if { (ac_try="$ac_compile"
11877 case "(($ac_try" in
11878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879 *) ac_try_echo=$ac_try;;
11881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11882 $as_echo "$ac_try_echo") >&5
11883 (eval "$ac_compile") 2>conftest.er1
11885 grep -v '^ *+' conftest.er1 >conftest.err
11887 cat conftest.err >&5
11888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } && {
11890 test -z "$ac_c_werror_flag" ||
11891 test ! -s conftest.err
11892 } && test -s conftest.$ac_objext; then
11893 ac_header_compiler=yes
11895 $as_echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11898 ac_header_compiler=no
11901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11902 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11903 $as_echo "$ac_header_compiler" >&6; }
11905 # Is the header present?
11906 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11907 $as_echo_n "checking $ac_header presence... " >&6; }
11908 cat >conftest.$ac_ext <<_ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11914 #include <$ac_header>
11916 if { (ac_try="$ac_cpp conftest.$ac_ext"
11917 case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11922 $as_echo "$ac_try_echo") >&5
11923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11925 grep -v '^ *+' conftest.er1 >conftest.err
11927 cat conftest.err >&5
11928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } >/dev/null && {
11930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11931 test ! -s conftest.err
11933 ac_header_preproc=yes
11935 $as_echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 ac_header_preproc=no
11941 rm -f conftest.err conftest.$ac_ext
11942 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11943 $as_echo "$ac_header_preproc" >&6; }
11945 # So? What about this header?
11946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11949 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11952 ac_header_preproc=yes
11955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11956 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11958 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11960 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11962 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11966 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11971 $as_echo_n "checking for $ac_header... " >&6; }
11972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11973 $as_echo_n "(cached) " >&6
11975 eval "$as_ac_Header=\$ac_header_preproc"
11977 ac_res=`eval 'as_val=${'$as_ac_Header'}
11978 $as_echo "$as_val"'`
11979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11980 $as_echo "$ac_res" >&6; }
11983 as_val=`eval 'as_val=${'$as_ac_Header'}
11984 $as_echo "$as_val"'`
11985 if test "x$as_val" = x""yes; then
11986 cat >>confdefs.h <<_ACEOF
11987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11994 if test $ac_cv_header_locale_h = yes; then
11995 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11996 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11997 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11998 $as_echo_n "(cached) " >&6
12000 cat >conftest.$ac_ext <<_ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12006 #include <locale.h>
12015 rm -f conftest.$ac_objext conftest$ac_exeext
12016 if { (ac_try="$ac_link"
12017 case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12022 $as_echo "$ac_try_echo") >&5
12023 (eval "$ac_link") 2>conftest.er1
12025 grep -v '^ *+' conftest.er1 >conftest.err
12027 cat conftest.err >&5
12028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } && {
12030 test -z "$ac_c_werror_flag" ||
12031 test ! -s conftest.err
12032 } && test -s conftest$ac_exeext && {
12033 test "$cross_compiling" = yes ||
12034 $as_test_x conftest$ac_exeext
12036 am_cv_val_LC_MESSAGES=yes
12038 $as_echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 am_cv_val_LC_MESSAGES=no
12044 rm -rf conftest.dSYM
12045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12046 conftest$ac_exeext conftest.$ac_ext
12048 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12049 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12050 if test $am_cv_val_LC_MESSAGES = yes; then
12052 cat >>confdefs.h <<\_ACEOF
12053 #define HAVE_LC_MESSAGES 1
12061 gt_cv_have_gettext=no
12067 if test "${ac_cv_header_libintl_h+set}" = set; then
12068 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
12069 $as_echo_n "checking for libintl.h... " >&6; }
12070 if test "${ac_cv_header_libintl_h+set}" = set; then
12071 $as_echo_n "(cached) " >&6
12073 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12074 $as_echo "$ac_cv_header_libintl_h" >&6; }
12076 # Is the header compilable?
12077 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
12078 $as_echo_n "checking libintl.h usability... " >&6; }
12079 cat >conftest.$ac_ext <<_ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12085 $ac_includes_default
12086 #include <libintl.h>
12088 rm -f conftest.$ac_objext
12089 if { (ac_try="$ac_compile"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12095 $as_echo "$ac_try_echo") >&5
12096 (eval "$ac_compile") 2>conftest.er1
12098 grep -v '^ *+' conftest.er1 >conftest.err
12100 cat conftest.err >&5
12101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } && {
12103 test -z "$ac_c_werror_flag" ||
12104 test ! -s conftest.err
12105 } && test -s conftest.$ac_objext; then
12106 ac_header_compiler=yes
12108 $as_echo "$as_me: failed program was:" >&5
12109 sed 's/^/| /' conftest.$ac_ext >&5
12111 ac_header_compiler=no
12114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12115 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12116 $as_echo "$ac_header_compiler" >&6; }
12118 # Is the header present?
12119 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
12120 $as_echo_n "checking libintl.h presence... " >&6; }
12121 cat >conftest.$ac_ext <<_ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12127 #include <libintl.h>
12129 if { (ac_try="$ac_cpp conftest.$ac_ext"
12130 case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12135 $as_echo "$ac_try_echo") >&5
12136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12138 grep -v '^ *+' conftest.er1 >conftest.err
12140 cat conftest.err >&5
12141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } >/dev/null && {
12143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12144 test ! -s conftest.err
12146 ac_header_preproc=yes
12148 $as_echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12151 ac_header_preproc=no
12154 rm -f conftest.err conftest.$ac_ext
12155 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12156 $as_echo "$ac_header_preproc" >&6; }
12158 # So? What about this header?
12159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12161 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12162 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12163 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
12164 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
12165 ac_header_preproc=yes
12168 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
12169 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
12170 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
12171 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
12172 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
12173 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
12174 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
12175 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12176 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
12177 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
12178 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
12179 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
12183 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
12184 $as_echo_n "checking for libintl.h... " >&6; }
12185 if test "${ac_cv_header_libintl_h+set}" = set; then
12186 $as_echo_n "(cached) " >&6
12188 ac_cv_header_libintl_h=$ac_header_preproc
12190 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12191 $as_echo "$ac_cv_header_libintl_h" >&6; }
12194 if test "x$ac_cv_header_libintl_h" = x""yes; then
12195 gt_cv_func_dgettext_libintl="no"
12196 libintl_extra_libs=""
12199 # First check in libc
12201 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
12202 $as_echo_n "checking for ngettext in libc... " >&6; }
12203 if test "${gt_cv_func_ngettext_libc+set}" = set; then
12204 $as_echo_n "(cached) " >&6
12206 cat >conftest.$ac_ext <<_ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12213 #include <libintl.h>
12218 return !ngettext ("","", 1)
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (ac_try="$ac_link"
12225 case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12230 $as_echo "$ac_try_echo") >&5
12231 (eval "$ac_link") 2>conftest.er1
12233 grep -v '^ *+' conftest.er1 >conftest.err
12235 cat conftest.err >&5
12236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } && {
12238 test -z "$ac_c_werror_flag" ||
12239 test ! -s conftest.err
12240 } && test -s conftest$ac_exeext && {
12241 test "$cross_compiling" = yes ||
12242 $as_test_x conftest$ac_exeext
12244 gt_cv_func_ngettext_libc=yes
12246 $as_echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12249 gt_cv_func_ngettext_libc=no
12252 rm -rf conftest.dSYM
12253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12254 conftest$ac_exeext conftest.$ac_ext
12257 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
12258 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
12260 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12261 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
12262 $as_echo_n "checking for dgettext in libc... " >&6; }
12263 if test "${gt_cv_func_dgettext_libc+set}" = set; then
12264 $as_echo_n "(cached) " >&6
12266 cat >conftest.$ac_ext <<_ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12273 #include <libintl.h>
12278 return !dgettext ("","")
12283 rm -f conftest.$ac_objext conftest$ac_exeext
12284 if { (ac_try="$ac_link"
12285 case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12290 $as_echo "$ac_try_echo") >&5
12291 (eval "$ac_link") 2>conftest.er1
12293 grep -v '^ *+' conftest.er1 >conftest.err
12295 cat conftest.err >&5
12296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } && {
12298 test -z "$ac_c_werror_flag" ||
12299 test ! -s conftest.err
12300 } && test -s conftest$ac_exeext && {
12301 test "$cross_compiling" = yes ||
12302 $as_test_x conftest$ac_exeext
12304 gt_cv_func_dgettext_libc=yes
12306 $as_echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 gt_cv_func_dgettext_libc=no
12312 rm -rf conftest.dSYM
12313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12314 conftest$ac_exeext conftest.$ac_ext
12317 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
12318 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
12321 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12323 for ac_func in bind_textdomain_codeset
12325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12326 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12327 $as_echo_n "checking for $ac_func... " >&6; }
12328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12329 $as_echo_n "(cached) " >&6
12331 cat >conftest.$ac_ext <<_ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12339 #define $ac_func innocuous_$ac_func
12341 /* System header to define __stub macros and hopefully few prototypes,
12342 which can conflict with char $ac_func (); below.
12343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12344 <limits.h> exists even on freestanding compilers. */
12347 # include <limits.h>
12349 # include <assert.h>
12354 /* Override any GCC internal prototype to avoid an error.
12355 Use char because int might match the return type of a GCC
12356 builtin and then its argument prototype would still apply. */
12361 /* The GNU C library defines this for functions which it implements
12362 to always fail with ENOSYS. Some functions are actually named
12363 something starting with __ and the normal name is an alias. */
12364 #if defined __stub_$ac_func || defined __stub___$ac_func
12371 return $ac_func ();
12376 rm -f conftest.$ac_objext conftest$ac_exeext
12377 if { (ac_try="$ac_link"
12378 case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12383 $as_echo "$ac_try_echo") >&5
12384 (eval "$ac_link") 2>conftest.er1
12386 grep -v '^ *+' conftest.er1 >conftest.err
12388 cat conftest.err >&5
12389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } && {
12391 test -z "$ac_c_werror_flag" ||
12392 test ! -s conftest.err
12393 } && test -s conftest$ac_exeext && {
12394 test "$cross_compiling" = yes ||
12395 $as_test_x conftest$ac_exeext
12397 eval "$as_ac_var=yes"
12399 $as_echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12402 eval "$as_ac_var=no"
12405 rm -rf conftest.dSYM
12406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12407 conftest$ac_exeext conftest.$ac_ext
12409 ac_res=`eval 'as_val=${'$as_ac_var'}
12410 $as_echo "$as_val"'`
12411 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12412 $as_echo "$ac_res" >&6; }
12413 as_val=`eval 'as_val=${'$as_ac_var'}
12414 $as_echo "$as_val"'`
12415 if test "x$as_val" = x""yes; then
12416 cat >>confdefs.h <<_ACEOF
12417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12426 # If we don't have everything we want, check in libintl
12428 if test "$gt_cv_func_dgettext_libc" != "yes" \
12429 || test "$gt_cv_func_ngettext_libc" != "yes" \
12430 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
12432 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
12433 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
12434 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
12435 $as_echo_n "(cached) " >&6
12437 ac_check_lib_save_LIBS=$LIBS
12438 LIBS="-lintl $LIBS"
12439 cat >conftest.$ac_ext <<_ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12446 /* Override any GCC internal prototype to avoid an error.
12447 Use char because int might match the return type of a GCC
12448 builtin and then its argument prototype would still apply. */
12452 char bindtextdomain ();
12456 return bindtextdomain ();
12461 rm -f conftest.$ac_objext conftest$ac_exeext
12462 if { (ac_try="$ac_link"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12468 $as_echo "$ac_try_echo") >&5
12469 (eval "$ac_link") 2>conftest.er1
12471 grep -v '^ *+' conftest.er1 >conftest.err
12473 cat conftest.err >&5
12474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest$ac_exeext && {
12479 test "$cross_compiling" = yes ||
12480 $as_test_x conftest$ac_exeext
12482 ac_cv_lib_intl_bindtextdomain=yes
12484 $as_echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 ac_cv_lib_intl_bindtextdomain=no
12490 rm -rf conftest.dSYM
12491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12492 conftest$ac_exeext conftest.$ac_ext
12493 LIBS=$ac_check_lib_save_LIBS
12495 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
12496 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
12497 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
12498 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12499 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12500 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12501 $as_echo_n "(cached) " >&6
12503 ac_check_lib_save_LIBS=$LIBS
12504 LIBS="-lintl $LIBS"
12505 cat >conftest.$ac_ext <<_ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12512 /* Override any GCC internal prototype to avoid an error.
12513 Use char because int might match the return type of a GCC
12514 builtin and then its argument prototype would still apply. */
12522 return ngettext ();
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (ac_try="$ac_link"
12529 case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12534 $as_echo "$ac_try_echo") >&5
12535 (eval "$ac_link") 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } && {
12542 test -z "$ac_c_werror_flag" ||
12543 test ! -s conftest.err
12544 } && test -s conftest$ac_exeext && {
12545 test "$cross_compiling" = yes ||
12546 $as_test_x conftest$ac_exeext
12548 ac_cv_lib_intl_ngettext=yes
12550 $as_echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12553 ac_cv_lib_intl_ngettext=no
12556 rm -rf conftest.dSYM
12557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12558 conftest$ac_exeext conftest.$ac_ext
12559 LIBS=$ac_check_lib_save_LIBS
12561 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12562 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12563 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
12564 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12565 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12566 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12567 $as_echo_n "(cached) " >&6
12569 ac_check_lib_save_LIBS=$LIBS
12570 LIBS="-lintl $LIBS"
12571 cat >conftest.$ac_ext <<_ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12578 /* Override any GCC internal prototype to avoid an error.
12579 Use char because int might match the return type of a GCC
12580 builtin and then its argument prototype would still apply. */
12588 return dgettext ();
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (ac_try="$ac_link"
12595 case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12600 $as_echo "$ac_try_echo") >&5
12601 (eval "$ac_link") 2>conftest.er1
12603 grep -v '^ *+' conftest.er1 >conftest.err
12605 cat conftest.err >&5
12606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } && {
12608 test -z "$ac_c_werror_flag" ||
12609 test ! -s conftest.err
12610 } && test -s conftest$ac_exeext && {
12611 test "$cross_compiling" = yes ||
12612 $as_test_x conftest$ac_exeext
12614 ac_cv_lib_intl_dgettext=yes
12616 $as_echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12619 ac_cv_lib_intl_dgettext=no
12622 rm -rf conftest.dSYM
12623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12624 conftest$ac_exeext conftest.$ac_ext
12625 LIBS=$ac_check_lib_save_LIBS
12627 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12628 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12629 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
12630 gt_cv_func_dgettext_libintl=yes
12638 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
12639 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
12640 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
12641 { $as_echo "$as_me:$LINENO: result: " >&5
12643 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12644 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12645 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12646 $as_echo_n "(cached) " >&6
12648 ac_check_lib_save_LIBS=$LIBS
12649 LIBS="-lintl -liconv $LIBS"
12650 cat >conftest.$ac_ext <<_ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12657 /* Override any GCC internal prototype to avoid an error.
12658 Use char because int might match the return type of a GCC
12659 builtin and then its argument prototype would still apply. */
12667 return ngettext ();
12672 rm -f conftest.$ac_objext conftest$ac_exeext
12673 if { (ac_try="$ac_link"
12674 case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12679 $as_echo "$ac_try_echo") >&5
12680 (eval "$ac_link") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest$ac_exeext && {
12690 test "$cross_compiling" = yes ||
12691 $as_test_x conftest$ac_exeext
12693 ac_cv_lib_intl_ngettext=yes
12695 $as_echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12698 ac_cv_lib_intl_ngettext=no
12701 rm -rf conftest.dSYM
12702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12703 conftest$ac_exeext conftest.$ac_ext
12704 LIBS=$ac_check_lib_save_LIBS
12706 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12707 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12708 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
12709 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
12710 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
12711 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
12712 $as_echo_n "(cached) " >&6
12714 ac_check_lib_save_LIBS=$LIBS
12715 LIBS="-lintl -liconv $LIBS"
12716 cat >conftest.$ac_ext <<_ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12723 /* Override any GCC internal prototype to avoid an error.
12724 Use char because int might match the return type of a GCC
12725 builtin and then its argument prototype would still apply. */
12733 return dcgettext ();
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (ac_try="$ac_link"
12740 case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12745 $as_echo "$ac_try_echo") >&5
12746 (eval "$ac_link") 2>conftest.er1
12748 grep -v '^ *+' conftest.er1 >conftest.err
12750 cat conftest.err >&5
12751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } && {
12753 test -z "$ac_c_werror_flag" ||
12754 test ! -s conftest.err
12755 } && test -s conftest$ac_exeext && {
12756 test "$cross_compiling" = yes ||
12757 $as_test_x conftest$ac_exeext
12759 ac_cv_lib_intl_dcgettext=yes
12761 $as_echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 ac_cv_lib_intl_dcgettext=no
12767 rm -rf conftest.dSYM
12768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12769 conftest$ac_exeext conftest.$ac_ext
12770 LIBS=$ac_check_lib_save_LIBS
12772 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
12773 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
12774 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
12775 gt_cv_func_dgettext_libintl=yes
12776 libintl_extra_libs=-liconv
12788 # If we found libintl, then check in it for bind_textdomain_codeset();
12789 # we'll prefer libc if neither have bind_textdomain_codeset(),
12790 # and both have dgettext and ngettext
12792 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
12793 glib_save_LIBS="$LIBS"
12794 LIBS="$LIBS -lintl $libintl_extra_libs"
12795 unset ac_cv_func_bind_textdomain_codeset
12797 for ac_func in bind_textdomain_codeset
12799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12800 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12801 $as_echo_n "checking for $ac_func... " >&6; }
12802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12803 $as_echo_n "(cached) " >&6
12805 cat >conftest.$ac_ext <<_ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12813 #define $ac_func innocuous_$ac_func
12815 /* System header to define __stub macros and hopefully few prototypes,
12816 which can conflict with char $ac_func (); below.
12817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818 <limits.h> exists even on freestanding compilers. */
12821 # include <limits.h>
12823 # include <assert.h>
12828 /* Override any GCC internal prototype to avoid an error.
12829 Use char because int might match the return type of a GCC
12830 builtin and then its argument prototype would still apply. */
12835 /* The GNU C library defines this for functions which it implements
12836 to always fail with ENOSYS. Some functions are actually named
12837 something starting with __ and the normal name is an alias. */
12838 #if defined __stub_$ac_func || defined __stub___$ac_func
12845 return $ac_func ();
12850 rm -f conftest.$ac_objext conftest$ac_exeext
12851 if { (ac_try="$ac_link"
12852 case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12857 $as_echo "$ac_try_echo") >&5
12858 (eval "$ac_link") 2>conftest.er1
12860 grep -v '^ *+' conftest.er1 >conftest.err
12862 cat conftest.err >&5
12863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } && {
12865 test -z "$ac_c_werror_flag" ||
12866 test ! -s conftest.err
12867 } && test -s conftest$ac_exeext && {
12868 test "$cross_compiling" = yes ||
12869 $as_test_x conftest$ac_exeext
12871 eval "$as_ac_var=yes"
12873 $as_echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 eval "$as_ac_var=no"
12879 rm -rf conftest.dSYM
12880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12881 conftest$ac_exeext conftest.$ac_ext
12883 ac_res=`eval 'as_val=${'$as_ac_var'}
12884 $as_echo "$as_val"'`
12885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12886 $as_echo "$ac_res" >&6; }
12887 as_val=`eval 'as_val=${'$as_ac_var'}
12888 $as_echo "$as_val"'`
12889 if test "x$as_val" = x""yes; then
12890 cat >>confdefs.h <<_ACEOF
12891 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12897 LIBS="$glib_save_LIBS"
12899 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
12900 gt_cv_func_dgettext_libc=no
12902 if test "$gt_cv_func_dgettext_libc" = "yes" \
12903 && test "$gt_cv_func_ngettext_libc" = "yes"; then
12904 gt_cv_func_dgettext_libintl=no
12910 if test "$gt_cv_func_dgettext_libc" = "yes" \
12911 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
12912 gt_cv_have_gettext=yes
12915 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
12916 INTLLIBS="-lintl $libintl_extra_libs"
12919 if test "$gt_cv_have_gettext" = "yes"; then
12921 cat >>confdefs.h <<\_ACEOF
12922 #define HAVE_GETTEXT 1
12925 # Extract the first word of "msgfmt", so it can be a program name with args.
12926 set dummy msgfmt; ac_word=$2
12927 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12928 $as_echo_n "checking for $ac_word... " >&6; }
12929 if test "${ac_cv_path_MSGFMT+set}" = set; then
12930 $as_echo_n "(cached) " >&6
12934 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12938 for ac_dir in $PATH; do
12939 test -z "$ac_dir" && ac_dir=.
12940 if test -f $ac_dir/$ac_word; then
12941 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12942 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12948 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
12952 MSGFMT="$ac_cv_path_MSGFMT"
12953 if test "$MSGFMT" != "no"; then
12954 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
12955 $as_echo "$MSGFMT" >&6; }
12957 { $as_echo "$as_me:$LINENO: result: no" >&5
12958 $as_echo "no" >&6; }
12960 if test "$MSGFMT" != "no"; then
12961 glib_save_LIBS="$LIBS"
12962 LIBS="$LIBS $INTLLIBS"
12964 for ac_func in dcgettext
12966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12967 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12968 $as_echo_n "checking for $ac_func... " >&6; }
12969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12970 $as_echo_n "(cached) " >&6
12972 cat >conftest.$ac_ext <<_ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12980 #define $ac_func innocuous_$ac_func
12982 /* System header to define __stub macros and hopefully few prototypes,
12983 which can conflict with char $ac_func (); below.
12984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12985 <limits.h> exists even on freestanding compilers. */
12988 # include <limits.h>
12990 # include <assert.h>
12995 /* Override any GCC internal prototype to avoid an error.
12996 Use char because int might match the return type of a GCC
12997 builtin and then its argument prototype would still apply. */
13002 /* The GNU C library defines this for functions which it implements
13003 to always fail with ENOSYS. Some functions are actually named
13004 something starting with __ and the normal name is an alias. */
13005 #if defined __stub_$ac_func || defined __stub___$ac_func
13012 return $ac_func ();
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (ac_try="$ac_link"
13019 case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13024 $as_echo "$ac_try_echo") >&5
13025 (eval "$ac_link") 2>conftest.er1
13027 grep -v '^ *+' conftest.er1 >conftest.err
13029 cat conftest.err >&5
13030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && {
13032 test -z "$ac_c_werror_flag" ||
13033 test ! -s conftest.err
13034 } && test -s conftest$ac_exeext && {
13035 test "$cross_compiling" = yes ||
13036 $as_test_x conftest$ac_exeext
13038 eval "$as_ac_var=yes"
13040 $as_echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13043 eval "$as_ac_var=no"
13046 rm -rf conftest.dSYM
13047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13048 conftest$ac_exeext conftest.$ac_ext
13050 ac_res=`eval 'as_val=${'$as_ac_var'}
13051 $as_echo "$as_val"'`
13052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13053 $as_echo "$ac_res" >&6; }
13054 as_val=`eval 'as_val=${'$as_ac_var'}
13055 $as_echo "$as_val"'`
13056 if test "x$as_val" = x""yes; then
13057 cat >>confdefs.h <<_ACEOF
13058 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13065 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
13066 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
13067 cat >conftest.foo <<_ACEOF
13071 "Content-Type: text/plain; charset=UTF-8\n"
13072 "Project-Id-Version: test 1.0\n"
13073 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
13074 "Last-Translator: test <foo@bar.xx>\n"
13075 "Language-Team: C <LL@li.org>\n"
13076 "MIME-Version: 1.0\n"
13077 "Content-Transfer-Encoding: 8bit\n"
13080 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
13081 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
13083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; then
13085 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
13086 $as_echo "yes" >&6; }
13087 else { $as_echo "$as_me:$LINENO: result: no" >&5
13088 $as_echo "no" >&6; }
13089 echo "$as_me: failed input was:" >&5
13090 sed 's/^/| /' conftest.foo >&5
13093 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13094 set dummy gmsgfmt; ac_word=$2
13095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13096 $as_echo_n "checking for $ac_word... " >&6; }
13097 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13098 $as_echo_n "(cached) " >&6
13102 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13109 test -z "$as_dir" && as_dir=.
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13112 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13120 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13124 GMSGFMT=$ac_cv_path_GMSGFMT
13125 if test -n "$GMSGFMT"; then
13126 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13127 $as_echo "$GMSGFMT" >&6; }
13129 { $as_echo "$as_me:$LINENO: result: no" >&5
13130 $as_echo "no" >&6; }
13134 # Extract the first word of "xgettext", so it can be a program name with args.
13135 set dummy xgettext; ac_word=$2
13136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13137 $as_echo_n "checking for $ac_word... " >&6; }
13138 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13139 $as_echo_n "(cached) " >&6
13141 case "$XGETTEXT" in
13143 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13147 for ac_dir in $PATH; do
13148 test -z "$ac_dir" && ac_dir=.
13149 if test -f $ac_dir/$ac_word; then
13150 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13151 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13157 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13161 XGETTEXT="$ac_cv_path_XGETTEXT"
13162 if test "$XGETTEXT" != ":"; then
13163 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13164 $as_echo "$XGETTEXT" >&6; }
13166 { $as_echo "$as_me:$LINENO: result: no" >&5
13167 $as_echo "no" >&6; }
13170 cat >conftest.$ac_ext <<_ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13180 extern int _nl_msg_cat_cntr;
13181 return _nl_msg_cat_cntr
13186 rm -f conftest.$ac_objext conftest$ac_exeext
13187 if { (ac_try="$ac_link"
13188 case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13193 $as_echo "$ac_try_echo") >&5
13194 (eval "$ac_link") 2>conftest.er1
13196 grep -v '^ *+' conftest.er1 >conftest.err
13198 cat conftest.err >&5
13199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } && {
13201 test -z "$ac_c_werror_flag" ||
13202 test ! -s conftest.err
13203 } && test -s conftest$ac_exeext && {
13204 test "$cross_compiling" = yes ||
13205 $as_test_x conftest$ac_exeext
13210 $as_echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13215 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
13216 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
13217 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
13218 $as_echo_n "(cached) " >&6
13220 cat >conftest.$ac_ext <<_ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
13227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13228 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
13230 /* System header to define __stub macros and hopefully few prototypes,
13231 which can conflict with char bind_textdomain_codeset (); below.
13232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13233 <limits.h> exists even on freestanding compilers. */
13236 # include <limits.h>
13238 # include <assert.h>
13241 #undef bind_textdomain_codeset
13243 /* Override any GCC internal prototype to avoid an error.
13244 Use char because int might match the return type of a GCC
13245 builtin and then its argument prototype would still apply. */
13249 char bind_textdomain_codeset ();
13250 /* The GNU C library defines this for functions which it implements
13251 to always fail with ENOSYS. Some functions are actually named
13252 something starting with __ and the normal name is an alias. */
13253 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
13260 return bind_textdomain_codeset ();
13265 rm -f conftest.$ac_objext conftest$ac_exeext
13266 if { (ac_try="$ac_link"
13267 case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13272 $as_echo "$ac_try_echo") >&5
13273 (eval "$ac_link") 2>conftest.er1
13275 grep -v '^ *+' conftest.er1 >conftest.err
13277 cat conftest.err >&5
13278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } && {
13280 test -z "$ac_c_werror_flag" ||
13281 test ! -s conftest.err
13282 } && test -s conftest$ac_exeext && {
13283 test "$cross_compiling" = yes ||
13284 $as_test_x conftest$ac_exeext
13286 ac_cv_func_bind_textdomain_codeset=yes
13288 $as_echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13291 ac_cv_func_bind_textdomain_codeset=no
13294 rm -rf conftest.dSYM
13295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13296 conftest$ac_exeext conftest.$ac_ext
13298 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
13299 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
13300 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
13316 rm -rf conftest.dSYM
13317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13318 conftest$ac_exeext conftest.$ac_ext
13319 LIBS="$glib_save_LIBS"
13322 gt_cv_have_gettext=no
13330 if test "$gt_cv_have_gettext" = "yes" ; then
13332 cat >>confdefs.h <<\_ACEOF
13333 #define ENABLE_NLS 1
13338 if test "$XGETTEXT" != ":"; then
13339 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
13342 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13343 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13348 # We need to process the po/ directory.
13351 ac_config_commands="$ac_config_commands default-1"
13354 for lang in $ALL_LINGUAS; do
13355 GMOFILES="$GMOFILES $lang.gmo"
13356 POFILES="$POFILES $lang.po"
13371 if test "$gt_cv_have_gettext" = "yes"; then
13372 if test "x$ALL_LINGUAS" = "x"; then
13375 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13376 $as_echo_n "checking for catalogs to be installed... " >&6; }
13378 for presentlang in $ALL_LINGUAS; do
13380 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
13381 desiredlanguages="$LINGUAS"
13383 desiredlanguages="$ALL_LINGUAS"
13385 for desiredlang in $desiredlanguages; do
13386 # Use the presentlang catalog if desiredlang is
13387 # a. equal to presentlang, or
13388 # b. a variant of presentlang (because in this case,
13389 # presentlang can be used as a fallback for messages
13390 # which are not translated in the desiredlang catalog).
13391 case "$desiredlang" in
13392 "$presentlang"*) useit=yes;;
13395 if test $useit = yes; then
13396 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13399 LINGUAS=$NEW_LINGUAS
13400 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
13401 $as_echo "$LINGUAS" >&6; }
13404 if test -n "$LINGUAS"; then
13405 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13410 if test -n "$ac_aux_dir"; then
13411 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13413 if test -z "$MKINSTALLDIRS"; then
13414 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13418 test -d po || mkdir po
13419 if test "x$srcdir" != "x."; then
13420 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
13421 posrcprefix="$srcdir/"
13423 posrcprefix="../$srcdir/"
13429 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
13430 < $srcdir/po/POTFILES.in > po/POTFILES
13433 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
13435 cat >confcache <<\_ACEOF
13436 # This file is a shell script that caches the results of configure
13437 # tests run on this system so they can be shared between configure
13438 # scripts and configure runs, see configure's option --config-cache.
13439 # It is not useful on other systems. If it contains results you don't
13440 # want to keep, you may remove or edit it.
13442 # config.status only pays attention to the cache file if you give it
13443 # the --recheck option to rerun configure.
13445 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13446 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13447 # following values.
13451 # The following way of writing the cache mishandles newlines in values,
13452 # but we know of no workaround that is simple, portable, and efficient.
13453 # So, we kill variables containing newlines.
13454 # Ultrix sh set writes to stderr and can't be redirected directly,
13455 # and sets the high bit in the cache file unless we assign to the vars.
13457 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13458 eval ac_val=\$$ac_var
13462 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13463 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13466 _ | IFS | as_nl) ;; #(
13467 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13468 *) $as_unset $ac_var ;;
13474 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13475 *${as_nl}ac_space=\ *)
13476 # `set' does not quote correctly, so add quotes (double-quote
13477 # substitution turns \\\\ into \\, and sed turns \\ into \).
13480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13483 # `set' quotes correctly as required by POSIX, so do not add quotes.
13484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13493 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13495 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13497 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13498 if test -w "$cache_file"; then
13499 test "x$cache_file" != "x/dev/null" &&
13500 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13501 $as_echo "$as_me: updating cache $cache_file" >&6;}
13502 cat confcache >$cache_file
13504 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13505 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13510 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13511 # Let make expand exec_prefix.
13512 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13514 DEFS=-DHAVE_CONFIG_H
13518 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13519 # 1. Remove the extension, and $U if already installed.
13520 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13521 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13522 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13523 # will be set to the directory where LIBOBJS objects are built.
13524 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13525 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13527 LIBOBJS=$ac_libobjs
13529 LTLIBOBJS=$ac_ltlibobjs
13532 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13533 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13534 Usually this means the macro was only invoked conditionally." >&5
13535 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13536 Usually this means the macro was only invoked conditionally." >&2;}
13537 { (exit 1); exit 1; }; }
13539 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13540 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13541 Usually this means the macro was only invoked conditionally." >&5
13542 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13543 Usually this means the macro was only invoked conditionally." >&2;}
13544 { (exit 1); exit 1; }; }
13546 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13547 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13548 Usually this means the macro was only invoked conditionally." >&5
13549 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13550 Usually this means the macro was only invoked conditionally." >&2;}
13551 { (exit 1); exit 1; }; }
13553 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13554 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13555 Usually this means the macro was only invoked conditionally." >&5
13556 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13557 Usually this means the macro was only invoked conditionally." >&2;}
13558 { (exit 1); exit 1; }; }
13560 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13561 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13562 Usually this means the macro was only invoked conditionally." >&5
13563 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13564 Usually this means the macro was only invoked conditionally." >&2;}
13565 { (exit 1); exit 1; }; }
13567 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
13568 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
13569 Usually this means the macro was only invoked conditionally." >&5
13570 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
13571 Usually this means the macro was only invoked conditionally." >&2;}
13572 { (exit 1); exit 1; }; }
13574 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
13575 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
13576 Usually this means the macro was only invoked conditionally." >&5
13577 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
13578 Usually this means the macro was only invoked conditionally." >&2;}
13579 { (exit 1); exit 1; }; }
13581 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
13582 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SHARED\" was never defined.
13583 Usually this means the macro was only invoked conditionally." >&5
13584 $as_echo "$as_me: error: conditional \"BUILD_SHARED\" was never defined.
13585 Usually this means the macro was only invoked conditionally." >&2;}
13586 { (exit 1); exit 1; }; }
13588 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
13589 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
13590 Usually this means the macro was only invoked conditionally." >&5
13591 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
13592 Usually this means the macro was only invoked conditionally." >&2;}
13593 { (exit 1); exit 1; }; }
13595 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
13596 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
13597 Usually this means the macro was only invoked conditionally." >&5
13598 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
13599 Usually this means the macro was only invoked conditionally." >&2;}
13600 { (exit 1); exit 1; }; }
13602 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
13603 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
13604 Usually this means the macro was only invoked conditionally." >&5
13605 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
13606 Usually this means the macro was only invoked conditionally." >&2;}
13607 { (exit 1); exit 1; }; }
13609 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
13610 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
13611 Usually this means the macro was only invoked conditionally." >&5
13612 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
13613 Usually this means the macro was only invoked conditionally." >&2;}
13614 { (exit 1); exit 1; }; }
13616 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
13617 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
13618 Usually this means the macro was only invoked conditionally." >&5
13619 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
13620 Usually this means the macro was only invoked conditionally." >&2;}
13621 { (exit 1); exit 1; }; }
13623 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
13624 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
13625 Usually this means the macro was only invoked conditionally." >&5
13626 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
13627 Usually this means the macro was only invoked conditionally." >&2;}
13628 { (exit 1); exit 1; }; }
13630 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
13631 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
13632 Usually this means the macro was only invoked conditionally." >&5
13633 $as_echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
13634 Usually this means the macro was only invoked conditionally." >&2;}
13635 { (exit 1); exit 1; }; }
13637 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
13638 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
13639 Usually this means the macro was only invoked conditionally." >&5
13640 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
13641 Usually this means the macro was only invoked conditionally." >&2;}
13642 { (exit 1); exit 1; }; }
13644 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
13645 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
13646 Usually this means the macro was only invoked conditionally." >&5
13647 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
13648 Usually this means the macro was only invoked conditionally." >&2;}
13649 { (exit 1); exit 1; }; }
13651 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
13652 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
13653 Usually this means the macro was only invoked conditionally." >&5
13654 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
13655 Usually this means the macro was only invoked conditionally." >&2;}
13656 { (exit 1); exit 1; }; }
13658 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
13659 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
13660 Usually this means the macro was only invoked conditionally." >&5
13661 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
13662 Usually this means the macro was only invoked conditionally." >&2;}
13663 { (exit 1); exit 1; }; }
13665 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
13666 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
13667 Usually this means the macro was only invoked conditionally." >&5
13668 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
13669 Usually this means the macro was only invoked conditionally." >&2;}
13670 { (exit 1); exit 1; }; }
13672 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
13673 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
13674 Usually this means the macro was only invoked conditionally." >&5
13675 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
13676 Usually this means the macro was only invoked conditionally." >&2;}
13677 { (exit 1); exit 1; }; }
13679 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
13680 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
13681 Usually this means the macro was only invoked conditionally." >&5
13682 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
13683 Usually this means the macro was only invoked conditionally." >&2;}
13684 { (exit 1); exit 1; }; }
13686 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
13687 { { $as_echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
13688 Usually this means the macro was only invoked conditionally." >&5
13689 $as_echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
13690 Usually this means the macro was only invoked conditionally." >&2;}
13691 { (exit 1); exit 1; }; }
13693 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
13694 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
13695 Usually this means the macro was only invoked conditionally." >&5
13696 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
13697 Usually this means the macro was only invoked conditionally." >&2;}
13698 { (exit 1); exit 1; }; }
13700 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
13701 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
13702 Usually this means the macro was only invoked conditionally." >&5
13703 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
13704 Usually this means the macro was only invoked conditionally." >&2;}
13705 { (exit 1); exit 1; }; }
13708 : ${CONFIG_STATUS=./config.status}
13710 ac_clean_files_save=$ac_clean_files
13711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13712 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13713 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13714 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13716 # Generated by $as_me.
13717 # Run this file to recreate the current configuration.
13718 # Compiler output produced by configure, useful for debugging
13719 # configure, is in config.log if it exists.
13722 ac_cs_recheck=false
13724 SHELL=\${CONFIG_SHELL-$SHELL}
13727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13728 ## --------------------- ##
13729 ## M4sh Initialization. ##
13730 ## --------------------- ##
13732 # Be more Bourne compatible
13733 DUALCASE=1; export DUALCASE # for MKS sh
13734 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13738 # is contrary to our usage. Disable this feature.
13739 alias -g '${1+"$@"}'='"$@"'
13740 setopt NO_GLOB_SUBST
13742 case `(set -o) 2>/dev/null` in
13743 *posix*) set -o posix ;;
13752 # Avoid depending upon Character Ranges.
13753 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13754 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13755 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13756 as_cr_digits='0123456789'
13757 as_cr_alnum=$as_cr_Letters$as_cr_digits
13762 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13763 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13766 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13767 as_echo='printf %s\n'
13768 as_echo_n='printf %s'
13770 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13771 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13772 as_echo_n='/usr/ucb/echo -n'
13774 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13775 as_echo_n_body='eval
13779 expr "X$arg" : "X\\(.*\\)$as_nl";
13780 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13782 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13784 export as_echo_n_body
13785 as_echo_n='sh -c $as_echo_n_body as_echo'
13787 export as_echo_body
13788 as_echo='sh -c $as_echo_body as_echo'
13791 # The user is always right.
13792 if test "${PATH_SEPARATOR+set}" != set; then
13794 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13795 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13800 # Support unset when possible.
13801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13809 # We need space, tab and new line, in precisely that order. Quoting is
13810 # there to prevent editors from complaining about space-tab.
13811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13812 # splitting by setting IFS to empty value.)
13815 # Find who we are. Look in the path if we contain no directory separator.
13817 *[\\/]* ) as_myself=$0 ;;
13818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819 for as_dir in $PATH
13822 test -z "$as_dir" && as_dir=.
13823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13829 # We did not find ourselves, most probably we were run as `sh COMMAND'
13830 # in which case we are not to be found in the path.
13831 if test "x$as_myself" = x; then
13834 if test ! -f "$as_myself"; then
13835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13836 { (exit 1); exit 1; }
13839 # Work around bugs in pre-3.0 UWIN ksh.
13840 for as_var in ENV MAIL MAILPATH
13841 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13853 # Required to use basename.
13854 if expr a : '\(a\)' >/dev/null 2>&1 &&
13855 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13862 as_basename=basename
13868 # Name of the executable.
13869 as_me=`$as_basename -- "$0" ||
13870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13871 X"$0" : 'X\(//\)$' \| \
13872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13874 sed '/^.*\/\([^/][^/]*\)\/*$/{
13893 as_lineno_1=$LINENO
13894 as_lineno_2=$LINENO
13895 test "x$as_lineno_1" != "x$as_lineno_2" &&
13896 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13898 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13899 # uniformly replaced by the line number. The first 'sed' inserts a
13900 # line-number line after each line using $LINENO; the second 'sed'
13901 # does the real work. The second script uses 'N' to pair each
13902 # line-number line with the line containing $LINENO, and appends
13903 # trailing '-' during substitution so that $LINENO is not a special
13904 # case at line end.
13905 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13906 # scripts with optimization help from Paolo Bonzini. Blame Lee
13907 # E. McMahon (1931-1989) for sed's syntax. :-)
13919 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13922 ' >$as_me.lineno &&
13923 chmod +x "$as_me.lineno" ||
13924 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13925 { (exit 1); exit 1; }; }
13927 # Don't try to exec as it changes $[0], causing all sort of problems
13928 # (the dirname of $[0] is not the place where we might find the
13929 # original and so on. Autoconf is especially sensitive to this).
13930 . "./$as_me.lineno"
13931 # Exit status is that of the last command.
13936 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13942 ECHO_C= ECHO_N= ECHO_T=
13943 case `echo -n x` in
13945 case `echo 'x\c'` in
13946 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13952 if expr a : '\(a\)' >/dev/null 2>&1 &&
13953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13959 rm -f conf$$ conf$$.exe conf$$.file
13960 if test -d conf$$.dir; then
13961 rm -f conf$$.dir/conf$$.file
13964 mkdir conf$$.dir 2>/dev/null
13966 if (echo >conf$$.file) 2>/dev/null; then
13967 if ln -s conf$$.file conf$$ 2>/dev/null; then
13969 # ... but there are two gotchas:
13970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13972 # In both cases, we have to default to `cp -p'.
13973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13975 elif ln conf$$.file conf$$ 2>/dev/null; then
13983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13984 rmdir conf$$.dir 2>/dev/null
13986 if mkdir -p . 2>/dev/null; then
13989 test -d ./-p && rmdir ./-p
13993 if test -x / >/dev/null 2>&1; then
13994 as_test_x='test -x'
13996 if ls -dL / >/dev/null 2>&1; then
14003 if test -d "$1"; then
14009 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14010 ???[sx]*):;;*)false;;esac;fi
14014 as_executable_p=$as_test_x
14016 # Sed expression to map a string onto a valid CPP name.
14017 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14019 # Sed expression to map a string onto a valid variable name.
14020 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14025 # Save the log message, to keep $[0] and so on meaningful, and to
14026 # report actual input values of CONFIG_FILES etc. instead of their
14027 # values after options handling.
14029 This file was extended by $as_me, which was
14030 generated by GNU Autoconf 2.63. Invocation command line was
14032 CONFIG_FILES = $CONFIG_FILES
14033 CONFIG_HEADERS = $CONFIG_HEADERS
14034 CONFIG_LINKS = $CONFIG_LINKS
14035 CONFIG_COMMANDS = $CONFIG_COMMANDS
14038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14043 case $ac_config_files in *"
14044 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14047 case $ac_config_headers in *"
14048 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14053 # Files that config.status was made for.
14054 config_files="$ac_config_files"
14055 config_headers="$ac_config_headers"
14056 config_commands="$ac_config_commands"
14060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14062 \`$as_me' instantiates files from templates according to the
14063 current configuration.
14065 Usage: $0 [OPTION]... [FILE]...
14067 -h, --help print this help, then exit
14068 -V, --version print version number and configuration settings, then exit
14069 -q, --quiet, --silent
14070 do not print progress messages
14071 -d, --debug don't remove temporary files
14072 --recheck update $as_me by reconfiguring in the same conditions
14073 --file=FILE[:TEMPLATE]
14074 instantiate the configuration file FILE
14075 --header=FILE[:TEMPLATE]
14076 instantiate the configuration header FILE
14078 Configuration files:
14081 Configuration headers:
14084 Configuration commands:
14087 Report bugs to <bug-autoconf@gnu.org>."
14090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14093 configured by $0, generated by GNU Autoconf 2.63,
14094 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14096 Copyright (C) 2008 Free Software Foundation, Inc.
14097 This config.status script is free software; the Free Software Foundation
14098 gives unlimited permission to copy, distribute and modify it."
14104 test -n "\$AWK" || AWK=awk
14107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14108 # The default lists apply if the user does not specify any file.
14114 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14115 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14126 # Handling of the options.
14127 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14129 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14130 $as_echo "$ac_cs_version"; exit ;;
14131 --debug | --debu | --deb | --de | --d | -d )
14133 --file | --fil | --fi | --f )
14136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14138 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14139 ac_need_defaults=false;;
14140 --header | --heade | --head | --hea )
14143 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14145 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14146 ac_need_defaults=false;;
14148 # Conflict between --help and --header
14149 { $as_echo "$as_me: error: ambiguous option: $1
14150 Try \`$0 --help' for more information." >&2
14151 { (exit 1); exit 1; }; };;
14152 --help | --hel | -h )
14153 $as_echo "$ac_cs_usage"; exit ;;
14154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14155 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14158 # This is an error.
14159 -*) { $as_echo "$as_me: error: unrecognized option: $1
14160 Try \`$0 --help' for more information." >&2
14161 { (exit 1); exit 1; }; } ;;
14163 *) ac_config_targets="$ac_config_targets $1"
14164 ac_need_defaults=false ;;
14170 ac_configure_extra_args=
14172 if $ac_cs_silent; then
14174 ac_configure_extra_args="$ac_configure_extra_args --silent"
14178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14179 if \$ac_cs_recheck; then
14180 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14182 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14183 CONFIG_SHELL='$SHELL'
14184 export CONFIG_SHELL
14189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14194 ## Running $as_me. ##
14200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14204 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14211 # Handling of arguments.
14212 for ac_config_target in $ac_config_targets
14214 case $ac_config_target in
14215 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14216 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14217 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14218 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14219 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14220 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14221 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14222 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
14224 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14225 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14226 { (exit 1); exit 1; }; };;
14231 # If the user did not use the arguments to specify the items to instantiate,
14232 # then the envvar interface is used. Set only those that are not.
14233 # We use the long form for the default assignment because of an extremely
14234 # bizarre bug on SunOS 4.1.3.
14235 if $ac_need_defaults; then
14236 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14237 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14238 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14241 # Have a temporary directory for convenience. Make it in the build tree
14242 # simply because there is no reason against having it here, and in addition,
14243 # creating and moving files from /tmp can sometimes cause problems.
14244 # Hook for its removal unless debugging.
14245 # Note that there is a small window in which the directory will not be cleaned:
14246 # after its creation but before its name has been assigned to `$tmp'.
14250 trap 'exit_status=$?
14251 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14253 trap '{ (exit 1); exit 1; }' 1 2 13 15
14255 # Create a (secure) tmp directory for tmp files.
14258 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14259 test -n "$tmp" && test -d "$tmp"
14262 tmp=./conf$$-$RANDOM
14263 (umask 077 && mkdir "$tmp")
14266 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14267 { (exit 1); exit 1; }
14270 # Set up the scripts for CONFIG_FILES section.
14271 # No need to generate them if there are no CONFIG_FILES.
14272 # This happens for instance with `./config.status config.h'.
14273 if test -n "$CONFIG_FILES"; then
14278 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14279 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14282 ac_cs_awk_cr=$ac_cr
14285 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14290 echo "cat >conf$$subs.awk <<_ACEOF" &&
14291 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14293 } >conf$$subs.sh ||
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; }; }
14297 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14299 for ac_last_try in false false false false false :; do
14300 . ./conf$$subs.sh ||
14301 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14302 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14303 { (exit 1); exit 1; }; }
14305 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14306 if test $ac_delim_n = $ac_delim_num; then
14308 elif $ac_last_try; then
14309 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14310 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14311 { (exit 1); exit 1; }; }
14313 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14316 rm -f conf$$subs.sh
14318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14319 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14323 s/^/S["/; s/!.*/"]=/
14333 s/\(.\{148\}\).*/\1/
14335 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14340 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14347 s/\(.\{148\}\).*/\1/
14349 s/["\\]/\\&/g; s/^/"/; s/$/"/
14353 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14358 ' <conf$$subs.awk | sed '
14363 ' >>$CONFIG_STATUS || ac_write_fail=1
14364 rm -f conf$$subs.awk
14365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14367 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14368 for (key in S) S_is_set[key] = 1
14374 nfields = split(line, field, "@")
14376 len = length(field[1])
14377 for (i = 2; i < nfields; i++) {
14379 keylen = length(key)
14380 if (S_is_set[key]) {
14382 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14383 len += length(value) + length(field[++i])
14394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14395 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14396 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14399 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14400 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14401 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14402 { (exit 1); exit 1; }; }
14405 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14406 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14407 # trailing colons and then remove the whole line if VPATH becomes empty
14408 # (actually we leave an empty line to preserve line numbers).
14409 if test "x$srcdir" = x.; then
14410 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14411 s/:*\$(srcdir):*/:/
14412 s/:*\${srcdir}:*/:/
14414 s/^\([^=]*=[ ]*\):*/\1/
14420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14421 fi # test -n "$CONFIG_FILES"
14423 # Set up the scripts for CONFIG_HEADERS section.
14424 # No need to generate them if there are no CONFIG_HEADERS.
14425 # This happens for instance with `./config.status Makefile'.
14426 if test -n "$CONFIG_HEADERS"; then
14427 cat >"$tmp/defines.awk" <<\_ACAWK ||
14431 # Transform confdefs.h into an awk script `defines.awk', embedded as
14432 # here-document in config.status, that substitutes the proper values into
14433 # config.h.in to produce config.h.
14435 # Create a delimiter string that does not exist in confdefs.h, to ease
14436 # handling of long lines.
14438 for ac_last_try in false false :; do
14439 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14440 if test -z "$ac_t"; then
14442 elif $ac_last_try; then
14443 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14444 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14445 { (exit 1); exit 1; }; }
14447 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14451 # For the awk script, D is an array of macro values keyed by name,
14452 # likewise P contains macro parameters if any. Preserve backslash
14453 # newline sequences.
14455 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14457 s/.\{148\}/&'"$ac_delim"'/g
14460 s/^[ ]*#[ ]*define[ ][ ]*/ /
14467 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14469 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14473 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14474 D["\1"]=" \3\\\\\\n"\\/p
14476 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14481 s/.\{148\}/&'"$ac_delim"'/g
14486 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14489 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14491 ' <confdefs.h | sed '
14492 s/'"$ac_delim"'/"\\\
14493 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14496 for (key in D) D_is_set[key] = 1
14499 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14501 split(line, arg, " ")
14502 if (arg[1] == "#") {
14506 defundef = substr(arg[1], 2)
14509 split(mac1, mac2, "(") #)
14511 prefix = substr(line, 1, index(line, defundef) - 1)
14512 if (D_is_set[macro]) {
14513 # Preserve the white space surrounding the "#".
14514 print prefix "define", macro P[macro] D[macro]
14517 # Replace #undef with comments. This is necessary, for example,
14518 # in the case of _POSIX_SOURCE, which is predefined and required
14519 # on some systems where configure will not decide to define it.
14520 if (defundef == "undef") {
14521 print "/*", prefix defundef, macro, "*/"
14529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14530 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14531 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14532 { (exit 1); exit 1; }; }
14533 fi # test -n "$CONFIG_HEADERS"
14536 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14541 :[FHLC]) ac_mode=$ac_tag; continue;;
14543 case $ac_mode$ac_tag in
14545 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14546 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14547 { (exit 1); exit 1; }; };;
14548 :[FH]-) ac_tag=-:-;;
14549 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14566 -) ac_f="$tmp/stdin";;
14567 *) # Look for the file first in the build tree, then in the source tree
14568 # (if the path is not absolute). The absolute path cannot be DOS-style,
14569 # because $ac_f cannot contain `:'.
14573 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14575 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14576 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14577 { (exit 1); exit 1; }; };;
14579 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14580 ac_file_inputs="$ac_file_inputs '$ac_f'"
14583 # Let's still pretend it is `configure' which instantiates (i.e., don't
14584 # use $as_me), people would be surprised to read:
14585 # /* config.h. Generated by config.status. */
14586 configure_input='Generated from '`
14587 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14589 if test x"$ac_file" != x-; then
14590 configure_input="$ac_file. $configure_input"
14591 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14592 $as_echo "$as_me: creating $ac_file" >&6;}
14594 # Neutralize special characters interpreted by sed in replacement strings.
14595 case $configure_input in #(
14596 *\&* | *\|* | *\\* )
14597 ac_sed_conf_input=`$as_echo "$configure_input" |
14598 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14599 *) ac_sed_conf_input=$configure_input;;
14603 *:-:* | *:-) cat >"$tmp/stdin" \
14604 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14605 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14606 { (exit 1); exit 1; }; } ;;
14611 ac_dir=`$as_dirname -- "$ac_file" ||
14612 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14613 X"$ac_file" : 'X\(//\)[^/]' \| \
14614 X"$ac_file" : 'X\(//\)$' \| \
14615 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14616 $as_echo X"$ac_file" |
14617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14621 /^X\(\/\/\)[^/].*/{
14636 -*) as_dir=./$as_dir;;
14638 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14642 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14643 *) as_qdir=$as_dir;;
14645 as_dirs="'$as_qdir' $as_dirs"
14646 as_dir=`$as_dirname -- "$as_dir" ||
14647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14648 X"$as_dir" : 'X\(//\)[^/]' \| \
14649 X"$as_dir" : 'X\(//\)$' \| \
14650 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14651 $as_echo X"$as_dir" |
14652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14656 /^X\(\/\/\)[^/].*/{
14669 test -d "$as_dir" && break
14671 test -z "$as_dirs" || eval "mkdir $as_dirs"
14672 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14673 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14674 { (exit 1); exit 1; }; }; }
14678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14680 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14681 # A ".." for each directory in $ac_dir_suffix.
14682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14683 case $ac_top_builddir_sub in
14684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14688 ac_abs_top_builddir=$ac_pwd
14689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14690 # for backward compatibility:
14691 ac_top_builddir=$ac_top_build_prefix
14694 .) # We are building in place.
14696 ac_top_srcdir=$ac_top_builddir_sub
14697 ac_abs_top_srcdir=$ac_pwd ;;
14698 [\\/]* | ?:[\\/]* ) # Absolute name.
14699 ac_srcdir=$srcdir$ac_dir_suffix;
14700 ac_top_srcdir=$srcdir
14701 ac_abs_top_srcdir=$srcdir ;;
14702 *) # Relative name.
14703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14704 ac_top_srcdir=$ac_top_build_prefix$srcdir
14705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14717 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14718 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14723 # If the template does not know about datarootdir, expand it.
14724 # FIXME: This hack should be removed a few years after 2.60.
14725 ac_datarootdir_hack=; ac_datarootdir_seen=
14738 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14739 *datarootdir*) ac_datarootdir_seen=yes;;
14740 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14741 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14742 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14745 ac_datarootdir_hack='
14746 s&@datadir@&$datadir&g
14747 s&@docdir@&$docdir&g
14748 s&@infodir@&$infodir&g
14749 s&@localedir@&$localedir&g
14750 s&@mandir@&$mandir&g
14751 s&\\\${datarootdir}&$datarootdir&g' ;;
14755 # Neutralize VPATH when `$srcdir' = `.'.
14756 # Shell code in configure.ac might set extrasub.
14757 # FIXME: do we really want to maintain this feature?
14758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14759 ac_sed_extra="$ac_vpsub
14762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14765 s|@configure_input@|$ac_sed_conf_input|;t t
14766 s&@top_builddir@&$ac_top_builddir_sub&;t t
14767 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14768 s&@srcdir@&$ac_srcdir&;t t
14769 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14770 s&@top_srcdir@&$ac_top_srcdir&;t t
14771 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14772 s&@builddir@&$ac_builddir&;t t
14773 s&@abs_builddir@&$ac_abs_builddir&;t t
14774 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14775 s&@INSTALL@&$ac_INSTALL&;t t
14776 $ac_datarootdir_hack
14778 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14779 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14780 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14781 { (exit 1); exit 1; }; }
14783 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14784 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14785 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14786 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14787 which seems to be undefined. Please make sure it is defined." >&5
14788 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14789 which seems to be undefined. Please make sure it is defined." >&2;}
14793 -) cat "$tmp/out" && rm -f "$tmp/out";;
14794 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14796 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14797 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14798 { (exit 1); exit 1; }; }
14804 if test x"$ac_file" != x-; then
14806 $as_echo "/* $configure_input */" \
14807 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14808 } >"$tmp/config.h" \
14809 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14810 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14811 { (exit 1); exit 1; }; }
14812 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14813 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14814 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14817 mv "$tmp/config.h" "$ac_file" \
14818 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14819 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14820 { (exit 1); exit 1; }; }
14823 $as_echo "/* $configure_input */" \
14824 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14825 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14826 $as_echo "$as_me: error: could not create -" >&2;}
14827 { (exit 1); exit 1; }; }
14829 # Compute "$ac_file"'s index in $config_headers.
14831 for _am_header in $config_headers :; do
14832 case $_am_header in
14833 "$ac_file" | "$ac_file":* )
14836 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14839 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
14840 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14841 X"$ac_file" : 'X\(//\)[^/]' \| \
14842 X"$ac_file" : 'X\(//\)$' \| \
14843 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14844 $as_echo X"$ac_file" |
14845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14849 /^X\(\/\/\)[^/].*/{
14861 s/.*/./; q'`/stamp-h$_am_stamp_count
14864 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14865 $as_echo "$as_me: executing $ac_file commands" >&6;}
14870 case $ac_file$ac_mode in
14871 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14872 # Strip MF so we end up with the name of the file.
14873 mf=`echo "$mf" | sed -e 's/:.*$//'`
14874 # Check whether this is an Automake generated Makefile or not.
14875 # We used to match only the files named `Makefile.in', but
14876 # some people rename them; so instead we look at the file content.
14877 # Grep'ing the first line is not enough: some people post-process
14878 # each Makefile.in and add a new line on top of each file to say so.
14879 # So let's grep whole file.
14880 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14881 dirpart=`$as_dirname -- "$mf" ||
14882 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14883 X"$mf" : 'X\(//\)[^/]' \| \
14884 X"$mf" : 'X\(//\)$' \| \
14885 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14891 /^X\(\/\/\)[^/].*/{
14907 # Extract the definition of DEPDIR, am__include, and am__quote
14908 # from the Makefile without running `make'.
14909 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14910 test -z "$DEPDIR" && continue
14911 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14912 test -z "am__include" && continue
14913 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14914 # When using ansi2knr, U may be empty or an underscore; expand it
14915 U=`sed -n 's/^U = //p' < "$mf"`
14916 # Find all dependency output files, they are included files with
14917 # $(DEPDIR) in their names. We invoke sed twice because it is the
14918 # simplest approach to changing $(DEPDIR) to its actual value in the
14920 for file in `sed -n "
14921 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14922 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14923 # Make sure the directory exists.
14924 test -f "$dirpart/$file" && continue
14925 fdir=`$as_dirname -- "$file" ||
14926 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14927 X"$file" : 'X\(//\)[^/]' \| \
14928 X"$file" : 'X\(//\)$' \| \
14929 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14930 $as_echo X"$file" |
14931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14935 /^X\(\/\/\)[^/].*/{
14948 { as_dir=$dirpart/$fdir
14950 -*) as_dir=./$as_dir;;
14952 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14956 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14957 *) as_qdir=$as_dir;;
14959 as_dirs="'$as_qdir' $as_dirs"
14960 as_dir=`$as_dirname -- "$as_dir" ||
14961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14962 X"$as_dir" : 'X\(//\)[^/]' \| \
14963 X"$as_dir" : 'X\(//\)$' \| \
14964 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14965 $as_echo X"$as_dir" |
14966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14970 /^X\(\/\/\)[^/].*/{
14983 test -d "$as_dir" && break
14985 test -z "$as_dirs" || eval "mkdir $as_dirs"
14986 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14987 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14988 { (exit 1); exit 1; }; }; }
14989 # echo "creating $dirpart/$file"
14990 echo '# dummy' > "$dirpart/$file"
14994 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
14995 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
15002 { (exit 0); exit 0; }
15004 chmod +x $CONFIG_STATUS
15005 ac_clean_files=$ac_clean_files_save
15007 test $ac_write_fail = 0 ||
15008 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15009 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15010 { (exit 1); exit 1; }; }
15013 # configure is writing to config.log, and then calls config.status.
15014 # config.status does its own redirection, appending to config.log.
15015 # Unfortunately, on DOS this fails, as config.log is still kept open
15016 # by configure, so config.status won't be able to write to it; its
15017 # output is simply discarded. So we exec the FD to /dev/null,
15018 # effectively closing config.log, so it can be properly (re)opened and
15019 # appended to by config.status. When coming back to configure, we
15020 # need to make the FD available again.
15021 if test "$no_create" != yes; then
15023 ac_config_status_args=
15024 test "$silent" = yes &&
15025 ac_config_status_args="$ac_config_status_args --quiet"
15027 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15029 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15030 # would make configure fail if this is the last instruction.
15031 $ac_cs_success || { (exit 1); exit 1; }
15033 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15034 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15035 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15040 -*) as_dir=./$as_dir;;
15042 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15046 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15047 *) as_qdir=$as_dir;;
15049 as_dirs="'$as_qdir' $as_dirs"
15050 as_dir=`$as_dirname -- "$as_dir" ||
15051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15052 X"$as_dir" : 'X\(//\)[^/]' \| \
15053 X"$as_dir" : 'X\(//\)$' \| \
15054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15055 $as_echo X"$as_dir" |
15056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15060 /^X\(\/\/\)[^/].*/{
15073 test -d "$as_dir" && break
15075 test -z "$as_dirs" || eval "mkdir $as_dirs"
15076 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15077 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15078 { (exit 1); exit 1; }; }; }
15082 echo "Configuration complete"
15085 if test "x$HAVE_GTK" = x; then
15086 if test "x$HAVE_COCOA" = x; then
15087 echo " User interface: none"
15089 echo " User interface: Cocoa"
15092 echo " User interface: GTK"
15095 if test "x$SH4_TRANSLATOR" = "x"; then
15096 echo " SH4 translator: None (emulation core only)"
15098 echo " SH4 translator: $SH4_TRANSLATOR"
15101 if test "x$VIDEO_DRIVERS" = "x"; then
15102 echo " Video drivers: none (no supported GL found)"
15104 echo " Video drivers: $VIDEO_DRIVERS"
15107 if test "x$AUDIO_DRIVERS" = "x"; then
15108 echo " Audio drivers: none (no supported output devices found)"
15110 echo " Audio drivers: $AUDIO_DRIVERS"
15113 if test "x$INPUT_DRIVERS" = "x"; then
15114 echo " Input drivers: none (no supported output devices found)"
15116 echo " Input drivers: $INPUT_DRIVERS"
15119 if test "x$CDROM_DRIVER" = "x"; then
15120 echo " CD-ROM driver: none (no supported cd-rom devices found)"
15122 echo " CD-ROM driver: $CDROM_DRIVER"
.