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
724 am__fastdepOBJC_FALSE
761 MAINTAINER_MODE_FALSE
770 INSTALL_STRIP_PROGRAM
811 program_transform_name
823 enable_option_checking
824 enable_maintainer_mode
825 enable_dependency_tracking
840 ac_precious_vars='build_alias
870 # Initialize some variables set by options.
872 ac_init_version=false
873 ac_unrecognized_opts=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
884 program_transform_name=s,x,x,
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE}'
909 infodir='${datarootdir}/info'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\$ac_option
930 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 # Accept the important Cygnus configure options, so we can diagnose typos.
936 case $ac_dashdash$ac_option in
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
958 cache_file=config.cache ;;
960 -datadir | --datadir | --datadi | --datad)
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
972 -disable-* | --disable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
977 { (exit 1); exit 1; }; }
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
987 eval enable_$ac_useropt=no ;;
989 -docdir | --docdir | --docdi | --doc | --do)
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 -enable-* | --enable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1004 { (exit 1); exit 1; }; }
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1009 "enable_$ac_useropt"
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1014 eval enable_$ac_useropt=\$ac_optarg ;;
1016 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1017 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1018 | --exec | --exe | --ex)
1019 ac_prev=exec_prefix ;;
1020 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1021 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1022 | --exec=* | --exe=* | --ex=*)
1023 exec_prefix=$ac_optarg ;;
1025 -gas | --gas | --ga | --g)
1026 # Obsolete; use --with-gas.
1029 -help | --help | --hel | --he | -h)
1030 ac_init_help=long ;;
1031 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1032 ac_init_help=recursive ;;
1033 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1034 ac_init_help=short ;;
1036 -host | --host | --hos | --ho)
1037 ac_prev=host_alias ;;
1038 -host=* | --host=* | --hos=* | --ho=*)
1039 host_alias=$ac_optarg ;;
1041 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045 htmldir=$ac_optarg ;;
1047 -includedir | --includedir | --includedi | --included | --include \
1048 | --includ | --inclu | --incl | --inc)
1049 ac_prev=includedir ;;
1050 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1051 | --includ=* | --inclu=* | --incl=* | --inc=*)
1052 includedir=$ac_optarg ;;
1054 -infodir | --infodir | --infodi | --infod | --info | --inf)
1056 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1057 infodir=$ac_optarg ;;
1059 -libdir | --libdir | --libdi | --libd)
1061 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1062 libdir=$ac_optarg ;;
1064 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1065 | --libexe | --libex | --libe)
1066 ac_prev=libexecdir ;;
1067 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1068 | --libexe=* | --libex=* | --libe=*)
1069 libexecdir=$ac_optarg ;;
1071 -localedir | --localedir | --localedi | --localed | --locale)
1072 ac_prev=localedir ;;
1073 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1074 localedir=$ac_optarg ;;
1076 -localstatedir | --localstatedir | --localstatedi | --localstated \
1077 | --localstate | --localstat | --localsta | --localst | --locals)
1078 ac_prev=localstatedir ;;
1079 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1080 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1081 localstatedir=$ac_optarg ;;
1083 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1086 mandir=$ac_optarg ;;
1088 -nfp | --nfp | --nf)
1089 # Obsolete; use --without-fp.
1092 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1093 | --no-cr | --no-c | -n)
1096 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1097 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1101 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1102 | --oldin | --oldi | --old | --ol | --o)
1103 ac_prev=oldincludedir ;;
1104 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1105 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1106 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1107 oldincludedir=$ac_optarg ;;
1109 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1112 prefix=$ac_optarg ;;
1114 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1115 | --program-pre | --program-pr | --program-p)
1116 ac_prev=program_prefix ;;
1117 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1118 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1119 program_prefix=$ac_optarg ;;
1121 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1122 | --program-suf | --program-su | --program-s)
1123 ac_prev=program_suffix ;;
1124 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1125 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1126 program_suffix=$ac_optarg ;;
1128 -program-transform-name | --program-transform-name \
1129 | --program-transform-nam | --program-transform-na \
1130 | --program-transform-n | --program-transform- \
1131 | --program-transform | --program-transfor \
1132 | --program-transfo | --program-transf \
1133 | --program-trans | --program-tran \
1134 | --progr-tra | --program-tr | --program-t)
1135 ac_prev=program_transform_name ;;
1136 -program-transform-name=* | --program-transform-name=* \
1137 | --program-transform-nam=* | --program-transform-na=* \
1138 | --program-transform-n=* | --program-transform-=* \
1139 | --program-transform=* | --program-transfor=* \
1140 | --program-transfo=* | --program-transf=* \
1141 | --program-trans=* | --program-tran=* \
1142 | --progr-tra=* | --program-tr=* | --program-t=*)
1143 program_transform_name=$ac_optarg ;;
1145 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1148 pdfdir=$ac_optarg ;;
1150 -psdir | --psdir | --psdi | --psd | --ps)
1152 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156 | -silent | --silent | --silen | --sile | --sil)
1159 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163 sbindir=$ac_optarg ;;
1165 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167 | --sharedst | --shareds | --shared | --share | --shar \
1169 ac_prev=sharedstatedir ;;
1170 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174 sharedstatedir=$ac_optarg ;;
1176 -site | --site | --sit)
1178 -site=* | --site=* | --sit=*)
1181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184 srcdir=$ac_optarg ;;
1186 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187 | --syscon | --sysco | --sysc | --sys | --sy)
1188 ac_prev=sysconfdir ;;
1189 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191 sysconfdir=$ac_optarg ;;
1193 -target | --target | --targe | --targ | --tar | --ta | --t)
1194 ac_prev=target_alias ;;
1195 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196 target_alias=$ac_optarg ;;
1198 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 -version | --version | --versio | --versi | --vers | -V)
1202 ac_init_version=: ;;
1205 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1209 { (exit 1); exit 1; }; }
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1219 eval with_$ac_useropt=\$ac_optarg ;;
1221 -without-* | --without-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1236 eval with_$ac_useropt=no ;;
1239 # Obsolete; use --with-x.
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1256 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1257 Try \`$0 --help' for more information." >&2
1258 { (exit 1); exit 1; }; }
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1265 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1266 { (exit 1); exit 1; }; }
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1271 # FIXME: should be removed in autoconf 3.0.
1272 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1284 { (exit 1); exit 1; }; }
1287 if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1290 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1291 { (exit 1); exit 1; }; } ;;
1292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 # Check all directory arguments for consistency.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
1302 eval ac_val=\$$ac_var
1303 # Remove trailing slashes.
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1309 # Be sure to have absolute directory names.
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1315 { (exit 1); exit 1; }; }
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1323 target=$target_alias
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1330 If a cross compiler is detected then cross compile mode will be used." >&2
1331 elif test "x$build_alias" != "x$host_alias"; then
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339 test "$silent" = yes && exec 6>/dev/null
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1346 { (exit 1); exit 1; }; }
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1349 { (exit 1); exit 1; }; }
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361 $as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1384 ac_srcdir_defaulted=no
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1389 { (exit 1); exit 1; }; }
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1394 { (exit 1); exit 1; }; }
1396 # When building in place, set srcdir=.
1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 # Remove unnecessary trailing slashes from srcdir.
1401 # Double slashes in file names in object file debugging info
1402 # mess up M-x gdb in Emacs.
1404 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 for ac_var in $ac_precious_vars; do
1407 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_env_${ac_var}_value=\$${ac_var}
1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 # Report the --help message.
1416 if test "$ac_init_help" = "long"; then
1417 # Omit some internal or obsolete options to make the list less imposing.
1418 # This message is too long to be a string in the A/UX 3.1 sh.
1420 \`configure' configures this package to adapt to many kinds of systems.
1422 Usage: $0 [OPTION]... [VAR=VALUE]...
1424 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425 VAR=VALUE. See below for descriptions of some of the useful variables.
1427 Defaults for the options are specified in brackets.
1430 -h, --help display this help and exit
1431 --help=short display options specific to this package
1432 --help=recursive display the short help of all the included packages
1433 -V, --version display version information and exit
1434 -q, --quiet, --silent do not print \`checking...' messages
1435 --cache-file=FILE cache test results in FILE [disabled]
1436 -C, --config-cache alias for \`--cache-file=config.cache'
1437 -n, --no-create do not create output files
1438 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1440 Installation directories:
1441 --prefix=PREFIX install architecture-independent files in PREFIX
1442 [$ac_default_prefix]
1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1446 By default, \`make install' will install all the files in
1447 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1448 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1449 for instance \`--prefix=\$HOME'.
1451 For better control, use the options below.
1453 Fine tuning of the installation directories:
1454 --bindir=DIR user executables [EPREFIX/bin]
1455 --sbindir=DIR system admin executables [EPREFIX/sbin]
1456 --libexecdir=DIR program executables [EPREFIX/libexec]
1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1460 --libdir=DIR object code libraries [EPREFIX/lib]
1461 --includedir=DIR C header files [PREFIX/include]
1462 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1465 --infodir=DIR info documentation [DATAROOTDIR/info]
1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1467 --mandir=DIR man documentation [DATAROOTDIR/man]
1468 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1469 --htmldir=DIR html documentation [DOCDIR]
1470 --dvidir=DIR dvi documentation [DOCDIR]
1471 --pdfdir=DIR pdf documentation [DOCDIR]
1472 --psdir=DIR ps documentation [DOCDIR]
1478 --program-prefix=PREFIX prepend PREFIX to installed program names
1479 --program-suffix=SUFFIX append SUFFIX to installed program names
1480 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1483 --build=BUILD configure for building on BUILD [guessed]
1484 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1488 if test -n "$ac_init_help"; then
1493 --disable-option-checking ignore unrecognized --enable/--with options
1494 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1495 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1496 --enable-maintainer-mode enable make rules and dependencies not useful
1497 (and sometimes confusing) to the casual installer
1498 --disable-dependency-tracking speeds up one-time build
1499 --enable-dependency-tracking do not reject slow dependency extractors
1500 --enable-strict-warn Enable strict compilation warnings
1501 --disable-translator Disable the SH4 translator (Enabled by default)
1502 --disable-optimized Disable compile-time optimizations (Enabled by
1504 --enable-shared Build drivers as shared libraries (Enabled if
1506 --enable-profiled Enable profiling build
1507 --enable-trace Enable generation of IO traces (warning: hurts
1509 --enable-watch Enable watchpoints in the debugger (warning: hurts
1511 --enable-sh4stats Enable statistics on executed sh4 instructions
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-osmesa Build with the osmesa GL library (software
1518 --with-gtk Build with the GTK UI. Default on X11 systems
1519 --with-esd Build with support for the ESounD audio system
1520 --with-pulse Build with support for the PulseAudio audio system
1521 --with-sdl Build with support for SDL audio
1523 Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1531 OBJC Objective C compiler command
1532 OBJCFLAGS Objective C compiler flags
1533 CCAS assembler compiler command (defaults to CC)
1534 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1536 PKG_CONFIG path to pkg-config utility
1538 C compiler flags for LIBPNG, overriding pkg-config
1539 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1540 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1541 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1542 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1543 GTK_LIBS linker flags for GTK, overriding pkg-config
1544 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1545 SDL_LIBS linker flags for SDL, overriding pkg-config
1547 C compiler flags for PULSE, overriding pkg-config
1548 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1550 C compiler flags for ESOUND, overriding pkg-config
1551 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1552 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1553 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1555 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1562 if test "$ac_init_help" = "recursive"; then
1563 # If there are subdirs, report their specific --help.
1564 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1565 test -d "$ac_dir" ||
1566 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1574 # A ".." for each directory in $ac_dir_suffix.
1575 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1576 case $ac_top_builddir_sub in
1577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 ac_abs_top_builddir=$ac_pwd
1582 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1583 # for backward compatibility:
1584 ac_top_builddir=$ac_top_build_prefix
1587 .) # We are building in place.
1589 ac_top_srcdir=$ac_top_builddir_sub
1590 ac_abs_top_srcdir=$ac_pwd ;;
1591 [\\/]* | ?:[\\/]* ) # Absolute name.
1592 ac_srcdir=$srcdir$ac_dir_suffix;
1593 ac_top_srcdir=$srcdir
1594 ac_abs_top_srcdir=$srcdir ;;
1596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1597 ac_top_srcdir=$ac_top_build_prefix$srcdir
1598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602 cd "$ac_dir" || { ac_status=$?; continue; }
1603 # Check for guested configure.
1604 if test -f "$ac_srcdir/configure.gnu"; then
1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607 elif test -f "$ac_srcdir/configure"; then
1609 $SHELL "$ac_srcdir/configure" --help=recursive
1611 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613 cd "$ac_pwd" || { ac_status=$?; break; }
1617 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then
1621 generated by GNU Autoconf 2.63
1623 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1624 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1630 cat >config.log <<_ACEOF
1631 This file contains any messages produced by compilers while
1632 running configure, to aid debugging if configure makes a mistake.
1634 It was created by $as_me, which was
1635 generated by GNU Autoconf 2.63. Invocation command line was
1647 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1648 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1649 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1650 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1651 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1653 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1654 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1656 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1657 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1658 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1659 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1660 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1661 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1662 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 $as_echo "PATH: $as_dir"
1687 # Keep a trace of the command line.
1688 # Strip out --no-create and --no-recursion so they do not pile up.
1689 # Strip out --silent because we don't want to record it for future runs.
1690 # Also quote any args containing shell meta-characters.
1691 # Make two passes to allow for proper duplicate-argument suppression.
1695 ac_must_keep_next=false
1701 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1703 | -silent | --silent | --silen | --sile | --sil)
1706 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1709 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1711 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1712 if test $ac_must_keep_next = true; then
1713 ac_must_keep_next=false # Got value, back to normal.
1716 *=* | --config-cache | -C | -disable-* | --disable-* \
1717 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1718 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1719 | -with-* | --with-* | -without-* | --without-* | --x)
1720 case "$ac_configure_args0 " in
1721 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1724 -* ) ac_must_keep_next=true ;;
1727 ac_configure_args="$ac_configure_args '$ac_arg'"
1732 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1733 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1735 # When interrupted or exit'd, cleanup temporary files, and complete
1736 # config.log. We remove comments because anyway the quotes in there
1737 # would cause problems or look ugly.
1738 # WARNING: Use '\'' to represent an apostrophe within the trap.
1739 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1740 trap 'exit_status=$?
1741 # Save into config.log some information that might help in debugging.
1746 ## ---------------- ##
1747 ## Cache variables. ##
1748 ## ---------------- ##
1751 # The following way of writing the cache mishandles newlines in values,
1753 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1754 eval ac_val=\$$ac_var
1758 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1759 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1762 _ | IFS | as_nl) ;; #(
1763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1764 *) $as_unset $ac_var ;;
1769 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1770 *${as_nl}ac_space=\ *)
1772 "s/'\''/'\''\\\\'\'''\''/g;
1773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1784 ## ----------------- ##
1785 ## Output variables. ##
1786 ## ----------------- ##
1789 for ac_var in $ac_subst_vars
1791 eval ac_val=\$$ac_var
1793 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1795 $as_echo "$ac_var='\''$ac_val'\''"
1799 if test -n "$ac_subst_files"; then
1801 ## ------------------- ##
1802 ## File substitutions. ##
1803 ## ------------------- ##
1806 for ac_var in $ac_subst_files
1808 eval ac_val=\$$ac_var
1810 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812 $as_echo "$ac_var='\''$ac_val'\''"
1817 if test -s confdefs.h; then
1827 test "$ac_signal" != 0 &&
1828 $as_echo "$as_me: caught signal $ac_signal"
1829 $as_echo "$as_me: exit $exit_status"
1831 rm -f core *.core core.conftest.* &&
1832 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1835 for ac_signal in 1 2 13 15; do
1836 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1840 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1841 rm -f -r conftest* confdefs.h
1843 # Predefined preprocessor variables.
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_NAME "$PACKAGE_NAME"
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_STRING "$PACKAGE_STRING"
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1870 # Let the site file select an alternate cache file if it wants to.
1871 # Prefer an explicitly selected file to automatically selected ones.
1874 if test -n "$CONFIG_SITE"; then
1875 ac_site_file1=$CONFIG_SITE
1876 elif test "x$prefix" != xNONE; then
1877 ac_site_file1=$prefix/share/config.site
1878 ac_site_file2=$prefix/etc/config.site
1880 ac_site_file1=$ac_default_prefix/share/config.site
1881 ac_site_file2=$ac_default_prefix/etc/config.site
1883 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1885 test "x$ac_site_file" = xNONE && continue
1886 if test -r "$ac_site_file"; then
1887 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1888 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1889 sed 's/^/| /' "$ac_site_file" >&5
1894 if test -r "$cache_file"; then
1895 # Some versions of bash will fail to source /dev/null (special
1896 # files actually), so we avoid doing that.
1897 if test -f "$cache_file"; then
1898 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1899 $as_echo "$as_me: loading cache $cache_file" >&6;}
1901 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1902 *) . "./$cache_file";;
1906 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1907 $as_echo "$as_me: creating cache $cache_file" >&6;}
1911 # Check that the precious variables saved in the cache have kept the same
1913 ac_cache_corrupted=false
1914 for ac_var in $ac_precious_vars; do
1915 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1916 eval ac_new_set=\$ac_env_${ac_var}_set
1917 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1918 eval ac_new_val=\$ac_env_${ac_var}_value
1919 case $ac_old_set,$ac_new_set in
1921 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1922 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1923 ac_cache_corrupted=: ;;
1925 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1926 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1927 ac_cache_corrupted=: ;;
1930 if test "x$ac_old_val" != "x$ac_new_val"; then
1931 # differences in whitespace do not lead to failure.
1932 ac_old_val_w=`echo x $ac_old_val`
1933 ac_new_val_w=`echo x $ac_new_val`
1934 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1935 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1936 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1937 ac_cache_corrupted=:
1939 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1940 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1941 eval $ac_var=\$ac_old_val
1943 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1944 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1945 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1946 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1949 # Pass precious variables to config.status.
1950 if test "$ac_new_set" = set; then
1952 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1953 *) ac_arg=$ac_var=$ac_new_val ;;
1955 case " $ac_configure_args " in
1956 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1957 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1961 if $ac_cache_corrupted; then
1962 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1964 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1965 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1966 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1967 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1968 { (exit 1); exit 1; }; }
1988 ac_cpp='$CPP $CPPFLAGS'
1989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994 am__api_version="1.9"
1996 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1997 if test -f "$ac_dir/install-sh"; then
1999 ac_install_sh="$ac_aux_dir/install-sh -c"
2001 elif test -f "$ac_dir/install.sh"; then
2003 ac_install_sh="$ac_aux_dir/install.sh -c"
2005 elif test -f "$ac_dir/shtool"; then
2007 ac_install_sh="$ac_aux_dir/shtool install -c"
2011 if test -z "$ac_aux_dir"; then
2012 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2013 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2014 { (exit 1); exit 1; }; }
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2026 # Find a good install program. We prefer a C program (faster),
2027 # so one script is as good as another. But avoid the broken or
2028 # incompatible versions:
2029 # SysV /etc/install, /usr/sbin/install
2030 # SunOS /usr/etc/install
2031 # IRIX /sbin/install
2033 # AmigaOS /C/install, which installs bootblocks on floppy discs
2034 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2035 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2036 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2037 # OS/2's system install, which has a completely different semantic
2038 # ./install, which can be erroneously created by make from ./install.sh.
2039 # Reject install programs that cannot install multiple files.
2040 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2041 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2042 if test -z "$INSTALL"; then
2043 if test "${ac_cv_path_install+set}" = set; then
2044 $as_echo_n "(cached) " >&6
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir=.
2051 # Account for people who put trailing slashes in PATH elements.
2053 ./ | .// | /cC/* | \
2054 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2055 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2058 # OSF1 and SCO ODT 3.0 have their own names for install.
2059 # Don't use installbsd from OSF since it installs stuff as root
2061 for ac_prog in ginstall scoinst install; do
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2064 if test $ac_prog = install &&
2065 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2066 # AIX install. It has an incompatible calling convention.
2068 elif test $ac_prog = install &&
2069 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2070 # program-specific install script used by HP pwplus--don't use.
2073 rm -rf conftest.one conftest.two conftest.dir
2074 echo one > conftest.one
2075 echo two > conftest.two
2077 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2078 test -s conftest.one && test -s conftest.two &&
2079 test -s conftest.dir/conftest.one &&
2080 test -s conftest.dir/conftest.two
2082 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2095 rm -rf conftest.one conftest.two conftest.dir
2098 if test "${ac_cv_path_install+set}" = set; then
2099 INSTALL=$ac_cv_path_install
2101 # As a last resort, use the slow shell script. Don't cache a
2102 # value for INSTALL within a source directory, because that will
2103 # break other packages using the cache if that directory is
2104 # removed, or if the value is a relative name.
2105 INSTALL=$ac_install_sh
2108 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2109 $as_echo "$INSTALL" >&6; }
2111 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2112 # It thinks the first close brace ends the variable substitution.
2113 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2115 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2117 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2119 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2120 $as_echo_n "checking whether build environment is sane... " >&6; }
2123 echo timestamp > conftest.file
2124 # Do `set' in a subshell so we don't clobber the current shell's
2125 # arguments. Must try -L first in case configure is actually a
2126 # symlink; some systems play weird games with the mod time of symlinks
2127 # (eg FreeBSD returns the mod time of the symlink's containing
2130 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2131 if test "$*" = "X"; then
2133 set X `ls -t $srcdir/configure conftest.file`
2136 if test "$*" != "X $srcdir/configure conftest.file" \
2137 && test "$*" != "X conftest.file $srcdir/configure"; then
2139 # If neither matched, then we have a broken ls. This can happen
2140 # if, for instance, CONFIG_SHELL is bash and it inherits a
2141 # broken ls alias from the environment. This has actually
2142 # happened. Such a system could not be considered "sane".
2143 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2144 alias in your environment" >&5
2145 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2146 alias in your environment" >&2;}
2147 { (exit 1); exit 1; }; }
2150 test "$2" = conftest.file
2156 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2157 Check your system clock" >&5
2158 $as_echo "$as_me: error: newly created file is older than distributed files!
2159 Check your system clock" >&2;}
2160 { (exit 1); exit 1; }; }
2162 { $as_echo "$as_me:$LINENO: result: yes" >&5
2163 $as_echo "yes" >&6; }
2164 test "$program_prefix" != NONE &&
2165 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2166 # Use a double $ so make ignores it.
2167 test "$program_suffix" != NONE &&
2168 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2169 # Double any \ or $.
2170 # By default was `s,x,x', remove it if useless.
2171 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2172 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2174 # expand $ac_aux_dir to an absolute path
2175 am_aux_dir=`cd $ac_aux_dir && pwd`
2177 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2178 # Use eval to expand $SHELL
2179 if eval "$MISSING --run true"; then
2180 am_missing_run="$MISSING --run "
2183 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2184 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2187 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2188 # We used to keeping the `.' as first argument, in order to
2189 # allow $(mkdir_p) to be used without argument. As in
2190 # $(mkdir_p) $(somedir)
2191 # where $(somedir) is conditionally defined. However this is wrong
2193 # 1. if the package is installed by a user who cannot write `.'
2194 # make install will fail,
2195 # 2. the above comment should most certainly read
2196 # $(mkdir_p) $(DESTDIR)$(somedir)
2197 # so it does not work when $(somedir) is undefined and
2198 # $(DESTDIR) is not.
2199 # To support the latter case, we have to write
2200 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2201 # so the `.' trick is pointless.
2202 mkdir_p='mkdir -p --'
2204 # On NextStep and OpenStep, the `mkdir' command does not
2205 # recognize any option. It will interpret all options as
2206 # directories to create, and then abort because `.' already
2208 for d in ./-p ./--version;
2210 test -d $d && rmdir $d
2212 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2213 if test -f "$ac_aux_dir/mkinstalldirs"; then
2214 mkdir_p='$(mkinstalldirs)'
2216 mkdir_p='$(install_sh) -d'
2220 for ac_prog in gawk mawk nawk awk
2222 # Extract the first word of "$ac_prog", so it can be a program name with args.
2223 set dummy $ac_prog; ac_word=$2
2224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 $as_echo_n "checking for $ac_word... " >&6; }
2226 if test "${ac_cv_prog_AWK+set}" = set; then
2227 $as_echo_n "(cached) " >&6
2229 if test -n "$AWK"; then
2230 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 test -z "$as_dir" && as_dir=.
2237 for ac_exec_ext in '' $ac_executable_extensions; do
2238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2239 ac_cv_prog_AWK="$ac_prog"
2240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 if test -n "$AWK"; then
2251 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2252 $as_echo "$AWK" >&6; }
2254 { $as_echo "$as_me:$LINENO: result: no" >&5
2255 $as_echo "no" >&6; }
2259 test -n "$AWK" && break
2262 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2263 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2265 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2266 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2267 $as_echo_n "(cached) " >&6
2269 cat >conftest.make <<\_ACEOF
2272 @echo '@@@%%%=$(MAKE)=@@@%%%'
2274 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2275 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2277 eval ac_cv_prog_make_${ac_make}_set=yes;;
2279 eval ac_cv_prog_make_${ac_make}_set=no;;
2283 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2284 { $as_echo "$as_me:$LINENO: result: yes" >&5
2285 $as_echo "yes" >&6; }
2288 { $as_echo "$as_me:$LINENO: result: no" >&5
2289 $as_echo "no" >&6; }
2290 SET_MAKE="MAKE=${MAKE-make}"
2293 rm -rf .tst 2>/dev/null
2294 mkdir .tst 2>/dev/null
2295 if test -d .tst; then
2300 rmdir .tst 2>/dev/null
2302 # test to see if srcdir already configured
2303 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2304 test -f $srcdir/config.status; then
2305 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2306 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2307 { (exit 1); exit 1; }; }
2310 # test whether we have cygpath
2311 if test -z "$CYGPATH_W"; then
2312 if (cygpath --version) >/dev/null 2>/dev/null; then
2313 CYGPATH_W='cygpath -w'
2320 # Define the identity of the package.
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE "$PACKAGE"
2330 cat >>confdefs.h <<_ACEOF
2331 #define VERSION "$VERSION"
2334 # Some tools Automake needs.
2336 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2339 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2342 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2345 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2348 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2350 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2352 # Installed binaries are usually stripped using `strip' when the user
2353 # run `make install-strip'. However `strip' might not be the right
2354 # tool to use in cross-compilation environments, therefore Automake
2355 # will honor the `STRIP' environment variable to overrule this program.
2356 if test "$cross_compiling" != no; then
2357 if test -n "$ac_tool_prefix"; then
2358 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2359 set dummy ${ac_tool_prefix}strip; ac_word=$2
2360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 $as_echo_n "checking for $ac_word... " >&6; }
2362 if test "${ac_cv_prog_STRIP+set}" = set; then
2363 $as_echo_n "(cached) " >&6
2365 if test -n "$STRIP"; then
2366 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 STRIP=$ac_cv_prog_STRIP
2386 if test -n "$STRIP"; then
2387 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2388 $as_echo "$STRIP" >&6; }
2390 { $as_echo "$as_me:$LINENO: result: no" >&5
2391 $as_echo "no" >&6; }
2396 if test -z "$ac_cv_prog_STRIP"; then
2398 # Extract the first word of "strip", so it can be a program name with args.
2399 set dummy strip; ac_word=$2
2400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 $as_echo_n "checking for $ac_word... " >&6; }
2402 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2403 $as_echo_n "(cached) " >&6
2405 if test -n "$ac_ct_STRIP"; then
2406 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_ac_ct_STRIP="strip"
2416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2426 if test -n "$ac_ct_STRIP"; then
2427 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2428 $as_echo "$ac_ct_STRIP" >&6; }
2430 { $as_echo "$as_me:$LINENO: result: no" >&5
2431 $as_echo "no" >&6; }
2434 if test "x$ac_ct_STRIP" = x; then
2437 case $cross_compiling:$ac_tool_warned in
2439 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2441 ac_tool_warned=yes ;;
2446 STRIP="$ac_cv_prog_STRIP"
2450 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2452 # We need awk for the "check" target. The system "awk" is bad on
2454 # Always define AMTAR for backward compatibility.
2456 AMTAR=${AMTAR-"${am_missing_run}tar"}
2458 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2464 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2465 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2466 # Check whether --enable-maintainer-mode was given.
2467 if test "${enable_maintainer_mode+set}" = set; then
2468 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2470 USE_MAINTAINER_MODE=no
2473 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2474 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2477 if test $USE_MAINTAINER_MODE = yes; then
2478 MAINTAINER_MODE_TRUE=
2479 MAINTAINER_MODE_FALSE='#'
2481 MAINTAINER_MODE_TRUE='#'
2482 MAINTAINER_MODE_FALSE=
2485 MAINT=$MAINTAINER_MODE_TRUE
2488 ac_config_headers="$ac_config_headers config.h"
2491 DEPDIR="${am__leading_dot}deps"
2493 ac_config_commands="$ac_config_commands depfiles"
2496 am_make=${MAKE-make}
2497 cat > confinc << 'END'
2502 # If we don't find an include directive, just comment out the code.
2503 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2504 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2508 # First try GNU make style include.
2509 echo "include confinc" > confmf
2510 # We grep out `Entering directory' and `Leaving directory'
2511 # messages which can occur if `w' ends up in MAKEFLAGS.
2512 # In particular we don't look at `^make:' because GNU make might
2513 # be invoked under some other name (usually "gmake"), in which
2514 # case it prints its new name instead of `make'.
2515 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2520 # Now try BSD make style include.
2521 if test "$am__include" = "#"; then
2522 echo '.include "confinc"' > confmf
2523 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2524 am__include=.include
2531 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2532 $as_echo "$_am_result" >&6; }
2533 rm -f confinc confmf
2535 # Check whether --enable-dependency-tracking was given.
2536 if test "${enable_dependency_tracking+set}" = set; then
2537 enableval=$enable_dependency_tracking;
2540 if test "x$enable_dependency_tracking" != xno; then
2541 am_depcomp="$ac_aux_dir/depcomp"
2546 if test "x$enable_dependency_tracking" != xno; then
2557 ac_cpp='$CPP $CPPFLAGS'
2558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561 if test -n "$ac_tool_prefix"; then
2562 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2563 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if test "${ac_cv_prog_CC+set}" = set; then
2567 $as_echo_n "(cached) " >&6
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 if test -n "$CC"; then
2591 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2592 $as_echo "$CC" >&6; }
2594 { $as_echo "$as_me:$LINENO: result: no" >&5
2595 $as_echo "no" >&6; }
2600 if test -z "$ac_cv_prog_CC"; then
2602 # Extract the first word of "gcc", so it can be a program name with args.
2603 set dummy gcc; ac_word=$2
2604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2607 $as_echo_n "(cached) " >&6
2609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_ac_ct_CC="gcc"
2620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630 if test -n "$ac_ct_CC"; then
2631 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632 $as_echo "$ac_ct_CC" >&6; }
2634 { $as_echo "$as_me:$LINENO: result: no" >&5
2635 $as_echo "no" >&6; }
2638 if test "x$ac_ct_CC" = x; then
2641 case $cross_compiling:$ac_tool_warned in
2643 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2645 ac_tool_warned=yes ;;
2653 if test -z "$CC"; then
2654 if test -n "$ac_tool_prefix"; then
2655 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2656 set dummy ${ac_tool_prefix}cc; ac_word=$2
2657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if test "${ac_cv_prog_CC+set}" = set; then
2660 $as_echo_n "(cached) " >&6
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_CC="${ac_tool_prefix}cc"
2673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 if test -n "$CC"; then
2684 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2685 $as_echo "$CC" >&6; }
2687 { $as_echo "$as_me:$LINENO: result: no" >&5
2688 $as_echo "no" >&6; }
2694 if test -z "$CC"; then
2695 # Extract the first word of "cc", so it can be a program name with args.
2696 set dummy cc; ac_word=$2
2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_CC+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2714 ac_prog_rejected=yes
2718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 if test $ac_prog_rejected = yes; then
2726 # We found a bogon in the path, so make sure we never use it.
2727 set dummy $ac_cv_prog_CC
2729 if test $# != 0; then
2730 # We chose a different compiler from the bogus one.
2731 # However, it has the same basename, so the bogon will be chosen
2732 # first if we set CC to just the basename; use the full file name.
2734 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2740 if test -n "$CC"; then
2741 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2744 { $as_echo "$as_me:$LINENO: result: no" >&5
2745 $as_echo "no" >&6; }
2750 if test -z "$CC"; then
2751 if test -n "$ac_tool_prefix"; then
2752 for ac_prog in cl.exe
2754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if test "${ac_cv_prog_CC+set}" = set; then
2759 $as_echo_n "(cached) " >&6
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 if test -n "$CC"; then
2783 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2784 $as_echo "$CC" >&6; }
2786 { $as_echo "$as_me:$LINENO: result: no" >&5
2787 $as_echo "no" >&6; }
2791 test -n "$CC" && break
2794 if test -z "$CC"; then
2796 for ac_prog in cl.exe
2798 # Extract the first word of "$ac_prog", so it can be a program name with args.
2799 set dummy $ac_prog; ac_word=$2
2800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2803 $as_echo_n "(cached) " >&6
2805 if test -n "$ac_ct_CC"; then
2806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_ac_ct_CC="$ac_prog"
2816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826 if test -n "$ac_ct_CC"; then
2827 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2828 $as_echo "$ac_ct_CC" >&6; }
2830 { $as_echo "$as_me:$LINENO: result: no" >&5
2831 $as_echo "no" >&6; }
2835 test -n "$ac_ct_CC" && break
2838 if test "x$ac_ct_CC" = x; then
2841 case $cross_compiling:$ac_tool_warned in
2843 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2845 ac_tool_warned=yes ;;
2854 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2856 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2857 See \`config.log' for more details." >&5
2858 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2859 See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }; }
2862 # Provide some information about the compiler.
2863 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2866 { (ac_try="$ac_compiler --version >&5"
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2872 $as_echo "$ac_try_echo") >&5
2873 (eval "$ac_compiler --version >&5") 2>&5
2875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }
2877 { (ac_try="$ac_compiler -v >&5"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883 $as_echo "$ac_try_echo") >&5
2884 (eval "$ac_compiler -v >&5") 2>&5
2886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }
2888 { (ac_try="$ac_compiler -V >&5"
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2894 $as_echo "$ac_try_echo") >&5
2895 (eval "$ac_compiler -V >&5") 2>&5
2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2900 cat >conftest.$ac_ext <<_ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2915 ac_clean_files_save=$ac_clean_files
2916 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2917 # Try to create an executable without -o first, disregard a.out.
2918 # It will help us diagnose broken compilers, and finding out an intuition
2920 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2921 $as_echo_n "checking for C compiler default output file name... " >&6; }
2922 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2924 # The possible output files:
2925 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2928 for ac_file in $ac_files
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2932 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2937 if { (ac_try="$ac_link_default"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2943 $as_echo "$ac_try_echo") >&5
2944 (eval "$ac_link_default") 2>&5
2946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; then
2948 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2949 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2950 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2951 # so that the user can short-circuit this test for compilers unknown to
2953 for ac_file in $ac_files ''
2955 test -f "$ac_file" || continue
2957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2960 # We found the default executable, but exeext='' is most
2964 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2966 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2968 # We set ac_cv_exeext here because the later test for it is not
2969 # safe: cross compilers may not add the suffix if given an `-o'
2970 # argument, so we may need to know it at that point already.
2971 # Even if this section looks crufty: it has the advantage of
2978 test "$ac_cv_exeext" = no && ac_cv_exeext=
2984 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2985 $as_echo "$ac_file" >&6; }
2986 if test -z "$ac_file"; then
2987 $as_echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2993 See \`config.log' for more details." >&5
2994 $as_echo "$as_me: error: C compiler cannot create executables
2995 See \`config.log' for more details." >&2;}
2996 { (exit 77); exit 77; }; }; }
2999 ac_exeext=$ac_cv_exeext
3001 # Check that the compiler produces executables we can run. If not, either
3002 # the compiler is broken, or we cross compile.
3003 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3004 $as_echo_n "checking whether the C compiler works... " >&6; }
3005 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3006 # If not cross compiling, check that we can run a simple program.
3007 if test "$cross_compiling" != yes; then
3008 if { ac_try='./$ac_file'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3014 $as_echo "$ac_try_echo") >&5
3015 (eval "$ac_try") 2>&5
3017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3021 if test "$cross_compiling" = maybe; then
3024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3027 If you meant to cross compile, use \`--host'.
3028 See \`config.log' for more details." >&5
3029 $as_echo "$as_me: error: cannot run C compiled programs.
3030 If you meant to cross compile, use \`--host'.
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }; }
3036 { $as_echo "$as_me:$LINENO: result: yes" >&5
3037 $as_echo "yes" >&6; }
3039 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3040 ac_clean_files=$ac_clean_files_save
3041 # Check that the compiler produces executables we can run. If not, either
3042 # the compiler is broken, or we cross compile.
3043 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3044 $as_echo_n "checking whether we are cross compiling... " >&6; }
3045 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3046 $as_echo "$cross_compiling" >&6; }
3048 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3049 $as_echo_n "checking for suffix of executables... " >&6; }
3050 if { (ac_try="$ac_link"
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3056 $as_echo "$ac_try_echo") >&5
3057 (eval "$ac_link") 2>&5
3059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; then
3061 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3062 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3063 # work properly (i.e., refer to `conftest.exe'), while it won't with
3065 for ac_file in conftest.exe conftest conftest.*; do
3066 test -f "$ac_file" || continue
3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3075 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3078 See \`config.log' for more details." >&5
3079 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3080 See \`config.log' for more details." >&2;}
3081 { (exit 1); exit 1; }; }; }
3084 rm -f conftest$ac_cv_exeext
3085 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3086 $as_echo "$ac_cv_exeext" >&6; }
3088 rm -f conftest.$ac_ext
3089 EXEEXT=$ac_cv_exeext
3091 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3092 $as_echo_n "checking for suffix of object files... " >&6; }
3093 if test "${ac_cv_objext+set}" = set; then
3094 $as_echo_n "(cached) " >&6
3096 cat >conftest.$ac_ext <<_ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3111 rm -f conftest.o conftest.obj
3112 if { (ac_try="$ac_compile"
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3118 $as_echo "$ac_try_echo") >&5
3119 (eval "$ac_compile") 2>&5
3121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; then
3123 for ac_file in conftest.o conftest.obj conftest.*; do
3124 test -f "$ac_file" || continue;
3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3127 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3132 $as_echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3135 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3138 See \`config.log' for more details." >&5
3139 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3140 See \`config.log' for more details." >&2;}
3141 { (exit 1); exit 1; }; }; }
3144 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3146 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3147 $as_echo "$ac_cv_objext" >&6; }
3148 OBJEXT=$ac_cv_objext
3150 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3151 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3152 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3153 $as_echo_n "(cached) " >&6
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3180 $as_echo "$ac_try_echo") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3183 grep -v '^ *+' conftest.er1 >conftest.err
3185 cat conftest.err >&5
3186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && {
3188 test -z "$ac_c_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest.$ac_objext; then
3193 $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3203 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3204 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3205 if test $ac_compiler_gnu = yes; then
3210 ac_test_CFLAGS=${CFLAGS+set}
3211 ac_save_CFLAGS=$CFLAGS
3212 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3213 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3214 if test "${ac_cv_prog_cc_g+set}" = set; then
3215 $as_echo_n "(cached) " >&6
3217 ac_save_c_werror_flag=$ac_c_werror_flag
3218 ac_c_werror_flag=yes
3221 cat >conftest.$ac_ext <<_ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3236 rm -f conftest.$ac_objext
3237 if { (ac_try="$ac_compile"
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3243 $as_echo "$ac_try_echo") >&5
3244 (eval "$ac_compile") 2>conftest.er1
3246 grep -v '^ *+' conftest.er1 >conftest.err
3248 cat conftest.err >&5
3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } && {
3251 test -z "$ac_c_werror_flag" ||
3252 test ! -s conftest.err
3253 } && test -s conftest.$ac_objext; then
3256 $as_echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3260 cat >conftest.$ac_ext <<_ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3275 rm -f conftest.$ac_objext
3276 if { (ac_try="$ac_compile"
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283 (eval "$ac_compile") 2>conftest.er1
3285 grep -v '^ *+' conftest.er1 >conftest.err
3287 cat conftest.err >&5
3288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } && {
3290 test -z "$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3292 } && test -s conftest.$ac_objext; then
3295 $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 ac_c_werror_flag=$ac_save_c_werror_flag
3300 cat >conftest.$ac_ext <<_ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3322 $as_echo "$ac_try_echo") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3325 grep -v '^ *+' conftest.er1 >conftest.err
3327 cat conftest.err >&5
3328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } && {
3330 test -z "$ac_c_werror_flag" ||
3331 test ! -s conftest.err
3332 } && test -s conftest.$ac_objext; then
3335 $as_echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 ac_c_werror_flag=$ac_save_c_werror_flag
3350 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3351 $as_echo "$ac_cv_prog_cc_g" >&6; }
3352 if test "$ac_test_CFLAGS" = set; then
3353 CFLAGS=$ac_save_CFLAGS
3354 elif test $ac_cv_prog_cc_g = yes; then
3355 if test "$GCC" = yes; then
3361 if test "$GCC" = yes; then
3367 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3368 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3369 if test "${ac_cv_prog_cc_c89+set}" = set; then
3370 $as_echo_n "(cached) " >&6
3372 ac_cv_prog_cc_c89=no
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3382 #include <sys/types.h>
3383 #include <sys/stat.h>
3384 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3385 struct buf { int x; };
3386 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3387 static char *e (p, i)
3393 static char *f (char * (*g) (char **, int), char **p, ...)
3398 s = g (p, va_arg (v,int));
3403 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3404 function prototypes and stuff, but not '\xHH' hex character constants.
3405 These don't provoke an error unfortunately, instead are silently treated
3406 as 'x'. The following induces an error, until -std is added to get
3407 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3408 array size at least. It's necessary to write '\x00'==0 to get something
3409 that's true only with -std. */
3410 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3412 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3413 inside strings and character constants. */
3415 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3417 int test (int i, double x);
3418 struct s1 {int (*f) (int a);};
3419 struct s2 {int (*f) (double a);};
3420 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3426 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3431 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3432 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3434 CC="$ac_save_CC $ac_arg"
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3442 $as_echo "$ac_try_echo") >&5
3443 (eval "$ac_compile") 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } && {
3450 test -z "$ac_c_werror_flag" ||
3451 test ! -s conftest.err
3452 } && test -s conftest.$ac_objext; then
3453 ac_cv_prog_cc_c89=$ac_arg
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3461 rm -f core conftest.err conftest.$ac_objext
3462 test "x$ac_cv_prog_cc_c89" != "xno" && break
3464 rm -f conftest.$ac_ext
3469 case "x$ac_cv_prog_cc_c89" in
3471 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3472 $as_echo "none needed" >&6; } ;;
3474 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3475 $as_echo "unsupported" >&6; } ;;
3477 CC="$CC $ac_cv_prog_cc_c89"
3478 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3479 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489 depcc="$CC" am_compiler_list=
3491 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3492 $as_echo_n "checking dependency style of $depcc... " >&6; }
3493 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3494 $as_echo_n "(cached) " >&6
3496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3497 # We make a subdir and do the tests there. Otherwise we can end up
3498 # making bogus files that we don't know about and never remove. For
3499 # instance it was reported that on HP-UX the gcc test will end up
3500 # making a dummy file named `D' -- because `-MD' means `put the output
3503 # Copy depcomp to subdir because otherwise we won't find it if we're
3504 # using a relative directory.
3505 cp "$am_depcomp" conftest.dir
3507 # We will build objects and dependencies in a subdirectory because
3508 # it helps to detect inapplicable dependency modes. For instance
3509 # both Tru64's cc and ICC support -MD to output dependencies as a
3510 # side effect of compilation, but ICC will put the dependencies in
3511 # the current directory while Tru64 will put them in the object
3515 am_cv_CC_dependencies_compiler_type=none
3516 if test "$am_compiler_list" = ""; then
3517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3519 for depmode in $am_compiler_list; do
3520 # Setup a source with many dependencies, because some compilers
3521 # like to wrap large dependency lists on column 80 (with \), and
3522 # we should not choose a depcomp mode which is confused by this.
3524 # We need to recreate these files for each test, as the compiler may
3525 # overwrite some of them when testing with obscure command lines.
3526 # This happens at least with the AIX C compiler.
3528 for i in 1 2 3 4 5 6; do
3529 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3530 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3531 # Solaris 8's {/usr,}/bin/sh.
3532 touch sub/conftst$i.h
3534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3538 # after this tag, mechanisms are not by side-effect, so they'll
3539 # only be used when explicitly requested
3540 if test "x$enable_dependency_tracking" = xyes; then
3548 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3549 # mode. It turns out that the SunPro C++ compiler does not properly
3550 # handle `-M -o', and we need to detect this.
3551 if depmode=$depmode \
3552 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3554 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3555 >/dev/null 2>conftest.err &&
3556 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3557 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3558 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3559 # icc doesn't choke on unknown options, it will just issue warnings
3560 # or remarks (even with -Werror). So we grep stderr for any message
3561 # that says an option was ignored or not supported.
3562 # When given -MP, icc 7.0 and 7.1 complain thusly:
3563 # icc: Command line warning: ignoring option '-M'; no argument required
3564 # The diagnosis changed in icc 8.0:
3565 # icc: Command line remark: option '-MP' not supported
3566 if (grep 'ignoring option' conftest.err ||
3567 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3568 am_cv_CC_dependencies_compiler_type=$depmode
3577 am_cv_CC_dependencies_compiler_type=none
3581 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3582 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3583 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3588 test "x$enable_dependency_tracking" != xno \
3589 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3591 am__fastdepCC_FALSE='#'
3593 am__fastdepCC_TRUE='#'
3594 am__fastdepCC_FALSE=
3600 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3601 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3602 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3603 $as_echo_n "(cached) " >&6
3605 ac_check_lib_save_LIBS=$LIBS
3606 LIBS="-lcposix $LIBS"
3607 cat >conftest.$ac_ext <<_ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3614 /* Override any GCC internal prototype to avoid an error.
3615 Use char because int might match the return type of a GCC
3616 builtin and then its argument prototype would still apply. */
3629 rm -f conftest.$ac_objext conftest$ac_exeext
3630 if { (ac_try="$ac_link"
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3636 $as_echo "$ac_try_echo") >&5
3637 (eval "$ac_link") 2>conftest.er1
3639 grep -v '^ *+' conftest.er1 >conftest.err
3641 cat conftest.err >&5
3642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } && {
3644 test -z "$ac_c_werror_flag" ||
3645 test ! -s conftest.err
3646 } && test -s conftest$ac_exeext && {
3647 test "$cross_compiling" = yes ||
3648 $as_test_x conftest$ac_exeext
3650 ac_cv_lib_cposix_strerror=yes
3652 $as_echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 ac_cv_lib_cposix_strerror=no
3658 rm -rf conftest.dSYM
3659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3660 conftest$ac_exeext conftest.$ac_ext
3661 LIBS=$ac_check_lib_save_LIBS
3663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3664 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3665 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
3666 LIBS="$LIBS -lcposix"
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 if test -n "$ac_tool_prefix"; then
3677 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3678 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if test "${ac_cv_prog_CC+set}" = set; then
3682 $as_echo_n "(cached) " >&6
3684 if test -n "$CC"; then
3685 ac_cv_prog_CC="$CC" # Let the user override the test.
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3694 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 if test -n "$CC"; then
3706 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3707 $as_echo "$CC" >&6; }
3709 { $as_echo "$as_me:$LINENO: result: no" >&5
3710 $as_echo "no" >&6; }
3715 if test -z "$ac_cv_prog_CC"; then
3717 # Extract the first word of "gcc", so it can be a program name with args.
3718 set dummy gcc; ac_word=$2
3719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3722 $as_echo_n "(cached) " >&6
3724 if test -n "$ac_ct_CC"; then
3725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734 ac_cv_prog_ac_ct_CC="gcc"
3735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3745 if test -n "$ac_ct_CC"; then
3746 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3747 $as_echo "$ac_ct_CC" >&6; }
3749 { $as_echo "$as_me:$LINENO: result: no" >&5
3750 $as_echo "no" >&6; }
3753 if test "x$ac_ct_CC" = x; then
3756 case $cross_compiling:$ac_tool_warned in
3758 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3760 ac_tool_warned=yes ;;
3768 if test -z "$CC"; then
3769 if test -n "$ac_tool_prefix"; then
3770 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3771 set dummy ${ac_tool_prefix}cc; ac_word=$2
3772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3773 $as_echo_n "checking for $ac_word... " >&6; }
3774 if test "${ac_cv_prog_CC+set}" = set; then
3775 $as_echo_n "(cached) " >&6
3777 if test -n "$CC"; then
3778 ac_cv_prog_CC="$CC" # Let the user override the test.
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787 ac_cv_prog_CC="${ac_tool_prefix}cc"
3788 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 if test -n "$CC"; then
3799 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3800 $as_echo "$CC" >&6; }
3802 { $as_echo "$as_me:$LINENO: result: no" >&5
3803 $as_echo "no" >&6; }
3809 if test -z "$CC"; then
3810 # Extract the first word of "cc", so it can be a program name with args.
3811 set dummy cc; ac_word=$2
3812 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if test "${ac_cv_prog_CC+set}" = set; then
3815 $as_echo_n "(cached) " >&6
3817 if test -n "$CC"; then
3818 ac_cv_prog_CC="$CC" # Let the user override the test.
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3829 ac_prog_rejected=yes
3833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 if test $ac_prog_rejected = yes; then
3841 # We found a bogon in the path, so make sure we never use it.
3842 set dummy $ac_cv_prog_CC
3844 if test $# != 0; then
3845 # We chose a different compiler from the bogus one.
3846 # However, it has the same basename, so the bogon will be chosen
3847 # first if we set CC to just the basename; use the full file name.
3849 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3855 if test -n "$CC"; then
3856 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3857 $as_echo "$CC" >&6; }
3859 { $as_echo "$as_me:$LINENO: result: no" >&5
3860 $as_echo "no" >&6; }
3865 if test -z "$CC"; then
3866 if test -n "$ac_tool_prefix"; then
3867 for ac_prog in cl.exe
3869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3871 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if test "${ac_cv_prog_CC+set}" = set; then
3874 $as_echo_n "(cached) " >&6
3876 if test -n "$CC"; then
3877 ac_cv_prog_CC="$CC" # Let the user override the test.
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3886 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3887 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 if test -n "$CC"; then
3898 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3899 $as_echo "$CC" >&6; }
3901 { $as_echo "$as_me:$LINENO: result: no" >&5
3902 $as_echo "no" >&6; }
3906 test -n "$CC" && break
3909 if test -z "$CC"; then
3911 for ac_prog in cl.exe
3913 # Extract the first word of "$ac_prog", so it can be a program name with args.
3914 set dummy $ac_prog; ac_word=$2
3915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3916 $as_echo_n "checking for $ac_word... " >&6; }
3917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3918 $as_echo_n "(cached) " >&6
3920 if test -n "$ac_ct_CC"; then
3921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3930 ac_cv_prog_ac_ct_CC="$ac_prog"
3931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3941 if test -n "$ac_ct_CC"; then
3942 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3943 $as_echo "$ac_ct_CC" >&6; }
3945 { $as_echo "$as_me:$LINENO: result: no" >&5
3946 $as_echo "no" >&6; }
3950 test -n "$ac_ct_CC" && break
3953 if test "x$ac_ct_CC" = x; then
3956 case $cross_compiling:$ac_tool_warned in
3958 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3960 ac_tool_warned=yes ;;
3969 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3972 See \`config.log' for more details." >&5
3973 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3974 See \`config.log' for more details." >&2;}
3975 { (exit 1); exit 1; }; }; }
3977 # Provide some information about the compiler.
3978 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3981 { (ac_try="$ac_compiler --version >&5"
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3987 $as_echo "$ac_try_echo") >&5
3988 (eval "$ac_compiler --version >&5") 2>&5
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }
3992 { (ac_try="$ac_compiler -v >&5"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3998 $as_echo "$ac_try_echo") >&5
3999 (eval "$ac_compiler -v >&5") 2>&5
4001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }
4003 { (ac_try="$ac_compiler -V >&5"
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4009 $as_echo "$ac_try_echo") >&5
4010 (eval "$ac_compiler -V >&5") 2>&5
4012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }
4015 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4016 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4018 $as_echo_n "(cached) " >&6
4020 cat >conftest.$ac_ext <<_ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4038 rm -f conftest.$ac_objext
4039 if { (ac_try="$ac_compile"
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4045 $as_echo "$ac_try_echo") >&5
4046 (eval "$ac_compile") 2>conftest.er1
4048 grep -v '^ *+' conftest.er1 >conftest.err
4050 cat conftest.err >&5
4051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } && {
4053 test -z "$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4055 } && test -s conftest.$ac_objext; then
4058 $as_echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4079 if test "${ac_cv_prog_cc_g+set}" = set; then
4080 $as_echo_n "(cached) " >&6
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4101 rm -f conftest.$ac_objext
4102 if { (ac_try="$ac_compile"
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4108 $as_echo "$ac_try_echo") >&5
4109 (eval "$ac_compile") 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } && {
4116 test -z "$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4118 } && test -s conftest.$ac_objext; then
4121 $as_echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4140 rm -f conftest.$ac_objext
4141 if { (ac_try="$ac_compile"
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4147 $as_echo "$ac_try_echo") >&5
4148 (eval "$ac_compile") 2>conftest.er1
4150 grep -v '^ *+' conftest.er1 >conftest.err
4152 cat conftest.err >&5
4153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && {
4155 test -z "$ac_c_werror_flag" ||
4156 test ! -s conftest.err
4157 } && test -s conftest.$ac_objext; then
4160 $as_echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 ac_c_werror_flag=$ac_save_c_werror_flag
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4180 rm -f conftest.$ac_objext
4181 if { (ac_try="$ac_compile"
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4187 $as_echo "$ac_try_echo") >&5
4188 (eval "$ac_compile") 2>conftest.er1
4190 grep -v '^ *+' conftest.er1 >conftest.err
4192 cat conftest.err >&5
4193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } && {
4195 test -z "$ac_c_werror_flag" ||
4196 test ! -s conftest.err
4197 } && test -s conftest.$ac_objext; then
4200 $as_echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 ac_c_werror_flag=$ac_save_c_werror_flag
4215 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4216 $as_echo "$ac_cv_prog_cc_g" >&6; }
4217 if test "$ac_test_CFLAGS" = set; then
4218 CFLAGS=$ac_save_CFLAGS
4219 elif test $ac_cv_prog_cc_g = yes; then
4220 if test "$GCC" = yes; then
4226 if test "$GCC" = yes; then
4232 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4233 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4234 if test "${ac_cv_prog_cc_c89+set}" = set; then
4235 $as_echo_n "(cached) " >&6
4237 ac_cv_prog_cc_c89=no
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4247 #include <sys/types.h>
4248 #include <sys/stat.h>
4249 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4250 struct buf { int x; };
4251 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4252 static char *e (p, i)
4258 static char *f (char * (*g) (char **, int), char **p, ...)
4263 s = g (p, va_arg (v,int));
4268 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4269 function prototypes and stuff, but not '\xHH' hex character constants.
4270 These don't provoke an error unfortunately, instead are silently treated
4271 as 'x'. The following induces an error, until -std is added to get
4272 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4273 array size at least. It's necessary to write '\x00'==0 to get something
4274 that's true only with -std. */
4275 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4277 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4278 inside strings and character constants. */
4280 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4282 int test (int i, double x);
4283 struct s1 {int (*f) (int a);};
4284 struct s2 {int (*f) (double a);};
4285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4291 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4296 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4297 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4299 CC="$ac_save_CC $ac_arg"
4300 rm -f conftest.$ac_objext
4301 if { (ac_try="$ac_compile"
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4307 $as_echo "$ac_try_echo") >&5
4308 (eval "$ac_compile") 2>conftest.er1
4310 grep -v '^ *+' conftest.er1 >conftest.err
4312 cat conftest.err >&5
4313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } && {
4315 test -z "$ac_c_werror_flag" ||
4316 test ! -s conftest.err
4317 } && test -s conftest.$ac_objext; then
4318 ac_cv_prog_cc_c89=$ac_arg
4320 $as_echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4326 rm -f core conftest.err conftest.$ac_objext
4327 test "x$ac_cv_prog_cc_c89" != "xno" && break
4329 rm -f conftest.$ac_ext
4334 case "x$ac_cv_prog_cc_c89" in
4336 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4337 $as_echo "none needed" >&6; } ;;
4339 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4340 $as_echo "unsupported" >&6; } ;;
4342 CC="$CC $ac_cv_prog_cc_c89"
4343 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4344 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4354 depcc="$CC" am_compiler_list=
4356 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4357 $as_echo_n "checking dependency style of $depcc... " >&6; }
4358 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4359 $as_echo_n "(cached) " >&6
4361 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4362 # We make a subdir and do the tests there. Otherwise we can end up
4363 # making bogus files that we don't know about and never remove. For
4364 # instance it was reported that on HP-UX the gcc test will end up
4365 # making a dummy file named `D' -- because `-MD' means `put the output
4368 # Copy depcomp to subdir because otherwise we won't find it if we're
4369 # using a relative directory.
4370 cp "$am_depcomp" conftest.dir
4372 # We will build objects and dependencies in a subdirectory because
4373 # it helps to detect inapplicable dependency modes. For instance
4374 # both Tru64's cc and ICC support -MD to output dependencies as a
4375 # side effect of compilation, but ICC will put the dependencies in
4376 # the current directory while Tru64 will put them in the object
4380 am_cv_CC_dependencies_compiler_type=none
4381 if test "$am_compiler_list" = ""; then
4382 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4384 for depmode in $am_compiler_list; do
4385 # Setup a source with many dependencies, because some compilers
4386 # like to wrap large dependency lists on column 80 (with \), and
4387 # we should not choose a depcomp mode which is confused by this.
4389 # We need to recreate these files for each test, as the compiler may
4390 # overwrite some of them when testing with obscure command lines.
4391 # This happens at least with the AIX C compiler.
4393 for i in 1 2 3 4 5 6; do
4394 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4395 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4396 # Solaris 8's {/usr,}/bin/sh.
4397 touch sub/conftst$i.h
4399 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4403 # after this tag, mechanisms are not by side-effect, so they'll
4404 # only be used when explicitly requested
4405 if test "x$enable_dependency_tracking" = xyes; then
4413 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4414 # mode. It turns out that the SunPro C++ compiler does not properly
4415 # handle `-M -o', and we need to detect this.
4416 if depmode=$depmode \
4417 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4418 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4419 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4420 >/dev/null 2>conftest.err &&
4421 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4422 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4423 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4424 # icc doesn't choke on unknown options, it will just issue warnings
4425 # or remarks (even with -Werror). So we grep stderr for any message
4426 # that says an option was ignored or not supported.
4427 # When given -MP, icc 7.0 and 7.1 complain thusly:
4428 # icc: Command line warning: ignoring option '-M'; no argument required
4429 # The diagnosis changed in icc 8.0:
4430 # icc: Command line remark: option '-MP' not supported
4431 if (grep 'ignoring option' conftest.err ||
4432 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4433 am_cv_CC_dependencies_compiler_type=$depmode
4442 am_cv_CC_dependencies_compiler_type=none
4446 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4447 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4448 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4453 test "x$enable_dependency_tracking" != xno \
4454 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4456 am__fastdepCC_FALSE='#'
4458 am__fastdepCC_TRUE='#'
4459 am__fastdepCC_FALSE=
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468 if test -n "$ac_tool_prefix"; then
4469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4470 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 $as_echo_n "checking for $ac_word... " >&6; }
4473 if test "${ac_cv_prog_CC+set}" = set; then
4474 $as_echo_n "(cached) " >&6
4476 if test -n "$CC"; then
4477 ac_cv_prog_CC="$CC" # Let the user override the test.
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4486 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 if test -n "$CC"; then
4498 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4499 $as_echo "$CC" >&6; }
4501 { $as_echo "$as_me:$LINENO: result: no" >&5
4502 $as_echo "no" >&6; }
4507 if test -z "$ac_cv_prog_CC"; then
4509 # Extract the first word of "gcc", so it can be a program name with args.
4510 set dummy gcc; ac_word=$2
4511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4514 $as_echo_n "(cached) " >&6
4516 if test -n "$ac_ct_CC"; then
4517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_prog_ac_ct_CC="gcc"
4527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4537 if test -n "$ac_ct_CC"; then
4538 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4539 $as_echo "$ac_ct_CC" >&6; }
4541 { $as_echo "$as_me:$LINENO: result: no" >&5
4542 $as_echo "no" >&6; }
4545 if test "x$ac_ct_CC" = x; then
4548 case $cross_compiling:$ac_tool_warned in
4550 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552 ac_tool_warned=yes ;;
4560 if test -z "$CC"; then
4561 if test -n "$ac_tool_prefix"; then
4562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4563 set dummy ${ac_tool_prefix}cc; ac_word=$2
4564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_CC+set}" = set; then
4567 $as_echo_n "(cached) " >&6
4569 if test -n "$CC"; then
4570 ac_cv_prog_CC="$CC" # Let the user override the test.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_CC="${ac_tool_prefix}cc"
4580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 if test -n "$CC"; then
4591 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4592 $as_echo "$CC" >&6; }
4594 { $as_echo "$as_me:$LINENO: result: no" >&5
4595 $as_echo "no" >&6; }
4601 if test -z "$CC"; then
4602 # Extract the first word of "cc", so it can be a program name with args.
4603 set dummy cc; ac_word=$2
4604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if test "${ac_cv_prog_CC+set}" = set; then
4607 $as_echo_n "(cached) " >&6
4609 if test -n "$CC"; then
4610 ac_cv_prog_CC="$CC" # Let the user override the test.
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4621 ac_prog_rejected=yes
4625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 if test $ac_prog_rejected = yes; then
4633 # We found a bogon in the path, so make sure we never use it.
4634 set dummy $ac_cv_prog_CC
4636 if test $# != 0; then
4637 # We chose a different compiler from the bogus one.
4638 # However, it has the same basename, so the bogon will be chosen
4639 # first if we set CC to just the basename; use the full file name.
4641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4647 if test -n "$CC"; then
4648 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4649 $as_echo "$CC" >&6; }
4651 { $as_echo "$as_me:$LINENO: result: no" >&5
4652 $as_echo "no" >&6; }
4657 if test -z "$CC"; then
4658 if test -n "$ac_tool_prefix"; then
4659 for ac_prog in cl.exe
4661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if test "${ac_cv_prog_CC+set}" = set; then
4666 $as_echo_n "(cached) " >&6
4668 if test -n "$CC"; then
4669 ac_cv_prog_CC="$CC" # Let the user override the test.
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 if test -n "$CC"; then
4690 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4691 $as_echo "$CC" >&6; }
4693 { $as_echo "$as_me:$LINENO: result: no" >&5
4694 $as_echo "no" >&6; }
4698 test -n "$CC" && break
4701 if test -z "$CC"; then
4703 for ac_prog in cl.exe
4705 # Extract the first word of "$ac_prog", so it can be a program name with args.
4706 set dummy $ac_prog; ac_word=$2
4707 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4710 $as_echo_n "(cached) " >&6
4712 if test -n "$ac_ct_CC"; then
4713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_ac_ct_CC="$ac_prog"
4723 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4733 if test -n "$ac_ct_CC"; then
4734 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4735 $as_echo "$ac_ct_CC" >&6; }
4737 { $as_echo "$as_me:$LINENO: result: no" >&5
4738 $as_echo "no" >&6; }
4742 test -n "$ac_ct_CC" && break
4745 if test "x$ac_ct_CC" = x; then
4748 case $cross_compiling:$ac_tool_warned in
4750 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4752 ac_tool_warned=yes ;;
4761 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4763 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4764 See \`config.log' for more details." >&5
4765 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4766 See \`config.log' for more details." >&2;}
4767 { (exit 1); exit 1; }; }; }
4769 # Provide some information about the compiler.
4770 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4773 { (ac_try="$ac_compiler --version >&5"
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4779 $as_echo "$ac_try_echo") >&5
4780 (eval "$ac_compiler --version >&5") 2>&5
4782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }
4784 { (ac_try="$ac_compiler -v >&5"
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4790 $as_echo "$ac_try_echo") >&5
4791 (eval "$ac_compiler -v >&5") 2>&5
4793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }
4795 { (ac_try="$ac_compiler -V >&5"
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4801 $as_echo "$ac_try_echo") >&5
4802 (eval "$ac_compiler -V >&5") 2>&5
4804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }
4807 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4808 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4809 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4810 $as_echo_n "(cached) " >&6
4812 cat >conftest.$ac_ext <<_ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4830 rm -f conftest.$ac_objext
4831 if { (ac_try="$ac_compile"
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4837 $as_echo "$ac_try_echo") >&5
4838 (eval "$ac_compile") 2>conftest.er1
4840 grep -v '^ *+' conftest.er1 >conftest.err
4842 cat conftest.err >&5
4843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } && {
4845 test -z "$ac_c_werror_flag" ||
4846 test ! -s conftest.err
4847 } && test -s conftest.$ac_objext; then
4850 $as_echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4860 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4861 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4862 if test $ac_compiler_gnu = yes; then
4867 ac_test_CFLAGS=${CFLAGS+set}
4868 ac_save_CFLAGS=$CFLAGS
4869 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4870 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4871 if test "${ac_cv_prog_cc_g+set}" = set; then
4872 $as_echo_n "(cached) " >&6
4874 ac_save_c_werror_flag=$ac_c_werror_flag
4875 ac_c_werror_flag=yes
4878 cat >conftest.$ac_ext <<_ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4893 rm -f conftest.$ac_objext
4894 if { (ac_try="$ac_compile"
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4900 $as_echo "$ac_try_echo") >&5
4901 (eval "$ac_compile") 2>conftest.er1
4903 grep -v '^ *+' conftest.er1 >conftest.err
4905 cat conftest.err >&5
4906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } && {
4908 test -z "$ac_c_werror_flag" ||
4909 test ! -s conftest.err
4910 } && test -s conftest.$ac_objext; then
4913 $as_echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4917 cat >conftest.$ac_ext <<_ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4932 rm -f conftest.$ac_objext
4933 if { (ac_try="$ac_compile"
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4939 $as_echo "$ac_try_echo") >&5
4940 (eval "$ac_compile") 2>conftest.er1
4942 grep -v '^ *+' conftest.er1 >conftest.err
4944 cat conftest.err >&5
4945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } && {
4947 test -z "$ac_c_werror_flag" ||
4948 test ! -s conftest.err
4949 } && test -s conftest.$ac_objext; then
4952 $as_echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4955 ac_c_werror_flag=$ac_save_c_werror_flag
4957 cat >conftest.$ac_ext <<_ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4972 rm -f conftest.$ac_objext
4973 if { (ac_try="$ac_compile"
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4979 $as_echo "$ac_try_echo") >&5
4980 (eval "$ac_compile") 2>conftest.er1
4982 grep -v '^ *+' conftest.er1 >conftest.err
4984 cat conftest.err >&5
4985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } && {
4987 test -z "$ac_c_werror_flag" ||
4988 test ! -s conftest.err
4989 } && test -s conftest.$ac_objext; then
4992 $as_echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 ac_c_werror_flag=$ac_save_c_werror_flag
5007 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5008 $as_echo "$ac_cv_prog_cc_g" >&6; }
5009 if test "$ac_test_CFLAGS" = set; then
5010 CFLAGS=$ac_save_CFLAGS
5011 elif test $ac_cv_prog_cc_g = yes; then
5012 if test "$GCC" = yes; then
5018 if test "$GCC" = yes; then
5024 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5025 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5026 if test "${ac_cv_prog_cc_c89+set}" = set; then
5027 $as_echo_n "(cached) " >&6
5029 ac_cv_prog_cc_c89=no
5031 cat >conftest.$ac_ext <<_ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5039 #include <sys/types.h>
5040 #include <sys/stat.h>
5041 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5042 struct buf { int x; };
5043 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5044 static char *e (p, i)
5050 static char *f (char * (*g) (char **, int), char **p, ...)
5055 s = g (p, va_arg (v,int));
5060 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5061 function prototypes and stuff, but not '\xHH' hex character constants.
5062 These don't provoke an error unfortunately, instead are silently treated
5063 as 'x'. The following induces an error, until -std is added to get
5064 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5065 array size at least. It's necessary to write '\x00'==0 to get something
5066 that's true only with -std. */
5067 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5069 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5070 inside strings and character constants. */
5072 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5074 int test (int i, double x);
5075 struct s1 {int (*f) (int a);};
5076 struct s2 {int (*f) (double a);};
5077 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5083 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5088 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5089 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5091 CC="$ac_save_CC $ac_arg"
5092 rm -f conftest.$ac_objext
5093 if { (ac_try="$ac_compile"
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5099 $as_echo "$ac_try_echo") >&5
5100 (eval "$ac_compile") 2>conftest.er1
5102 grep -v '^ *+' conftest.er1 >conftest.err
5104 cat conftest.err >&5
5105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } && {
5107 test -z "$ac_c_werror_flag" ||
5108 test ! -s conftest.err
5109 } && test -s conftest.$ac_objext; then
5110 ac_cv_prog_cc_c89=$ac_arg
5112 $as_echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5118 rm -f core conftest.err conftest.$ac_objext
5119 test "x$ac_cv_prog_cc_c89" != "xno" && break
5121 rm -f conftest.$ac_ext
5126 case "x$ac_cv_prog_cc_c89" in
5128 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5129 $as_echo "none needed" >&6; } ;;
5131 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5132 $as_echo "unsupported" >&6; } ;;
5134 CC="$CC $ac_cv_prog_cc_c89"
5135 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5136 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5141 ac_cpp='$CPP $CPPFLAGS'
5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146 depcc="$CC" am_compiler_list=
5148 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5149 $as_echo_n "checking dependency style of $depcc... " >&6; }
5150 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5151 $as_echo_n "(cached) " >&6
5153 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5154 # We make a subdir and do the tests there. Otherwise we can end up
5155 # making bogus files that we don't know about and never remove. For
5156 # instance it was reported that on HP-UX the gcc test will end up
5157 # making a dummy file named `D' -- because `-MD' means `put the output
5160 # Copy depcomp to subdir because otherwise we won't find it if we're
5161 # using a relative directory.
5162 cp "$am_depcomp" conftest.dir
5164 # We will build objects and dependencies in a subdirectory because
5165 # it helps to detect inapplicable dependency modes. For instance
5166 # both Tru64's cc and ICC support -MD to output dependencies as a
5167 # side effect of compilation, but ICC will put the dependencies in
5168 # the current directory while Tru64 will put them in the object
5172 am_cv_CC_dependencies_compiler_type=none
5173 if test "$am_compiler_list" = ""; then
5174 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5176 for depmode in $am_compiler_list; do
5177 # Setup a source with many dependencies, because some compilers
5178 # like to wrap large dependency lists on column 80 (with \), and
5179 # we should not choose a depcomp mode which is confused by this.
5181 # We need to recreate these files for each test, as the compiler may
5182 # overwrite some of them when testing with obscure command lines.
5183 # This happens at least with the AIX C compiler.
5185 for i in 1 2 3 4 5 6; do
5186 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5187 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5188 # Solaris 8's {/usr,}/bin/sh.
5189 touch sub/conftst$i.h
5191 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5195 # after this tag, mechanisms are not by side-effect, so they'll
5196 # only be used when explicitly requested
5197 if test "x$enable_dependency_tracking" = xyes; then
5205 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5206 # mode. It turns out that the SunPro C++ compiler does not properly
5207 # handle `-M -o', and we need to detect this.
5208 if depmode=$depmode \
5209 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5210 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5211 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5212 >/dev/null 2>conftest.err &&
5213 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5214 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5216 # icc doesn't choke on unknown options, it will just issue warnings
5217 # or remarks (even with -Werror). So we grep stderr for any message
5218 # that says an option was ignored or not supported.
5219 # When given -MP, icc 7.0 and 7.1 complain thusly:
5220 # icc: Command line warning: ignoring option '-M'; no argument required
5221 # The diagnosis changed in icc 8.0:
5222 # icc: Command line remark: option '-MP' not supported
5223 if (grep 'ignoring option' conftest.err ||
5224 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5225 am_cv_CC_dependencies_compiler_type=$depmode
5234 am_cv_CC_dependencies_compiler_type=none
5238 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5239 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5240 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5245 test "x$enable_dependency_tracking" != xno \
5246 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5248 am__fastdepCC_FALSE='#'
5250 am__fastdepCC_TRUE='#'
5251 am__fastdepCC_FALSE=
5256 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5259 ac_cpp='$OBJCPP $CPPFLAGS'
5260 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5263 if test -n "$ac_tool_prefix"; then
5264 for ac_prog in gcc objcc objc cc CC
5266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if test "${ac_cv_prog_OBJC+set}" = set; then
5271 $as_echo_n "(cached) " >&6
5273 if test -n "$OBJC"; then
5274 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5284 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 OBJC=$ac_cv_prog_OBJC
5294 if test -n "$OBJC"; then
5295 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
5296 $as_echo "$OBJC" >&6; }
5298 { $as_echo "$as_me:$LINENO: result: no" >&5
5299 $as_echo "no" >&6; }
5303 test -n "$OBJC" && break
5306 if test -z "$OBJC"; then
5308 for ac_prog in gcc objcc objc cc CC
5310 # Extract the first word of "$ac_prog", so it can be a program name with args.
5311 set dummy $ac_prog; ac_word=$2
5312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
5315 $as_echo_n "(cached) " >&6
5317 if test -n "$ac_ct_OBJC"; then
5318 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_prog_ac_ct_OBJC="$ac_prog"
5328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5338 if test -n "$ac_ct_OBJC"; then
5339 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
5340 $as_echo "$ac_ct_OBJC" >&6; }
5342 { $as_echo "$as_me:$LINENO: result: no" >&5
5343 $as_echo "no" >&6; }
5347 test -n "$ac_ct_OBJC" && break
5350 if test "x$ac_ct_OBJC" = x; then
5353 case $cross_compiling:$ac_tool_warned in
5355 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357 ac_tool_warned=yes ;;
5363 # Provide some information about the compiler.
5364 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
5367 { (ac_try="$ac_compiler --version >&5"
5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5373 $as_echo "$ac_try_echo") >&5
5374 (eval "$ac_compiler --version >&5") 2>&5
5376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }
5378 { (ac_try="$ac_compiler -v >&5"
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5384 $as_echo "$ac_try_echo") >&5
5385 (eval "$ac_compiler -v >&5") 2>&5
5387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }
5389 { (ac_try="$ac_compiler -V >&5"
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5395 $as_echo "$ac_try_echo") >&5
5396 (eval "$ac_compiler -V >&5") 2>&5
5398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }
5401 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
5402 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5403 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
5404 $as_echo_n "(cached) " >&6
5406 cat >conftest.$ac_ext <<_ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5431 $as_echo "$ac_try_echo") >&5
5432 (eval "$ac_compile") 2>conftest.er1
5434 grep -v '^ *+' conftest.er1 >conftest.err
5436 cat conftest.err >&5
5437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } && {
5439 test -z "$ac_objc_werror_flag" ||
5440 test ! -s conftest.err
5441 } && test -s conftest.$ac_objext; then
5444 $as_echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5454 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
5455 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5456 if test $ac_compiler_gnu = yes; then
5461 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5462 ac_save_OBJCFLAGS=$OBJCFLAGS
5463 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
5464 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5465 if test "${ac_cv_prog_objc_g+set}" = set; then
5466 $as_echo_n "(cached) " >&6
5468 ac_save_objc_werror_flag=$ac_objc_werror_flag
5469 ac_objc_werror_flag=yes
5470 ac_cv_prog_objc_g=no
5472 cat >conftest.$ac_ext <<_ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5487 rm -f conftest.$ac_objext
5488 if { (ac_try="$ac_compile"
5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5494 $as_echo "$ac_try_echo") >&5
5495 (eval "$ac_compile") 2>conftest.er1
5497 grep -v '^ *+' conftest.er1 >conftest.err
5499 cat conftest.err >&5
5500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } && {
5502 test -z "$ac_objc_werror_flag" ||
5503 test ! -s conftest.err
5504 } && test -s conftest.$ac_objext; then
5505 ac_cv_prog_objc_g=yes
5507 $as_echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5511 cat >conftest.$ac_ext <<_ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5533 $as_echo "$ac_try_echo") >&5
5534 (eval "$ac_compile") 2>conftest.er1
5536 grep -v '^ *+' conftest.er1 >conftest.err
5538 cat conftest.err >&5
5539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } && {
5541 test -z "$ac_objc_werror_flag" ||
5542 test ! -s conftest.err
5543 } && test -s conftest.$ac_objext; then
5546 $as_echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_objc_werror_flag=$ac_save_objc_werror_flag
5551 cat >conftest.$ac_ext <<_ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5573 $as_echo "$ac_try_echo") >&5
5574 (eval "$ac_compile") 2>conftest.er1
5576 grep -v '^ *+' conftest.er1 >conftest.err
5578 cat conftest.err >&5
5579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } && {
5581 test -z "$ac_objc_werror_flag" ||
5582 test ! -s conftest.err
5583 } && test -s conftest.$ac_objext; then
5584 ac_cv_prog_objc_g=yes
5586 $as_echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 ac_objc_werror_flag=$ac_save_objc_werror_flag
5601 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
5602 $as_echo "$ac_cv_prog_objc_g" >&6; }
5603 if test "$ac_test_OBJCFLAGS" = set; then
5604 OBJCFLAGS=$ac_save_OBJCFLAGS
5605 elif test $ac_cv_prog_objc_g = yes; then
5606 if test "$GOBJC" = yes; then
5612 if test "$GOBJC" = yes; then
5619 ac_cpp='$CPP $CPPFLAGS'
5620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5624 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5625 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5626 if test "${ac_cv_path_SED+set}" = set; then
5627 $as_echo_n "(cached) " >&6
5629 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5630 for ac_i in 1 2 3 4 5 6 7; do
5631 ac_script="$ac_script$as_nl$ac_script"
5633 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5634 $as_unset ac_script || ac_script=
5635 if test -z "$SED"; then
5636 ac_path_SED_found=false
5637 # Loop through the user's path and test for each of PROGNAME-LIST
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 test -z "$as_dir" && as_dir=.
5643 for ac_prog in sed gsed; do
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5646 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5647 # Check for GNU ac_path_SED and select it if it is found.
5648 # Check for GNU $ac_path_SED
5649 case `"$ac_path_SED" --version 2>&1` in
5651 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5654 $as_echo_n 0123456789 >"conftest.in"
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 $as_echo '' >> "conftest.nl"
5661 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663 ac_count=`expr $ac_count + 1`
5664 if test $ac_count -gt ${ac_path_SED_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_SED="$ac_path_SED"
5667 ac_path_SED_max=$ac_count
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5675 $ac_path_SED_found && break 3
5680 if test -z "$ac_cv_path_SED"; then
5681 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5682 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5683 { (exit 1); exit 1; }; }
5690 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5691 $as_echo "$ac_cv_path_SED" >&6; }
5692 SED="$ac_cv_path_SED"
5695 # By default we simply use the C compiler to build assembly code.
5697 test "${CCAS+set}" = set || CCAS=$CC
5698 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5703 ac_cpp='$CPP $CPPFLAGS'
5704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5707 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5708 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5709 # On Suns, sometimes $CPP names a directory.
5710 if test -n "$CPP" && test -d "$CPP"; then
5713 if test -z "$CPP"; then
5714 if test "${ac_cv_prog_CPP+set}" = set; then
5715 $as_echo_n "(cached) " >&6
5717 # Double quotes because CPP needs to be expanded
5718 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5721 for ac_c_preproc_warn_flag in '' yes
5723 # Use a header file that comes with gcc, so configuring glibc
5724 # with a fresh cross-compiler works.
5725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5726 # <limits.h> exists even on freestanding compilers.
5727 # On the NeXT, cc -E runs the code through the compiler's parser,
5728 # not just through cpp. "Syntax error" is here to catch this case.
5729 cat >conftest.$ac_ext <<_ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5736 # include <limits.h>
5738 # include <assert.h>
5742 if { (ac_try="$ac_cpp conftest.$ac_ext"
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5748 $as_echo "$ac_try_echo") >&5
5749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5751 grep -v '^ *+' conftest.er1 >conftest.err
5753 cat conftest.err >&5
5754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } >/dev/null && {
5756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5757 test ! -s conftest.err
5761 $as_echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 # Broken: fails on valid input.
5768 rm -f conftest.err conftest.$ac_ext
5770 # OK, works on sane cases. Now check whether nonexistent headers
5771 # can be detected and how.
5772 cat >conftest.$ac_ext <<_ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #include <ac_nonexistent.h>
5780 if { (ac_try="$ac_cpp conftest.$ac_ext"
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5786 $as_echo "$ac_try_echo") >&5
5787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5789 grep -v '^ *+' conftest.er1 >conftest.err
5791 cat conftest.err >&5
5792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } >/dev/null && {
5794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5795 test ! -s conftest.err
5797 # Broken: success on invalid input.
5800 $as_echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 # Passes both tests.
5808 rm -f conftest.err conftest.$ac_ext
5811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5812 rm -f conftest.err conftest.$ac_ext
5813 if $ac_preproc_ok; then
5825 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5826 $as_echo "$CPP" >&6; }
5828 for ac_c_preproc_warn_flag in '' yes
5830 # Use a header file that comes with gcc, so configuring glibc
5831 # with a fresh cross-compiler works.
5832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5833 # <limits.h> exists even on freestanding compilers.
5834 # On the NeXT, cc -E runs the code through the compiler's parser,
5835 # not just through cpp. "Syntax error" is here to catch this case.
5836 cat >conftest.$ac_ext <<_ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5843 # include <limits.h>
5845 # include <assert.h>
5849 if { (ac_try="$ac_cpp conftest.$ac_ext"
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5855 $as_echo "$ac_try_echo") >&5
5856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5858 grep -v '^ *+' conftest.er1 >conftest.err
5860 cat conftest.err >&5
5861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } >/dev/null && {
5863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5868 $as_echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 # Broken: fails on valid input.
5875 rm -f conftest.err conftest.$ac_ext
5877 # OK, works on sane cases. Now check whether nonexistent headers
5878 # can be detected and how.
5879 cat >conftest.$ac_ext <<_ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <ac_nonexistent.h>
5887 if { (ac_try="$ac_cpp conftest.$ac_ext"
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5893 $as_echo "$ac_try_echo") >&5
5894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5896 grep -v '^ *+' conftest.er1 >conftest.err
5898 cat conftest.err >&5
5899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } >/dev/null && {
5901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5902 test ! -s conftest.err
5904 # Broken: success on invalid input.
5907 $as_echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5910 # Passes both tests.
5915 rm -f conftest.err conftest.$ac_ext
5918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5919 rm -f conftest.err conftest.$ac_ext
5920 if $ac_preproc_ok; then
5923 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5925 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5926 See \`config.log' for more details." >&5
5927 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5928 See \`config.log' for more details." >&2;}
5929 { (exit 1); exit 1; }; }; }
5933 ac_cpp='$CPP $CPPFLAGS'
5934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5939 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5940 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5941 if test "${ac_cv_path_GREP+set}" = set; then
5942 $as_echo_n "(cached) " >&6
5944 if test -z "$GREP"; then
5945 ac_path_GREP_found=false
5946 # Loop through the user's path and test for each of PROGNAME-LIST
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5951 test -z "$as_dir" && as_dir=.
5952 for ac_prog in grep ggrep; do
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5955 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5956 # Check for GNU ac_path_GREP and select it if it is found.
5957 # Check for GNU $ac_path_GREP
5958 case `"$ac_path_GREP" --version 2>&1` in
5960 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5963 $as_echo_n 0123456789 >"conftest.in"
5966 cat "conftest.in" "conftest.in" >"conftest.tmp"
5967 mv "conftest.tmp" "conftest.in"
5968 cp "conftest.in" "conftest.nl"
5969 $as_echo 'GREP' >> "conftest.nl"
5970 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5972 ac_count=`expr $ac_count + 1`
5973 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5974 # Best one so far, save it but keep looking for a better one
5975 ac_cv_path_GREP="$ac_path_GREP"
5976 ac_path_GREP_max=$ac_count
5978 # 10*(2^10) chars as input seems more than enough
5979 test $ac_count -gt 10 && break
5981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5984 $ac_path_GREP_found && break 3
5989 if test -z "$ac_cv_path_GREP"; then
5990 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5991 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5992 { (exit 1); exit 1; }; }
5995 ac_cv_path_GREP=$GREP
5999 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6000 $as_echo "$ac_cv_path_GREP" >&6; }
6001 GREP="$ac_cv_path_GREP"
6004 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6005 $as_echo_n "checking for egrep... " >&6; }
6006 if test "${ac_cv_path_EGREP+set}" = set; then
6007 $as_echo_n "(cached) " >&6
6009 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6010 then ac_cv_path_EGREP="$GREP -E"
6012 if test -z "$EGREP"; then
6013 ac_path_EGREP_found=false
6014 # Loop through the user's path and test for each of PROGNAME-LIST
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6019 test -z "$as_dir" && as_dir=.
6020 for ac_prog in egrep; do
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6023 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6024 # Check for GNU ac_path_EGREP and select it if it is found.
6025 # Check for GNU $ac_path_EGREP
6026 case `"$ac_path_EGREP" --version 2>&1` in
6028 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6031 $as_echo_n 0123456789 >"conftest.in"
6034 cat "conftest.in" "conftest.in" >"conftest.tmp"
6035 mv "conftest.tmp" "conftest.in"
6036 cp "conftest.in" "conftest.nl"
6037 $as_echo 'EGREP' >> "conftest.nl"
6038 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6040 ac_count=`expr $ac_count + 1`
6041 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6042 # Best one so far, save it but keep looking for a better one
6043 ac_cv_path_EGREP="$ac_path_EGREP"
6044 ac_path_EGREP_max=$ac_count
6046 # 10*(2^10) chars as input seems more than enough
6047 test $ac_count -gt 10 && break
6049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6052 $ac_path_EGREP_found && break 3
6057 if test -z "$ac_cv_path_EGREP"; then
6058 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6059 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6060 { (exit 1); exit 1; }; }
6063 ac_cv_path_EGREP=$EGREP
6068 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6069 $as_echo "$ac_cv_path_EGREP" >&6; }
6070 EGREP="$ac_cv_path_EGREP"
6073 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6074 $as_echo_n "checking for ANSI C header files... " >&6; }
6075 if test "${ac_cv_header_stdc+set}" = set; then
6076 $as_echo_n "(cached) " >&6
6078 cat >conftest.$ac_ext <<_ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6104 $as_echo "$ac_try_echo") >&5
6105 (eval "$ac_compile") 2>conftest.er1
6107 grep -v '^ *+' conftest.er1 >conftest.err
6109 cat conftest.err >&5
6110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && {
6112 test -z "$ac_c_werror_flag" ||
6113 test ! -s conftest.err
6114 } && test -s conftest.$ac_objext; then
6115 ac_cv_header_stdc=yes
6117 $as_echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6120 ac_cv_header_stdc=no
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 if test $ac_cv_header_stdc = yes; then
6126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6127 cat >conftest.$ac_ext <<_ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6137 $EGREP "memchr" >/dev/null 2>&1; then
6140 ac_cv_header_stdc=no
6146 if test $ac_cv_header_stdc = yes; then
6147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6148 cat >conftest.$ac_ext <<_ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6158 $EGREP "free" >/dev/null 2>&1; then
6161 ac_cv_header_stdc=no
6167 if test $ac_cv_header_stdc = yes; then
6168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6169 if test "$cross_compiling" = yes; then
6172 cat >conftest.$ac_ext <<_ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6180 #if ((' ' & 0x0FF) == 0x020)
6181 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6182 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6184 # define ISLOWER(c) \
6185 (('a' <= (c) && (c) <= 'i') \
6186 || ('j' <= (c) && (c) <= 'r') \
6187 || ('s' <= (c) && (c) <= 'z'))
6188 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6196 for (i = 0; i < 256; i++)
6197 if (XOR (islower (i), ISLOWER (i))
6198 || toupper (i) != TOUPPER (i))
6203 rm -f conftest$ac_exeext
6204 if { (ac_try="$ac_link"
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6210 $as_echo "$ac_try_echo") >&5
6211 (eval "$ac_link") 2>&5
6213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6215 { (case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6220 $as_echo "$ac_try_echo") >&5
6221 (eval "$ac_try") 2>&5
6223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6227 $as_echo "$as_me: program exited with status $ac_status" >&5
6228 $as_echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6232 ac_cv_header_stdc=no
6234 rm -rf conftest.dSYM
6235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6241 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6242 $as_echo "$ac_cv_header_stdc" >&6; }
6243 if test $ac_cv_header_stdc = yes; then
6245 cat >>confdefs.h <<\_ACEOF
6246 #define STDC_HEADERS 1
6251 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6262 inttypes.h stdint.h unistd.h
6264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6265 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6266 $as_echo_n "checking for $ac_header... " >&6; }
6267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6268 $as_echo_n "(cached) " >&6
6270 cat >conftest.$ac_ext <<_ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 $ac_includes_default
6278 #include <$ac_header>
6280 rm -f conftest.$ac_objext
6281 if { (ac_try="$ac_compile"
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6287 $as_echo "$ac_try_echo") >&5
6288 (eval "$ac_compile") 2>conftest.er1
6290 grep -v '^ *+' conftest.er1 >conftest.err
6292 cat conftest.err >&5
6293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } && {
6295 test -z "$ac_c_werror_flag" ||
6296 test ! -s conftest.err
6297 } && test -s conftest.$ac_objext; then
6298 eval "$as_ac_Header=yes"
6300 $as_echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 eval "$as_ac_Header=no"
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 ac_res=`eval 'as_val=${'$as_ac_Header'}
6309 $as_echo "$as_val"'`
6310 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6311 $as_echo "$ac_res" >&6; }
6312 as_val=`eval 'as_val=${'$as_ac_Header'}
6313 $as_echo "$as_val"'`
6314 if test "x$as_val" = x""yes; then
6315 cat >>confdefs.h <<_ACEOF
6316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6324 # The cast to long int works around a bug in the HP C Compiler
6325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6327 # This bug is HP SR number 8606223364.
6328 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
6329 $as_echo_n "checking size of void *... " >&6; }
6330 if test "${ac_cv_sizeof_void_p+set}" = set; then
6331 $as_echo_n "(cached) " >&6
6333 if test "$cross_compiling" = yes; then
6334 # Depending upon the size, compute the lo and hi bounds.
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6345 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
6352 rm -f conftest.$ac_objext
6353 if { (ac_try="$ac_compile"
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6359 $as_echo "$ac_try_echo") >&5
6360 (eval "$ac_compile") 2>conftest.er1
6362 grep -v '^ *+' conftest.er1 >conftest.err
6364 cat conftest.err >&5
6365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } && {
6367 test -z "$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 } && test -s conftest.$ac_objext; then
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 $ac_includes_default
6382 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6389 rm -f conftest.$ac_objext
6390 if { (ac_try="$ac_compile"
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6396 $as_echo "$ac_try_echo") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6399 grep -v '^ *+' conftest.er1 >conftest.err
6401 cat conftest.err >&5
6402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && {
6404 test -z "$ac_c_werror_flag" ||
6405 test ! -s conftest.err
6406 } && test -s conftest.$ac_objext; then
6407 ac_hi=$ac_mid; break
6409 $as_echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 ac_lo=`expr $ac_mid + 1`
6413 if test $ac_lo -le $ac_mid; then
6417 ac_mid=`expr 2 '*' $ac_mid + 1`
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 $as_echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 cat >conftest.$ac_ext <<_ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 $ac_includes_default
6436 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
6443 rm -f conftest.$ac_objext
6444 if { (ac_try="$ac_compile"
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6450 $as_echo "$ac_try_echo") >&5
6451 (eval "$ac_compile") 2>conftest.er1
6453 grep -v '^ *+' conftest.er1 >conftest.err
6455 cat conftest.err >&5
6456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } && {
6458 test -z "$ac_c_werror_flag" ||
6459 test ! -s conftest.err
6460 } && test -s conftest.$ac_objext; then
6463 cat >conftest.$ac_ext <<_ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6473 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6487 $as_echo "$ac_try_echo") >&5
6488 (eval "$ac_compile") 2>conftest.er1
6490 grep -v '^ *+' conftest.er1 >conftest.err
6492 cat conftest.err >&5
6493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } && {
6495 test -z "$ac_c_werror_flag" ||
6496 test ! -s conftest.err
6497 } && test -s conftest.$ac_objext; then
6498 ac_lo=$ac_mid; break
6500 $as_echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6503 ac_hi=`expr '(' $ac_mid ')' - 1`
6504 if test $ac_mid -le $ac_hi; then
6508 ac_mid=`expr 2 '*' $ac_mid`
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 $as_echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 # Binary search between lo and hi bounds.
6525 while test "x$ac_lo" != "x$ac_hi"; do
6526 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6527 cat >conftest.$ac_ext <<_ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 $ac_includes_default
6537 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551 $as_echo "$ac_try_echo") >&5
6552 (eval "$ac_compile") 2>conftest.er1
6554 grep -v '^ *+' conftest.er1 >conftest.err
6556 cat conftest.err >&5
6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest.$ac_objext; then
6564 $as_echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_lo=`expr '(' $ac_mid ')' + 1`
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6574 '') if test "$ac_cv_type_void_p" = yes; then
6575 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6577 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6578 See \`config.log' for more details." >&5
6579 $as_echo "$as_me: error: cannot compute sizeof (void *)
6580 See \`config.log' for more details." >&2;}
6581 { (exit 77); exit 77; }; }; }
6583 ac_cv_sizeof_void_p=0
6587 cat >conftest.$ac_ext <<_ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 $ac_includes_default
6594 static long int longval () { return (long int) (sizeof (void *)); }
6595 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6602 FILE *f = fopen ("conftest.val", "w");
6605 if (((long int) (sizeof (void *))) < 0)
6607 long int i = longval ();
6608 if (i != ((long int) (sizeof (void *))))
6610 fprintf (f, "%ld", i);
6614 unsigned long int i = ulongval ();
6615 if (i != ((long int) (sizeof (void *))))
6617 fprintf (f, "%lu", i);
6619 /* Do not output a trailing newline, as this causes \r\n confusion
6620 on some platforms. */
6621 return ferror (f) || fclose (f) != 0;
6627 rm -f conftest$ac_exeext
6628 if { (ac_try="$ac_link"
6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631 *) ac_try_echo=$ac_try;;
6633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6634 $as_echo "$ac_try_echo") >&5
6635 (eval "$ac_link") 2>&5
6637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6639 { (case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6644 $as_echo "$ac_try_echo") >&5
6645 (eval "$ac_try") 2>&5
6647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6649 ac_cv_sizeof_void_p=`cat conftest.val`
6651 $as_echo "$as_me: program exited with status $ac_status" >&5
6652 $as_echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6656 if test "$ac_cv_type_void_p" = yes; then
6657 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6659 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6660 See \`config.log' for more details." >&5
6661 $as_echo "$as_me: error: cannot compute sizeof (void *)
6662 See \`config.log' for more details." >&2;}
6663 { (exit 77); exit 77; }; }; }
6665 ac_cv_sizeof_void_p=0
6668 rm -rf conftest.dSYM
6669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6673 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6674 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6678 cat >>confdefs.h <<_ACEOF
6679 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6683 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6684 $as_echo_n "checking for ANSI C header files... " >&6; }
6685 if test "${ac_cv_header_stdc+set}" = set; then
6686 $as_echo_n "(cached) " >&6
6688 cat >conftest.$ac_ext <<_ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6707 rm -f conftest.$ac_objext
6708 if { (ac_try="$ac_compile"
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6714 $as_echo "$ac_try_echo") >&5
6715 (eval "$ac_compile") 2>conftest.er1
6717 grep -v '^ *+' conftest.er1 >conftest.err
6719 cat conftest.err >&5
6720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && {
6722 test -z "$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 } && test -s conftest.$ac_objext; then
6725 ac_cv_header_stdc=yes
6727 $as_echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6730 ac_cv_header_stdc=no
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 if test $ac_cv_header_stdc = yes; then
6736 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6737 cat >conftest.$ac_ext <<_ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6747 $EGREP "memchr" >/dev/null 2>&1; then
6750 ac_cv_header_stdc=no
6756 if test $ac_cv_header_stdc = yes; then
6757 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6758 cat >conftest.$ac_ext <<_ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6768 $EGREP "free" >/dev/null 2>&1; then
6771 ac_cv_header_stdc=no
6777 if test $ac_cv_header_stdc = yes; then
6778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6779 if test "$cross_compiling" = yes; then
6782 cat >conftest.$ac_ext <<_ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6790 #if ((' ' & 0x0FF) == 0x020)
6791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6794 # define ISLOWER(c) \
6795 (('a' <= (c) && (c) <= 'i') \
6796 || ('j' <= (c) && (c) <= 'r') \
6797 || ('s' <= (c) && (c) <= 'z'))
6798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6806 for (i = 0; i < 256; i++)
6807 if (XOR (islower (i), ISLOWER (i))
6808 || toupper (i) != TOUPPER (i))
6813 rm -f conftest$ac_exeext
6814 if { (ac_try="$ac_link"
6816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817 *) ac_try_echo=$ac_try;;
6819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6820 $as_echo "$ac_try_echo") >&5
6821 (eval "$ac_link") 2>&5
6823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6825 { (case "(($ac_try" in
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6830 $as_echo "$ac_try_echo") >&5
6831 (eval "$ac_try") 2>&5
6833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6837 $as_echo "$as_me: program exited with status $ac_status" >&5
6838 $as_echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6842 ac_cv_header_stdc=no
6844 rm -rf conftest.dSYM
6845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6851 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6852 $as_echo "$ac_cv_header_stdc" >&6; }
6853 if test $ac_cv_header_stdc = yes; then
6855 cat >>confdefs.h <<\_ACEOF
6856 #define STDC_HEADERS 1
6861 # Make sure we can run config.sub.
6862 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6863 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6864 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6865 { (exit 1); exit 1; }; }
6867 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6868 $as_echo_n "checking build system type... " >&6; }
6869 if test "${ac_cv_build+set}" = set; then
6870 $as_echo_n "(cached) " >&6
6872 ac_build_alias=$build_alias
6873 test "x$ac_build_alias" = x &&
6874 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6875 test "x$ac_build_alias" = x &&
6876 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6877 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6878 { (exit 1); exit 1; }; }
6879 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6880 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6881 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6882 { (exit 1); exit 1; }; }
6885 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6886 $as_echo "$ac_cv_build" >&6; }
6887 case $ac_cv_build in
6889 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6890 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6891 { (exit 1); exit 1; }; };;
6894 ac_save_IFS=$IFS; IFS='-'
6900 # Remember, the first character of IFS is used to create $*,
6901 # except with old shells:
6904 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6907 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6908 $as_echo_n "checking host system type... " >&6; }
6909 if test "${ac_cv_host+set}" = set; then
6910 $as_echo_n "(cached) " >&6
6912 if test "x$host_alias" = x; then
6913 ac_cv_host=$ac_cv_build
6915 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6916 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6917 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6918 { (exit 1); exit 1; }; }
6922 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6923 $as_echo "$ac_cv_host" >&6; }
6926 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6927 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6928 { (exit 1); exit 1; }; };;
6931 ac_save_IFS=$IFS; IFS='-'
6937 # Remember, the first character of IFS is used to create $*,
6938 # except with old shells:
6941 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6946 depcc="$OBJC" am_compiler_list='gcc3 gcc'
6948 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6949 $as_echo_n "checking dependency style of $depcc... " >&6; }
6950 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
6951 $as_echo_n "(cached) " >&6
6953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6954 # We make a subdir and do the tests there. Otherwise we can end up
6955 # making bogus files that we don't know about and never remove. For
6956 # instance it was reported that on HP-UX the gcc test will end up
6957 # making a dummy file named `D' -- because `-MD' means `put the output
6960 # Copy depcomp to subdir because otherwise we won't find it if we're
6961 # using a relative directory.
6962 cp "$am_depcomp" conftest.dir
6964 # We will build objects and dependencies in a subdirectory because
6965 # it helps to detect inapplicable dependency modes. For instance
6966 # both Tru64's cc and ICC support -MD to output dependencies as a
6967 # side effect of compilation, but ICC will put the dependencies in
6968 # the current directory while Tru64 will put them in the object
6972 am_cv_OBJC_dependencies_compiler_type=none
6973 if test "$am_compiler_list" = ""; then
6974 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6976 for depmode in $am_compiler_list; do
6977 # Setup a source with many dependencies, because some compilers
6978 # like to wrap large dependency lists on column 80 (with \), and
6979 # we should not choose a depcomp mode which is confused by this.
6981 # We need to recreate these files for each test, as the compiler may
6982 # overwrite some of them when testing with obscure command lines.
6983 # This happens at least with the AIX C compiler.
6985 for i in 1 2 3 4 5 6; do
6986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6988 # Solaris 8's {/usr,}/bin/sh.
6989 touch sub/conftst$i.h
6991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6995 # after this tag, mechanisms are not by side-effect, so they'll
6996 # only be used when explicitly requested
6997 if test "x$enable_dependency_tracking" = xyes; then
7005 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7006 # mode. It turns out that the SunPro C++ compiler does not properly
7007 # handle `-M -o', and we need to detect this.
7008 if depmode=$depmode \
7009 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7010 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7011 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7012 >/dev/null 2>conftest.err &&
7013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7014 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7016 # icc doesn't choke on unknown options, it will just issue warnings
7017 # or remarks (even with -Werror). So we grep stderr for any message
7018 # that says an option was ignored or not supported.
7019 # When given -MP, icc 7.0 and 7.1 complain thusly:
7020 # icc: Command line warning: ignoring option '-M'; no argument required
7021 # The diagnosis changed in icc 8.0:
7022 # icc: Command line remark: option '-MP' not supported
7023 if (grep 'ignoring option' conftest.err ||
7024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7025 am_cv_OBJC_dependencies_compiler_type=$depmode
7034 am_cv_OBJC_dependencies_compiler_type=none
7038 { $as_echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
7039 $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
7040 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
7045 test "x$enable_dependency_tracking" != xno \
7046 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
7047 am__fastdepOBJC_TRUE=
7048 am__fastdepOBJC_FALSE='#'
7050 am__fastdepOBJC_TRUE='#'
7051 am__fastdepOBJC_FALSE=
7056 # Extract the first word of "pod2man", so it can be a program name with args.
7057 set dummy pod2man; ac_word=$2
7058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if test "${ac_cv_path_POD2MAN+set}" = set; then
7061 $as_echo_n "(cached) " >&6
7065 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 POD2MAN=$ac_cv_path_POD2MAN
7087 if test -n "$POD2MAN"; then
7088 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
7089 $as_echo "$POD2MAN" >&6; }
7091 { $as_echo "$as_me:$LINENO: result: no" >&5
7092 $as_echo "no" >&6; }
7096 # Extract the first word of "pod2html", so it can be a program name with args.
7097 set dummy pod2html; ac_word=$2
7098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if test "${ac_cv_path_POD2HTML+set}" = set; then
7101 $as_echo_n "(cached) " >&6
7105 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7116 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 POD2HTML=$ac_cv_path_POD2HTML
7127 if test -n "$POD2HTML"; then
7128 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
7129 $as_echo "$POD2HTML" >&6; }
7131 { $as_echo "$as_me:$LINENO: result: no" >&5
7132 $as_echo "no" >&6; }
7138 # Check whether --enable-strict-warn was given.
7139 if test "${enable_strict_warn+set}" = set; then
7140 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
7141 enable_strictwarn=yes
7145 # Check whether --enable-translator was given.
7146 if test "${enable_translator+set}" = set; then
7147 enableval=$enable_translator; true
7149 enable_translator=yes
7152 # Check whether --enable-optimized was given.
7153 if test "${enable_optimized+set}" = set; then
7154 enableval=$enable_optimized; true
7156 enable_optimized=yes
7159 # Check whether --enable-shared was given.
7160 if test "${enable_shared+set}" = set; then
7161 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
7166 # Check whether --enable-profiled was given.
7167 if test "${enable_profiled+set}" = set; then
7168 enableval=$enable_profiled; if test "$enableval" == "yes"; then
7169 enable_profiled=yes;
7173 # Check whether --enable-trace was given.
7174 if test "${enable_trace+set}" = set; then
7175 enableval=$enable_trace; if test "$enableval" == "yes"; then
7177 cat >>confdefs.h <<\_ACEOF
7178 #define ENABLE_TRACE_IO 1
7184 # Check whether --enable-watch was given.
7185 if test "${enable_watch+set}" = set; then
7186 enableval=$enable_watch; if test "$enableval" == "yes"; then
7188 cat >>confdefs.h <<\_ACEOF
7189 #define ENABLE_WATCH 1
7195 # Check whether --enable-sh4stats was given.
7196 if test "${enable_sh4stats+set}" = set; then
7197 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
7199 cat >>confdefs.h <<\_ACEOF
7200 #define ENABLE_SH4STATS 1
7207 # Check whether --with-osmesa was given.
7208 if test "${with_osmesa+set}" = set; then
7209 withval=$with_osmesa;
7215 # Check whether --with-gtk was given.
7216 if test "${with_gtk+set}" = set; then
7217 withval=$with_gtk; with_gtk=yes
7223 # Check whether --with-esd was given.
7224 if test "${with_esd+set}" = set; then
7229 # Check whether --with-pulse was given.
7230 if test "${with_pulse+set}" = set; then
7231 withval=$with_pulse;
7235 # Check whether --with-sdl was given.
7236 if test "${with_sdl+set}" = set; then
7246 ac_cpp='$OBJCPP $CPPFLAGS'
7247 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7248 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7249 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7250 if test -n "$ac_tool_prefix"; then
7251 for ac_prog in gcc objcc objc cc CC
7253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if test "${ac_cv_prog_OBJC+set}" = set; then
7258 $as_echo_n "(cached) " >&6
7260 if test -n "$OBJC"; then
7261 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7270 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 OBJC=$ac_cv_prog_OBJC
7281 if test -n "$OBJC"; then
7282 { $as_echo "$as_me:$LINENO: result: $OBJC" >&5
7283 $as_echo "$OBJC" >&6; }
7285 { $as_echo "$as_me:$LINENO: result: no" >&5
7286 $as_echo "no" >&6; }
7290 test -n "$OBJC" && break
7293 if test -z "$OBJC"; then
7295 for ac_prog in gcc objcc objc cc CC
7297 # Extract the first word of "$ac_prog", so it can be a program name with args.
7298 set dummy $ac_prog; ac_word=$2
7299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
7302 $as_echo_n "(cached) " >&6
7304 if test -n "$ac_ct_OBJC"; then
7305 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7314 ac_cv_prog_ac_ct_OBJC="$ac_prog"
7315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7325 if test -n "$ac_ct_OBJC"; then
7326 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
7327 $as_echo "$ac_ct_OBJC" >&6; }
7329 { $as_echo "$as_me:$LINENO: result: no" >&5
7330 $as_echo "no" >&6; }
7334 test -n "$ac_ct_OBJC" && break
7337 if test "x$ac_ct_OBJC" = x; then
7340 case $cross_compiling:$ac_tool_warned in
7342 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7350 # Provide some information about the compiler.
7351 $as_echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7354 { (ac_try="$ac_compiler --version >&5"
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360 $as_echo "$ac_try_echo") >&5
7361 (eval "$ac_compiler --version >&5") 2>&5
7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }
7365 { (ac_try="$ac_compiler -v >&5"
7367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368 *) ac_try_echo=$ac_try;;
7370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7371 $as_echo "$ac_try_echo") >&5
7372 (eval "$ac_compiler -v >&5") 2>&5
7374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }
7376 { (ac_try="$ac_compiler -V >&5"
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7382 $as_echo "$ac_try_echo") >&5
7383 (eval "$ac_compiler -V >&5") 2>&5
7385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }
7388 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7389 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
7390 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7391 $as_echo_n "(cached) " >&6
7393 cat >conftest.$ac_ext <<_ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7418 $as_echo "$ac_try_echo") >&5
7419 (eval "$ac_compile") 2>conftest.er1
7421 grep -v '^ *+' conftest.er1 >conftest.err
7423 cat conftest.err >&5
7424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && {
7426 test -z "$ac_objc_werror_flag" ||
7427 test ! -s conftest.err
7428 } && test -s conftest.$ac_objext; then
7431 $as_echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7441 { $as_echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7442 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
7443 if test $ac_compiler_gnu = yes; then
7448 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7449 ac_save_OBJCFLAGS=$OBJCFLAGS
7450 { $as_echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7451 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
7452 if test "${ac_cv_prog_objc_g+set}" = set; then
7453 $as_echo_n "(cached) " >&6
7455 ac_save_objc_werror_flag=$ac_objc_werror_flag
7456 ac_objc_werror_flag=yes
7457 ac_cv_prog_objc_g=no
7459 cat >conftest.$ac_ext <<_ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7474 rm -f conftest.$ac_objext
7475 if { (ac_try="$ac_compile"
7477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7478 *) ac_try_echo=$ac_try;;
7480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7481 $as_echo "$ac_try_echo") >&5
7482 (eval "$ac_compile") 2>conftest.er1
7484 grep -v '^ *+' conftest.er1 >conftest.err
7486 cat conftest.err >&5
7487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && {
7489 test -z "$ac_objc_werror_flag" ||
7490 test ! -s conftest.err
7491 } && test -s conftest.$ac_objext; then
7492 ac_cv_prog_objc_g=yes
7494 $as_echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7498 cat >conftest.$ac_ext <<_ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7513 rm -f conftest.$ac_objext
7514 if { (ac_try="$ac_compile"
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7520 $as_echo "$ac_try_echo") >&5
7521 (eval "$ac_compile") 2>conftest.er1
7523 grep -v '^ *+' conftest.er1 >conftest.err
7525 cat conftest.err >&5
7526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } && {
7528 test -z "$ac_objc_werror_flag" ||
7529 test ! -s conftest.err
7530 } && test -s conftest.$ac_objext; then
7533 $as_echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7536 ac_objc_werror_flag=$ac_save_objc_werror_flag
7538 cat >conftest.$ac_ext <<_ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7553 rm -f conftest.$ac_objext
7554 if { (ac_try="$ac_compile"
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7560 $as_echo "$ac_try_echo") >&5
7561 (eval "$ac_compile") 2>conftest.er1
7563 grep -v '^ *+' conftest.er1 >conftest.err
7565 cat conftest.err >&5
7566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && {
7568 test -z "$ac_objc_werror_flag" ||
7569 test ! -s conftest.err
7570 } && test -s conftest.$ac_objext; then
7571 ac_cv_prog_objc_g=yes
7573 $as_echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 ac_objc_werror_flag=$ac_save_objc_werror_flag
7588 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7589 $as_echo "$ac_cv_prog_objc_g" >&6; }
7590 if test "$ac_test_OBJCFLAGS" = set; then
7591 OBJCFLAGS=$ac_save_OBJCFLAGS
7592 elif test $ac_cv_prog_objc_g = yes; then
7593 if test "$GOBJC" = yes; then
7599 if test "$GOBJC" = yes; then
7606 ac_cpp='$CPP $CPPFLAGS'
7607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7611 { $as_echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
7612 $as_echo_n "checking for a working Objective-C compiler... " >&6; }
7614 ac_cpp='$OBJCPP $CPPFLAGS'
7615 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7616 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7617 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7618 cat >conftest.$ac_ext <<_ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7633 rm -f conftest.$ac_objext
7634 if { (ac_try="$ac_compile"
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7640 $as_echo "$ac_try_echo") >&5
7641 (eval "$ac_compile") 2>conftest.er1
7643 grep -v '^ *+' conftest.er1 >conftest.err
7645 cat conftest.err >&5
7646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } && {
7648 test -z "$ac_objc_werror_flag" ||
7649 test ! -s conftest.err
7650 } && test -s conftest.$ac_objext; then
7651 { $as_echo "$as_me:$LINENO: result: yes" >&5
7652 $as_echo "yes" >&6; }
7654 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
7655 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
7656 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
7657 $as_echo_n "(cached) " >&6
7659 cat >conftest.$ac_ext <<_ACEOF
7662 cat confdefs.h >>conftest.$ac_ext
7663 cat >>conftest.$ac_ext <<_ACEOF
7664 /* end confdefs.h. */
7665 $ac_includes_default
7667 #include <Cocoa/Cocoa.h>
7669 rm -f conftest.$ac_objext
7670 if { (ac_try="$ac_compile"
7672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7673 *) ac_try_echo=$ac_try;;
7675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7676 $as_echo "$ac_try_echo") >&5
7677 (eval "$ac_compile") 2>conftest.er1
7679 grep -v '^ *+' conftest.er1 >conftest.err
7681 cat conftest.err >&5
7682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } && {
7684 test -z "$ac_objc_werror_flag" ||
7685 test ! -s conftest.err
7686 } && test -s conftest.$ac_objext; then
7687 ac_cv_header_Cocoa_Cocoa_h=yes
7689 $as_echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7692 ac_cv_header_Cocoa_Cocoa_h=no
7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
7698 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
7699 if test "x$ac_cv_header_Cocoa_Cocoa_h" = x""yes; then
7703 LIBS="$LIBS -framework AppKit -framework Carbon"
7704 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"
7705 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
7706 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
7708 cat >>confdefs.h <<\_ACEOF
7709 #define HAVE_COCOA 1
7713 cat >>confdefs.h <<\_ACEOF
7714 #define APPLE_BUILD 1
7717 if test "x$with_gtk" = "xx11"; then
7726 { $as_echo "$as_me:$LINENO: checking OBJC version" >&5
7727 $as_echo_n "checking OBJC version... " >&6; }
7728 if test -n "$OBJC"; then
7729 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
7730 if test -n "$_GOBJC_VERSION"; then
7731 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7732 $as_echo "GCC" >&6; }
7733 OBJCOPT="-O2 -msse2 -mfpmath=sse"
7734 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
7736 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7737 $as_echo "Unknown" >&6; }
7741 { $as_echo "$as_me:$LINENO: result: None" >&5
7742 $as_echo "None" >&6; }
7748 $as_echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 { $as_echo "$as_me:$LINENO: result: No" >&5
7752 $as_echo "No" >&6; }
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7767 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
7775 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
7777 cat >>confdefs.h <<\_ACEOF
7778 #define OSX_BUNDLE 1
7783 CFLAGS="-g -fexceptions"
7784 OBJCFLAGS="-g -fexceptions"
7786 cat >>confdefs.h <<\_ACEOF
7787 #define HAVE_EXCEPTIONS 1
7793 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
7794 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
7795 { $as_echo "$as_me:$LINENO: checking CC version" >&5
7796 $as_echo_n "checking CC version... " >&6; }
7797 if test -n "$_ICC_VERSION"; then
7798 { $as_echo "$as_me:$LINENO: result: ICC" >&5
7799 $as_echo "ICC" >&6; }
7800 CCOPT="$CFLAGS -fast"
7801 CFLAGS="$CFLAGS -fno-strict-aliasing"
7802 elif test -n "$_GCC_VERSION"; then
7803 { $as_echo "$as_me:$LINENO: result: GCC" >&5
7804 $as_echo "GCC" >&6; }
7805 CCOPT="-O2 -msse2 -mfpmath=sse"
7806 CFLAGS="$CFLAGS -fno-strict-aliasing"
7808 { $as_echo "$as_me:$LINENO: result: Unknown" >&5
7809 $as_echo "Unknown" >&6; }
7814 if test "x$enable_optimized" = "xyes"; then
7815 CFLAGS="$CFLAGS $CCOPT"
7816 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
7817 if test "x$enable_profiled" != "xyes"; then
7818 CFLAGS="$CFLAGS -fomit-frame-pointer"
7819 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
7822 CFLAGS="$CFLAGS -g3"
7823 OBJCFLAGS="$OBJCFLAGS -g3"
7826 if test "x$enable_profiled" = "xyes"; then
7827 CFLAGS="$CFLAGS -pg"
7828 LDFLAGS="$LDFLAGS -pg";
7829 OBJCFLAGS="$OBJCFLAGS -pg";
7832 if test "x$enable_strictwarn" = "xyes"; then
7833 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
7834 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
7837 if test "x$enable_shared" != "xno"; then
7839 cat >>confdefs.h <<\_ACEOF
7840 #define ENABLE_SHARED 1
7843 if test "x$APPLE_BUILD" = "xyes"; then
7845 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
7848 PLUGINLDFLAGS="-shared"
7850 PLUGINCFLAGS="-fPIC"
7852 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7853 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
7854 $as_echo_n "checking for dlfcn.h... " >&6; }
7855 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7856 $as_echo_n "(cached) " >&6
7858 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
7859 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
7861 # Is the header compilable?
7862 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
7863 $as_echo_n "checking dlfcn.h usability... " >&6; }
7864 cat >conftest.$ac_ext <<_ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 $ac_includes_default
7873 rm -f conftest.$ac_objext
7874 if { (ac_try="$ac_compile"
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7880 $as_echo "$ac_try_echo") >&5
7881 (eval "$ac_compile") 2>conftest.er1
7883 grep -v '^ *+' conftest.er1 >conftest.err
7885 cat conftest.err >&5
7886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest.$ac_objext; then
7891 ac_header_compiler=yes
7893 $as_echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 ac_header_compiler=no
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7901 $as_echo "$ac_header_compiler" >&6; }
7903 # Is the header present?
7904 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
7905 $as_echo_n "checking dlfcn.h presence... " >&6; }
7906 cat >conftest.$ac_ext <<_ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7914 if { (ac_try="$ac_cpp conftest.$ac_ext"
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7920 $as_echo "$ac_try_echo") >&5
7921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7923 grep -v '^ *+' conftest.er1 >conftest.err
7925 cat conftest.err >&5
7926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } >/dev/null && {
7928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7929 test ! -s conftest.err
7931 ac_header_preproc=yes
7933 $as_echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 ac_header_preproc=no
7939 rm -f conftest.err conftest.$ac_ext
7940 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7941 $as_echo "$ac_header_preproc" >&6; }
7943 # So? What about this header?
7944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7946 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
7947 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7948 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
7949 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
7950 ac_header_preproc=yes
7953 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
7954 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
7955 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
7956 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
7957 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
7958 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
7959 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
7960 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
7961 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
7962 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
7963 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
7964 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
7968 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
7969 $as_echo_n "checking for dlfcn.h... " >&6; }
7970 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7971 $as_echo_n "(cached) " >&6
7973 ac_cv_header_dlfcn_h=$ac_header_preproc
7975 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
7976 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
7979 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
7981 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7982 $as_echo_n "checking for library containing dlopen... " >&6; }
7983 if test "${ac_cv_search_dlopen+set}" = set; then
7984 $as_echo_n "(cached) " >&6
7986 ac_func_search_save_LIBS=$LIBS
7987 cat >conftest.$ac_ext <<_ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7994 /* Override any GCC internal prototype to avoid an error.
7995 Use char because int might match the return type of a GCC
7996 builtin and then its argument prototype would still apply. */
8009 for ac_lib in '' dl; do
8010 if test -z "$ac_lib"; then
8011 ac_res="none required"
8014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (ac_try="$ac_link"
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8023 $as_echo "$ac_try_echo") >&5
8024 (eval "$ac_link") 2>conftest.er1
8026 grep -v '^ *+' conftest.er1 >conftest.err
8028 cat conftest.err >&5
8029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } && {
8031 test -z "$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8033 } && test -s conftest$ac_exeext && {
8034 test "$cross_compiling" = yes ||
8035 $as_test_x conftest$ac_exeext
8037 ac_cv_search_dlopen=$ac_res
8039 $as_echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8045 rm -rf conftest.dSYM
8046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8048 if test "${ac_cv_search_dlopen+set}" = set; then
8052 if test "${ac_cv_search_dlopen+set}" = set; then
8055 ac_cv_search_dlopen=no
8058 LIBS=$ac_func_search_save_LIBS
8060 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8061 $as_echo "$ac_cv_search_dlopen" >&6; }
8062 ac_res=$ac_cv_search_dlopen
8063 if test "$ac_res" != no; then
8064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8071 if test "x$have_dlopen" != "xyes"; then
8072 if test "x$enable_shared" == "xyes"; then
8073 { { $as_echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
8074 $as_echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
8075 { (exit 1); exit 1; }; }
8077 { $as_echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
8078 $as_echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
8082 { $as_echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
8083 $as_echo_n "checking if linker accepts -rdynamic... " >&6; }
8084 old_LDFLAGS="$LDFLAGS"
8085 LDFLAGS="$LDFLAGS -rdynamic"
8086 cat >conftest.$ac_ext <<_ACEOF
8089 rm -f conftest.$ac_objext conftest$ac_exeext
8090 if { (ac_try="$ac_link"
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8096 $as_echo "$ac_try_echo") >&5
8097 (eval "$ac_link") 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest$ac_exeext && {
8107 test "$cross_compiling" = yes ||
8108 $as_test_x conftest$ac_exeext
8111 LXDREAMLDFLAGS="-rdynamic"
8112 { $as_echo "$as_me:$LINENO: result: yes" >&5
8113 $as_echo "yes" >&6; }
8116 $as_echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8121 { $as_echo "$as_me:$LINENO: result: no" >&5
8122 $as_echo "no" >&6; }
8125 rm -rf conftest.dSYM
8126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8127 conftest$ac_exeext conftest.$ac_ext
8128 LDFLAGS="$old_LDFLAGS"
8137 if test "x$have_dlopen" = "xyes"; then
8139 BUILD_SHARED_FALSE='#'
8141 BUILD_SHARED_TRUE='#'
8147 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
8148 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
8149 if test "$cross_compiling" = yes; then
8150 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8152 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8153 See \`config.log' for more details." >&5
8154 $as_echo "$as_me: error: cannot run test program while cross compiling
8155 See \`config.log' for more details." >&2;}
8156 { (exit 1); exit 1; }; }; }
8158 cat >conftest.$ac_ext <<_ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8166 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
8168 int main(int argc, char *argv[])
8170 return foo( 1, 2 ) == 3 ? 0 : 1;
8173 rm -f conftest$ac_exeext
8174 if { (ac_try="$ac_link"
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8180 $as_echo "$ac_try_echo") >&5
8181 (eval "$ac_link") 2>&5
8183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8185 { (case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8190 $as_echo "$ac_try_echo") >&5
8191 (eval "$ac_try") 2>&5
8193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8196 { $as_echo "$as_me:$LINENO: result: yes" >&5
8197 $as_echo "yes" >&6; }
8200 cat >>confdefs.h <<\_ACEOF
8201 #define HAVE_FASTCALL 1
8206 $as_echo "$as_me: program exited with status $ac_status" >&5
8207 $as_echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8212 { $as_echo "$as_me:$LINENO: result: no" >&5
8213 $as_echo "no" >&6; }
8216 rm -rf conftest.dSYM
8217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8223 { $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
8224 $as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
8225 if test "$cross_compiling" = yes; then
8226 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8228 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8229 See \`config.log' for more details." >&5
8230 $as_echo "$as_me: error: cannot run test program while cross compiling
8231 See \`config.log' for more details." >&2;}
8232 { (exit 1); exit 1; }; }; }
8234 cat >conftest.$ac_ext <<_ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8242 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
8243 int __attribute__((noinline)) foo( int arg, void *exc )
8246 *(((void **)__builtin_frame_address(0))+1) = exc;
8251 int main(int argc, char *argv[])
8253 goto *first_arg(&&start, &&except);
8256 return foo( argc, &&except ) + 1;
8262 rm -f conftest$ac_exeext
8263 if { (ac_try="$ac_link"
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8269 $as_echo "$ac_try_echo") >&5
8270 (eval "$ac_link") 2>&5
8272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8274 { (case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8279 $as_echo "$ac_try_echo") >&5
8280 (eval "$ac_try") 2>&5
8282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8285 { $as_echo "$as_me:$LINENO: result: yes" >&5
8286 $as_echo "yes" >&6; }
8289 cat >>confdefs.h <<\_ACEOF
8290 #define HAVE_FRAME_ADDRESS 1
8295 $as_echo "$as_me: program exited with status $ac_status" >&5
8296 $as_echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8301 { $as_echo "$as_me:$LINENO: result: no" >&5
8302 $as_echo "no" >&6; }
8303 { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
8304 $as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
8306 rm -rf conftest.dSYM
8307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8314 { $as_echo "$as_me:$LINENO: checking for library containing listen" >&5
8315 $as_echo_n "checking for library containing listen... " >&6; }
8316 if test "${ac_cv_search_listen+set}" = set; then
8317 $as_echo_n "(cached) " >&6
8319 ac_func_search_save_LIBS=$LIBS
8320 cat >conftest.$ac_ext <<_ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8327 /* Override any GCC internal prototype to avoid an error.
8328 Use char because int might match the return type of a GCC
8329 builtin and then its argument prototype would still apply. */
8342 for ac_lib in '' socket; do
8343 if test -z "$ac_lib"; then
8344 ac_res="none required"
8347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (ac_try="$ac_link"
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8356 $as_echo "$ac_try_echo") >&5
8357 (eval "$ac_link") 2>conftest.er1
8359 grep -v '^ *+' conftest.er1 >conftest.err
8361 cat conftest.err >&5
8362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } && {
8364 test -z "$ac_c_werror_flag" ||
8365 test ! -s conftest.err
8366 } && test -s conftest$ac_exeext && {
8367 test "$cross_compiling" = yes ||
8368 $as_test_x conftest$ac_exeext
8370 ac_cv_search_listen=$ac_res
8372 $as_echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8378 rm -rf conftest.dSYM
8379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8381 if test "${ac_cv_search_listen+set}" = set; then
8385 if test "${ac_cv_search_listen+set}" = set; then
8388 ac_cv_search_listen=no
8391 LIBS=$ac_func_search_save_LIBS
8393 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
8394 $as_echo "$ac_cv_search_listen" >&6; }
8395 ac_res=$ac_cv_search_listen
8396 if test "$ac_res" != no; then
8397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8401 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
8402 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
8403 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8404 $as_echo_n "(cached) " >&6
8406 ac_func_search_save_LIBS=$LIBS
8407 cat >conftest.$ac_ext <<_ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8414 /* Override any GCC internal prototype to avoid an error.
8415 Use char because int might match the return type of a GCC
8416 builtin and then its argument prototype would still apply. */
8424 return inet_ntoa ();
8429 for ac_lib in '' nsl; do
8430 if test -z "$ac_lib"; then
8431 ac_res="none required"
8434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8436 rm -f conftest.$ac_objext conftest$ac_exeext
8437 if { (ac_try="$ac_link"
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8443 $as_echo "$ac_try_echo") >&5
8444 (eval "$ac_link") 2>conftest.er1
8446 grep -v '^ *+' conftest.er1 >conftest.err
8448 cat conftest.err >&5
8449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } && {
8451 test -z "$ac_c_werror_flag" ||
8452 test ! -s conftest.err
8453 } && test -s conftest$ac_exeext && {
8454 test "$cross_compiling" = yes ||
8455 $as_test_x conftest$ac_exeext
8457 ac_cv_search_inet_ntoa=$ac_res
8459 $as_echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8465 rm -rf conftest.dSYM
8466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8468 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8472 if test "${ac_cv_search_inet_ntoa+set}" = set; then
8475 ac_cv_search_inet_ntoa=no
8478 LIBS=$ac_func_search_save_LIBS
8480 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
8481 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
8482 ac_res=$ac_cv_search_inet_ntoa
8483 if test "$ac_res" != no; then
8484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8491 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8492 if test -n "$ac_tool_prefix"; then
8493 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8494 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8498 $as_echo_n "(cached) " >&6
8502 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8524 if test -n "$PKG_CONFIG"; then
8525 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8526 $as_echo "$PKG_CONFIG" >&6; }
8528 { $as_echo "$as_me:$LINENO: result: no" >&5
8529 $as_echo "no" >&6; }
8534 if test -z "$ac_cv_path_PKG_CONFIG"; then
8535 ac_pt_PKG_CONFIG=$PKG_CONFIG
8536 # Extract the first word of "pkg-config", so it can be a program name with args.
8537 set dummy pkg-config; ac_word=$2
8538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8541 $as_echo_n "(cached) " >&6
8543 case $ac_pt_PKG_CONFIG in
8545 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8556 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8567 if test -n "$ac_pt_PKG_CONFIG"; then
8568 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
8569 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8571 { $as_echo "$as_me:$LINENO: result: no" >&5
8572 $as_echo "no" >&6; }
8575 if test "x$ac_pt_PKG_CONFIG" = x; then
8578 case $cross_compiling:$ac_tool_warned in
8580 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8582 ac_tool_warned=yes ;;
8584 PKG_CONFIG=$ac_pt_PKG_CONFIG
8587 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8591 if test -n "$PKG_CONFIG"; then
8592 _pkg_min_version=0.9.0
8593 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8594 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8595 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8596 { $as_echo "$as_me:$LINENO: result: yes" >&5
8597 $as_echo "yes" >&6; }
8599 { $as_echo "$as_me:$LINENO: result: no" >&5
8600 $as_echo "no" >&6; }
8607 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
8608 $as_echo_n "checking for LIBPNG... " >&6; }
8610 if test -n "$LIBPNG_CFLAGS"; then
8611 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
8612 elif test -n "$PKG_CONFIG"; then
8613 if test -n "$PKG_CONFIG" && \
8614 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8615 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; then
8619 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
8626 if test -n "$LIBPNG_LIBS"; then
8627 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8628 elif test -n "$PKG_CONFIG"; then
8629 if test -n "$PKG_CONFIG" && \
8630 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
8631 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
8633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; then
8635 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
8645 if test $pkg_failed = yes; then
8647 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8648 _pkg_short_errors_supported=yes
8650 _pkg_short_errors_supported=no
8652 if test $_pkg_short_errors_supported = yes; then
8653 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
8655 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
8657 # Put the nasty error message in config.log where it belongs
8658 echo "$LIBPNG_PKG_ERRORS" >&5
8660 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
8664 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8665 installed software in a non-standard prefix.
8667 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8668 and LIBPNG_LIBS to avoid the need to call pkg-config.
8669 See the pkg-config man page for more details.
8671 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
8675 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8676 installed software in a non-standard prefix.
8678 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8679 and LIBPNG_LIBS to avoid the need to call pkg-config.
8680 See the pkg-config man page for more details.
8682 { (exit 1); exit 1; }; }
8683 elif test $pkg_failed = untried; then
8684 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8686 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8687 is in your PATH or set the PKG_CONFIG environment variable to the full
8690 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8691 and LIBPNG_LIBS to avoid the need to call pkg-config.
8692 See the pkg-config man page for more details.
8694 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8695 See \`config.log' for more details." >&5
8696 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8697 is in your PATH or set the PKG_CONFIG environment variable to the full
8700 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8701 and LIBPNG_LIBS to avoid the need to call pkg-config.
8702 See the pkg-config man page for more details.
8704 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8705 See \`config.log' for more details." >&2;}
8706 { (exit 1); exit 1; }; }; }
8708 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8709 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8710 { $as_echo "$as_me:$LINENO: result: yes" >&5
8711 $as_echo "yes" >&6; }
8716 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
8717 $as_echo_n "checking for uncompress in -lz... " >&6; }
8718 if test "${ac_cv_lib_z_uncompress+set}" = set; then
8719 $as_echo_n "(cached) " >&6
8721 ac_check_lib_save_LIBS=$LIBS
8723 cat >conftest.$ac_ext <<_ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8730 /* Override any GCC internal prototype to avoid an error.
8731 Use char because int might match the return type of a GCC
8732 builtin and then its argument prototype would still apply. */
8740 return uncompress ();
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (ac_try="$ac_link"
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8752 $as_echo "$ac_try_echo") >&5
8753 (eval "$ac_link") 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest$ac_exeext && {
8763 test "$cross_compiling" = yes ||
8764 $as_test_x conftest$ac_exeext
8766 ac_cv_lib_z_uncompress=yes
8768 $as_echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8771 ac_cv_lib_z_uncompress=no
8774 rm -rf conftest.dSYM
8775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8776 conftest$ac_exeext conftest.$ac_ext
8777 LIBS=$ac_check_lib_save_LIBS
8779 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
8780 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
8781 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
8782 cat >>confdefs.h <<_ACEOF
8790 echo "Zlib (libz.so) could not be found, but is required."
8795 if test "x$with_gtk" = "xno"; then
8798 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
8799 $as_echo_n "checking for GLIB... " >&6; }
8801 if test -n "$GLIB_CFLAGS"; then
8802 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
8803 elif test -n "$PKG_CONFIG"; then
8804 if test -n "$PKG_CONFIG" && \
8805 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8806 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; then
8810 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
8817 if test -n "$GLIB_LIBS"; then
8818 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
8819 elif test -n "$PKG_CONFIG"; then
8820 if test -n "$PKG_CONFIG" && \
8821 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
8822 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
8824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; then
8826 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
8836 if test $pkg_failed = yes; then
8838 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8839 _pkg_short_errors_supported=yes
8841 _pkg_short_errors_supported=no
8843 if test $_pkg_short_errors_supported = yes; then
8844 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
8846 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
8848 # Put the nasty error message in config.log where it belongs
8849 echo "$GLIB_PKG_ERRORS" >&5
8851 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
8855 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8856 installed software in a non-standard prefix.
8858 Alternatively, you may set the environment variables GLIB_CFLAGS
8859 and GLIB_LIBS to avoid the need to call pkg-config.
8860 See the pkg-config man page for more details.
8862 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
8866 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8867 installed software in a non-standard prefix.
8869 Alternatively, you may set the environment variables GLIB_CFLAGS
8870 and GLIB_LIBS to avoid the need to call pkg-config.
8871 See the pkg-config man page for more details.
8873 { (exit 1); exit 1; }; }
8874 elif test $pkg_failed = untried; then
8875 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8877 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8878 is in your PATH or set the PKG_CONFIG environment variable to the full
8881 Alternatively, you may set the environment variables GLIB_CFLAGS
8882 and GLIB_LIBS to avoid the need to call pkg-config.
8883 See the pkg-config man page for more details.
8885 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8886 See \`config.log' for more details." >&5
8887 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8888 is in your PATH or set the PKG_CONFIG environment variable to the full
8891 Alternatively, you may set the environment variables GLIB_CFLAGS
8892 and GLIB_LIBS to avoid the need to call pkg-config.
8893 See the pkg-config man page for more details.
8895 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8896 See \`config.log' for more details." >&2;}
8897 { (exit 1); exit 1; }; }; }
8899 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
8900 GLIB_LIBS=$pkg_cv_GLIB_LIBS
8901 { $as_echo "$as_me:$LINENO: result: yes" >&5
8902 $as_echo "yes" >&6; }
8908 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
8909 $as_echo_n "checking for GTK... " >&6; }
8911 if test -n "$GTK_CFLAGS"; then
8912 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8913 elif test -n "$PKG_CONFIG"; then
8914 if test -n "$PKG_CONFIG" && \
8915 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8916 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; then
8920 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
8927 if test -n "$GTK_LIBS"; then
8928 pkg_cv_GTK_LIBS="$GTK_LIBS"
8929 elif test -n "$PKG_CONFIG"; then
8930 if test -n "$PKG_CONFIG" && \
8931 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
8932 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
8934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; then
8936 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
8946 if test $pkg_failed = yes; then
8948 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8949 _pkg_short_errors_supported=yes
8951 _pkg_short_errors_supported=no
8953 if test $_pkg_short_errors_supported = yes; then
8954 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
8956 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
8958 # Put the nasty error message in config.log where it belongs
8959 echo "$GTK_PKG_ERRORS" >&5
8961 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
8965 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8966 installed software in a non-standard prefix.
8968 Alternatively, you may set the environment variables GTK_CFLAGS
8969 and GTK_LIBS to avoid the need to call pkg-config.
8970 See the pkg-config man page for more details.
8972 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
8976 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8977 installed software in a non-standard prefix.
8979 Alternatively, you may set the environment variables GTK_CFLAGS
8980 and GTK_LIBS to avoid the need to call pkg-config.
8981 See the pkg-config man page for more details.
8983 { (exit 1); exit 1; }; }
8984 elif test $pkg_failed = untried; then
8985 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8987 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8988 is in your PATH or set the PKG_CONFIG environment variable to the full
8991 Alternatively, you may set the environment variables GTK_CFLAGS
8992 and GTK_LIBS to avoid the need to call pkg-config.
8993 See the pkg-config man page for more details.
8995 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8996 See \`config.log' for more details." >&5
8997 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8998 is in your PATH or set the PKG_CONFIG environment variable to the full
9001 Alternatively, you may set the environment variables GTK_CFLAGS
9002 and GTK_LIBS to avoid the need to call pkg-config.
9003 See the pkg-config man page for more details.
9005 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9006 See \`config.log' for more details." >&2;}
9007 { (exit 1); exit 1; }; }; }
9009 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
9010 GTK_LIBS=$pkg_cv_GTK_LIBS
9011 { $as_echo "$as_me:$LINENO: result: yes" >&5
9012 $as_echo "yes" >&6; }
9016 cat >>confdefs.h <<\_ACEOF
9023 LIBS="$LIBS $GTK_LIBS"
9024 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
9025 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
9026 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
9027 $as_echo_n "(cached) " >&6
9029 cat >conftest.$ac_ext <<_ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
9036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9037 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
9039 /* System header to define __stub macros and hopefully few prototypes,
9040 which can conflict with char gdk_x11_display_get_xdisplay (); below.
9041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9042 <limits.h> exists even on freestanding compilers. */
9045 # include <limits.h>
9047 # include <assert.h>
9050 #undef gdk_x11_display_get_xdisplay
9052 /* Override any GCC internal prototype to avoid an error.
9053 Use char because int might match the return type of a GCC
9054 builtin and then its argument prototype would still apply. */
9058 char gdk_x11_display_get_xdisplay ();
9059 /* The GNU C library defines this for functions which it implements
9060 to always fail with ENOSYS. Some functions are actually named
9061 something starting with __ and the normal name is an alias. */
9062 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
9069 return gdk_x11_display_get_xdisplay ();
9074 rm -f conftest.$ac_objext conftest$ac_exeext
9075 if { (ac_try="$ac_link"
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9081 $as_echo "$ac_try_echo") >&5
9082 (eval "$ac_link") 2>conftest.er1
9084 grep -v '^ *+' conftest.er1 >conftest.err
9086 cat conftest.err >&5
9087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } && {
9089 test -z "$ac_c_werror_flag" ||
9090 test ! -s conftest.err
9091 } && test -s conftest$ac_exeext && {
9092 test "$cross_compiling" = yes ||
9093 $as_test_x conftest$ac_exeext
9095 ac_cv_func_gdk_x11_display_get_xdisplay=yes
9097 $as_echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9100 ac_cv_func_gdk_x11_display_get_xdisplay=no
9103 rm -rf conftest.dSYM
9104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9105 conftest$ac_exeext conftest.$ac_ext
9107 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
9108 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
9109 if test "x$ac_cv_func_gdk_x11_display_get_xdisplay" = x""yes; then
9113 cat >>confdefs.h <<\_ACEOF
9114 #define HAVE_GTK_X11 1
9119 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
9120 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
9121 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
9122 $as_echo_n "(cached) " >&6
9124 cat >conftest.$ac_ext <<_ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
9131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9132 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
9134 /* System header to define __stub macros and hopefully few prototypes,
9135 which can conflict with char gdk_quartz_window_get_nsview (); below.
9136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9137 <limits.h> exists even on freestanding compilers. */
9140 # include <limits.h>
9142 # include <assert.h>
9145 #undef gdk_quartz_window_get_nsview
9147 /* Override any GCC internal prototype to avoid an error.
9148 Use char because int might match the return type of a GCC
9149 builtin and then its argument prototype would still apply. */
9153 char gdk_quartz_window_get_nsview ();
9154 /* The GNU C library defines this for functions which it implements
9155 to always fail with ENOSYS. Some functions are actually named
9156 something starting with __ and the normal name is an alias. */
9157 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
9164 return gdk_quartz_window_get_nsview ();
9169 rm -f conftest.$ac_objext conftest$ac_exeext
9170 if { (ac_try="$ac_link"
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9176 $as_echo "$ac_try_echo") >&5
9177 (eval "$ac_link") 2>conftest.er1
9179 grep -v '^ *+' conftest.er1 >conftest.err
9181 cat conftest.err >&5
9182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } && {
9184 test -z "$ac_c_werror_flag" ||
9185 test ! -s conftest.err
9186 } && test -s conftest$ac_exeext && {
9187 test "$cross_compiling" = yes ||
9188 $as_test_x conftest$ac_exeext
9190 ac_cv_func_gdk_quartz_window_get_nsview=yes
9192 $as_echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 ac_cv_func_gdk_quartz_window_get_nsview=no
9198 rm -rf conftest.dSYM
9199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9200 conftest$ac_exeext conftest.$ac_ext
9202 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
9203 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
9204 if test "x$ac_cv_func_gdk_quartz_window_get_nsview" = x""yes; then
9208 cat >>confdefs.h <<\_ACEOF
9209 #define HAVE_GTK_OSX 1
9218 if test "$HAVE_GTK" = 'yes'; then
9227 if test "x$with_osmesa" != xno; then
9231 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
9232 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
9233 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
9234 $as_echo_n "(cached) " >&6
9236 ac_check_lib_save_LIBS=$LIBS
9237 LIBS="-lOSMesa $LIBS"
9238 cat >conftest.$ac_ext <<_ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9245 /* Override any GCC internal prototype to avoid an error.
9246 Use char because int might match the return type of a GCC
9247 builtin and then its argument prototype would still apply. */
9251 char OSMesaCreateContext ();
9255 return OSMesaCreateContext ();
9260 rm -f conftest.$ac_objext conftest$ac_exeext
9261 if { (ac_try="$ac_link"
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9267 $as_echo "$ac_try_echo") >&5
9268 (eval "$ac_link") 2>conftest.er1
9270 grep -v '^ *+' conftest.er1 >conftest.err
9272 cat conftest.err >&5
9273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } && {
9275 test -z "$ac_c_werror_flag" ||
9276 test ! -s conftest.err
9277 } && test -s conftest$ac_exeext && {
9278 test "$cross_compiling" = yes ||
9279 $as_test_x conftest$ac_exeext
9281 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
9283 $as_echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9286 ac_cv_lib_OSMesa_OSMesaCreateContext=no
9289 rm -rf conftest.dSYM
9290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9291 conftest$ac_exeext conftest.$ac_ext
9292 LIBS=$ac_check_lib_save_LIBS
9294 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
9295 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
9296 if test "x$ac_cv_lib_OSMesa_OSMesaCreateContext" = x""yes; then
9297 cat >>confdefs.h <<_ACEOF
9298 #define HAVE_LIBOSMESA 1
9301 LIBS="-lOSMesa $LIBS"
9304 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9306 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
9307 See \`config.log' for more details." >&5
9308 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
9309 See \`config.log' for more details." >&2;}
9310 { (exit 1); exit 1; }; }; }
9313 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9314 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9315 $as_echo_n "checking for GL/osmesa.h... " >&6; }
9316 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9317 $as_echo_n "(cached) " >&6
9319 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9320 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
9322 # Is the header compilable?
9323 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
9324 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 $ac_includes_default
9332 #include <GL/osmesa.h>
9334 rm -f conftest.$ac_objext
9335 if { (ac_try="$ac_compile"
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9341 $as_echo "$ac_try_echo") >&5
9342 (eval "$ac_compile") 2>conftest.er1
9344 grep -v '^ *+' conftest.er1 >conftest.err
9346 cat conftest.err >&5
9347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } && {
9349 test -z "$ac_c_werror_flag" ||
9350 test ! -s conftest.err
9351 } && test -s conftest.$ac_objext; then
9352 ac_header_compiler=yes
9354 $as_echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9357 ac_header_compiler=no
9360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9362 $as_echo "$ac_header_compiler" >&6; }
9364 # Is the header present?
9365 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
9366 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
9367 cat >conftest.$ac_ext <<_ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 #include <GL/osmesa.h>
9375 if { (ac_try="$ac_cpp conftest.$ac_ext"
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9381 $as_echo "$ac_try_echo") >&5
9382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9384 grep -v '^ *+' conftest.er1 >conftest.err
9386 cat conftest.err >&5
9387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } >/dev/null && {
9389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9390 test ! -s conftest.err
9392 ac_header_preproc=yes
9394 $as_echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.$ac_ext >&5
9397 ac_header_preproc=no
9400 rm -f conftest.err conftest.$ac_ext
9401 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9402 $as_echo "$ac_header_preproc" >&6; }
9404 # So? What about this header?
9405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9407 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
9408 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9409 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
9410 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
9411 ac_header_preproc=yes
9414 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
9415 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
9416 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
9417 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
9418 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
9419 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
9420 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
9421 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
9422 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
9423 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
9424 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
9425 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
9429 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
9430 $as_echo_n "checking for GL/osmesa.h... " >&6; }
9431 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
9432 $as_echo_n "(cached) " >&6
9434 ac_cv_header_GL_osmesa_h=$ac_header_preproc
9436 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
9437 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
9440 if test "x$ac_cv_header_GL_osmesa_h" = x""yes; then
9443 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9445 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
9446 See \`config.log' for more details." >&5
9447 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
9448 See \`config.log' for more details." >&2;}
9449 { (exit 1); exit 1; }; }; }
9454 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
9456 cat >>confdefs.h <<\_ACEOF
9457 #define HAVE_OSMESA 1
9463 if test "x$APPLE_BUILD" != 'xyes'; then
9465 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
9466 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
9467 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
9468 $as_echo_n "(cached) " >&6
9470 ac_check_lib_save_LIBS=$LIBS
9472 cat >conftest.$ac_ext <<_ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9479 /* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9489 return glVertex3f ();
9494 rm -f conftest.$ac_objext conftest$ac_exeext
9495 if { (ac_try="$ac_link"
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9501 $as_echo "$ac_try_echo") >&5
9502 (eval "$ac_link") 2>conftest.er1
9504 grep -v '^ *+' conftest.er1 >conftest.err
9506 cat conftest.err >&5
9507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } && {
9509 test -z "$ac_c_werror_flag" ||
9510 test ! -s conftest.err
9511 } && test -s conftest$ac_exeext && {
9512 test "$cross_compiling" = yes ||
9513 $as_test_x conftest$ac_exeext
9515 ac_cv_lib_GL_glVertex3f=yes
9517 $as_echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9520 ac_cv_lib_GL_glVertex3f=no
9523 rm -rf conftest.dSYM
9524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9525 conftest$ac_exeext conftest.$ac_ext
9526 LIBS=$ac_check_lib_save_LIBS
9528 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
9529 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
9530 if test "x$ac_cv_lib_GL_glVertex3f" = x""yes; then
9531 cat >>confdefs.h <<_ACEOF
9532 #define HAVE_LIBGL 1
9539 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9541 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9542 See \`config.log' for more details." >&5
9543 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
9544 See \`config.log' for more details." >&2;}
9545 { (exit 1); exit 1; }; }; }
9548 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9549 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9550 $as_echo_n "checking for GL/gl.h... " >&6; }
9551 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9552 $as_echo_n "(cached) " >&6
9554 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9555 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9557 # Is the header compilable?
9558 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
9559 $as_echo_n "checking GL/gl.h usability... " >&6; }
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 $ac_includes_default
9569 rm -f conftest.$ac_objext
9570 if { (ac_try="$ac_compile"
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9576 $as_echo "$ac_try_echo") >&5
9577 (eval "$ac_compile") 2>conftest.er1
9579 grep -v '^ *+' conftest.er1 >conftest.err
9581 cat conftest.err >&5
9582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest.$ac_objext; then
9587 ac_header_compiler=yes
9589 $as_echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9592 ac_header_compiler=no
9595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9597 $as_echo "$ac_header_compiler" >&6; }
9599 # Is the header present?
9600 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
9601 $as_echo_n "checking GL/gl.h presence... " >&6; }
9602 cat >conftest.$ac_ext <<_ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9610 if { (ac_try="$ac_cpp conftest.$ac_ext"
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9616 $as_echo "$ac_try_echo") >&5
9617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9619 grep -v '^ *+' conftest.er1 >conftest.err
9621 cat conftest.err >&5
9622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } >/dev/null && {
9624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9627 ac_header_preproc=yes
9629 $as_echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9632 ac_header_preproc=no
9635 rm -f conftest.err conftest.$ac_ext
9636 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9637 $as_echo "$ac_header_preproc" >&6; }
9639 # So? What about this header?
9640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9642 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9643 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9644 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
9645 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
9646 ac_header_preproc=yes
9649 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
9650 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
9651 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
9652 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
9653 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
9654 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
9655 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
9656 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9657 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
9658 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
9659 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
9660 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
9664 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9665 $as_echo_n "checking for GL/gl.h... " >&6; }
9666 if test "${ac_cv_header_GL_gl_h+set}" = set; then
9667 $as_echo_n "(cached) " >&6
9669 ac_cv_header_GL_gl_h=$ac_header_preproc
9671 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9672 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
9675 if test "x$ac_cv_header_GL_gl_h" = x""yes; then
9679 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9681 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9682 See \`config.log' for more details." >&5
9683 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
9684 See \`config.log' for more details." >&2;}
9685 { (exit 1); exit 1; }; }; }
9690 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
9691 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
9692 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
9693 $as_echo_n "(cached) " >&6
9695 cat >conftest.$ac_ext <<_ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
9702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9703 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
9705 /* System header to define __stub macros and hopefully few prototypes,
9706 which can conflict with char NSOpenGLGetVersion (); below.
9707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9708 <limits.h> exists even on freestanding compilers. */
9711 # include <limits.h>
9713 # include <assert.h>
9716 #undef NSOpenGLGetVersion
9718 /* Override any GCC internal prototype to avoid an error.
9719 Use char because int might match the return type of a GCC
9720 builtin and then its argument prototype would still apply. */
9724 char NSOpenGLGetVersion ();
9725 /* The GNU C library defines this for functions which it implements
9726 to always fail with ENOSYS. Some functions are actually named
9727 something starting with __ and the normal name is an alias. */
9728 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
9735 return NSOpenGLGetVersion ();
9740 rm -f conftest.$ac_objext conftest$ac_exeext
9741 if { (ac_try="$ac_link"
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9747 $as_echo "$ac_try_echo") >&5
9748 (eval "$ac_link") 2>conftest.er1
9750 grep -v '^ *+' conftest.er1 >conftest.err
9752 cat conftest.err >&5
9753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } && {
9755 test -z "$ac_c_werror_flag" ||
9756 test ! -s conftest.err
9757 } && test -s conftest$ac_exeext && {
9758 test "$cross_compiling" = yes ||
9759 $as_test_x conftest$ac_exeext
9761 ac_cv_func_NSOpenGLGetVersion=yes
9763 $as_echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9766 ac_cv_func_NSOpenGLGetVersion=no
9769 rm -rf conftest.dSYM
9770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9771 conftest$ac_exeext conftest.$ac_ext
9773 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
9774 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
9775 if test "x$ac_cv_func_NSOpenGLGetVersion" = x""yes; then
9778 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
9780 cat >>confdefs.h <<\_ACEOF
9788 if test "x$HAVE_GTK_X11" = "xyes"; then
9789 if test "x$APPLE_BUILD" = "xyes"; then
9790 LIBS="$LIBS -L/usr/X11/lib -lGL"
9792 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
9793 $as_echo_n "checking for glXQueryVersion... " >&6; }
9794 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
9795 $as_echo_n "(cached) " >&6
9797 cat >conftest.$ac_ext <<_ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9803 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
9804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9805 #define glXQueryVersion innocuous_glXQueryVersion
9807 /* System header to define __stub macros and hopefully few prototypes,
9808 which can conflict with char glXQueryVersion (); below.
9809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9810 <limits.h> exists even on freestanding compilers. */
9813 # include <limits.h>
9815 # include <assert.h>
9818 #undef glXQueryVersion
9820 /* Override any GCC internal prototype to avoid an error.
9821 Use char because int might match the return type of a GCC
9822 builtin and then its argument prototype would still apply. */
9826 char glXQueryVersion ();
9827 /* The GNU C library defines this for functions which it implements
9828 to always fail with ENOSYS. Some functions are actually named
9829 something starting with __ and the normal name is an alias. */
9830 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
9837 return glXQueryVersion ();
9842 rm -f conftest.$ac_objext conftest$ac_exeext
9843 if { (ac_try="$ac_link"
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9849 $as_echo "$ac_try_echo") >&5
9850 (eval "$ac_link") 2>conftest.er1
9852 grep -v '^ *+' conftest.er1 >conftest.err
9854 cat conftest.err >&5
9855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && {
9857 test -z "$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest$ac_exeext && {
9860 test "$cross_compiling" = yes ||
9861 $as_test_x conftest$ac_exeext
9863 ac_cv_func_glXQueryVersion=yes
9865 $as_echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9868 ac_cv_func_glXQueryVersion=no
9871 rm -rf conftest.dSYM
9872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9873 conftest$ac_exeext conftest.$ac_ext
9875 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
9876 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
9877 if test "x$ac_cv_func_glXQueryVersion" = x""yes; then
9880 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
9882 cat >>confdefs.h <<\_ACEOF
9898 if test "x$HAVE_OSMESA" = "xyes"; then
9900 VIDEO_OSMESA_FALSE='#'
9902 VIDEO_OSMESA_TRUE='#'
9908 if test "x$HAVE_GLX" = "xyes"; then
9918 if test "x$HAVE_NSGL" = "xyes"; then
9920 VIDEO_NSGL_FALSE='#'
9927 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
9928 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
9929 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
9930 $as_echo_n "(cached) " >&6
9932 cat >conftest.$ac_ext <<_ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
9939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9940 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
9942 /* System header to define __stub macros and hopefully few prototypes,
9943 which can conflict with char glGenFramebuffersEXT (); below.
9944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9945 <limits.h> exists even on freestanding compilers. */
9948 # include <limits.h>
9950 # include <assert.h>
9953 #undef glGenFramebuffersEXT
9955 /* Override any GCC internal prototype to avoid an error.
9956 Use char because int might match the return type of a GCC
9957 builtin and then its argument prototype would still apply. */
9961 char glGenFramebuffersEXT ();
9962 /* The GNU C library defines this for functions which it implements
9963 to always fail with ENOSYS. Some functions are actually named
9964 something starting with __ and the normal name is an alias. */
9965 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
9972 return glGenFramebuffersEXT ();
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9984 $as_echo "$ac_try_echo") >&5
9985 (eval "$ac_link") 2>conftest.er1
9987 grep -v '^ *+' conftest.er1 >conftest.err
9989 cat conftest.err >&5
9990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } && {
9992 test -z "$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9994 } && test -s conftest$ac_exeext && {
9995 test "$cross_compiling" = yes ||
9996 $as_test_x conftest$ac_exeext
9998 ac_cv_func_glGenFramebuffersEXT=yes
10000 $as_echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10003 ac_cv_func_glGenFramebuffersEXT=no
10006 rm -rf conftest.dSYM
10007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10008 conftest$ac_exeext conftest.$ac_ext
10010 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
10011 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
10012 if test "x$ac_cv_func_glGenFramebuffersEXT" = x""yes; then
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_OPENGL_FBO 1
10020 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
10021 $as_echo_n "checking for glCreateShader... " >&6; }
10022 if test "${ac_cv_func_glCreateShader+set}" = set; then
10023 $as_echo_n "(cached) " >&6
10025 cat >conftest.$ac_ext <<_ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10031 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
10032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10033 #define glCreateShader innocuous_glCreateShader
10035 /* System header to define __stub macros and hopefully few prototypes,
10036 which can conflict with char glCreateShader (); below.
10037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10038 <limits.h> exists even on freestanding compilers. */
10041 # include <limits.h>
10043 # include <assert.h>
10046 #undef glCreateShader
10048 /* Override any GCC internal prototype to avoid an error.
10049 Use char because int might match the return type of a GCC
10050 builtin and then its argument prototype would still apply. */
10054 char glCreateShader ();
10055 /* The GNU C library defines this for functions which it implements
10056 to always fail with ENOSYS. Some functions are actually named
10057 something starting with __ and the normal name is an alias. */
10058 #if defined __stub_glCreateShader || defined __stub___glCreateShader
10065 return glCreateShader ();
10070 rm -f conftest.$ac_objext conftest$ac_exeext
10071 if { (ac_try="$ac_link"
10072 case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10077 $as_echo "$ac_try_echo") >&5
10078 (eval "$ac_link") 2>conftest.er1
10080 grep -v '^ *+' conftest.er1 >conftest.err
10082 cat conftest.err >&5
10083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } && {
10085 test -z "$ac_c_werror_flag" ||
10086 test ! -s conftest.err
10087 } && test -s conftest$ac_exeext && {
10088 test "$cross_compiling" = yes ||
10089 $as_test_x conftest$ac_exeext
10091 ac_cv_func_glCreateShader=yes
10093 $as_echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10096 ac_cv_func_glCreateShader=no
10099 rm -rf conftest.dSYM
10100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10101 conftest$ac_exeext conftest.$ac_ext
10103 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
10104 $as_echo "$ac_cv_func_glCreateShader" >&6; }
10105 if test "x$ac_cv_func_glCreateShader" = x""yes; then
10107 cat >>confdefs.h <<\_ACEOF
10108 #define HAVE_OPENGL_SHADER 1
10113 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
10114 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
10115 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
10116 $as_echo_n "(cached) " >&6
10118 cat >conftest.$ac_ext <<_ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
10125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10126 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
10128 /* System header to define __stub macros and hopefully few prototypes,
10129 which can conflict with char glCreateShaderObjectARB (); below.
10130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10131 <limits.h> exists even on freestanding compilers. */
10134 # include <limits.h>
10136 # include <assert.h>
10139 #undef glCreateShaderObjectARB
10141 /* Override any GCC internal prototype to avoid an error.
10142 Use char because int might match the return type of a GCC
10143 builtin and then its argument prototype would still apply. */
10147 char glCreateShaderObjectARB ();
10148 /* The GNU C library defines this for functions which it implements
10149 to always fail with ENOSYS. Some functions are actually named
10150 something starting with __ and the normal name is an alias. */
10151 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
10158 return glCreateShaderObjectARB ();
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (ac_try="$ac_link"
10165 case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10170 $as_echo "$ac_try_echo") >&5
10171 (eval "$ac_link") 2>conftest.er1
10173 grep -v '^ *+' conftest.er1 >conftest.err
10175 cat conftest.err >&5
10176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && {
10178 test -z "$ac_c_werror_flag" ||
10179 test ! -s conftest.err
10180 } && test -s conftest$ac_exeext && {
10181 test "$cross_compiling" = yes ||
10182 $as_test_x conftest$ac_exeext
10184 ac_cv_func_glCreateShaderObjectARB=yes
10186 $as_echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10189 ac_cv_func_glCreateShaderObjectARB=no
10192 rm -rf conftest.dSYM
10193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10194 conftest$ac_exeext conftest.$ac_ext
10196 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
10197 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
10198 if test "x$ac_cv_func_glCreateShaderObjectARB" = x""yes; then
10200 cat >>confdefs.h <<\_ACEOF
10201 #define HAVE_OPENGL_SHADER_ARB 1
10206 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
10207 $as_echo_n "checking for glClampColorARB... " >&6; }
10208 if test "${ac_cv_func_glClampColorARB+set}" = set; then
10209 $as_echo_n "(cached) " >&6
10211 cat >conftest.$ac_ext <<_ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
10218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10219 #define glClampColorARB innocuous_glClampColorARB
10221 /* System header to define __stub macros and hopefully few prototypes,
10222 which can conflict with char glClampColorARB (); below.
10223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10224 <limits.h> exists even on freestanding compilers. */
10227 # include <limits.h>
10229 # include <assert.h>
10232 #undef glClampColorARB
10234 /* Override any GCC internal prototype to avoid an error.
10235 Use char because int might match the return type of a GCC
10236 builtin and then its argument prototype would still apply. */
10240 char glClampColorARB ();
10241 /* The GNU C library defines this for functions which it implements
10242 to always fail with ENOSYS. Some functions are actually named
10243 something starting with __ and the normal name is an alias. */
10244 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
10251 return glClampColorARB ();
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (ac_try="$ac_link"
10258 case "(($ac_try" in
10259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260 *) ac_try_echo=$ac_try;;
10262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10263 $as_echo "$ac_try_echo") >&5
10264 (eval "$ac_link") 2>conftest.er1
10266 grep -v '^ *+' conftest.er1 >conftest.err
10268 cat conftest.err >&5
10269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } && {
10271 test -z "$ac_c_werror_flag" ||
10272 test ! -s conftest.err
10273 } && test -s conftest$ac_exeext && {
10274 test "$cross_compiling" = yes ||
10275 $as_test_x conftest$ac_exeext
10277 ac_cv_func_glClampColorARB=yes
10279 $as_echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 ac_cv_func_glClampColorARB=no
10285 rm -rf conftest.dSYM
10286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10287 conftest$ac_exeext conftest.$ac_ext
10289 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
10290 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
10291 if test "x$ac_cv_func_glClampColorARB" = x""yes; then
10293 cat >>confdefs.h <<\_ACEOF
10294 #define HAVE_OPENGL_CLAMP_COLOR 1
10302 if test "x$enable_translator" != "xno"; then
10304 i386|i486|i586|i686|x86_64)
10305 SH4_TRANSLATOR="x86"
10307 cat >>confdefs.h <<_ACEOF
10308 #define SH4_TRANSLATOR TARGET_X86
10315 if test "$SH4_TRANSLATOR" = "x86"; then
10317 BUILD_SH4X86_FALSE='#'
10319 BUILD_SH4X86_TRUE='#'
10320 BUILD_SH4X86_FALSE=
10324 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10325 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10326 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
10327 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10328 $as_echo_n "(cached) " >&6
10330 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10331 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10333 # Is the header compilable?
10334 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
10335 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
10336 cat >conftest.$ac_ext <<_ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342 $ac_includes_default
10343 #include <CoreAudio/CoreAudio.h>
10345 rm -f conftest.$ac_objext
10346 if { (ac_try="$ac_compile"
10347 case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10352 $as_echo "$ac_try_echo") >&5
10353 (eval "$ac_compile") 2>conftest.er1
10355 grep -v '^ *+' conftest.er1 >conftest.err
10357 cat conftest.err >&5
10358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } && {
10360 test -z "$ac_c_werror_flag" ||
10361 test ! -s conftest.err
10362 } && test -s conftest.$ac_objext; then
10363 ac_header_compiler=yes
10365 $as_echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10368 ac_header_compiler=no
10371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10373 $as_echo "$ac_header_compiler" >&6; }
10375 # Is the header present?
10376 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
10377 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
10378 cat >conftest.$ac_ext <<_ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384 #include <CoreAudio/CoreAudio.h>
10386 if { (ac_try="$ac_cpp conftest.$ac_ext"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10392 $as_echo "$ac_try_echo") >&5
10393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10395 grep -v '^ *+' conftest.er1 >conftest.err
10397 cat conftest.err >&5
10398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } >/dev/null && {
10400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10403 ac_header_preproc=yes
10405 $as_echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 ac_header_preproc=no
10411 rm -f conftest.err conftest.$ac_ext
10412 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10413 $as_echo "$ac_header_preproc" >&6; }
10415 # So? What about this header?
10416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10418 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10419 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10420 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
10421 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
10422 ac_header_preproc=yes
10425 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
10426 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
10427 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
10428 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
10429 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
10430 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
10431 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
10432 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10433 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
10434 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
10435 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
10436 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
10440 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
10441 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
10442 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
10443 $as_echo_n "(cached) " >&6
10445 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
10447 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
10448 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
10451 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = x""yes; then
10453 HAVE_CORE_AUDIO=yes
10454 LIBS="$LIBS -framework CoreAudio"
10455 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
10457 cat >>confdefs.h <<\_ACEOF
10458 #define HAVE_CORE_AUDIO 1
10468 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
10470 AUDIO_OSX_FALSE='#'
10477 if test "x$with_sdl" != "xno"; then
10480 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
10481 $as_echo_n "checking for SDL... " >&6; }
10483 if test -n "$SDL_CFLAGS"; then
10484 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
10485 elif test -n "$PKG_CONFIG"; then
10486 if test -n "$PKG_CONFIG" && \
10487 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10488 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; then
10492 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
10499 if test -n "$SDL_LIBS"; then
10500 pkg_cv_SDL_LIBS="$SDL_LIBS"
10501 elif test -n "$PKG_CONFIG"; then
10502 if test -n "$PKG_CONFIG" && \
10503 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
10504 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
10506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; then
10508 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
10518 if test $pkg_failed = yes; then
10520 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10521 _pkg_short_errors_supported=yes
10523 _pkg_short_errors_supported=no
10525 if test $_pkg_short_errors_supported = yes; then
10526 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
10528 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
10530 # Put the nasty error message in config.log where it belongs
10531 echo "$SDL_PKG_ERRORS" >&5
10533 { $as_echo "$as_me:$LINENO: result: no" >&5
10534 $as_echo "no" >&6; }
10536 if test "x$with_sdl" = "xyes"; then
10537 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10539 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10540 See \`config.log' for more details." >&5
10541 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10542 See \`config.log' for more details." >&2;}
10543 { (exit 1); exit 1; }; }; }
10546 elif test $pkg_failed = untried; then
10548 if test "x$with_sdl" = "xyes"; then
10549 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10551 { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
10552 See \`config.log' for more details." >&5
10553 $as_echo "$as_me: error: \"SDL libraries could not be found (but were required)
10554 See \`config.log' for more details." >&2;}
10555 { (exit 1); exit 1; }; }; }
10559 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
10560 SDL_LIBS=$pkg_cv_SDL_LIBS
10561 { $as_echo "$as_me:$LINENO: result: yes" >&5
10562 $as_echo "yes" >&6; }
10565 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
10567 cat >>confdefs.h <<\_ACEOF
10576 if test "$HAVE_SDL" = 'yes' ; then
10578 AUDIO_SDL_FALSE='#'
10585 if test "x$with_pulse" != "xno"; then
10588 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
10589 $as_echo_n "checking for PULSE... " >&6; }
10591 if test -n "$PULSE_CFLAGS"; then
10592 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
10593 elif test -n "$PKG_CONFIG"; then
10594 if test -n "$PKG_CONFIG" && \
10595 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10596 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; then
10600 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
10607 if test -n "$PULSE_LIBS"; then
10608 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
10609 elif test -n "$PKG_CONFIG"; then
10610 if test -n "$PKG_CONFIG" && \
10611 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
10612 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
10614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; then
10616 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
10626 if test $pkg_failed = yes; then
10628 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10629 _pkg_short_errors_supported=yes
10631 _pkg_short_errors_supported=no
10633 if test $_pkg_short_errors_supported = yes; then
10634 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
10636 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
10638 # Put the nasty error message in config.log where it belongs
10639 echo "$PULSE_PKG_ERRORS" >&5
10641 { $as_echo "$as_me:$LINENO: result: no" >&5
10642 $as_echo "no" >&6; }
10644 if test "x$with_pulse" = "xyes"; then
10645 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10647 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10648 See \`config.log' for more details." >&5
10649 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10650 See \`config.log' for more details." >&2;}
10651 { (exit 1); exit 1; }; }; }
10654 elif test $pkg_failed = untried; then
10656 if test "x$with_pulse" = "xyes"; then
10657 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10659 { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
10660 See \`config.log' for more details." >&5
10661 $as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)
10662 See \`config.log' for more details." >&2;}
10663 { (exit 1); exit 1; }; }; }
10667 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
10668 PULSE_LIBS=$pkg_cv_PULSE_LIBS
10669 { $as_echo "$as_me:$LINENO: result: yes" >&5
10670 $as_echo "yes" >&6; }
10673 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
10675 cat >>confdefs.h <<\_ACEOF
10676 #define HAVE_PULSE 1
10684 if test "$HAVE_PULSE" = 'yes' ; then
10686 AUDIO_PULSE_FALSE='#'
10688 AUDIO_PULSE_TRUE='#'
10693 if test "x$with_esd" != "xno"; then
10696 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
10697 $as_echo_n "checking for ESOUND... " >&6; }
10699 if test -n "$ESOUND_CFLAGS"; then
10700 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
10701 elif test -n "$PKG_CONFIG"; then
10702 if test -n "$PKG_CONFIG" && \
10703 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10704 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; then
10708 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
10715 if test -n "$ESOUND_LIBS"; then
10716 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
10717 elif test -n "$PKG_CONFIG"; then
10718 if test -n "$PKG_CONFIG" && \
10719 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
10720 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
10722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; then
10724 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
10734 if test $pkg_failed = yes; then
10736 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10737 _pkg_short_errors_supported=yes
10739 _pkg_short_errors_supported=no
10741 if test $_pkg_short_errors_supported = yes; then
10742 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
10744 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
10746 # Put the nasty error message in config.log where it belongs
10747 echo "$ESOUND_PKG_ERRORS" >&5
10749 { $as_echo "$as_me:$LINENO: result: no" >&5
10750 $as_echo "no" >&6; }
10752 if test "x$with_esd" = "xyes"; then
10753 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10755 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10756 See \`config.log' for more details." >&5
10757 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10758 See \`config.log' for more details." >&2;}
10759 { (exit 1); exit 1; }; }; }
10762 elif test $pkg_failed = untried; then
10764 if test "x$with_esd" = "xyes"; then
10765 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10767 { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
10768 See \`config.log' for more details." >&5
10769 $as_echo "$as_me: error: ESounD audio package could not be found (but was required)
10770 See \`config.log' for more details." >&2;}
10771 { (exit 1); exit 1; }; }; }
10775 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
10776 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
10777 { $as_echo "$as_me:$LINENO: result: yes" >&5
10778 $as_echo "yes" >&6; }
10781 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
10783 cat >>confdefs.h <<\_ACEOF
10784 #define HAVE_ESOUND 1
10792 if test "$HAVE_ESOUND" = 'yes' ; then
10794 AUDIO_ESOUND_FALSE='#'
10796 AUDIO_ESOUND_TRUE='#'
10797 AUDIO_ESOUND_FALSE=
10803 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
10804 $as_echo_n "checking for ALSA... " >&6; }
10806 if test -n "$ALSA_CFLAGS"; then
10807 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
10808 elif test -n "$PKG_CONFIG"; then
10809 if test -n "$PKG_CONFIG" && \
10810 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10811 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; then
10815 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
10822 if test -n "$ALSA_LIBS"; then
10823 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
10824 elif test -n "$PKG_CONFIG"; then
10825 if test -n "$PKG_CONFIG" && \
10826 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
10827 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
10829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; then
10831 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
10841 if test $pkg_failed = yes; then
10843 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10844 _pkg_short_errors_supported=yes
10846 _pkg_short_errors_supported=no
10848 if test $_pkg_short_errors_supported = yes; then
10849 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
10851 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
10853 # Put the nasty error message in config.log where it belongs
10854 echo "$ALSA_PKG_ERRORS" >&5
10856 { $as_echo "$as_me:$LINENO: result: no" >&5
10857 $as_echo "no" >&6; }
10859 elif test $pkg_failed = untried; then
10862 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
10863 ALSA_LIBS=$pkg_cv_ALSA_LIBS
10864 { $as_echo "$as_me:$LINENO: result: yes" >&5
10865 $as_echo "yes" >&6; }
10868 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
10870 cat >>confdefs.h <<\_ACEOF
10871 #define HAVE_ALSA 1
10877 if test "$HAVE_ALSA" = 'yes' ; then
10879 AUDIO_ALSA_FALSE='#'
10881 AUDIO_ALSA_TRUE='#'
10887 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10888 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
10889 $as_echo_n "checking for linux/cdrom.h... " >&6; }
10890 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
10891 $as_echo_n "(cached) " >&6
10893 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
10894 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
10896 # Is the header compilable?
10897 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
10898 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
10899 cat >conftest.$ac_ext <<_ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905 $ac_includes_default
10906 #include <linux/cdrom.h>
10908 rm -f conftest.$ac_objext
10909 if { (ac_try="$ac_compile"
10910 case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10915 $as_echo "$ac_try_echo") >&5
10916 (eval "$ac_compile") 2>conftest.er1
10918 grep -v '^ *+' conftest.er1 >conftest.err
10920 cat conftest.err >&5
10921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest.$ac_objext; then
10926 ac_header_compiler=yes
10928 $as_echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10931 ac_header_compiler=no
10934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10935 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10936 $as_echo "$ac_header_compiler" >&6; }
10938 # Is the header present?
10939 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
10940 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
10941 cat >conftest.$ac_ext <<_ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 #include <linux/cdrom.h>
10949 if { (ac_try="$ac_cpp conftest.$ac_ext"
10950 case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10955 $as_echo "$ac_try_echo") >&5
10956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10958 grep -v '^ *+' conftest.er1 >conftest.err
10960 cat conftest.err >&5
10961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } >/dev/null && {
10963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10964 test ! -s conftest.err
10966 ac_header_preproc=yes
10968 $as_echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_header_preproc=no
10974 rm -f conftest.err conftest.$ac_ext
10975 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10976 $as_echo "$ac_header_preproc" >&6; }
10978 # So? What about this header?
10979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10981 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
10982 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10983 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
10984 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
10985 ac_header_preproc=yes
10988 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
10989 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
10990 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
10991 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
10992 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
10993 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
10994 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
10995 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
10996 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
10997 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
10998 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
10999 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
11003 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
11004 $as_echo_n "checking for linux/cdrom.h... " >&6; }
11005 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
11006 $as_echo_n "(cached) " >&6
11008 ac_cv_header_linux_cdrom_h=$ac_header_preproc
11010 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
11011 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
11014 if test "x$ac_cv_header_linux_cdrom_h" = x""yes; then
11017 { $as_echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
11018 $as_echo_n "checking C99 compliant kernel headers... " >&6; }
11019 old_CFLAGS="$CFLAGS"
11020 CFLAGS="$CFLAGS $STDCFLAG"
11021 cat >conftest.$ac_ext <<_ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 #include <linux/cdrom.h>
11036 rm -f conftest.$ac_objext
11037 if { (ac_try="$ac_compile"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044 (eval "$ac_compile") 2>conftest.er1
11046 grep -v '^ *+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest.$ac_objext; then
11054 { $as_echo "$as_me:$LINENO: result: Yes" >&5
11055 $as_echo "Yes" >&6; }
11057 $as_echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11061 { $as_echo "$as_me:$LINENO: result: No" >&5
11062 $as_echo "No" >&6; }
11063 STDCFLAG="-std=gnu99"
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 CFLAGS="$old_CFLAGS"
11074 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11075 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
11076 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
11077 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11078 $as_echo_n "(cached) " >&6
11080 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
11081 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
11083 # Is the header compilable?
11084 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
11085 $as_echo_n "checking IOKit/IOKitLib.h usability... " >&6; }
11086 cat >conftest.$ac_ext <<_ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 $ac_includes_default
11093 #include <IOKit/IOKitLib.h>
11095 rm -f conftest.$ac_objext
11096 if { (ac_try="$ac_compile"
11097 case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11102 $as_echo "$ac_try_echo") >&5
11103 (eval "$ac_compile") 2>conftest.er1
11105 grep -v '^ *+' conftest.er1 >conftest.err
11107 cat conftest.err >&5
11108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && {
11110 test -z "$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11112 } && test -s conftest.$ac_objext; then
11113 ac_header_compiler=yes
11115 $as_echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11118 ac_header_compiler=no
11121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11123 $as_echo "$ac_header_compiler" >&6; }
11125 # Is the header present?
11126 { $as_echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
11127 $as_echo_n "checking IOKit/IOKitLib.h presence... " >&6; }
11128 cat >conftest.$ac_ext <<_ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h. */
11134 #include <IOKit/IOKitLib.h>
11136 if { (ac_try="$ac_cpp conftest.$ac_ext"
11137 case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11142 $as_echo "$ac_try_echo") >&5
11143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11145 grep -v '^ *+' conftest.er1 >conftest.err
11147 cat conftest.err >&5
11148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } >/dev/null && {
11150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11151 test ! -s conftest.err
11153 ac_header_preproc=yes
11155 $as_echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 ac_header_preproc=no
11161 rm -f conftest.err conftest.$ac_ext
11162 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11163 $as_echo "$ac_header_preproc" >&6; }
11165 # So? What about this header?
11166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11168 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11169 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11170 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
11171 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
11172 ac_header_preproc=yes
11175 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
11176 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
11177 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
11178 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
11179 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
11180 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
11181 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
11182 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11183 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
11184 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
11185 { $as_echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
11186 $as_echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
11190 { $as_echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
11191 $as_echo_n "checking for IOKit/IOKitLib.h... " >&6; }
11192 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
11193 $as_echo_n "(cached) " >&6
11195 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
11197 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
11198 $as_echo "$ac_cv_header_IOKit_IOKitLib_h" >&6; }
11201 if test "x$ac_cv_header_IOKit_IOKitLib_h" = x""yes; then
11204 LIBS="$LIBS -framework IOKit"
11212 if test "x$CDROM_DRIVER" = "xlinux"; then
11214 CDROM_LINUX_FALSE='#'
11216 CDROM_LINUX_TRUE='#'
11222 if test "x$CDROM_DRIVER" = "xosx"; then
11224 CDROM_OSX_FALSE='#'
11232 if test "x$CDROM_DRIVER" = "x"; then
11234 CDROM_NONE_FALSE='#'
11236 CDROM_NONE_TRUE='#'
11241 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11242 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11243 $as_echo_n "checking for linux/joystick.h... " >&6; }
11244 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11245 $as_echo_n "(cached) " >&6
11247 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11248 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
11250 # Is the header compilable?
11251 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
11252 $as_echo_n "checking linux/joystick.h usability... " >&6; }
11253 cat >conftest.$ac_ext <<_ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 $ac_includes_default
11260 #include <linux/joystick.h>
11262 rm -f conftest.$ac_objext
11263 if { (ac_try="$ac_compile"
11264 case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11269 $as_echo "$ac_try_echo") >&5
11270 (eval "$ac_compile") 2>conftest.er1
11272 grep -v '^ *+' conftest.er1 >conftest.err
11274 cat conftest.err >&5
11275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } && {
11277 test -z "$ac_c_werror_flag" ||
11278 test ! -s conftest.err
11279 } && test -s conftest.$ac_objext; then
11280 ac_header_compiler=yes
11282 $as_echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11285 ac_header_compiler=no
11288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11290 $as_echo "$ac_header_compiler" >&6; }
11292 # Is the header present?
11293 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
11294 $as_echo_n "checking linux/joystick.h presence... " >&6; }
11295 cat >conftest.$ac_ext <<_ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301 #include <linux/joystick.h>
11303 if { (ac_try="$ac_cpp conftest.$ac_ext"
11304 case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11309 $as_echo "$ac_try_echo") >&5
11310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11312 grep -v '^ *+' conftest.er1 >conftest.err
11314 cat conftest.err >&5
11315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } >/dev/null && {
11317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11318 test ! -s conftest.err
11320 ac_header_preproc=yes
11322 $as_echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 ac_header_preproc=no
11328 rm -f conftest.err conftest.$ac_ext
11329 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11330 $as_echo "$ac_header_preproc" >&6; }
11332 # So? What about this header?
11333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11335 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
11336 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11337 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
11338 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
11339 ac_header_preproc=yes
11342 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
11343 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
11344 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
11345 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
11346 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
11347 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
11348 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
11349 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
11350 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
11351 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
11352 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
11353 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
11357 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11358 $as_echo_n "checking for linux/joystick.h... " >&6; }
11359 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11360 $as_echo_n "(cached) " >&6
11362 ac_cv_header_linux_joystick_h=$ac_header_preproc
11364 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11365 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
11368 if test "x$ac_cv_header_linux_joystick_h" = x""yes; then
11370 HAVE_LINUX_JOYSTICK_H=yes
11372 cat >>confdefs.h <<\_ACEOF
11373 #define HAVE_LINUX_JOYSTICK 1
11376 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
11378 echo "Linux Joystick support not found, building without it."
11384 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
11386 JOY_LINUX_FALSE='#'
11393 if test "x$with_lirc" != "xno"; then
11394 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11395 { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
11396 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
11397 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11398 $as_echo_n "(cached) " >&6
11400 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
11401 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
11403 # Is the header compilable?
11404 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
11405 $as_echo_n "checking lirc/lirc_client.h usability... " >&6; }
11406 cat >conftest.$ac_ext <<_ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412 $ac_includes_default
11413 #include <lirc/lirc_client.h>
11415 rm -f conftest.$ac_objext
11416 if { (ac_try="$ac_compile"
11417 case "(($ac_try" in
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419 *) ac_try_echo=$ac_try;;
11421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11422 $as_echo "$ac_try_echo") >&5
11423 (eval "$ac_compile") 2>conftest.er1
11425 grep -v '^ *+' conftest.er1 >conftest.err
11427 cat conftest.err >&5
11428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } && {
11430 test -z "$ac_c_werror_flag" ||
11431 test ! -s conftest.err
11432 } && test -s conftest.$ac_objext; then
11433 ac_header_compiler=yes
11435 $as_echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11438 ac_header_compiler=no
11441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11443 $as_echo "$ac_header_compiler" >&6; }
11445 # Is the header present?
11446 { $as_echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
11447 $as_echo_n "checking lirc/lirc_client.h presence... " >&6; }
11448 cat >conftest.$ac_ext <<_ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 #include <lirc/lirc_client.h>
11456 if { (ac_try="$ac_cpp conftest.$ac_ext"
11457 case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11462 $as_echo "$ac_try_echo") >&5
11463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11465 grep -v '^ *+' conftest.er1 >conftest.err
11467 cat conftest.err >&5
11468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } >/dev/null && {
11470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11473 ac_header_preproc=yes
11475 $as_echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11478 ac_header_preproc=no
11481 rm -f conftest.err conftest.$ac_ext
11482 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11483 $as_echo "$ac_header_preproc" >&6; }
11485 # So? What about this header?
11486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11488 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
11489 $as_echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11490 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
11491 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
11492 ac_header_preproc=yes
11495 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
11496 $as_echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
11497 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
11498 $as_echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
11499 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
11500 $as_echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
11501 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
11502 $as_echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
11503 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
11504 $as_echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
11505 { $as_echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
11506 $as_echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
11510 { $as_echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
11511 $as_echo_n "checking for lirc/lirc_client.h... " >&6; }
11512 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11513 $as_echo_n "(cached) " >&6
11515 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
11517 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
11518 $as_echo "$ac_cv_header_lirc_lirc_client_h" >&6; }
11521 if test "x$ac_cv_header_lirc_lirc_client_h" = x""yes; then
11523 HAVE_LIRC_CLIENT_H=yes
11525 cat >>confdefs.h <<\_ACEOF
11526 #define HAVE_LIRC 1
11529 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
11532 echo "LIRC support not found, building without it."
11539 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
11541 INPUT_LIRC_FALSE='#'
11543 INPUT_LIRC_TRUE='#'
11548 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
11549 set dummy sh-elf-gcc; ac_word=$2
11550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11551 $as_echo_n "checking for $ac_word... " >&6; }
11552 if test "${ac_cv_path_SHCC+set}" = set; then
11553 $as_echo_n "(cached) " >&6
11557 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561 for as_dir in $PATH
11564 test -z "$as_dir" && as_dir=.
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11567 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
11568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11578 SHCC=$ac_cv_path_SHCC
11579 if test -n "$SHCC"; then
11580 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
11581 $as_echo "$SHCC" >&6; }
11583 { $as_echo "$as_me:$LINENO: result: no" >&5
11584 $as_echo "no" >&6; }
11588 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
11589 set dummy sh-elf-ld; ac_word=$2
11590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11591 $as_echo_n "checking for $ac_word... " >&6; }
11592 if test "${ac_cv_path_SHLD+set}" = set; then
11593 $as_echo_n "(cached) " >&6
11597 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601 for as_dir in $PATH
11604 test -z "$as_dir" && as_dir=.
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11607 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
11608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11618 SHLD=$ac_cv_path_SHLD
11619 if test -n "$SHLD"; then
11620 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
11621 $as_echo "$SHLD" >&6; }
11623 { $as_echo "$as_me:$LINENO: result: no" >&5
11624 $as_echo "no" >&6; }
11628 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
11629 set dummy sh-elf-objcopy; ac_word=$2
11630 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11631 $as_echo_n "checking for $ac_word... " >&6; }
11632 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
11633 $as_echo_n "(cached) " >&6
11637 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641 for as_dir in $PATH
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11647 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11648 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11658 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
11659 if test -n "$SHOBJCOPY"; then
11660 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
11661 $as_echo "$SHOBJCOPY" >&6; }
11663 { $as_echo "$as_me:$LINENO: result: no" >&5
11664 $as_echo "no" >&6; }
11668 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
11669 set dummy arm-elf-gcc; ac_word=$2
11670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11671 $as_echo_n "checking for $ac_word... " >&6; }
11672 if test "${ac_cv_path_ARMCC+set}" = set; then
11673 $as_echo_n "(cached) " >&6
11677 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
11680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681 for as_dir in $PATH
11684 test -z "$as_dir" && as_dir=.
11685 for ac_exec_ext in '' $ac_executable_extensions; do
11686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11687 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
11688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11698 ARMCC=$ac_cv_path_ARMCC
11699 if test -n "$ARMCC"; then
11700 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
11701 $as_echo "$ARMCC" >&6; }
11703 { $as_echo "$as_me:$LINENO: result: no" >&5
11704 $as_echo "no" >&6; }
11708 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
11709 set dummy arm-elf-ld; ac_word=$2
11710 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11711 $as_echo_n "checking for $ac_word... " >&6; }
11712 if test "${ac_cv_path_ARMLD+set}" = set; then
11713 $as_echo_n "(cached) " >&6
11717 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
11720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721 for as_dir in $PATH
11724 test -z "$as_dir" && as_dir=.
11725 for ac_exec_ext in '' $ac_executable_extensions; do
11726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11727 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
11728 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11738 ARMLD=$ac_cv_path_ARMLD
11739 if test -n "$ARMLD"; then
11740 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
11741 $as_echo "$ARMLD" >&6; }
11743 { $as_echo "$as_me:$LINENO: result: no" >&5
11744 $as_echo "no" >&6; }
11748 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
11749 set dummy arm-elf-objcopy; ac_word=$2
11750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11751 $as_echo_n "checking for $ac_word... " >&6; }
11752 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
11753 $as_echo_n "(cached) " >&6
11755 case $ARMOBJCOPY in
11757 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
11760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in $PATH
11764 test -z "$as_dir" && as_dir=.
11765 for ac_exec_ext in '' $ac_executable_extensions; do
11766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11767 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
11768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11778 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
11779 if test -n "$ARMOBJCOPY"; then
11780 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
11781 $as_echo "$ARMOBJCOPY" >&6; }
11783 { $as_echo "$as_me:$LINENO: result: no" >&5
11784 $as_echo "no" >&6; }
11789 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
11791 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
11795 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
11797 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
11803 if test "$BUILD_SH" = "yes"; then
11804 BUILD_SYSTEST_TRUE=
11805 BUILD_SYSTEST_FALSE='#'
11807 BUILD_SYSTEST_TRUE='#'
11808 BUILD_SYSTEST_FALSE=
11813 if test "$BUILD_ARM" = "yes"; then
11814 BUILD_ARMTEST_TRUE=
11815 BUILD_ARMTEST_FALSE='#'
11817 BUILD_ARMTEST_TRUE='#'
11818 BUILD_ARMTEST_FALSE=
11822 CFLAGS="$CFLAGS $STDCFLAG"
11824 GETTEXT_PACKAGE=lxdream
11825 LXDREAM_LIBS="$LIBS"
11830 cat >>confdefs.h <<_ACEOF
11831 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11835 ALL_LINGUAS="de es it pt_BR"
11838 for ac_header in locale.h
11840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11842 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11843 $as_echo_n "checking for $ac_header... " >&6; }
11844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11845 $as_echo_n "(cached) " >&6
11847 ac_res=`eval 'as_val=${'$as_ac_Header'}
11848 $as_echo "$as_val"'`
11849 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11850 $as_echo "$ac_res" >&6; }
11852 # Is the header compilable?
11853 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11854 $as_echo_n "checking $ac_header usability... " >&6; }
11855 cat >conftest.$ac_ext <<_ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861 $ac_includes_default
11862 #include <$ac_header>
11864 rm -f conftest.$ac_objext
11865 if { (ac_try="$ac_compile"
11866 case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11871 $as_echo "$ac_try_echo") >&5
11872 (eval "$ac_compile") 2>conftest.er1
11874 grep -v '^ *+' conftest.er1 >conftest.err
11876 cat conftest.err >&5
11877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); } && {
11879 test -z "$ac_c_werror_flag" ||
11880 test ! -s conftest.err
11881 } && test -s conftest.$ac_objext; then
11882 ac_header_compiler=yes
11884 $as_echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11887 ac_header_compiler=no
11890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11892 $as_echo "$ac_header_compiler" >&6; }
11894 # Is the header present?
11895 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11896 $as_echo_n "checking $ac_header presence... " >&6; }
11897 cat >conftest.$ac_ext <<_ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 #include <$ac_header>
11905 if { (ac_try="$ac_cpp conftest.$ac_ext"
11906 case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11911 $as_echo "$ac_try_echo") >&5
11912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11914 grep -v '^ *+' conftest.er1 >conftest.err
11916 cat conftest.err >&5
11917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } >/dev/null && {
11919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11920 test ! -s conftest.err
11922 ac_header_preproc=yes
11924 $as_echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 ac_header_preproc=no
11930 rm -f conftest.err conftest.$ac_ext
11931 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11932 $as_echo "$ac_header_preproc" >&6; }
11934 # So? What about this header?
11935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11938 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11940 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11941 ac_header_preproc=yes
11944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11945 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11947 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11949 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11951 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11953 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11955 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11959 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 $as_echo_n "checking for $ac_header... " >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962 $as_echo_n "(cached) " >&6
11964 eval "$as_ac_Header=\$ac_header_preproc"
11966 ac_res=`eval 'as_val=${'$as_ac_Header'}
11967 $as_echo "$as_val"'`
11968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11969 $as_echo "$ac_res" >&6; }
11972 as_val=`eval 'as_val=${'$as_ac_Header'}
11973 $as_echo "$as_val"'`
11974 if test "x$as_val" = x""yes; then
11975 cat >>confdefs.h <<_ACEOF
11976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11983 if test $ac_cv_header_locale_h = yes; then
11984 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11985 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11986 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11987 $as_echo_n "(cached) " >&6
11989 cat >conftest.$ac_ext <<_ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 #include <locale.h>
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (ac_try="$ac_link"
12006 case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12011 $as_echo "$ac_try_echo") >&5
12012 (eval "$ac_link") 2>conftest.er1
12014 grep -v '^ *+' conftest.er1 >conftest.err
12016 cat conftest.err >&5
12017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } && {
12019 test -z "$ac_c_werror_flag" ||
12020 test ! -s conftest.err
12021 } && test -s conftest$ac_exeext && {
12022 test "$cross_compiling" = yes ||
12023 $as_test_x conftest$ac_exeext
12025 am_cv_val_LC_MESSAGES=yes
12027 $as_echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 am_cv_val_LC_MESSAGES=no
12033 rm -rf conftest.dSYM
12034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12035 conftest$ac_exeext conftest.$ac_ext
12037 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12038 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12039 if test $am_cv_val_LC_MESSAGES = yes; then
12041 cat >>confdefs.h <<\_ACEOF
12042 #define HAVE_LC_MESSAGES 1
12050 gt_cv_have_gettext=no
12056 if test "${ac_cv_header_libintl_h+set}" = set; then
12057 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
12058 $as_echo_n "checking for libintl.h... " >&6; }
12059 if test "${ac_cv_header_libintl_h+set}" = set; then
12060 $as_echo_n "(cached) " >&6
12062 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12063 $as_echo "$ac_cv_header_libintl_h" >&6; }
12065 # Is the header compilable?
12066 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
12067 $as_echo_n "checking libintl.h usability... " >&6; }
12068 cat >conftest.$ac_ext <<_ACEOF
12071 cat confdefs.h >>conftest.$ac_ext
12072 cat >>conftest.$ac_ext <<_ACEOF
12073 /* end confdefs.h. */
12074 $ac_includes_default
12075 #include <libintl.h>
12077 rm -f conftest.$ac_objext
12078 if { (ac_try="$ac_compile"
12079 case "(($ac_try" in
12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12084 $as_echo "$ac_try_echo") >&5
12085 (eval "$ac_compile") 2>conftest.er1
12087 grep -v '^ *+' conftest.er1 >conftest.err
12089 cat conftest.err >&5
12090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } && {
12092 test -z "$ac_c_werror_flag" ||
12093 test ! -s conftest.err
12094 } && test -s conftest.$ac_objext; then
12095 ac_header_compiler=yes
12097 $as_echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 ac_header_compiler=no
12103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12105 $as_echo "$ac_header_compiler" >&6; }
12107 # Is the header present?
12108 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
12109 $as_echo_n "checking libintl.h presence... " >&6; }
12110 cat >conftest.$ac_ext <<_ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12116 #include <libintl.h>
12118 if { (ac_try="$ac_cpp conftest.$ac_ext"
12119 case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12124 $as_echo "$ac_try_echo") >&5
12125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12127 grep -v '^ *+' conftest.er1 >conftest.err
12129 cat conftest.err >&5
12130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } >/dev/null && {
12132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12133 test ! -s conftest.err
12135 ac_header_preproc=yes
12137 $as_echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 ac_header_preproc=no
12143 rm -f conftest.err conftest.$ac_ext
12144 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12145 $as_echo "$ac_header_preproc" >&6; }
12147 # So? What about this header?
12148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12150 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12151 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12152 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
12153 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
12154 ac_header_preproc=yes
12157 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
12158 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
12159 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
12160 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
12161 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
12162 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
12163 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
12164 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12165 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
12166 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
12167 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
12168 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
12172 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
12173 $as_echo_n "checking for libintl.h... " >&6; }
12174 if test "${ac_cv_header_libintl_h+set}" = set; then
12175 $as_echo_n "(cached) " >&6
12177 ac_cv_header_libintl_h=$ac_header_preproc
12179 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12180 $as_echo "$ac_cv_header_libintl_h" >&6; }
12183 if test "x$ac_cv_header_libintl_h" = x""yes; then
12184 gt_cv_func_dgettext_libintl="no"
12185 libintl_extra_libs=""
12188 # First check in libc
12190 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
12191 $as_echo_n "checking for ngettext in libc... " >&6; }
12192 if test "${gt_cv_func_ngettext_libc+set}" = set; then
12193 $as_echo_n "(cached) " >&6
12195 cat >conftest.$ac_ext <<_ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12202 #include <libintl.h>
12207 return !ngettext ("","", 1)
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12219 $as_echo "$ac_try_echo") >&5
12220 (eval "$ac_link") 2>conftest.er1
12222 grep -v '^ *+' conftest.er1 >conftest.err
12224 cat conftest.err >&5
12225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && {
12227 test -z "$ac_c_werror_flag" ||
12228 test ! -s conftest.err
12229 } && test -s conftest$ac_exeext && {
12230 test "$cross_compiling" = yes ||
12231 $as_test_x conftest$ac_exeext
12233 gt_cv_func_ngettext_libc=yes
12235 $as_echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12238 gt_cv_func_ngettext_libc=no
12241 rm -rf conftest.dSYM
12242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12243 conftest$ac_exeext conftest.$ac_ext
12246 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
12247 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
12249 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12250 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
12251 $as_echo_n "checking for dgettext in libc... " >&6; }
12252 if test "${gt_cv_func_dgettext_libc+set}" = set; then
12253 $as_echo_n "(cached) " >&6
12255 cat >conftest.$ac_ext <<_ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12262 #include <libintl.h>
12267 return !dgettext ("","")
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (ac_try="$ac_link"
12274 case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12279 $as_echo "$ac_try_echo") >&5
12280 (eval "$ac_link") 2>conftest.er1
12282 grep -v '^ *+' conftest.er1 >conftest.err
12284 cat conftest.err >&5
12285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest$ac_exeext && {
12290 test "$cross_compiling" = yes ||
12291 $as_test_x conftest$ac_exeext
12293 gt_cv_func_dgettext_libc=yes
12295 $as_echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12298 gt_cv_func_dgettext_libc=no
12301 rm -rf conftest.dSYM
12302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12303 conftest$ac_exeext conftest.$ac_ext
12306 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
12307 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
12310 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
12312 for ac_func in bind_textdomain_codeset
12314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12315 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12316 $as_echo_n "checking for $ac_func... " >&6; }
12317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12318 $as_echo_n "(cached) " >&6
12320 cat >conftest.$ac_ext <<_ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12328 #define $ac_func innocuous_$ac_func
12330 /* System header to define __stub macros and hopefully few prototypes,
12331 which can conflict with char $ac_func (); below.
12332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12333 <limits.h> exists even on freestanding compilers. */
12336 # include <limits.h>
12338 # include <assert.h>
12343 /* Override any GCC internal prototype to avoid an error.
12344 Use char because int might match the return type of a GCC
12345 builtin and then its argument prototype would still apply. */
12350 /* The GNU C library defines this for functions which it implements
12351 to always fail with ENOSYS. Some functions are actually named
12352 something starting with __ and the normal name is an alias. */
12353 #if defined __stub_$ac_func || defined __stub___$ac_func
12360 return $ac_func ();
12365 rm -f conftest.$ac_objext conftest$ac_exeext
12366 if { (ac_try="$ac_link"
12367 case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12372 $as_echo "$ac_try_echo") >&5
12373 (eval "$ac_link") 2>conftest.er1
12375 grep -v '^ *+' conftest.er1 >conftest.err
12377 cat conftest.err >&5
12378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } && {
12380 test -z "$ac_c_werror_flag" ||
12381 test ! -s conftest.err
12382 } && test -s conftest$ac_exeext && {
12383 test "$cross_compiling" = yes ||
12384 $as_test_x conftest$ac_exeext
12386 eval "$as_ac_var=yes"
12388 $as_echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12391 eval "$as_ac_var=no"
12394 rm -rf conftest.dSYM
12395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12396 conftest$ac_exeext conftest.$ac_ext
12398 ac_res=`eval 'as_val=${'$as_ac_var'}
12399 $as_echo "$as_val"'`
12400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12401 $as_echo "$ac_res" >&6; }
12402 as_val=`eval 'as_val=${'$as_ac_var'}
12403 $as_echo "$as_val"'`
12404 if test "x$as_val" = x""yes; then
12405 cat >>confdefs.h <<_ACEOF
12406 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12415 # If we don't have everything we want, check in libintl
12417 if test "$gt_cv_func_dgettext_libc" != "yes" \
12418 || test "$gt_cv_func_ngettext_libc" != "yes" \
12419 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
12421 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
12422 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
12423 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
12424 $as_echo_n "(cached) " >&6
12426 ac_check_lib_save_LIBS=$LIBS
12427 LIBS="-lintl $LIBS"
12428 cat >conftest.$ac_ext <<_ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12435 /* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12441 char bindtextdomain ();
12445 return bindtextdomain ();
12450 rm -f conftest.$ac_objext conftest$ac_exeext
12451 if { (ac_try="$ac_link"
12452 case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12457 $as_echo "$ac_try_echo") >&5
12458 (eval "$ac_link") 2>conftest.er1
12460 grep -v '^ *+' conftest.er1 >conftest.err
12462 cat conftest.err >&5
12463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } && {
12465 test -z "$ac_c_werror_flag" ||
12466 test ! -s conftest.err
12467 } && test -s conftest$ac_exeext && {
12468 test "$cross_compiling" = yes ||
12469 $as_test_x conftest$ac_exeext
12471 ac_cv_lib_intl_bindtextdomain=yes
12473 $as_echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12476 ac_cv_lib_intl_bindtextdomain=no
12479 rm -rf conftest.dSYM
12480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12481 conftest$ac_exeext conftest.$ac_ext
12482 LIBS=$ac_check_lib_save_LIBS
12484 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
12485 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
12486 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
12487 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12488 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12489 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12490 $as_echo_n "(cached) " >&6
12492 ac_check_lib_save_LIBS=$LIBS
12493 LIBS="-lintl $LIBS"
12494 cat >conftest.$ac_ext <<_ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h. */
12501 /* Override any GCC internal prototype to avoid an error.
12502 Use char because int might match the return type of a GCC
12503 builtin and then its argument prototype would still apply. */
12511 return ngettext ();
12516 rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (ac_try="$ac_link"
12518 case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12523 $as_echo "$ac_try_echo") >&5
12524 (eval "$ac_link") 2>conftest.er1
12526 grep -v '^ *+' conftest.er1 >conftest.err
12528 cat conftest.err >&5
12529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } && {
12531 test -z "$ac_c_werror_flag" ||
12532 test ! -s conftest.err
12533 } && test -s conftest$ac_exeext && {
12534 test "$cross_compiling" = yes ||
12535 $as_test_x conftest$ac_exeext
12537 ac_cv_lib_intl_ngettext=yes
12539 $as_echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 ac_cv_lib_intl_ngettext=no
12545 rm -rf conftest.dSYM
12546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12547 conftest$ac_exeext conftest.$ac_ext
12548 LIBS=$ac_check_lib_save_LIBS
12550 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12551 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12552 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
12553 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12554 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12555 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12556 $as_echo_n "(cached) " >&6
12558 ac_check_lib_save_LIBS=$LIBS
12559 LIBS="-lintl $LIBS"
12560 cat >conftest.$ac_ext <<_ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12567 /* Override any GCC internal prototype to avoid an error.
12568 Use char because int might match the return type of a GCC
12569 builtin and then its argument prototype would still apply. */
12577 return dgettext ();
12582 rm -f conftest.$ac_objext conftest$ac_exeext
12583 if { (ac_try="$ac_link"
12584 case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12589 $as_echo "$ac_try_echo") >&5
12590 (eval "$ac_link") 2>conftest.er1
12592 grep -v '^ *+' conftest.er1 >conftest.err
12594 cat conftest.err >&5
12595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } && {
12597 test -z "$ac_c_werror_flag" ||
12598 test ! -s conftest.err
12599 } && test -s conftest$ac_exeext && {
12600 test "$cross_compiling" = yes ||
12601 $as_test_x conftest$ac_exeext
12603 ac_cv_lib_intl_dgettext=yes
12605 $as_echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_cv_lib_intl_dgettext=no
12611 rm -rf conftest.dSYM
12612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12613 conftest$ac_exeext conftest.$ac_ext
12614 LIBS=$ac_check_lib_save_LIBS
12616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12617 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12618 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
12619 gt_cv_func_dgettext_libintl=yes
12627 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
12628 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
12629 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
12630 { $as_echo "$as_me:$LINENO: result: " >&5
12632 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
12633 $as_echo_n "checking for ngettext in -lintl... " >&6; }
12634 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
12635 $as_echo_n "(cached) " >&6
12637 ac_check_lib_save_LIBS=$LIBS
12638 LIBS="-lintl -liconv $LIBS"
12639 cat >conftest.$ac_ext <<_ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12646 /* Override any GCC internal prototype to avoid an error.
12647 Use char because int might match the return type of a GCC
12648 builtin and then its argument prototype would still apply. */
12656 return ngettext ();
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (ac_try="$ac_link"
12663 case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12668 $as_echo "$ac_try_echo") >&5
12669 (eval "$ac_link") 2>conftest.er1
12671 grep -v '^ *+' conftest.er1 >conftest.err
12673 cat conftest.err >&5
12674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } && {
12676 test -z "$ac_c_werror_flag" ||
12677 test ! -s conftest.err
12678 } && test -s conftest$ac_exeext && {
12679 test "$cross_compiling" = yes ||
12680 $as_test_x conftest$ac_exeext
12682 ac_cv_lib_intl_ngettext=yes
12684 $as_echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12687 ac_cv_lib_intl_ngettext=no
12690 rm -rf conftest.dSYM
12691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12692 conftest$ac_exeext conftest.$ac_ext
12693 LIBS=$ac_check_lib_save_LIBS
12695 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
12696 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
12697 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
12698 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
12699 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
12700 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
12701 $as_echo_n "(cached) " >&6
12703 ac_check_lib_save_LIBS=$LIBS
12704 LIBS="-lintl -liconv $LIBS"
12705 cat >conftest.$ac_ext <<_ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12712 /* Override any GCC internal prototype to avoid an error.
12713 Use char because int might match the return type of a GCC
12714 builtin and then its argument prototype would still apply. */
12722 return dcgettext ();
12727 rm -f conftest.$ac_objext conftest$ac_exeext
12728 if { (ac_try="$ac_link"
12729 case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12734 $as_echo "$ac_try_echo") >&5
12735 (eval "$ac_link") 2>conftest.er1
12737 grep -v '^ *+' conftest.er1 >conftest.err
12739 cat conftest.err >&5
12740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } && {
12742 test -z "$ac_c_werror_flag" ||
12743 test ! -s conftest.err
12744 } && test -s conftest$ac_exeext && {
12745 test "$cross_compiling" = yes ||
12746 $as_test_x conftest$ac_exeext
12748 ac_cv_lib_intl_dcgettext=yes
12750 $as_echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12753 ac_cv_lib_intl_dcgettext=no
12756 rm -rf conftest.dSYM
12757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12758 conftest$ac_exeext conftest.$ac_ext
12759 LIBS=$ac_check_lib_save_LIBS
12761 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
12762 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
12763 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
12764 gt_cv_func_dgettext_libintl=yes
12765 libintl_extra_libs=-liconv
12777 # If we found libintl, then check in it for bind_textdomain_codeset();
12778 # we'll prefer libc if neither have bind_textdomain_codeset(),
12779 # and both have dgettext and ngettext
12781 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
12782 glib_save_LIBS="$LIBS"
12783 LIBS="$LIBS -lintl $libintl_extra_libs"
12784 unset ac_cv_func_bind_textdomain_codeset
12786 for ac_func in bind_textdomain_codeset
12788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12789 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12790 $as_echo_n "checking for $ac_func... " >&6; }
12791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12792 $as_echo_n "(cached) " >&6
12794 cat >conftest.$ac_ext <<_ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12802 #define $ac_func innocuous_$ac_func
12804 /* System header to define __stub macros and hopefully few prototypes,
12805 which can conflict with char $ac_func (); below.
12806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12807 <limits.h> exists even on freestanding compilers. */
12810 # include <limits.h>
12812 # include <assert.h>
12817 /* Override any GCC internal prototype to avoid an error.
12818 Use char because int might match the return type of a GCC
12819 builtin and then its argument prototype would still apply. */
12824 /* The GNU C library defines this for functions which it implements
12825 to always fail with ENOSYS. Some functions are actually named
12826 something starting with __ and the normal name is an alias. */
12827 #if defined __stub_$ac_func || defined __stub___$ac_func
12834 return $ac_func ();
12839 rm -f conftest.$ac_objext conftest$ac_exeext
12840 if { (ac_try="$ac_link"
12841 case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12846 $as_echo "$ac_try_echo") >&5
12847 (eval "$ac_link") 2>conftest.er1
12849 grep -v '^ *+' conftest.er1 >conftest.err
12851 cat conftest.err >&5
12852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } && {
12854 test -z "$ac_c_werror_flag" ||
12855 test ! -s conftest.err
12856 } && test -s conftest$ac_exeext && {
12857 test "$cross_compiling" = yes ||
12858 $as_test_x conftest$ac_exeext
12860 eval "$as_ac_var=yes"
12862 $as_echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 eval "$as_ac_var=no"
12868 rm -rf conftest.dSYM
12869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12870 conftest$ac_exeext conftest.$ac_ext
12872 ac_res=`eval 'as_val=${'$as_ac_var'}
12873 $as_echo "$as_val"'`
12874 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12875 $as_echo "$ac_res" >&6; }
12876 as_val=`eval 'as_val=${'$as_ac_var'}
12877 $as_echo "$as_val"'`
12878 if test "x$as_val" = x""yes; then
12879 cat >>confdefs.h <<_ACEOF
12880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12886 LIBS="$glib_save_LIBS"
12888 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
12889 gt_cv_func_dgettext_libc=no
12891 if test "$gt_cv_func_dgettext_libc" = "yes" \
12892 && test "$gt_cv_func_ngettext_libc" = "yes"; then
12893 gt_cv_func_dgettext_libintl=no
12899 if test "$gt_cv_func_dgettext_libc" = "yes" \
12900 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
12901 gt_cv_have_gettext=yes
12904 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
12905 INTLLIBS="-lintl $libintl_extra_libs"
12908 if test "$gt_cv_have_gettext" = "yes"; then
12910 cat >>confdefs.h <<\_ACEOF
12911 #define HAVE_GETTEXT 1
12914 # Extract the first word of "msgfmt", so it can be a program name with args.
12915 set dummy msgfmt; ac_word=$2
12916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12917 $as_echo_n "checking for $ac_word... " >&6; }
12918 if test "${ac_cv_path_MSGFMT+set}" = set; then
12919 $as_echo_n "(cached) " >&6
12923 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12927 for ac_dir in $PATH; do
12928 test -z "$ac_dir" && ac_dir=.
12929 if test -f $ac_dir/$ac_word; then
12930 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12931 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12937 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
12941 MSGFMT="$ac_cv_path_MSGFMT"
12942 if test "$MSGFMT" != "no"; then
12943 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
12944 $as_echo "$MSGFMT" >&6; }
12946 { $as_echo "$as_me:$LINENO: result: no" >&5
12947 $as_echo "no" >&6; }
12949 if test "$MSGFMT" != "no"; then
12950 glib_save_LIBS="$LIBS"
12951 LIBS="$LIBS $INTLLIBS"
12953 for ac_func in dcgettext
12955 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12956 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12957 $as_echo_n "checking for $ac_func... " >&6; }
12958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12959 $as_echo_n "(cached) " >&6
12961 cat >conftest.$ac_ext <<_ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12969 #define $ac_func innocuous_$ac_func
12971 /* System header to define __stub macros and hopefully few prototypes,
12972 which can conflict with char $ac_func (); below.
12973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12974 <limits.h> exists even on freestanding compilers. */
12977 # include <limits.h>
12979 # include <assert.h>
12984 /* Override any GCC internal prototype to avoid an error.
12985 Use char because int might match the return type of a GCC
12986 builtin and then its argument prototype would still apply. */
12991 /* The GNU C library defines this for functions which it implements
12992 to always fail with ENOSYS. Some functions are actually named
12993 something starting with __ and the normal name is an alias. */
12994 #if defined __stub_$ac_func || defined __stub___$ac_func
13001 return $ac_func ();
13006 rm -f conftest.$ac_objext conftest$ac_exeext
13007 if { (ac_try="$ac_link"
13008 case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13013 $as_echo "$ac_try_echo") >&5
13014 (eval "$ac_link") 2>conftest.er1
13016 grep -v '^ *+' conftest.er1 >conftest.err
13018 cat conftest.err >&5
13019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } && {
13021 test -z "$ac_c_werror_flag" ||
13022 test ! -s conftest.err
13023 } && test -s conftest$ac_exeext && {
13024 test "$cross_compiling" = yes ||
13025 $as_test_x conftest$ac_exeext
13027 eval "$as_ac_var=yes"
13029 $as_echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.$ac_ext >&5
13032 eval "$as_ac_var=no"
13035 rm -rf conftest.dSYM
13036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13037 conftest$ac_exeext conftest.$ac_ext
13039 ac_res=`eval 'as_val=${'$as_ac_var'}
13040 $as_echo "$as_val"'`
13041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13042 $as_echo "$ac_res" >&6; }
13043 as_val=`eval 'as_val=${'$as_ac_var'}
13044 $as_echo "$as_val"'`
13045 if test "x$as_val" = x""yes; then
13046 cat >>confdefs.h <<_ACEOF
13047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13054 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
13055 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
13056 cat >conftest.foo <<_ACEOF
13060 "Content-Type: text/plain; charset=UTF-8\n"
13061 "Project-Id-Version: test 1.0\n"
13062 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
13063 "Last-Translator: test <foo@bar.xx>\n"
13064 "Language-Team: C <LL@li.org>\n"
13065 "MIME-Version: 1.0\n"
13066 "Content-Transfer-Encoding: 8bit\n"
13069 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
13070 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
13072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; then
13074 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
13075 $as_echo "yes" >&6; }
13076 else { $as_echo "$as_me:$LINENO: result: no" >&5
13077 $as_echo "no" >&6; }
13078 echo "$as_me: failed input was:" >&5
13079 sed 's/^/| /' conftest.foo >&5
13082 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13083 set dummy gmsgfmt; ac_word=$2
13084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13085 $as_echo_n "checking for $ac_word... " >&6; }
13086 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13087 $as_echo_n "(cached) " >&6
13091 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13109 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13113 GMSGFMT=$ac_cv_path_GMSGFMT
13114 if test -n "$GMSGFMT"; then
13115 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13116 $as_echo "$GMSGFMT" >&6; }
13118 { $as_echo "$as_me:$LINENO: result: no" >&5
13119 $as_echo "no" >&6; }
13123 # Extract the first word of "xgettext", so it can be a program name with args.
13124 set dummy xgettext; ac_word=$2
13125 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13128 $as_echo_n "(cached) " >&6
13130 case "$XGETTEXT" in
13132 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13136 for ac_dir in $PATH; do
13137 test -z "$ac_dir" && ac_dir=.
13138 if test -f $ac_dir/$ac_word; then
13139 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13140 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13146 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13150 XGETTEXT="$ac_cv_path_XGETTEXT"
13151 if test "$XGETTEXT" != ":"; then
13152 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13153 $as_echo "$XGETTEXT" >&6; }
13155 { $as_echo "$as_me:$LINENO: result: no" >&5
13156 $as_echo "no" >&6; }
13159 cat >conftest.$ac_ext <<_ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13169 extern int _nl_msg_cat_cntr;
13170 return _nl_msg_cat_cntr
13175 rm -f conftest.$ac_objext conftest$ac_exeext
13176 if { (ac_try="$ac_link"
13177 case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13182 $as_echo "$ac_try_echo") >&5
13183 (eval "$ac_link") 2>conftest.er1
13185 grep -v '^ *+' conftest.er1 >conftest.err
13187 cat conftest.err >&5
13188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } && {
13190 test -z "$ac_c_werror_flag" ||
13191 test ! -s conftest.err
13192 } && test -s conftest$ac_exeext && {
13193 test "$cross_compiling" = yes ||
13194 $as_test_x conftest$ac_exeext
13199 $as_echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13204 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
13205 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
13206 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
13207 $as_echo_n "(cached) " >&6
13209 cat >conftest.$ac_ext <<_ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13215 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
13216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13217 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
13219 /* System header to define __stub macros and hopefully few prototypes,
13220 which can conflict with char bind_textdomain_codeset (); below.
13221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13222 <limits.h> exists even on freestanding compilers. */
13225 # include <limits.h>
13227 # include <assert.h>
13230 #undef bind_textdomain_codeset
13232 /* Override any GCC internal prototype to avoid an error.
13233 Use char because int might match the return type of a GCC
13234 builtin and then its argument prototype would still apply. */
13238 char bind_textdomain_codeset ();
13239 /* The GNU C library defines this for functions which it implements
13240 to always fail with ENOSYS. Some functions are actually named
13241 something starting with __ and the normal name is an alias. */
13242 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
13249 return bind_textdomain_codeset ();
13254 rm -f conftest.$ac_objext conftest$ac_exeext
13255 if { (ac_try="$ac_link"
13256 case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13261 $as_echo "$ac_try_echo") >&5
13262 (eval "$ac_link") 2>conftest.er1
13264 grep -v '^ *+' conftest.er1 >conftest.err
13266 cat conftest.err >&5
13267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } && {
13269 test -z "$ac_c_werror_flag" ||
13270 test ! -s conftest.err
13271 } && test -s conftest$ac_exeext && {
13272 test "$cross_compiling" = yes ||
13273 $as_test_x conftest$ac_exeext
13275 ac_cv_func_bind_textdomain_codeset=yes
13277 $as_echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 ac_cv_func_bind_textdomain_codeset=no
13283 rm -rf conftest.dSYM
13284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13285 conftest$ac_exeext conftest.$ac_ext
13287 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
13288 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
13289 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
13305 rm -rf conftest.dSYM
13306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13307 conftest$ac_exeext conftest.$ac_ext
13308 LIBS="$glib_save_LIBS"
13311 gt_cv_have_gettext=no
13319 if test "$gt_cv_have_gettext" = "yes" ; then
13321 cat >>confdefs.h <<\_ACEOF
13322 #define ENABLE_NLS 1
13327 if test "$XGETTEXT" != ":"; then
13328 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
13331 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13332 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13337 # We need to process the po/ directory.
13340 ac_config_commands="$ac_config_commands default-1"
13343 for lang in $ALL_LINGUAS; do
13344 GMOFILES="$GMOFILES $lang.gmo"
13345 POFILES="$POFILES $lang.po"
13360 if test "$gt_cv_have_gettext" = "yes"; then
13361 if test "x$ALL_LINGUAS" = "x"; then
13364 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13365 $as_echo_n "checking for catalogs to be installed... " >&6; }
13367 for presentlang in $ALL_LINGUAS; do
13369 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
13370 desiredlanguages="$LINGUAS"
13372 desiredlanguages="$ALL_LINGUAS"
13374 for desiredlang in $desiredlanguages; do
13375 # Use the presentlang catalog if desiredlang is
13376 # a. equal to presentlang, or
13377 # b. a variant of presentlang (because in this case,
13378 # presentlang can be used as a fallback for messages
13379 # which are not translated in the desiredlang catalog).
13380 case "$desiredlang" in
13381 "$presentlang"*) useit=yes;;
13384 if test $useit = yes; then
13385 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13388 LINGUAS=$NEW_LINGUAS
13389 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
13390 $as_echo "$LINGUAS" >&6; }
13393 if test -n "$LINGUAS"; then
13394 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13399 if test -n "$ac_aux_dir"; then
13400 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13402 if test -z "$MKINSTALLDIRS"; then
13403 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13407 test -d po || mkdir po
13408 if test "x$srcdir" != "x."; then
13409 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
13410 posrcprefix="$srcdir/"
13412 posrcprefix="../$srcdir/"
13418 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
13419 < $srcdir/po/POTFILES.in > po/POTFILES
13422 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
13424 cat >confcache <<\_ACEOF
13425 # This file is a shell script that caches the results of configure
13426 # tests run on this system so they can be shared between configure
13427 # scripts and configure runs, see configure's option --config-cache.
13428 # It is not useful on other systems. If it contains results you don't
13429 # want to keep, you may remove or edit it.
13431 # config.status only pays attention to the cache file if you give it
13432 # the --recheck option to rerun configure.
13434 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13435 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13436 # following values.
13440 # The following way of writing the cache mishandles newlines in values,
13441 # but we know of no workaround that is simple, portable, and efficient.
13442 # So, we kill variables containing newlines.
13443 # Ultrix sh set writes to stderr and can't be redirected directly,
13444 # and sets the high bit in the cache file unless we assign to the vars.
13446 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13447 eval ac_val=\$$ac_var
13451 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13452 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13455 _ | IFS | as_nl) ;; #(
13456 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13457 *) $as_unset $ac_var ;;
13463 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13464 *${as_nl}ac_space=\ *)
13465 # `set' does not quote correctly, so add quotes (double-quote
13466 # substitution turns \\\\ into \\, and sed turns \\ into \).
13469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13472 # `set' quotes correctly as required by POSIX, so do not add quotes.
13473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13484 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13486 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13487 if test -w "$cache_file"; then
13488 test "x$cache_file" != "x/dev/null" &&
13489 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13490 $as_echo "$as_me: updating cache $cache_file" >&6;}
13491 cat confcache >$cache_file
13493 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13494 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13499 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13500 # Let make expand exec_prefix.
13501 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13503 DEFS=-DHAVE_CONFIG_H
13507 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13508 # 1. Remove the extension, and $U if already installed.
13509 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13510 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13511 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13512 # will be set to the directory where LIBOBJS objects are built.
13513 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13514 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13516 LIBOBJS=$ac_libobjs
13518 LTLIBOBJS=$ac_ltlibobjs
13521 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13522 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13523 Usually this means the macro was only invoked conditionally." >&5
13524 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13525 Usually this means the macro was only invoked conditionally." >&2;}
13526 { (exit 1); exit 1; }; }
13528 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13529 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13530 Usually this means the macro was only invoked conditionally." >&5
13531 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13532 Usually this means the macro was only invoked conditionally." >&2;}
13533 { (exit 1); exit 1; }; }
13535 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13536 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13537 Usually this means the macro was only invoked conditionally." >&5
13538 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13539 Usually this means the macro was only invoked conditionally." >&2;}
13540 { (exit 1); exit 1; }; }
13542 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13543 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13544 Usually this means the macro was only invoked conditionally." >&5
13545 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13546 Usually this means the macro was only invoked conditionally." >&2;}
13547 { (exit 1); exit 1; }; }
13549 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13550 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13551 Usually this means the macro was only invoked conditionally." >&5
13552 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13553 Usually this means the macro was only invoked conditionally." >&2;}
13554 { (exit 1); exit 1; }; }
13556 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
13557 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
13558 Usually this means the macro was only invoked conditionally." >&5
13559 $as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
13560 Usually this means the macro was only invoked conditionally." >&2;}
13561 { (exit 1); exit 1; }; }
13563 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
13564 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
13565 Usually this means the macro was only invoked conditionally." >&5
13566 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
13567 Usually this means the macro was only invoked conditionally." >&2;}
13568 { (exit 1); exit 1; }; }
13570 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
13571 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SHARED\" was never defined.
13572 Usually this means the macro was only invoked conditionally." >&5
13573 $as_echo "$as_me: error: conditional \"BUILD_SHARED\" was never defined.
13574 Usually this means the macro was only invoked conditionally." >&2;}
13575 { (exit 1); exit 1; }; }
13577 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
13578 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
13579 Usually this means the macro was only invoked conditionally." >&5
13580 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
13581 Usually this means the macro was only invoked conditionally." >&2;}
13582 { (exit 1); exit 1; }; }
13584 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
13585 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
13586 Usually this means the macro was only invoked conditionally." >&5
13587 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
13588 Usually this means the macro was only invoked conditionally." >&2;}
13589 { (exit 1); exit 1; }; }
13591 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
13592 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
13593 Usually this means the macro was only invoked conditionally." >&5
13594 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
13595 Usually this means the macro was only invoked conditionally." >&2;}
13596 { (exit 1); exit 1; }; }
13598 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
13599 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
13600 Usually this means the macro was only invoked conditionally." >&5
13601 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
13602 Usually this means the macro was only invoked conditionally." >&2;}
13603 { (exit 1); exit 1; }; }
13605 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
13606 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
13607 Usually this means the macro was only invoked conditionally." >&5
13608 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
13609 Usually this means the macro was only invoked conditionally." >&2;}
13610 { (exit 1); exit 1; }; }
13612 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
13613 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
13614 Usually this means the macro was only invoked conditionally." >&5
13615 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
13616 Usually this means the macro was only invoked conditionally." >&2;}
13617 { (exit 1); exit 1; }; }
13619 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
13620 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
13621 Usually this means the macro was only invoked conditionally." >&5
13622 $as_echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
13623 Usually this means the macro was only invoked conditionally." >&2;}
13624 { (exit 1); exit 1; }; }
13626 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
13627 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
13628 Usually this means the macro was only invoked conditionally." >&5
13629 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
13630 Usually this means the macro was only invoked conditionally." >&2;}
13631 { (exit 1); exit 1; }; }
13633 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
13634 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
13635 Usually this means the macro was only invoked conditionally." >&5
13636 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
13637 Usually this means the macro was only invoked conditionally." >&2;}
13638 { (exit 1); exit 1; }; }
13640 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
13641 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
13642 Usually this means the macro was only invoked conditionally." >&5
13643 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
13644 Usually this means the macro was only invoked conditionally." >&2;}
13645 { (exit 1); exit 1; }; }
13647 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
13648 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
13649 Usually this means the macro was only invoked conditionally." >&5
13650 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
13651 Usually this means the macro was only invoked conditionally." >&2;}
13652 { (exit 1); exit 1; }; }
13654 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
13655 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
13656 Usually this means the macro was only invoked conditionally." >&5
13657 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
13658 Usually this means the macro was only invoked conditionally." >&2;}
13659 { (exit 1); exit 1; }; }
13661 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
13662 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
13663 Usually this means the macro was only invoked conditionally." >&5
13664 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
13665 Usually this means the macro was only invoked conditionally." >&2;}
13666 { (exit 1); exit 1; }; }
13668 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
13669 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
13670 Usually this means the macro was only invoked conditionally." >&5
13671 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
13672 Usually this means the macro was only invoked conditionally." >&2;}
13673 { (exit 1); exit 1; }; }
13675 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
13676 { { $as_echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
13677 Usually this means the macro was only invoked conditionally." >&5
13678 $as_echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
13679 Usually this means the macro was only invoked conditionally." >&2;}
13680 { (exit 1); exit 1; }; }
13682 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
13683 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
13684 Usually this means the macro was only invoked conditionally." >&5
13685 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
13686 Usually this means the macro was only invoked conditionally." >&2;}
13687 { (exit 1); exit 1; }; }
13689 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
13690 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
13691 Usually this means the macro was only invoked conditionally." >&5
13692 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
13693 Usually this means the macro was only invoked conditionally." >&2;}
13694 { (exit 1); exit 1; }; }
13697 : ${CONFIG_STATUS=./config.status}
13699 ac_clean_files_save=$ac_clean_files
13700 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13701 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13702 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13703 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13705 # Generated by $as_me.
13706 # Run this file to recreate the current configuration.
13707 # Compiler output produced by configure, useful for debugging
13708 # configure, is in config.log if it exists.
13711 ac_cs_recheck=false
13713 SHELL=\${CONFIG_SHELL-$SHELL}
13716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13717 ## --------------------- ##
13718 ## M4sh Initialization. ##
13719 ## --------------------- ##
13721 # Be more Bourne compatible
13722 DUALCASE=1; export DUALCASE # for MKS sh
13723 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13726 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13727 # is contrary to our usage. Disable this feature.
13728 alias -g '${1+"$@"}'='"$@"'
13729 setopt NO_GLOB_SUBST
13731 case `(set -o) 2>/dev/null` in
13732 *posix*) set -o posix ;;
13741 # Avoid depending upon Character Ranges.
13742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13745 as_cr_digits='0123456789'
13746 as_cr_alnum=$as_cr_Letters$as_cr_digits
13751 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13752 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13755 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13756 as_echo='printf %s\n'
13757 as_echo_n='printf %s'
13759 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13760 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13761 as_echo_n='/usr/ucb/echo -n'
13763 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13764 as_echo_n_body='eval
13768 expr "X$arg" : "X\\(.*\\)$as_nl";
13769 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13771 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13773 export as_echo_n_body
13774 as_echo_n='sh -c $as_echo_n_body as_echo'
13776 export as_echo_body
13777 as_echo='sh -c $as_echo_body as_echo'
13780 # The user is always right.
13781 if test "${PATH_SEPARATOR+set}" != set; then
13783 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13784 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13789 # Support unset when possible.
13790 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13798 # We need space, tab and new line, in precisely that order. Quoting is
13799 # there to prevent editors from complaining about space-tab.
13800 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13801 # splitting by setting IFS to empty value.)
13804 # Find who we are. Look in the path if we contain no directory separator.
13806 *[\\/]* ) as_myself=$0 ;;
13807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808 for as_dir in $PATH
13811 test -z "$as_dir" && as_dir=.
13812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13818 # We did not find ourselves, most probably we were run as `sh COMMAND'
13819 # in which case we are not to be found in the path.
13820 if test "x$as_myself" = x; then
13823 if test ! -f "$as_myself"; then
13824 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13825 { (exit 1); exit 1; }
13828 # Work around bugs in pre-3.0 UWIN ksh.
13829 for as_var in ENV MAIL MAILPATH
13830 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13842 # Required to use basename.
13843 if expr a : '\(a\)' >/dev/null 2>&1 &&
13844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13851 as_basename=basename
13857 # Name of the executable.
13858 as_me=`$as_basename -- "$0" ||
13859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13860 X"$0" : 'X\(//\)$' \| \
13861 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13863 sed '/^.*\/\([^/][^/]*\)\/*$/{
13882 as_lineno_1=$LINENO
13883 as_lineno_2=$LINENO
13884 test "x$as_lineno_1" != "x$as_lineno_2" &&
13885 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13887 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13888 # uniformly replaced by the line number. The first 'sed' inserts a
13889 # line-number line after each line using $LINENO; the second 'sed'
13890 # does the real work. The second script uses 'N' to pair each
13891 # line-number line with the line containing $LINENO, and appends
13892 # trailing '-' during substitution so that $LINENO is not a special
13893 # case at line end.
13894 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13895 # scripts with optimization help from Paolo Bonzini. Blame Lee
13896 # E. McMahon (1931-1989) for sed's syntax. :-)
13908 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13911 ' >$as_me.lineno &&
13912 chmod +x "$as_me.lineno" ||
13913 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13914 { (exit 1); exit 1; }; }
13916 # Don't try to exec as it changes $[0], causing all sort of problems
13917 # (the dirname of $[0] is not the place where we might find the
13918 # original and so on. Autoconf is especially sensitive to this).
13919 . "./$as_me.lineno"
13920 # Exit status is that of the last command.
13925 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13931 ECHO_C= ECHO_N= ECHO_T=
13932 case `echo -n x` in
13934 case `echo 'x\c'` in
13935 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13941 if expr a : '\(a\)' >/dev/null 2>&1 &&
13942 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13948 rm -f conf$$ conf$$.exe conf$$.file
13949 if test -d conf$$.dir; then
13950 rm -f conf$$.dir/conf$$.file
13953 mkdir conf$$.dir 2>/dev/null
13955 if (echo >conf$$.file) 2>/dev/null; then
13956 if ln -s conf$$.file conf$$ 2>/dev/null; then
13958 # ... but there are two gotchas:
13959 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13960 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13961 # In both cases, we have to default to `cp -p'.
13962 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13964 elif ln conf$$.file conf$$ 2>/dev/null; then
13972 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13973 rmdir conf$$.dir 2>/dev/null
13975 if mkdir -p . 2>/dev/null; then
13978 test -d ./-p && rmdir ./-p
13982 if test -x / >/dev/null 2>&1; then
13983 as_test_x='test -x'
13985 if ls -dL / >/dev/null 2>&1; then
13992 if test -d "$1"; then
13998 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13999 ???[sx]*):;;*)false;;esac;fi
14003 as_executable_p=$as_test_x
14005 # Sed expression to map a string onto a valid CPP name.
14006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14008 # Sed expression to map a string onto a valid variable name.
14009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14014 # Save the log message, to keep $[0] and so on meaningful, and to
14015 # report actual input values of CONFIG_FILES etc. instead of their
14016 # values after options handling.
14018 This file was extended by $as_me, which was
14019 generated by GNU Autoconf 2.63. Invocation command line was
14021 CONFIG_FILES = $CONFIG_FILES
14022 CONFIG_HEADERS = $CONFIG_HEADERS
14023 CONFIG_LINKS = $CONFIG_LINKS
14024 CONFIG_COMMANDS = $CONFIG_COMMANDS
14027 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14032 case $ac_config_files in *"
14033 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14036 case $ac_config_headers in *"
14037 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14042 # Files that config.status was made for.
14043 config_files="$ac_config_files"
14044 config_headers="$ac_config_headers"
14045 config_commands="$ac_config_commands"
14049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14051 \`$as_me' instantiates files from templates according to the
14052 current configuration.
14054 Usage: $0 [OPTION]... [FILE]...
14056 -h, --help print this help, then exit
14057 -V, --version print version number and configuration settings, then exit
14058 -q, --quiet, --silent
14059 do not print progress messages
14060 -d, --debug don't remove temporary files
14061 --recheck update $as_me by reconfiguring in the same conditions
14062 --file=FILE[:TEMPLATE]
14063 instantiate the configuration file FILE
14064 --header=FILE[:TEMPLATE]
14065 instantiate the configuration header FILE
14067 Configuration files:
14070 Configuration headers:
14073 Configuration commands:
14076 Report bugs to <bug-autoconf@gnu.org>."
14079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14082 configured by $0, generated by GNU Autoconf 2.63,
14083 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14085 Copyright (C) 2008 Free Software Foundation, Inc.
14086 This config.status script is free software; the Free Software Foundation
14087 gives unlimited permission to copy, distribute and modify it."
14093 test -n "\$AWK" || AWK=awk
14096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14097 # The default lists apply if the user does not specify any file.
14103 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14104 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14115 # Handling of the options.
14116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14118 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14119 $as_echo "$ac_cs_version"; exit ;;
14120 --debug | --debu | --deb | --de | --d | -d )
14122 --file | --fil | --fi | --f )
14125 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14127 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14128 ac_need_defaults=false;;
14129 --header | --heade | --head | --hea )
14132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14134 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14135 ac_need_defaults=false;;
14137 # Conflict between --help and --header
14138 { $as_echo "$as_me: error: ambiguous option: $1
14139 Try \`$0 --help' for more information." >&2
14140 { (exit 1); exit 1; }; };;
14141 --help | --hel | -h )
14142 $as_echo "$ac_cs_usage"; exit ;;
14143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14147 # This is an error.
14148 -*) { $as_echo "$as_me: error: unrecognized option: $1
14149 Try \`$0 --help' for more information." >&2
14150 { (exit 1); exit 1; }; } ;;
14152 *) ac_config_targets="$ac_config_targets $1"
14153 ac_need_defaults=false ;;
14159 ac_configure_extra_args=
14161 if $ac_cs_silent; then
14163 ac_configure_extra_args="$ac_configure_extra_args --silent"
14167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14168 if \$ac_cs_recheck; then
14169 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14172 CONFIG_SHELL='$SHELL'
14173 export CONFIG_SHELL
14178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14183 ## Running $as_me. ##
14189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14193 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14200 # Handling of arguments.
14201 for ac_config_target in $ac_config_targets
14203 case $ac_config_target in
14204 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14205 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14206 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14207 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14208 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14209 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14210 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14211 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
14213 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14214 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14215 { (exit 1); exit 1; }; };;
14220 # If the user did not use the arguments to specify the items to instantiate,
14221 # then the envvar interface is used. Set only those that are not.
14222 # We use the long form for the default assignment because of an extremely
14223 # bizarre bug on SunOS 4.1.3.
14224 if $ac_need_defaults; then
14225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14227 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14230 # Have a temporary directory for convenience. Make it in the build tree
14231 # simply because there is no reason against having it here, and in addition,
14232 # creating and moving files from /tmp can sometimes cause problems.
14233 # Hook for its removal unless debugging.
14234 # Note that there is a small window in which the directory will not be cleaned:
14235 # after its creation but before its name has been assigned to `$tmp'.
14239 trap 'exit_status=$?
14240 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14242 trap '{ (exit 1); exit 1; }' 1 2 13 15
14244 # Create a (secure) tmp directory for tmp files.
14247 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14248 test -n "$tmp" && test -d "$tmp"
14251 tmp=./conf$$-$RANDOM
14252 (umask 077 && mkdir "$tmp")
14255 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14256 { (exit 1); exit 1; }
14259 # Set up the scripts for CONFIG_FILES section.
14260 # No need to generate them if there are no CONFIG_FILES.
14261 # This happens for instance with `./config.status config.h'.
14262 if test -n "$CONFIG_FILES"; then
14267 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14268 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14271 ac_cs_awk_cr=$ac_cr
14274 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14279 echo "cat >conf$$subs.awk <<_ACEOF" &&
14280 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14282 } >conf$$subs.sh ||
14283 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14284 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14285 { (exit 1); exit 1; }; }
14286 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14288 for ac_last_try in false false false false false :; do
14289 . ./conf$$subs.sh ||
14290 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14291 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14292 { (exit 1); exit 1; }; }
14294 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14295 if test $ac_delim_n = $ac_delim_num; then
14297 elif $ac_last_try; then
14298 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14299 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14300 { (exit 1); exit 1; }; }
14302 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14305 rm -f conf$$subs.sh
14307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14308 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14312 s/^/S["/; s/!.*/"]=/
14322 s/\(.\{148\}\).*/\1/
14324 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14329 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14336 s/\(.\{148\}\).*/\1/
14338 s/["\\]/\\&/g; s/^/"/; s/$/"/
14342 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14347 ' <conf$$subs.awk | sed '
14352 ' >>$CONFIG_STATUS || ac_write_fail=1
14353 rm -f conf$$subs.awk
14354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14356 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14357 for (key in S) S_is_set[key] = 1
14363 nfields = split(line, field, "@")
14365 len = length(field[1])
14366 for (i = 2; i < nfields; i++) {
14368 keylen = length(key)
14369 if (S_is_set[key]) {
14371 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14372 len += length(value) + length(field[++i])
14383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14384 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14385 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14388 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14389 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14390 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14391 { (exit 1); exit 1; }; }
14394 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14395 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14396 # trailing colons and then remove the whole line if VPATH becomes empty
14397 # (actually we leave an empty line to preserve line numbers).
14398 if test "x$srcdir" = x.; then
14399 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14400 s/:*\$(srcdir):*/:/
14401 s/:*\${srcdir}:*/:/
14403 s/^\([^=]*=[ ]*\):*/\1/
14409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14410 fi # test -n "$CONFIG_FILES"
14412 # Set up the scripts for CONFIG_HEADERS section.
14413 # No need to generate them if there are no CONFIG_HEADERS.
14414 # This happens for instance with `./config.status Makefile'.
14415 if test -n "$CONFIG_HEADERS"; then
14416 cat >"$tmp/defines.awk" <<\_ACAWK ||
14420 # Transform confdefs.h into an awk script `defines.awk', embedded as
14421 # here-document in config.status, that substitutes the proper values into
14422 # config.h.in to produce config.h.
14424 # Create a delimiter string that does not exist in confdefs.h, to ease
14425 # handling of long lines.
14427 for ac_last_try in false false :; do
14428 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14429 if test -z "$ac_t"; then
14431 elif $ac_last_try; then
14432 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14433 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14434 { (exit 1); exit 1; }; }
14436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14440 # For the awk script, D is an array of macro values keyed by name,
14441 # likewise P contains macro parameters if any. Preserve backslash
14442 # newline sequences.
14444 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14446 s/.\{148\}/&'"$ac_delim"'/g
14449 s/^[ ]*#[ ]*define[ ][ ]*/ /
14456 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14463 D["\1"]=" \3\\\\\\n"\\/p
14465 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14470 s/.\{148\}/&'"$ac_delim"'/g
14475 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14478 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14480 ' <confdefs.h | sed '
14481 s/'"$ac_delim"'/"\\\
14482 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14485 for (key in D) D_is_set[key] = 1
14488 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14490 split(line, arg, " ")
14491 if (arg[1] == "#") {
14495 defundef = substr(arg[1], 2)
14498 split(mac1, mac2, "(") #)
14500 prefix = substr(line, 1, index(line, defundef) - 1)
14501 if (D_is_set[macro]) {
14502 # Preserve the white space surrounding the "#".
14503 print prefix "define", macro P[macro] D[macro]
14506 # Replace #undef with comments. This is necessary, for example,
14507 # in the case of _POSIX_SOURCE, which is predefined and required
14508 # on some systems where configure will not decide to define it.
14509 if (defundef == "undef") {
14510 print "/*", prefix defundef, macro, "*/"
14518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14519 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14520 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14521 { (exit 1); exit 1; }; }
14522 fi # test -n "$CONFIG_HEADERS"
14525 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14530 :[FHLC]) ac_mode=$ac_tag; continue;;
14532 case $ac_mode$ac_tag in
14534 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14535 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14536 { (exit 1); exit 1; }; };;
14537 :[FH]-) ac_tag=-:-;;
14538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14555 -) ac_f="$tmp/stdin";;
14556 *) # Look for the file first in the build tree, then in the source tree
14557 # (if the path is not absolute). The absolute path cannot be DOS-style,
14558 # because $ac_f cannot contain `:'.
14562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14564 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14565 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14566 { (exit 1); exit 1; }; };;
14568 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14569 ac_file_inputs="$ac_file_inputs '$ac_f'"
14572 # Let's still pretend it is `configure' which instantiates (i.e., don't
14573 # use $as_me), people would be surprised to read:
14574 # /* config.h. Generated by config.status. */
14575 configure_input='Generated from '`
14576 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14578 if test x"$ac_file" != x-; then
14579 configure_input="$ac_file. $configure_input"
14580 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14581 $as_echo "$as_me: creating $ac_file" >&6;}
14583 # Neutralize special characters interpreted by sed in replacement strings.
14584 case $configure_input in #(
14585 *\&* | *\|* | *\\* )
14586 ac_sed_conf_input=`$as_echo "$configure_input" |
14587 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14588 *) ac_sed_conf_input=$configure_input;;
14592 *:-:* | *:-) cat >"$tmp/stdin" \
14593 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14594 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14595 { (exit 1); exit 1; }; } ;;
14600 ac_dir=`$as_dirname -- "$ac_file" ||
14601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14602 X"$ac_file" : 'X\(//\)[^/]' \| \
14603 X"$ac_file" : 'X\(//\)$' \| \
14604 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14605 $as_echo X"$ac_file" |
14606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14610 /^X\(\/\/\)[^/].*/{
14625 -*) as_dir=./$as_dir;;
14627 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14631 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14632 *) as_qdir=$as_dir;;
14634 as_dirs="'$as_qdir' $as_dirs"
14635 as_dir=`$as_dirname -- "$as_dir" ||
14636 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14637 X"$as_dir" : 'X\(//\)[^/]' \| \
14638 X"$as_dir" : 'X\(//\)$' \| \
14639 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14640 $as_echo X"$as_dir" |
14641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14645 /^X\(\/\/\)[^/].*/{
14658 test -d "$as_dir" && break
14660 test -z "$as_dirs" || eval "mkdir $as_dirs"
14661 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14662 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14663 { (exit 1); exit 1; }; }; }
14667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14670 # A ".." for each directory in $ac_dir_suffix.
14671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14672 case $ac_top_builddir_sub in
14673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14677 ac_abs_top_builddir=$ac_pwd
14678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14679 # for backward compatibility:
14680 ac_top_builddir=$ac_top_build_prefix
14683 .) # We are building in place.
14685 ac_top_srcdir=$ac_top_builddir_sub
14686 ac_abs_top_srcdir=$ac_pwd ;;
14687 [\\/]* | ?:[\\/]* ) # Absolute name.
14688 ac_srcdir=$srcdir$ac_dir_suffix;
14689 ac_top_srcdir=$srcdir
14690 ac_abs_top_srcdir=$srcdir ;;
14691 *) # Relative name.
14692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14693 ac_top_srcdir=$ac_top_build_prefix$srcdir
14694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14706 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14707 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14712 # If the template does not know about datarootdir, expand it.
14713 # FIXME: This hack should be removed a few years after 2.60.
14714 ac_datarootdir_hack=; ac_datarootdir_seen=
14727 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14728 *datarootdir*) ac_datarootdir_seen=yes;;
14729 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14730 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14731 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14734 ac_datarootdir_hack='
14735 s&@datadir@&$datadir&g
14736 s&@docdir@&$docdir&g
14737 s&@infodir@&$infodir&g
14738 s&@localedir@&$localedir&g
14739 s&@mandir@&$mandir&g
14740 s&\\\${datarootdir}&$datarootdir&g' ;;
14744 # Neutralize VPATH when `$srcdir' = `.'.
14745 # Shell code in configure.ac might set extrasub.
14746 # FIXME: do we really want to maintain this feature?
14747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14748 ac_sed_extra="$ac_vpsub
14751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14754 s|@configure_input@|$ac_sed_conf_input|;t t
14755 s&@top_builddir@&$ac_top_builddir_sub&;t t
14756 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14757 s&@srcdir@&$ac_srcdir&;t t
14758 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14759 s&@top_srcdir@&$ac_top_srcdir&;t t
14760 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14761 s&@builddir@&$ac_builddir&;t t
14762 s&@abs_builddir@&$ac_abs_builddir&;t t
14763 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14764 s&@INSTALL@&$ac_INSTALL&;t t
14765 $ac_datarootdir_hack
14767 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14768 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14769 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14770 { (exit 1); exit 1; }; }
14772 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14773 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14774 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14775 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14776 which seems to be undefined. Please make sure it is defined." >&5
14777 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14778 which seems to be undefined. Please make sure it is defined." >&2;}
14782 -) cat "$tmp/out" && rm -f "$tmp/out";;
14783 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14785 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14786 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14787 { (exit 1); exit 1; }; }
14793 if test x"$ac_file" != x-; then
14795 $as_echo "/* $configure_input */" \
14796 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14797 } >"$tmp/config.h" \
14798 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14799 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14800 { (exit 1); exit 1; }; }
14801 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14802 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14803 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14806 mv "$tmp/config.h" "$ac_file" \
14807 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14808 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14809 { (exit 1); exit 1; }; }
14812 $as_echo "/* $configure_input */" \
14813 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14814 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14815 $as_echo "$as_me: error: could not create -" >&2;}
14816 { (exit 1); exit 1; }; }
14818 # Compute "$ac_file"'s index in $config_headers.
14820 for _am_header in $config_headers :; do
14821 case $_am_header in
14822 "$ac_file" | "$ac_file":* )
14825 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14828 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
14829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14830 X"$ac_file" : 'X\(//\)[^/]' \| \
14831 X"$ac_file" : 'X\(//\)$' \| \
14832 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14833 $as_echo X"$ac_file" |
14834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14838 /^X\(\/\/\)[^/].*/{
14850 s/.*/./; q'`/stamp-h$_am_stamp_count
14853 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14854 $as_echo "$as_me: executing $ac_file commands" >&6;}
14859 case $ac_file$ac_mode in
14860 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14861 # Strip MF so we end up with the name of the file.
14862 mf=`echo "$mf" | sed -e 's/:.*$//'`
14863 # Check whether this is an Automake generated Makefile or not.
14864 # We used to match only the files named `Makefile.in', but
14865 # some people rename them; so instead we look at the file content.
14866 # Grep'ing the first line is not enough: some people post-process
14867 # each Makefile.in and add a new line on top of each file to say so.
14868 # So let's grep whole file.
14869 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14870 dirpart=`$as_dirname -- "$mf" ||
14871 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14872 X"$mf" : 'X\(//\)[^/]' \| \
14873 X"$mf" : 'X\(//\)$' \| \
14874 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14880 /^X\(\/\/\)[^/].*/{
14896 # Extract the definition of DEPDIR, am__include, and am__quote
14897 # from the Makefile without running `make'.
14898 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14899 test -z "$DEPDIR" && continue
14900 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14901 test -z "am__include" && continue
14902 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14903 # When using ansi2knr, U may be empty or an underscore; expand it
14904 U=`sed -n 's/^U = //p' < "$mf"`
14905 # Find all dependency output files, they are included files with
14906 # $(DEPDIR) in their names. We invoke sed twice because it is the
14907 # simplest approach to changing $(DEPDIR) to its actual value in the
14909 for file in `sed -n "
14910 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14911 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14912 # Make sure the directory exists.
14913 test -f "$dirpart/$file" && continue
14914 fdir=`$as_dirname -- "$file" ||
14915 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14916 X"$file" : 'X\(//\)[^/]' \| \
14917 X"$file" : 'X\(//\)$' \| \
14918 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14919 $as_echo X"$file" |
14920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14924 /^X\(\/\/\)[^/].*/{
14937 { as_dir=$dirpart/$fdir
14939 -*) as_dir=./$as_dir;;
14941 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14945 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14946 *) as_qdir=$as_dir;;
14948 as_dirs="'$as_qdir' $as_dirs"
14949 as_dir=`$as_dirname -- "$as_dir" ||
14950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14951 X"$as_dir" : 'X\(//\)[^/]' \| \
14952 X"$as_dir" : 'X\(//\)$' \| \
14953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14954 $as_echo X"$as_dir" |
14955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14959 /^X\(\/\/\)[^/].*/{
14972 test -d "$as_dir" && break
14974 test -z "$as_dirs" || eval "mkdir $as_dirs"
14975 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14976 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14977 { (exit 1); exit 1; }; }; }
14978 # echo "creating $dirpart/$file"
14979 echo '# dummy' > "$dirpart/$file"
14983 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
14984 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14991 { (exit 0); exit 0; }
14993 chmod +x $CONFIG_STATUS
14994 ac_clean_files=$ac_clean_files_save
14996 test $ac_write_fail = 0 ||
14997 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14998 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14999 { (exit 1); exit 1; }; }
15002 # configure is writing to config.log, and then calls config.status.
15003 # config.status does its own redirection, appending to config.log.
15004 # Unfortunately, on DOS this fails, as config.log is still kept open
15005 # by configure, so config.status won't be able to write to it; its
15006 # output is simply discarded. So we exec the FD to /dev/null,
15007 # effectively closing config.log, so it can be properly (re)opened and
15008 # appended to by config.status. When coming back to configure, we
15009 # need to make the FD available again.
15010 if test "$no_create" != yes; then
15012 ac_config_status_args=
15013 test "$silent" = yes &&
15014 ac_config_status_args="$ac_config_status_args --quiet"
15016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15019 # would make configure fail if this is the last instruction.
15020 $ac_cs_success || { (exit 1); exit 1; }
15022 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15023 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15024 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15029 -*) as_dir=./$as_dir;;
15031 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15035 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15036 *) as_qdir=$as_dir;;
15038 as_dirs="'$as_qdir' $as_dirs"
15039 as_dir=`$as_dirname -- "$as_dir" ||
15040 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15041 X"$as_dir" : 'X\(//\)[^/]' \| \
15042 X"$as_dir" : 'X\(//\)$' \| \
15043 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15044 $as_echo X"$as_dir" |
15045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15049 /^X\(\/\/\)[^/].*/{
15062 test -d "$as_dir" && break
15064 test -z "$as_dirs" || eval "mkdir $as_dirs"
15065 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15066 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15067 { (exit 1); exit 1; }; }; }
15071 echo "Configuration complete"
15074 if test "x$HAVE_GTK" = x; then
15075 if test "x$HAVE_COCOA" = x; then
15076 echo " User interface: none"
15078 echo " User interface: Cocoa"
15081 echo " User interface: GTK"
15084 if test "x$SH4_TRANSLATOR" = "x"; then
15085 echo " SH4 translator: None (emulation core only)"
15087 echo " SH4 translator: $SH4_TRANSLATOR"
15090 if test "x$VIDEO_DRIVERS" = "x"; then
15091 echo " Video drivers: none (no supported GL found)"
15093 echo " Video drivers: $VIDEO_DRIVERS"
15096 if test "x$AUDIO_DRIVERS" = "x"; then
15097 echo " Audio drivers: none (no supported output devices found)"
15099 echo " Audio drivers: $AUDIO_DRIVERS"
15102 if test "x$INPUT_DRIVERS" = "x"; then
15103 echo " Input drivers: none (no supported input devices found)"
15105 echo " Input drivers: $INPUT_DRIVERS"
15108 if test "x$CDROM_DRIVER" = "x"; then
15109 echo " CD-ROM driver: none (no supported cd-rom devices found)"
15111 echo " CD-ROM driver: $CDROM_DRIVER"
.