2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="configure.in"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
647 program_transform_name
688 INSTALL_STRIP_PROGRAM
697 MAINTAINER_MODE_FALSE
804 enable_option_checking
805 enable_maintainer_mode
806 enable_dependency_tracking
813 ac_precious_vars='build_alias
839 # Initialize some variables set by options.
841 ac_init_version=false
842 ac_unrecognized_opts=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
853 program_transform_name=s,x,x,
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE}'
878 infodir='${datarootdir}/info'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
899 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
946 { (exit 1); exit 1; }; }
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
956 eval enable_$ac_useropt=no ;;
958 -docdir | --docdir | --docdi | --doc | --do)
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
973 { (exit 1); exit 1; }; }
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
983 eval enable_$ac_useropt=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
998 -help | --help | --hel | --he | -h)
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1147 -site=* | --site=* | --sit=*)
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval with_$ac_useropt=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1205 eval with_$ac_useropt=no ;;
1208 # Obsolete; use --with-x.
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1226 Try \`$0 --help' for more information." >&2
1227 { (exit 1); exit 1; }; }
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1234 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1235 { (exit 1); exit 1; }; }
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1253 { (exit 1); exit 1; }; }
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1259 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1260 { (exit 1); exit 1; }; } ;;
1261 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1278 # Be sure to have absolute directory names.
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1284 { (exit 1); exit 1; }; }
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1292 target=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308 test "$silent" = yes && exec 6>/dev/null
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1315 { (exit 1); exit 1; }; }
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1318 { (exit 1); exit 1; }; }
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1353 ac_srcdir_defaulted=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1358 { (exit 1); exit 1; }; }
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1363 { (exit 1); exit 1; }; }
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1389 \`configure' configures this package to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 if test -n "$ac_init_help"; then
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-maintainer-mode enable make rules and dependencies not useful
1466 (and sometimes confusing) to the casual installer
1467 --disable-dependency-tracking speeds up one-time build
1468 --enable-dependency-tracking do not reject slow dependency extractors
1469 --enable-trace Enable generation of IO traces (warning: hurts
1471 --enable-watch Enable watchpoints in the debugger (warning: hurts
1473 --enable-sh4stats Enable statistics on executed sh4 instructions
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-osmesa Build with the osmesa GL library (software
1480 --with-gtk Build with the GTK UI. Default on X11 systems
1482 Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 LIBS libraries to pass to the linker, e.g. -l<library>
1488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 CCAS assembler compiler command (defaults to CC)
1491 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1493 PKG_CONFIG path to pkg-config utility
1495 C compiler flags for LIBPNG, overriding pkg-config
1496 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1497 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1498 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1499 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1500 GTK_LIBS linker flags for GTK, overriding pkg-config
1502 C compiler flags for PULSE, overriding pkg-config
1503 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1505 C compiler flags for ESOUND, overriding pkg-config
1506 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1507 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1508 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1542 .) # We are building in place.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1576 generated by GNU Autoconf 2.62
1578 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1579 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1585 cat >config.log <<_ACEOF
1586 This file contains any messages produced by compilers while
1587 running configure, to aid debugging if configure makes a mistake.
1589 It was created by $as_me, which was
1590 generated by GNU Autoconf 2.62. Invocation command line was
1602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1611 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1612 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1613 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1614 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1615 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1616 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1617 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 test -z "$as_dir" && as_dir=.
1626 $as_echo "PATH: $as_dir"
1642 # Keep a trace of the command line.
1643 # Strip out --no-create and --no-recursion so they do not pile up.
1644 # Strip out --silent because we don't want to record it for future runs.
1645 # Also quote any args containing shell meta-characters.
1646 # Make two passes to allow for proper duplicate-argument suppression.
1650 ac_must_keep_next=false
1656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658 | -silent | --silent | --silen | --sile | --sil)
1661 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1664 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667 if test $ac_must_keep_next = true; then
1668 ac_must_keep_next=false # Got value, back to normal.
1671 *=* | --config-cache | -C | -disable-* | --disable-* \
1672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674 | -with-* | --with-* | -without-* | --without-* | --x)
1675 case "$ac_configure_args0 " in
1676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1679 -* ) ac_must_keep_next=true ;;
1682 ac_configure_args="$ac_configure_args '$ac_arg'"
1687 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690 # When interrupted or exit'd, cleanup temporary files, and complete
1691 # config.log. We remove comments because anyway the quotes in there
1692 # would cause problems or look ugly.
1693 # WARNING: Use '\'' to represent an apostrophe within the trap.
1694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1695 trap 'exit_status=$?
1696 # Save into config.log some information that might help in debugging.
1701 ## ---------------- ##
1702 ## Cache variables. ##
1703 ## ---------------- ##
1706 # The following way of writing the cache mishandles newlines in values,
1708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709 eval ac_val=\$$ac_var
1713 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1717 _ | IFS | as_nl) ;; #(
1718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1719 *) $as_unset $ac_var ;;
1724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725 *${as_nl}ac_space=\ *)
1727 "s/'\''/'\''\\\\'\'''\''/g;
1728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1744 for ac_var in $ac_subst_vars
1746 eval ac_val=\$$ac_var
1748 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 $as_echo "$ac_var='\''$ac_val'\''"
1754 if test -n "$ac_subst_files"; then
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1761 for ac_var in $ac_subst_files
1763 eval ac_val=\$$ac_var
1765 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767 $as_echo "$ac_var='\''$ac_val'\''"
1772 if test -s confdefs.h; then
1782 test "$ac_signal" != 0 &&
1783 $as_echo "$as_me: caught signal $ac_signal"
1784 $as_echo "$as_me: exit $exit_status"
1786 rm -f core *.core core.conftest.* &&
1787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1790 for ac_signal in 1 2 13 15; do
1791 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1798 # Predefined preprocessor variables.
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer an explicitly selected file to automatically selected ones.
1829 if test -n "$CONFIG_SITE"; then
1830 ac_site_file1=$CONFIG_SITE
1831 elif test "x$prefix" != xNONE; then
1832 ac_site_file1=$prefix/share/config.site
1833 ac_site_file2=$prefix/etc/config.site
1835 ac_site_file1=$ac_default_prefix/share/config.site
1836 ac_site_file2=$ac_default_prefix/etc/config.site
1838 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1840 test "x$ac_site_file" = xNONE && continue
1841 if test -r "$ac_site_file"; then
1842 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1844 sed 's/^/| /' "$ac_site_file" >&5
1849 if test -r "$cache_file"; then
1850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
1853 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854 $as_echo "$as_me: loading cache $cache_file" >&6;}
1856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
1861 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862 $as_echo "$as_me: creating cache $cache_file" >&6;}
1866 # Check that the precious variables saved in the cache have kept the same
1868 ac_cache_corrupted=false
1869 for ac_var in $ac_precious_vars; do
1870 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871 eval ac_new_set=\$ac_env_${ac_var}_set
1872 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873 eval ac_new_val=\$ac_env_${ac_var}_value
1874 case $ac_old_set,$ac_new_set in
1876 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1880 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1885 if test "x$ac_old_val" != "x$ac_new_val"; then
1886 # differences in whitespace do not lead to failure.
1887 ac_old_val_w=`echo x $ac_old_val`
1888 ac_new_val_w=`echo x $ac_new_val`
1889 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1890 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892 ac_cache_corrupted=:
1894 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1895 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1896 eval $ac_var=\$ac_old_val
1898 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1899 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1900 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1901 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1904 # Pass precious variables to config.status.
1905 if test "$ac_new_set" = set; then
1907 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 *) ac_arg=$ac_var=$ac_new_val ;;
1910 case " $ac_configure_args " in
1911 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1912 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916 if $ac_cache_corrupted; then
1917 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921 { (exit 1); exit 1; }; }
1941 ac_cpp='$CPP $CPPFLAGS'
1942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947 am__api_version="1.9"
1949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1950 if test -f "$ac_dir/install-sh"; then
1952 ac_install_sh="$ac_aux_dir/install-sh -c"
1954 elif test -f "$ac_dir/install.sh"; then
1956 ac_install_sh="$ac_aux_dir/install.sh -c"
1958 elif test -f "$ac_dir/shtool"; then
1960 ac_install_sh="$ac_aux_dir/shtool install -c"
1964 if test -z "$ac_aux_dir"; then
1965 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1966 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1967 { (exit 1); exit 1; }; }
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979 # Find a good install program. We prefer a C program (faster),
1980 # so one script is as good as another. But avoid the broken or
1981 # incompatible versions:
1982 # SysV /etc/install, /usr/sbin/install
1983 # SunOS /usr/etc/install
1984 # IRIX /sbin/install
1986 # AmigaOS /C/install, which installs bootblocks on floppy discs
1987 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1990 # OS/2's system install, which has a completely different semantic
1991 # ./install, which can be erroneously created by make from ./install.sh.
1992 # Reject install programs that cannot install multiple files.
1993 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1994 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1995 if test -z "$INSTALL"; then
1996 if test "${ac_cv_path_install+set}" = set; then
1997 $as_echo_n "(cached) " >&6
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 # Account for people who put trailing slashes in PATH elements.
2006 ./ | .// | /cC/* | \
2007 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2008 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2011 # OSF1 and SCO ODT 3.0 have their own names for install.
2012 # Don't use installbsd from OSF since it installs stuff as root
2014 for ac_prog in ginstall scoinst install; do
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2017 if test $ac_prog = install &&
2018 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # AIX install. It has an incompatible calling convention.
2021 elif test $ac_prog = install &&
2022 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023 # program-specific install script used by HP pwplus--don't use.
2026 rm -rf conftest.one conftest.two conftest.dir
2027 echo one > conftest.one
2028 echo two > conftest.two
2030 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2031 test -s conftest.one && test -s conftest.two &&
2032 test -s conftest.dir/conftest.one &&
2033 test -s conftest.dir/conftest.two
2035 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2048 rm -rf conftest.one conftest.two conftest.dir
2051 if test "${ac_cv_path_install+set}" = set; then
2052 INSTALL=$ac_cv_path_install
2054 # As a last resort, use the slow shell script. Don't cache a
2055 # value for INSTALL within a source directory, because that will
2056 # break other packages using the cache if that directory is
2057 # removed, or if the value is a relative name.
2058 INSTALL=$ac_install_sh
2061 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2062 $as_echo "$INSTALL" >&6; }
2064 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2065 # It thinks the first close brace ends the variable substitution.
2066 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2068 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2070 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2072 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2073 $as_echo_n "checking whether build environment is sane... " >&6; }
2076 echo timestamp > conftest.file
2077 # Do `set' in a subshell so we don't clobber the current shell's
2078 # arguments. Must try -L first in case configure is actually a
2079 # symlink; some systems play weird games with the mod time of symlinks
2080 # (eg FreeBSD returns the mod time of the symlink's containing
2083 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2084 if test "$*" = "X"; then
2086 set X `ls -t $srcdir/configure conftest.file`
2089 if test "$*" != "X $srcdir/configure conftest.file" \
2090 && test "$*" != "X conftest.file $srcdir/configure"; then
2092 # If neither matched, then we have a broken ls. This can happen
2093 # if, for instance, CONFIG_SHELL is bash and it inherits a
2094 # broken ls alias from the environment. This has actually
2095 # happened. Such a system could not be considered "sane".
2096 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2097 alias in your environment" >&5
2098 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2099 alias in your environment" >&2;}
2100 { (exit 1); exit 1; }; }
2103 test "$2" = conftest.file
2109 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2110 Check your system clock" >&5
2111 $as_echo "$as_me: error: newly created file is older than distributed files!
2112 Check your system clock" >&2;}
2113 { (exit 1); exit 1; }; }
2115 { $as_echo "$as_me:$LINENO: result: yes" >&5
2116 $as_echo "yes" >&6; }
2117 test "$program_prefix" != NONE &&
2118 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2119 # Use a double $ so make ignores it.
2120 test "$program_suffix" != NONE &&
2121 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2122 # Double any \ or $.
2123 # By default was `s,x,x', remove it if useless.
2124 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2125 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2127 # expand $ac_aux_dir to an absolute path
2128 am_aux_dir=`cd $ac_aux_dir && pwd`
2130 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2131 # Use eval to expand $SHELL
2132 if eval "$MISSING --run true"; then
2133 am_missing_run="$MISSING --run "
2136 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2137 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2140 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2141 # We used to keeping the `.' as first argument, in order to
2142 # allow $(mkdir_p) to be used without argument. As in
2143 # $(mkdir_p) $(somedir)
2144 # where $(somedir) is conditionally defined. However this is wrong
2146 # 1. if the package is installed by a user who cannot write `.'
2147 # make install will fail,
2148 # 2. the above comment should most certainly read
2149 # $(mkdir_p) $(DESTDIR)$(somedir)
2150 # so it does not work when $(somedir) is undefined and
2151 # $(DESTDIR) is not.
2152 # To support the latter case, we have to write
2153 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2154 # so the `.' trick is pointless.
2155 mkdir_p='mkdir -p --'
2157 # On NextStep and OpenStep, the `mkdir' command does not
2158 # recognize any option. It will interpret all options as
2159 # directories to create, and then abort because `.' already
2161 for d in ./-p ./--version;
2163 test -d $d && rmdir $d
2165 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2166 if test -f "$ac_aux_dir/mkinstalldirs"; then
2167 mkdir_p='$(mkinstalldirs)'
2169 mkdir_p='$(install_sh) -d'
2173 for ac_prog in gawk mawk nawk awk
2175 # Extract the first word of "$ac_prog", so it can be a program name with args.
2176 set dummy $ac_prog; ac_word=$2
2177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 $as_echo_n "checking for $ac_word... " >&6; }
2179 if test "${ac_cv_prog_AWK+set}" = set; then
2180 $as_echo_n "(cached) " >&6
2182 if test -n "$AWK"; then
2183 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192 ac_cv_prog_AWK="$ac_prog"
2193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 if test -n "$AWK"; then
2204 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2205 $as_echo "$AWK" >&6; }
2207 { $as_echo "$as_me:$LINENO: result: no" >&5
2208 $as_echo "no" >&6; }
2212 test -n "$AWK" && break
2215 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2216 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2218 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2219 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2220 $as_echo_n "(cached) " >&6
2222 cat >conftest.make <<\_ACEOF
2225 @echo '@@@%%%=$(MAKE)=@@@%%%'
2227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2228 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2230 eval ac_cv_prog_make_${ac_make}_set=yes;;
2232 eval ac_cv_prog_make_${ac_make}_set=no;;
2236 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2237 { $as_echo "$as_me:$LINENO: result: yes" >&5
2238 $as_echo "yes" >&6; }
2241 { $as_echo "$as_me:$LINENO: result: no" >&5
2242 $as_echo "no" >&6; }
2243 SET_MAKE="MAKE=${MAKE-make}"
2246 rm -rf .tst 2>/dev/null
2247 mkdir .tst 2>/dev/null
2248 if test -d .tst; then
2253 rmdir .tst 2>/dev/null
2255 # test to see if srcdir already configured
2256 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2257 test -f $srcdir/config.status; then
2258 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2259 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2260 { (exit 1); exit 1; }; }
2263 # test whether we have cygpath
2264 if test -z "$CYGPATH_W"; then
2265 if (cygpath --version) >/dev/null 2>/dev/null; then
2266 CYGPATH_W='cygpath -w'
2273 # Define the identity of the package.
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE "$PACKAGE"
2283 cat >>confdefs.h <<_ACEOF
2284 #define VERSION "$VERSION"
2287 # Some tools Automake needs.
2289 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2292 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2295 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2298 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2301 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2303 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2305 # Installed binaries are usually stripped using `strip' when the user
2306 # run `make install-strip'. However `strip' might not be the right
2307 # tool to use in cross-compilation environments, therefore Automake
2308 # will honor the `STRIP' environment variable to overrule this program.
2309 if test "$cross_compiling" != no; then
2310 if test -n "$ac_tool_prefix"; then
2311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2312 set dummy ${ac_tool_prefix}strip; ac_word=$2
2313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 $as_echo_n "checking for $ac_word... " >&6; }
2315 if test "${ac_cv_prog_STRIP+set}" = set; then
2316 $as_echo_n "(cached) " >&6
2318 if test -n "$STRIP"; then
2319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 STRIP=$ac_cv_prog_STRIP
2339 if test -n "$STRIP"; then
2340 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2341 $as_echo "$STRIP" >&6; }
2343 { $as_echo "$as_me:$LINENO: result: no" >&5
2344 $as_echo "no" >&6; }
2349 if test -z "$ac_cv_prog_STRIP"; then
2351 # Extract the first word of "strip", so it can be a program name with args.
2352 set dummy strip; ac_word=$2
2353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 $as_echo_n "checking for $ac_word... " >&6; }
2355 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2356 $as_echo_n "(cached) " >&6
2358 if test -n "$ac_ct_STRIP"; then
2359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2368 ac_cv_prog_ac_ct_STRIP="strip"
2369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2379 if test -n "$ac_ct_STRIP"; then
2380 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2381 $as_echo "$ac_ct_STRIP" >&6; }
2383 { $as_echo "$as_me:$LINENO: result: no" >&5
2384 $as_echo "no" >&6; }
2387 if test "x$ac_ct_STRIP" = x; then
2390 case $cross_compiling:$ac_tool_warned in
2392 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2393 whose name does not start with the host triplet. If you think this
2394 configuration is useful to you, please write to autoconf@gnu.org." >&5
2395 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2396 whose name does not start with the host triplet. If you think this
2397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2398 ac_tool_warned=yes ;;
2403 STRIP="$ac_cv_prog_STRIP"
2407 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2409 # We need awk for the "check" target. The system "awk" is bad on
2411 # Always define AMTAR for backward compatibility.
2413 AMTAR=${AMTAR-"${am_missing_run}tar"}
2415 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2421 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2422 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2423 # Check whether --enable-maintainer-mode was given.
2424 if test "${enable_maintainer_mode+set}" = set; then
2425 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2427 USE_MAINTAINER_MODE=no
2430 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2431 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2434 if test $USE_MAINTAINER_MODE = yes; then
2435 MAINTAINER_MODE_TRUE=
2436 MAINTAINER_MODE_FALSE='#'
2438 MAINTAINER_MODE_TRUE='#'
2439 MAINTAINER_MODE_FALSE=
2442 MAINT=$MAINTAINER_MODE_TRUE
2445 ac_config_headers="$ac_config_headers config.h"
2448 DEPDIR="${am__leading_dot}deps"
2450 ac_config_commands="$ac_config_commands depfiles"
2453 am_make=${MAKE-make}
2454 cat > confinc << 'END'
2459 # If we don't find an include directive, just comment out the code.
2460 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2461 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2465 # First try GNU make style include.
2466 echo "include confinc" > confmf
2467 # We grep out `Entering directory' and `Leaving directory'
2468 # messages which can occur if `w' ends up in MAKEFLAGS.
2469 # In particular we don't look at `^make:' because GNU make might
2470 # be invoked under some other name (usually "gmake"), in which
2471 # case it prints its new name instead of `make'.
2472 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2477 # Now try BSD make style include.
2478 if test "$am__include" = "#"; then
2479 echo '.include "confinc"' > confmf
2480 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2481 am__include=.include
2488 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2489 $as_echo "$_am_result" >&6; }
2490 rm -f confinc confmf
2492 # Check whether --enable-dependency-tracking was given.
2493 if test "${enable_dependency_tracking+set}" = set; then
2494 enableval=$enable_dependency_tracking;
2497 if test "x$enable_dependency_tracking" != xno; then
2498 am_depcomp="$ac_aux_dir/depcomp"
2503 if test "x$enable_dependency_tracking" != xno; then
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518 if test -n "$ac_tool_prefix"; then
2519 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2520 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 $as_echo_n "checking for $ac_word... " >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 $as_echo_n "(cached) " >&6
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 if test -n "$CC"; then
2548 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2549 $as_echo "$CC" >&6; }
2551 { $as_echo "$as_me:$LINENO: result: no" >&5
2552 $as_echo "no" >&6; }
2557 if test -z "$ac_cv_prog_CC"; then
2559 # Extract the first word of "gcc", so it can be a program name with args.
2560 set dummy gcc; ac_word=$2
2561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 $as_echo_n "checking for $ac_word... " >&6; }
2563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2564 $as_echo_n "(cached) " >&6
2566 if test -n "$ac_ct_CC"; then
2567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576 ac_cv_prog_ac_ct_CC="gcc"
2577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2587 if test -n "$ac_ct_CC"; then
2588 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2589 $as_echo "$ac_ct_CC" >&6; }
2591 { $as_echo "$as_me:$LINENO: result: no" >&5
2592 $as_echo "no" >&6; }
2595 if test "x$ac_ct_CC" = x; then
2598 case $cross_compiling:$ac_tool_warned in
2600 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2601 whose name does not start with the host triplet. If you think this
2602 configuration is useful to you, please write to autoconf@gnu.org." >&5
2603 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2604 whose name does not start with the host triplet. If you think this
2605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2606 ac_tool_warned=yes ;;
2614 if test -z "$CC"; then
2615 if test -n "$ac_tool_prefix"; then
2616 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}cc; ac_word=$2
2618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if test "${ac_cv_prog_CC+set}" = set; then
2621 $as_echo_n "(cached) " >&6
2623 if test -n "$CC"; then
2624 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_CC="${ac_tool_prefix}cc"
2634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 if test -n "$CC"; then
2645 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2646 $as_echo "$CC" >&6; }
2648 { $as_echo "$as_me:$LINENO: result: no" >&5
2649 $as_echo "no" >&6; }
2655 if test -z "$CC"; then
2656 # Extract the first word of "cc", so it can be a program name with args.
2657 set dummy cc; ac_word=$2
2658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_CC+set}" = set; then
2661 $as_echo_n "(cached) " >&6
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2675 ac_prog_rejected=yes
2679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 if test $ac_prog_rejected = yes; then
2687 # We found a bogon in the path, so make sure we never use it.
2688 set dummy $ac_cv_prog_CC
2690 if test $# != 0; then
2691 # We chose a different compiler from the bogus one.
2692 # However, it has the same basename, so the bogon will be chosen
2693 # first if we set CC to just the basename; use the full file name.
2695 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2701 if test -n "$CC"; then
2702 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2703 $as_echo "$CC" >&6; }
2705 { $as_echo "$as_me:$LINENO: result: no" >&5
2706 $as_echo "no" >&6; }
2711 if test -z "$CC"; then
2712 if test -n "$ac_tool_prefix"; then
2713 for ac_prog in cl.exe
2715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2717 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if test "${ac_cv_prog_CC+set}" = set; then
2720 $as_echo_n "(cached) " >&6
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC="$CC" # Let the user override the test.
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2733 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 if test -n "$CC"; then
2744 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2745 $as_echo "$CC" >&6; }
2747 { $as_echo "$as_me:$LINENO: result: no" >&5
2748 $as_echo "no" >&6; }
2752 test -n "$CC" && break
2755 if test -z "$CC"; then
2757 for ac_prog in cl.exe
2759 # Extract the first word of "$ac_prog", so it can be a program name with args.
2760 set dummy $ac_prog; ac_word=$2
2761 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2764 $as_echo_n "(cached) " >&6
2766 if test -n "$ac_ct_CC"; then
2767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_ac_ct_CC="$ac_prog"
2777 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2787 if test -n "$ac_ct_CC"; then
2788 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2789 $as_echo "$ac_ct_CC" >&6; }
2791 { $as_echo "$as_me:$LINENO: result: no" >&5
2792 $as_echo "no" >&6; }
2796 test -n "$ac_ct_CC" && break
2799 if test "x$ac_ct_CC" = x; then
2802 case $cross_compiling:$ac_tool_warned in
2804 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2805 whose name does not start with the host triplet. If you think this
2806 configuration is useful to you, please write to autoconf@gnu.org." >&5
2807 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2808 whose name does not start with the host triplet. If you think this
2809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2810 ac_tool_warned=yes ;;
2819 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2820 See \`config.log' for more details." >&5
2821 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2822 See \`config.log' for more details." >&2;}
2823 { (exit 1); exit 1; }; }
2825 # Provide some information about the compiler.
2826 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2829 { (ac_try="$ac_compiler --version >&5"
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2835 $as_echo "$ac_try_echo") >&5
2836 (eval "$ac_compiler --version >&5") 2>&5
2838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }
2840 { (ac_try="$ac_compiler -v >&5"
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2846 $as_echo "$ac_try_echo") >&5
2847 (eval "$ac_compiler -v >&5") 2>&5
2849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }
2851 { (ac_try="$ac_compiler -V >&5"
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857 $as_echo "$ac_try_echo") >&5
2858 (eval "$ac_compiler -V >&5") 2>&5
2860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2863 cat >conftest.$ac_ext <<_ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2878 ac_clean_files_save=$ac_clean_files
2879 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2880 # Try to create an executable without -o first, disregard a.out.
2881 # It will help us diagnose broken compilers, and finding out an intuition
2883 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2884 $as_echo_n "checking for C compiler default output file name... " >&6; }
2885 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2887 # The possible output files:
2888 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2891 for ac_file in $ac_files
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2895 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2900 if { (ac_try="$ac_link_default"
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2906 $as_echo "$ac_try_echo") >&5
2907 (eval "$ac_link_default") 2>&5
2909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; then
2911 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2912 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2913 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2914 # so that the user can short-circuit this test for compilers unknown to
2916 for ac_file in $ac_files ''
2918 test -f "$ac_file" || continue
2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2923 # We found the default executable, but exeext='' is most
2927 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2929 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931 # We set ac_cv_exeext here because the later test for it is not
2932 # safe: cross compilers may not add the suffix if given an `-o'
2933 # argument, so we may need to know it at that point already.
2934 # Even if this section looks crufty: it has the advantage of
2941 test "$ac_cv_exeext" = no && ac_cv_exeext=
2947 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2948 $as_echo "$ac_file" >&6; }
2949 if test -z "$ac_file"; then
2950 $as_echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2954 See \`config.log' for more details." >&5
2955 $as_echo "$as_me: error: C compiler cannot create executables
2956 See \`config.log' for more details." >&2;}
2957 { (exit 77); exit 77; }; }
2960 ac_exeext=$ac_cv_exeext
2962 # Check that the compiler produces executables we can run. If not, either
2963 # the compiler is broken, or we cross compile.
2964 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2965 $as_echo_n "checking whether the C compiler works... " >&6; }
2966 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2967 # If not cross compiling, check that we can run a simple program.
2968 if test "$cross_compiling" != yes; then
2969 if { ac_try='./$ac_file'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2975 $as_echo "$ac_try_echo") >&5
2976 (eval "$ac_try") 2>&5
2978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2982 if test "$cross_compiling" = maybe; then
2985 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2986 If you meant to cross compile, use \`--host'.
2987 See \`config.log' for more details." >&5
2988 $as_echo "$as_me: error: cannot run C compiled programs.
2989 If you meant to cross compile, use \`--host'.
2990 See \`config.log' for more details." >&2;}
2991 { (exit 1); exit 1; }; }
2995 { $as_echo "$as_me:$LINENO: result: yes" >&5
2996 $as_echo "yes" >&6; }
2998 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2999 ac_clean_files=$ac_clean_files_save
3000 # Check that the compiler produces executables we can run. If not, either
3001 # the compiler is broken, or we cross compile.
3002 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3003 $as_echo_n "checking whether we are cross compiling... " >&6; }
3004 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3005 $as_echo "$cross_compiling" >&6; }
3007 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3008 $as_echo_n "checking for suffix of executables... " >&6; }
3009 if { (ac_try="$ac_link"
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3015 $as_echo "$ac_try_echo") >&5
3016 (eval "$ac_link") 2>&5
3018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; then
3020 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3021 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3022 # work properly (i.e., refer to `conftest.exe'), while it won't with
3024 for ac_file in conftest.exe conftest conftest.*; do
3025 test -f "$ac_file" || continue
3027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3028 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3034 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3035 See \`config.log' for more details." >&5
3036 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3037 See \`config.log' for more details." >&2;}
3038 { (exit 1); exit 1; }; }
3041 rm -f conftest$ac_cv_exeext
3042 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3043 $as_echo "$ac_cv_exeext" >&6; }
3045 rm -f conftest.$ac_ext
3046 EXEEXT=$ac_cv_exeext
3048 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3049 $as_echo_n "checking for suffix of object files... " >&6; }
3050 if test "${ac_cv_objext+set}" = set; then
3051 $as_echo_n "(cached) " >&6
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 rm -f conftest.o conftest.obj
3069 if { (ac_try="$ac_compile"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3075 $as_echo "$ac_try_echo") >&5
3076 (eval "$ac_compile") 2>&5
3078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; then
3080 for ac_file in conftest.o conftest.obj conftest.*; do
3081 test -f "$ac_file" || continue;
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3084 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3089 $as_echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3093 See \`config.log' for more details." >&5
3094 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3095 See \`config.log' for more details." >&2;}
3096 { (exit 1); exit 1; }; }
3099 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3101 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3102 $as_echo "$ac_cv_objext" >&6; }
3103 OBJEXT=$ac_cv_objext
3105 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3106 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3107 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3108 $as_echo_n "(cached) " >&6
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3128 rm -f conftest.$ac_objext
3129 if { (ac_try="$ac_compile"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3135 $as_echo "$ac_try_echo") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } && {
3143 test -z "$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 } && test -s conftest.$ac_objext; then
3148 $as_echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3158 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3159 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3160 if test $ac_compiler_gnu = yes; then
3165 ac_test_CFLAGS=${CFLAGS+set}
3166 ac_save_CFLAGS=$CFLAGS
3167 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3168 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3169 if test "${ac_cv_prog_cc_g+set}" = set; then
3170 $as_echo_n "(cached) " >&6
3172 ac_save_c_werror_flag=$ac_c_werror_flag
3173 ac_c_werror_flag=yes
3176 cat >conftest.$ac_ext <<_ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3198 $as_echo "$ac_try_echo") >&5
3199 (eval "$ac_compile") 2>conftest.er1
3201 grep -v '^ *+' conftest.er1 >conftest.err
3203 cat conftest.err >&5
3204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } && {
3206 test -z "$ac_c_werror_flag" ||
3207 test ! -s conftest.err
3208 } && test -s conftest.$ac_objext; then
3211 $as_echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3237 $as_echo "$ac_try_echo") >&5
3238 (eval "$ac_compile") 2>conftest.er1
3240 grep -v '^ *+' conftest.er1 >conftest.err
3242 cat conftest.err >&5
3243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } && {
3245 test -z "$ac_c_werror_flag" ||
3246 test ! -s conftest.err
3247 } && test -s conftest.$ac_objext; then
3250 $as_echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3253 ac_c_werror_flag=$ac_save_c_werror_flag
3255 cat >conftest.$ac_ext <<_ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3270 rm -f conftest.$ac_objext
3271 if { (ac_try="$ac_compile"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3277 $as_echo "$ac_try_echo") >&5
3278 (eval "$ac_compile") 2>conftest.er1
3280 grep -v '^ *+' conftest.er1 >conftest.err
3282 cat conftest.err >&5
3283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } && {
3285 test -z "$ac_c_werror_flag" ||
3286 test ! -s conftest.err
3287 } && test -s conftest.$ac_objext; then
3290 $as_echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 ac_c_werror_flag=$ac_save_c_werror_flag
3305 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3306 $as_echo "$ac_cv_prog_cc_g" >&6; }
3307 if test "$ac_test_CFLAGS" = set; then
3308 CFLAGS=$ac_save_CFLAGS
3309 elif test $ac_cv_prog_cc_g = yes; then
3310 if test "$GCC" = yes; then
3316 if test "$GCC" = yes; then
3322 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3323 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3324 if test "${ac_cv_prog_cc_c89+set}" = set; then
3325 $as_echo_n "(cached) " >&6
3327 ac_cv_prog_cc_c89=no
3329 cat >conftest.$ac_ext <<_ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3337 #include <sys/types.h>
3338 #include <sys/stat.h>
3339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3340 struct buf { int x; };
3341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3342 static char *e (p, i)
3348 static char *f (char * (*g) (char **, int), char **p, ...)
3353 s = g (p, va_arg (v,int));
3358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3359 function prototypes and stuff, but not '\xHH' hex character constants.
3360 These don't provoke an error unfortunately, instead are silently treated
3361 as 'x'. The following induces an error, until -std is added to get
3362 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3363 array size at least. It's necessary to write '\x00'==0 to get something
3364 that's true only with -std. */
3365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3367 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3368 inside strings and character constants. */
3370 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3372 int test (int i, double x);
3373 struct s1 {int (*f) (int a);};
3374 struct s2 {int (*f) (double a);};
3375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3381 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3386 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3387 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3389 CC="$ac_save_CC $ac_arg"
3390 rm -f conftest.$ac_objext
3391 if { (ac_try="$ac_compile"
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3397 $as_echo "$ac_try_echo") >&5
3398 (eval "$ac_compile") 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
3402 cat conftest.err >&5
3403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } && {
3405 test -z "$ac_c_werror_flag" ||
3406 test ! -s conftest.err
3407 } && test -s conftest.$ac_objext; then
3408 ac_cv_prog_cc_c89=$ac_arg
3410 $as_echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3416 rm -f core conftest.err conftest.$ac_objext
3417 test "x$ac_cv_prog_cc_c89" != "xno" && break
3419 rm -f conftest.$ac_ext
3424 case "x$ac_cv_prog_cc_c89" in
3426 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3427 $as_echo "none needed" >&6; } ;;
3429 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3430 $as_echo "unsupported" >&6; } ;;
3432 CC="$CC $ac_cv_prog_cc_c89"
3433 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3434 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 depcc="$CC" am_compiler_list=
3446 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3447 $as_echo_n "checking dependency style of $depcc... " >&6; }
3448 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3449 $as_echo_n "(cached) " >&6
3451 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3452 # We make a subdir and do the tests there. Otherwise we can end up
3453 # making bogus files that we don't know about and never remove. For
3454 # instance it was reported that on HP-UX the gcc test will end up
3455 # making a dummy file named `D' -- because `-MD' means `put the output
3458 # Copy depcomp to subdir because otherwise we won't find it if we're
3459 # using a relative directory.
3460 cp "$am_depcomp" conftest.dir
3462 # We will build objects and dependencies in a subdirectory because
3463 # it helps to detect inapplicable dependency modes. For instance
3464 # both Tru64's cc and ICC support -MD to output dependencies as a
3465 # side effect of compilation, but ICC will put the dependencies in
3466 # the current directory while Tru64 will put them in the object
3470 am_cv_CC_dependencies_compiler_type=none
3471 if test "$am_compiler_list" = ""; then
3472 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3474 for depmode in $am_compiler_list; do
3475 # Setup a source with many dependencies, because some compilers
3476 # like to wrap large dependency lists on column 80 (with \), and
3477 # we should not choose a depcomp mode which is confused by this.
3479 # We need to recreate these files for each test, as the compiler may
3480 # overwrite some of them when testing with obscure command lines.
3481 # This happens at least with the AIX C compiler.
3483 for i in 1 2 3 4 5 6; do
3484 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3485 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3486 # Solaris 8's {/usr,}/bin/sh.
3487 touch sub/conftst$i.h
3489 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3493 # after this tag, mechanisms are not by side-effect, so they'll
3494 # only be used when explicitly requested
3495 if test "x$enable_dependency_tracking" = xyes; then
3503 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3504 # mode. It turns out that the SunPro C++ compiler does not properly
3505 # handle `-M -o', and we need to detect this.
3506 if depmode=$depmode \
3507 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3508 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3509 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3510 >/dev/null 2>conftest.err &&
3511 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3512 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3513 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3514 # icc doesn't choke on unknown options, it will just issue warnings
3515 # or remarks (even with -Werror). So we grep stderr for any message
3516 # that says an option was ignored or not supported.
3517 # When given -MP, icc 7.0 and 7.1 complain thusly:
3518 # icc: Command line warning: ignoring option '-M'; no argument required
3519 # The diagnosis changed in icc 8.0:
3520 # icc: Command line remark: option '-MP' not supported
3521 if (grep 'ignoring option' conftest.err ||
3522 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3523 am_cv_CC_dependencies_compiler_type=$depmode
3532 am_cv_CC_dependencies_compiler_type=none
3536 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3537 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3538 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3543 test "x$enable_dependency_tracking" != xno \
3544 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3546 am__fastdepCC_FALSE='#'
3548 am__fastdepCC_TRUE='#'
3549 am__fastdepCC_FALSE=
3555 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3556 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3557 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3558 $as_echo_n "(cached) " >&6
3560 ac_check_lib_save_LIBS=$LIBS
3561 LIBS="-lcposix $LIBS"
3562 cat >conftest.$ac_ext <<_ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3569 /* Override any GCC internal prototype to avoid an error.
3570 Use char because int might match the return type of a GCC
3571 builtin and then its argument prototype would still apply. */
3584 rm -f conftest.$ac_objext conftest$ac_exeext
3585 if { (ac_try="$ac_link"
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3591 $as_echo "$ac_try_echo") >&5
3592 (eval "$ac_link") 2>conftest.er1
3594 grep -v '^ *+' conftest.er1 >conftest.err
3596 cat conftest.err >&5
3597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } && {
3599 test -z "$ac_c_werror_flag" ||
3600 test ! -s conftest.err
3601 } && test -s conftest$ac_exeext && {
3602 test "$cross_compiling" = yes ||
3603 $as_test_x conftest$ac_exeext
3605 ac_cv_lib_cposix_strerror=yes
3607 $as_echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3610 ac_cv_lib_cposix_strerror=no
3613 rm -rf conftest.dSYM
3614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3615 conftest$ac_exeext conftest.$ac_ext
3616 LIBS=$ac_check_lib_save_LIBS
3618 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3619 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3620 if test $ac_cv_lib_cposix_strerror = yes; then
3621 LIBS="$LIBS -lcposix"
3627 ac_cpp='$CPP $CPPFLAGS'
3628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631 if test -n "$ac_tool_prefix"; then
3632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3633 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3634 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if test "${ac_cv_prog_CC+set}" = set; then
3637 $as_echo_n "(cached) " >&6
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3650 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 if test -n "$CC"; then
3661 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3664 { $as_echo "$as_me:$LINENO: result: no" >&5
3665 $as_echo "no" >&6; }
3670 if test -z "$ac_cv_prog_CC"; then
3672 # Extract the first word of "gcc", so it can be a program name with args.
3673 set dummy gcc; ac_word=$2
3674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3675 $as_echo_n "checking for $ac_word... " >&6; }
3676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3677 $as_echo_n "(cached) " >&6
3679 if test -n "$ac_ct_CC"; then
3680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3689 ac_cv_prog_ac_ct_CC="gcc"
3690 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3700 if test -n "$ac_ct_CC"; then
3701 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3702 $as_echo "$ac_ct_CC" >&6; }
3704 { $as_echo "$as_me:$LINENO: result: no" >&5
3705 $as_echo "no" >&6; }
3708 if test "x$ac_ct_CC" = x; then
3711 case $cross_compiling:$ac_tool_warned in
3713 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3714 whose name does not start with the host triplet. If you think this
3715 configuration is useful to you, please write to autoconf@gnu.org." >&5
3716 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3717 whose name does not start with the host triplet. If you think this
3718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3719 ac_tool_warned=yes ;;
3727 if test -z "$CC"; then
3728 if test -n "$ac_tool_prefix"; then
3729 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3730 set dummy ${ac_tool_prefix}cc; ac_word=$2
3731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if test "${ac_cv_prog_CC+set}" = set; then
3734 $as_echo_n "(cached) " >&6
3736 if test -n "$CC"; then
3737 ac_cv_prog_CC="$CC" # Let the user override the test.
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 ac_cv_prog_CC="${ac_tool_prefix}cc"
3747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 if test -n "$CC"; then
3758 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3759 $as_echo "$CC" >&6; }
3761 { $as_echo "$as_me:$LINENO: result: no" >&5
3762 $as_echo "no" >&6; }
3768 if test -z "$CC"; then
3769 # Extract the first word of "cc", so it can be a program name with args.
3770 set dummy cc; ac_word=$2
3771 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 $as_echo_n "checking for $ac_word... " >&6; }
3773 if test "${ac_cv_prog_CC+set}" = set; then
3774 $as_echo_n "(cached) " >&6
3776 if test -n "$CC"; then
3777 ac_cv_prog_CC="$CC" # Let the user override the test.
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3788 ac_prog_rejected=yes
3792 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 if test $ac_prog_rejected = yes; then
3800 # We found a bogon in the path, so make sure we never use it.
3801 set dummy $ac_cv_prog_CC
3803 if test $# != 0; then
3804 # We chose a different compiler from the bogus one.
3805 # However, it has the same basename, so the bogon will be chosen
3806 # first if we set CC to just the basename; use the full file name.
3808 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3814 if test -n "$CC"; then
3815 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3816 $as_echo "$CC" >&6; }
3818 { $as_echo "$as_me:$LINENO: result: no" >&5
3819 $as_echo "no" >&6; }
3824 if test -z "$CC"; then
3825 if test -n "$ac_tool_prefix"; then
3826 for ac_prog in cl.exe
3828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3830 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3831 $as_echo_n "checking for $ac_word... " >&6; }
3832 if test "${ac_cv_prog_CC+set}" = set; then
3833 $as_echo_n "(cached) " >&6
3835 if test -n "$CC"; then
3836 ac_cv_prog_CC="$CC" # Let the user override the test.
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3845 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3846 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 if test -n "$CC"; then
3857 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3858 $as_echo "$CC" >&6; }
3860 { $as_echo "$as_me:$LINENO: result: no" >&5
3861 $as_echo "no" >&6; }
3865 test -n "$CC" && break
3868 if test -z "$CC"; then
3870 for ac_prog in cl.exe
3872 # Extract the first word of "$ac_prog", so it can be a program name with args.
3873 set dummy $ac_prog; ac_word=$2
3874 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3877 $as_echo_n "(cached) " >&6
3879 if test -n "$ac_ct_CC"; then
3880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3889 ac_cv_prog_ac_ct_CC="$ac_prog"
3890 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3900 if test -n "$ac_ct_CC"; then
3901 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3902 $as_echo "$ac_ct_CC" >&6; }
3904 { $as_echo "$as_me:$LINENO: result: no" >&5
3905 $as_echo "no" >&6; }
3909 test -n "$ac_ct_CC" && break
3912 if test "x$ac_ct_CC" = x; then
3915 case $cross_compiling:$ac_tool_warned in
3917 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3918 whose name does not start with the host triplet. If you think this
3919 configuration is useful to you, please write to autoconf@gnu.org." >&5
3920 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3921 whose name does not start with the host triplet. If you think this
3922 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3923 ac_tool_warned=yes ;;
3932 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3933 See \`config.log' for more details." >&5
3934 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3935 See \`config.log' for more details." >&2;}
3936 { (exit 1); exit 1; }; }
3938 # Provide some information about the compiler.
3939 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3942 { (ac_try="$ac_compiler --version >&5"
3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3948 $as_echo "$ac_try_echo") >&5
3949 (eval "$ac_compiler --version >&5") 2>&5
3951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }
3953 { (ac_try="$ac_compiler -v >&5"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3959 $as_echo "$ac_try_echo") >&5
3960 (eval "$ac_compiler -v >&5") 2>&5
3962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }
3964 { (ac_try="$ac_compiler -V >&5"
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3970 $as_echo "$ac_try_echo") >&5
3971 (eval "$ac_compiler -V >&5") 2>&5
3973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }
3976 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3977 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3978 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3979 $as_echo_n "(cached) " >&6
3981 cat >conftest.$ac_ext <<_ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3999 rm -f conftest.$ac_objext
4000 if { (ac_try="$ac_compile"
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4006 $as_echo "$ac_try_echo") >&5
4007 (eval "$ac_compile") 2>conftest.er1
4009 grep -v '^ *+' conftest.er1 >conftest.err
4011 cat conftest.err >&5
4012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } && {
4014 test -z "$ac_c_werror_flag" ||
4015 test ! -s conftest.err
4016 } && test -s conftest.$ac_objext; then
4019 $as_echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4029 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4030 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4031 if test $ac_compiler_gnu = yes; then
4036 ac_test_CFLAGS=${CFLAGS+set}
4037 ac_save_CFLAGS=$CFLAGS
4038 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4039 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4040 if test "${ac_cv_prog_cc_g+set}" = set; then
4041 $as_echo_n "(cached) " >&6
4043 ac_save_c_werror_flag=$ac_c_werror_flag
4044 ac_c_werror_flag=yes
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4062 rm -f conftest.$ac_objext
4063 if { (ac_try="$ac_compile"
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4069 $as_echo "$ac_try_echo") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } && {
4077 test -z "$ac_c_werror_flag" ||
4078 test ! -s conftest.err
4079 } && test -s conftest.$ac_objext; then
4082 $as_echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
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
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4141 rm -f conftest.$ac_objext
4142 if { (ac_try="$ac_compile"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4148 $as_echo "$ac_try_echo") >&5
4149 (eval "$ac_compile") 2>conftest.er1
4151 grep -v '^ *+' conftest.er1 >conftest.err
4153 cat conftest.err >&5
4154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } && {
4156 test -z "$ac_c_werror_flag" ||
4157 test ! -s conftest.err
4158 } && test -s conftest.$ac_objext; then
4161 $as_echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 ac_c_werror_flag=$ac_save_c_werror_flag
4176 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4177 $as_echo "$ac_cv_prog_cc_g" >&6; }
4178 if test "$ac_test_CFLAGS" = set; then
4179 CFLAGS=$ac_save_CFLAGS
4180 elif test $ac_cv_prog_cc_g = yes; then
4181 if test "$GCC" = yes; then
4187 if test "$GCC" = yes; then
4193 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4194 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4195 if test "${ac_cv_prog_cc_c89+set}" = set; then
4196 $as_echo_n "(cached) " >&6
4198 ac_cv_prog_cc_c89=no
4200 cat >conftest.$ac_ext <<_ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4208 #include <sys/types.h>
4209 #include <sys/stat.h>
4210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4211 struct buf { int x; };
4212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4213 static char *e (p, i)
4219 static char *f (char * (*g) (char **, int), char **p, ...)
4224 s = g (p, va_arg (v,int));
4229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4230 function prototypes and stuff, but not '\xHH' hex character constants.
4231 These don't provoke an error unfortunately, instead are silently treated
4232 as 'x'. The following induces an error, until -std is added to get
4233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4234 array size at least. It's necessary to write '\x00'==0 to get something
4235 that's true only with -std. */
4236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4239 inside strings and character constants. */
4241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4243 int test (int i, double x);
4244 struct s1 {int (*f) (int a);};
4245 struct s2 {int (*f) (double a);};
4246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4258 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4260 CC="$ac_save_CC $ac_arg"
4261 rm -f conftest.$ac_objext
4262 if { (ac_try="$ac_compile"
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4268 $as_echo "$ac_try_echo") >&5
4269 (eval "$ac_compile") 2>conftest.er1
4271 grep -v '^ *+' conftest.er1 >conftest.err
4273 cat conftest.err >&5
4274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } && {
4276 test -z "$ac_c_werror_flag" ||
4277 test ! -s conftest.err
4278 } && test -s conftest.$ac_objext; then
4279 ac_cv_prog_cc_c89=$ac_arg
4281 $as_echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4287 rm -f core conftest.err conftest.$ac_objext
4288 test "x$ac_cv_prog_cc_c89" != "xno" && break
4290 rm -f conftest.$ac_ext
4295 case "x$ac_cv_prog_cc_c89" in
4297 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4298 $as_echo "none needed" >&6; } ;;
4300 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4301 $as_echo "unsupported" >&6; } ;;
4303 CC="$CC $ac_cv_prog_cc_c89"
4304 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4305 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4310 ac_cpp='$CPP $CPPFLAGS'
4311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4315 depcc="$CC" am_compiler_list=
4317 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4318 $as_echo_n "checking dependency style of $depcc... " >&6; }
4319 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4320 $as_echo_n "(cached) " >&6
4322 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4323 # We make a subdir and do the tests there. Otherwise we can end up
4324 # making bogus files that we don't know about and never remove. For
4325 # instance it was reported that on HP-UX the gcc test will end up
4326 # making a dummy file named `D' -- because `-MD' means `put the output
4329 # Copy depcomp to subdir because otherwise we won't find it if we're
4330 # using a relative directory.
4331 cp "$am_depcomp" conftest.dir
4333 # We will build objects and dependencies in a subdirectory because
4334 # it helps to detect inapplicable dependency modes. For instance
4335 # both Tru64's cc and ICC support -MD to output dependencies as a
4336 # side effect of compilation, but ICC will put the dependencies in
4337 # the current directory while Tru64 will put them in the object
4341 am_cv_CC_dependencies_compiler_type=none
4342 if test "$am_compiler_list" = ""; then
4343 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4345 for depmode in $am_compiler_list; do
4346 # Setup a source with many dependencies, because some compilers
4347 # like to wrap large dependency lists on column 80 (with \), and
4348 # we should not choose a depcomp mode which is confused by this.
4350 # We need to recreate these files for each test, as the compiler may
4351 # overwrite some of them when testing with obscure command lines.
4352 # This happens at least with the AIX C compiler.
4354 for i in 1 2 3 4 5 6; do
4355 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4356 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4357 # Solaris 8's {/usr,}/bin/sh.
4358 touch sub/conftst$i.h
4360 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4364 # after this tag, mechanisms are not by side-effect, so they'll
4365 # only be used when explicitly requested
4366 if test "x$enable_dependency_tracking" = xyes; then
4374 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4375 # mode. It turns out that the SunPro C++ compiler does not properly
4376 # handle `-M -o', and we need to detect this.
4377 if depmode=$depmode \
4378 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4379 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4380 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4381 >/dev/null 2>conftest.err &&
4382 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4383 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4384 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4385 # icc doesn't choke on unknown options, it will just issue warnings
4386 # or remarks (even with -Werror). So we grep stderr for any message
4387 # that says an option was ignored or not supported.
4388 # When given -MP, icc 7.0 and 7.1 complain thusly:
4389 # icc: Command line warning: ignoring option '-M'; no argument required
4390 # The diagnosis changed in icc 8.0:
4391 # icc: Command line remark: option '-MP' not supported
4392 if (grep 'ignoring option' conftest.err ||
4393 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4394 am_cv_CC_dependencies_compiler_type=$depmode
4403 am_cv_CC_dependencies_compiler_type=none
4407 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4408 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4409 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4414 test "x$enable_dependency_tracking" != xno \
4415 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4417 am__fastdepCC_FALSE='#'
4419 am__fastdepCC_TRUE='#'
4420 am__fastdepCC_FALSE=
4425 ac_cpp='$CPP $CPPFLAGS'
4426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429 if test -n "$ac_tool_prefix"; then
4430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4431 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if test "${ac_cv_prog_CC+set}" = set; then
4435 $as_echo_n "(cached) " >&6
4437 if test -n "$CC"; then
4438 ac_cv_prog_CC="$CC" # Let the user override the test.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 if test -n "$CC"; then
4459 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4460 $as_echo "$CC" >&6; }
4462 { $as_echo "$as_me:$LINENO: result: no" >&5
4463 $as_echo "no" >&6; }
4468 if test -z "$ac_cv_prog_CC"; then
4470 # Extract the first word of "gcc", so it can be a program name with args.
4471 set dummy gcc; ac_word=$2
4472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4475 $as_echo_n "(cached) " >&6
4477 if test -n "$ac_ct_CC"; then
4478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_prog_ac_ct_CC="gcc"
4488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4498 if test -n "$ac_ct_CC"; then
4499 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4500 $as_echo "$ac_ct_CC" >&6; }
4502 { $as_echo "$as_me:$LINENO: result: no" >&5
4503 $as_echo "no" >&6; }
4506 if test "x$ac_ct_CC" = x; then
4509 case $cross_compiling:$ac_tool_warned in
4511 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4512 whose name does not start with the host triplet. If you think this
4513 configuration is useful to you, please write to autoconf@gnu.org." >&5
4514 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4515 whose name does not start with the host triplet. If you think this
4516 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4517 ac_tool_warned=yes ;;
4525 if test -z "$CC"; then
4526 if test -n "$ac_tool_prefix"; then
4527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4528 set dummy ${ac_tool_prefix}cc; ac_word=$2
4529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if test "${ac_cv_prog_CC+set}" = set; then
4532 $as_echo_n "(cached) " >&6
4534 if test -n "$CC"; then
4535 ac_cv_prog_CC="$CC" # Let the user override the test.
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_prog_CC="${ac_tool_prefix}cc"
4545 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 if test -n "$CC"; then
4556 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4557 $as_echo "$CC" >&6; }
4559 { $as_echo "$as_me:$LINENO: result: no" >&5
4560 $as_echo "no" >&6; }
4566 if test -z "$CC"; then
4567 # Extract the first word of "cc", so it can be a program name with args.
4568 set dummy cc; ac_word=$2
4569 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_CC+set}" = set; then
4572 $as_echo_n "(cached) " >&6
4574 if test -n "$CC"; then
4575 ac_cv_prog_CC="$CC" # Let the user override the test.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4586 ac_prog_rejected=yes
4590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 if test $ac_prog_rejected = yes; then
4598 # We found a bogon in the path, so make sure we never use it.
4599 set dummy $ac_cv_prog_CC
4601 if test $# != 0; then
4602 # We chose a different compiler from the bogus one.
4603 # However, it has the same basename, so the bogon will be chosen
4604 # first if we set CC to just the basename; use the full file name.
4606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4612 if test -n "$CC"; then
4613 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4614 $as_echo "$CC" >&6; }
4616 { $as_echo "$as_me:$LINENO: result: no" >&5
4617 $as_echo "no" >&6; }
4622 if test -z "$CC"; then
4623 if test -n "$ac_tool_prefix"; then
4624 for ac_prog in cl.exe
4626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 $as_echo_n "checking for $ac_word... " >&6; }
4630 if test "${ac_cv_prog_CC+set}" = set; then
4631 $as_echo_n "(cached) " >&6
4633 if test -n "$CC"; then
4634 ac_cv_prog_CC="$CC" # Let the user override the test.
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4643 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 if test -n "$CC"; then
4655 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4656 $as_echo "$CC" >&6; }
4658 { $as_echo "$as_me:$LINENO: result: no" >&5
4659 $as_echo "no" >&6; }
4663 test -n "$CC" && break
4666 if test -z "$CC"; then
4668 for ac_prog in cl.exe
4670 # Extract the first word of "$ac_prog", so it can be a program name with args.
4671 set dummy $ac_prog; ac_word=$2
4672 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4675 $as_echo_n "(cached) " >&6
4677 if test -n "$ac_ct_CC"; then
4678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_ac_ct_CC="$ac_prog"
4688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4698 if test -n "$ac_ct_CC"; then
4699 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4700 $as_echo "$ac_ct_CC" >&6; }
4702 { $as_echo "$as_me:$LINENO: result: no" >&5
4703 $as_echo "no" >&6; }
4707 test -n "$ac_ct_CC" && break
4710 if test "x$ac_ct_CC" = x; then
4713 case $cross_compiling:$ac_tool_warned in
4715 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4716 whose name does not start with the host triplet. If you think this
4717 configuration is useful to you, please write to autoconf@gnu.org." >&5
4718 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4719 whose name does not start with the host triplet. If you think this
4720 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4721 ac_tool_warned=yes ;;
4730 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4731 See \`config.log' for more details." >&5
4732 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4733 See \`config.log' for more details." >&2;}
4734 { (exit 1); exit 1; }; }
4736 # Provide some information about the compiler.
4737 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4740 { (ac_try="$ac_compiler --version >&5"
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4746 $as_echo "$ac_try_echo") >&5
4747 (eval "$ac_compiler --version >&5") 2>&5
4749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }
4751 { (ac_try="$ac_compiler -v >&5"
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4757 $as_echo "$ac_try_echo") >&5
4758 (eval "$ac_compiler -v >&5") 2>&5
4760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }
4762 { (ac_try="$ac_compiler -V >&5"
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4768 $as_echo "$ac_try_echo") >&5
4769 (eval "$ac_compiler -V >&5") 2>&5
4771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }
4774 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4776 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4777 $as_echo_n "(cached) " >&6
4779 cat >conftest.$ac_ext <<_ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4797 rm -f conftest.$ac_objext
4798 if { (ac_try="$ac_compile"
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4804 $as_echo "$ac_try_echo") >&5
4805 (eval "$ac_compile") 2>conftest.er1
4807 grep -v '^ *+' conftest.er1 >conftest.err
4809 cat conftest.err >&5
4810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } && {
4812 test -z "$ac_c_werror_flag" ||
4813 test ! -s conftest.err
4814 } && test -s conftest.$ac_objext; then
4817 $as_echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4827 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4829 if test $ac_compiler_gnu = yes; then
4834 ac_test_CFLAGS=${CFLAGS+set}
4835 ac_save_CFLAGS=$CFLAGS
4836 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4838 if test "${ac_cv_prog_cc_g+set}" = set; then
4839 $as_echo_n "(cached) " >&6
4841 ac_save_c_werror_flag=$ac_c_werror_flag
4842 ac_c_werror_flag=yes
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867 $as_echo "$ac_try_echo") >&5
4868 (eval "$ac_compile") 2>conftest.er1
4870 grep -v '^ *+' conftest.er1 >conftest.err
4872 cat conftest.err >&5
4873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } && {
4875 test -z "$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 } && test -s conftest.$ac_objext; then
4880 $as_echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4884 cat >conftest.$ac_ext <<_ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4899 rm -f conftest.$ac_objext
4900 if { (ac_try="$ac_compile"
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4906 $as_echo "$ac_try_echo") >&5
4907 (eval "$ac_compile") 2>conftest.er1
4909 grep -v '^ *+' conftest.er1 >conftest.err
4911 cat conftest.err >&5
4912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } && {
4914 test -z "$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 } && test -s conftest.$ac_objext; then
4919 $as_echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 ac_c_werror_flag=$ac_save_c_werror_flag
4924 cat >conftest.$ac_ext <<_ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4939 rm -f conftest.$ac_objext
4940 if { (ac_try="$ac_compile"
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4946 $as_echo "$ac_try_echo") >&5
4947 (eval "$ac_compile") 2>conftest.er1
4949 grep -v '^ *+' conftest.er1 >conftest.err
4951 cat conftest.err >&5
4952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } && {
4954 test -z "$ac_c_werror_flag" ||
4955 test ! -s conftest.err
4956 } && test -s conftest.$ac_objext; then
4959 $as_echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 ac_c_werror_flag=$ac_save_c_werror_flag
4974 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4975 $as_echo "$ac_cv_prog_cc_g" >&6; }
4976 if test "$ac_test_CFLAGS" = set; then
4977 CFLAGS=$ac_save_CFLAGS
4978 elif test $ac_cv_prog_cc_g = yes; then
4979 if test "$GCC" = yes; then
4985 if test "$GCC" = yes; then
4991 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4992 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4993 if test "${ac_cv_prog_cc_c89+set}" = set; then
4994 $as_echo_n "(cached) " >&6
4996 ac_cv_prog_cc_c89=no
4998 cat >conftest.$ac_ext <<_ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5006 #include <sys/types.h>
5007 #include <sys/stat.h>
5008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5009 struct buf { int x; };
5010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5011 static char *e (p, i)
5017 static char *f (char * (*g) (char **, int), char **p, ...)
5022 s = g (p, va_arg (v,int));
5027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5028 function prototypes and stuff, but not '\xHH' hex character constants.
5029 These don't provoke an error unfortunately, instead are silently treated
5030 as 'x'. The following induces an error, until -std is added to get
5031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5032 array size at least. It's necessary to write '\x00'==0 to get something
5033 that's true only with -std. */
5034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5036 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5037 inside strings and character constants. */
5039 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5041 int test (int i, double x);
5042 struct s1 {int (*f) (int a);};
5043 struct s2 {int (*f) (double a);};
5044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5050 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5055 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5058 CC="$ac_save_CC $ac_arg"
5059 rm -f conftest.$ac_objext
5060 if { (ac_try="$ac_compile"
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5066 $as_echo "$ac_try_echo") >&5
5067 (eval "$ac_compile") 2>conftest.er1
5069 grep -v '^ *+' conftest.er1 >conftest.err
5071 cat conftest.err >&5
5072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } && {
5074 test -z "$ac_c_werror_flag" ||
5075 test ! -s conftest.err
5076 } && test -s conftest.$ac_objext; then
5077 ac_cv_prog_cc_c89=$ac_arg
5079 $as_echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5085 rm -f core conftest.err conftest.$ac_objext
5086 test "x$ac_cv_prog_cc_c89" != "xno" && break
5088 rm -f conftest.$ac_ext
5093 case "x$ac_cv_prog_cc_c89" in
5095 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5096 $as_echo "none needed" >&6; } ;;
5098 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5099 $as_echo "unsupported" >&6; } ;;
5101 CC="$CC $ac_cv_prog_cc_c89"
5102 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5103 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5108 ac_cpp='$CPP $CPPFLAGS'
5109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5113 depcc="$CC" am_compiler_list=
5115 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5116 $as_echo_n "checking dependency style of $depcc... " >&6; }
5117 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5118 $as_echo_n "(cached) " >&6
5120 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5121 # We make a subdir and do the tests there. Otherwise we can end up
5122 # making bogus files that we don't know about and never remove. For
5123 # instance it was reported that on HP-UX the gcc test will end up
5124 # making a dummy file named `D' -- because `-MD' means `put the output
5127 # Copy depcomp to subdir because otherwise we won't find it if we're
5128 # using a relative directory.
5129 cp "$am_depcomp" conftest.dir
5131 # We will build objects and dependencies in a subdirectory because
5132 # it helps to detect inapplicable dependency modes. For instance
5133 # both Tru64's cc and ICC support -MD to output dependencies as a
5134 # side effect of compilation, but ICC will put the dependencies in
5135 # the current directory while Tru64 will put them in the object
5139 am_cv_CC_dependencies_compiler_type=none
5140 if test "$am_compiler_list" = ""; then
5141 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5143 for depmode in $am_compiler_list; do
5144 # Setup a source with many dependencies, because some compilers
5145 # like to wrap large dependency lists on column 80 (with \), and
5146 # we should not choose a depcomp mode which is confused by this.
5148 # We need to recreate these files for each test, as the compiler may
5149 # overwrite some of them when testing with obscure command lines.
5150 # This happens at least with the AIX C compiler.
5152 for i in 1 2 3 4 5 6; do
5153 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5154 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5155 # Solaris 8's {/usr,}/bin/sh.
5156 touch sub/conftst$i.h
5158 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5162 # after this tag, mechanisms are not by side-effect, so they'll
5163 # only be used when explicitly requested
5164 if test "x$enable_dependency_tracking" = xyes; then
5172 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5173 # mode. It turns out that the SunPro C++ compiler does not properly
5174 # handle `-M -o', and we need to detect this.
5175 if depmode=$depmode \
5176 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5177 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5178 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5179 >/dev/null 2>conftest.err &&
5180 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5181 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5182 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5183 # icc doesn't choke on unknown options, it will just issue warnings
5184 # or remarks (even with -Werror). So we grep stderr for any message
5185 # that says an option was ignored or not supported.
5186 # When given -MP, icc 7.0 and 7.1 complain thusly:
5187 # icc: Command line warning: ignoring option '-M'; no argument required
5188 # The diagnosis changed in icc 8.0:
5189 # icc: Command line remark: option '-MP' not supported
5190 if (grep 'ignoring option' conftest.err ||
5191 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5192 am_cv_CC_dependencies_compiler_type=$depmode
5201 am_cv_CC_dependencies_compiler_type=none
5205 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5206 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5207 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5212 test "x$enable_dependency_tracking" != xno \
5213 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5215 am__fastdepCC_FALSE='#'
5217 am__fastdepCC_TRUE='#'
5218 am__fastdepCC_FALSE=
5223 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5225 # By default we simply use the C compiler to build assembly code.
5227 test "${CCAS+set}" = set || CCAS=$CC
5228 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5233 ac_cpp='$CPP $CPPFLAGS'
5234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5237 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5238 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5239 # On Suns, sometimes $CPP names a directory.
5240 if test -n "$CPP" && test -d "$CPP"; then
5243 if test -z "$CPP"; then
5244 if test "${ac_cv_prog_CPP+set}" = set; then
5245 $as_echo_n "(cached) " >&6
5247 # Double quotes because CPP needs to be expanded
5248 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5251 for ac_c_preproc_warn_flag in '' yes
5253 # Use a header file that comes with gcc, so configuring glibc
5254 # with a fresh cross-compiler works.
5255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5256 # <limits.h> exists even on freestanding compilers.
5257 # On the NeXT, cc -E runs the code through the compiler's parser,
5258 # not just through cpp. "Syntax error" is here to catch this case.
5259 cat >conftest.$ac_ext <<_ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5266 # include <limits.h>
5268 # include <assert.h>
5272 if { (ac_try="$ac_cpp conftest.$ac_ext"
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5278 $as_echo "$ac_try_echo") >&5
5279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5281 grep -v '^ *+' conftest.er1 >conftest.err
5283 cat conftest.err >&5
5284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } >/dev/null && {
5286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5287 test ! -s conftest.err
5291 $as_echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5294 # Broken: fails on valid input.
5298 rm -f conftest.err conftest.$ac_ext
5300 # OK, works on sane cases. Now check whether nonexistent headers
5301 # can be detected and how.
5302 cat >conftest.$ac_ext <<_ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h. */
5308 #include <ac_nonexistent.h>
5310 if { (ac_try="$ac_cpp conftest.$ac_ext"
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5316 $as_echo "$ac_try_echo") >&5
5317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5319 grep -v '^ *+' conftest.er1 >conftest.err
5321 cat conftest.err >&5
5322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } >/dev/null && {
5324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5327 # Broken: success on invalid input.
5330 $as_echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5333 # Passes both tests.
5338 rm -f conftest.err conftest.$ac_ext
5341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5342 rm -f conftest.err conftest.$ac_ext
5343 if $ac_preproc_ok; then
5355 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5356 $as_echo "$CPP" >&6; }
5358 for ac_c_preproc_warn_flag in '' yes
5360 # Use a header file that comes with gcc, so configuring glibc
5361 # with a fresh cross-compiler works.
5362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363 # <limits.h> exists even on freestanding compilers.
5364 # On the NeXT, cc -E runs the code through the compiler's parser,
5365 # not just through cpp. "Syntax error" is here to catch this case.
5366 cat >conftest.$ac_ext <<_ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5373 # include <limits.h>
5375 # include <assert.h>
5379 if { (ac_try="$ac_cpp conftest.$ac_ext"
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5385 $as_echo "$ac_try_echo") >&5
5386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5388 grep -v '^ *+' conftest.er1 >conftest.err
5390 cat conftest.err >&5
5391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } >/dev/null && {
5393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5394 test ! -s conftest.err
5398 $as_echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 # Broken: fails on valid input.
5405 rm -f conftest.err conftest.$ac_ext
5407 # OK, works on sane cases. Now check whether nonexistent headers
5408 # can be detected and how.
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5415 #include <ac_nonexistent.h>
5417 if { (ac_try="$ac_cpp conftest.$ac_ext"
5419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420 *) ac_try_echo=$ac_try;;
5422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5423 $as_echo "$ac_try_echo") >&5
5424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5426 grep -v '^ *+' conftest.er1 >conftest.err
5428 cat conftest.err >&5
5429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } >/dev/null && {
5431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5432 test ! -s conftest.err
5434 # Broken: success on invalid input.
5437 $as_echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5440 # Passes both tests.
5445 rm -f conftest.err conftest.$ac_ext
5448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5449 rm -f conftest.err conftest.$ac_ext
5450 if $ac_preproc_ok; then
5453 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5454 See \`config.log' for more details." >&5
5455 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5456 See \`config.log' for more details." >&2;}
5457 { (exit 1); exit 1; }; }
5461 ac_cpp='$CPP $CPPFLAGS'
5462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5467 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5468 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5469 if test "${ac_cv_path_GREP+set}" = set; then
5470 $as_echo_n "(cached) " >&6
5472 if test -z "$GREP"; then
5473 ac_path_GREP_found=false
5474 # Loop through the user's path and test for each of PROGNAME-LIST
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5479 test -z "$as_dir" && as_dir=.
5480 for ac_prog in grep ggrep; do
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5483 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5484 # Check for GNU ac_path_GREP and select it if it is found.
5485 # Check for GNU $ac_path_GREP
5486 case `"$ac_path_GREP" --version 2>&1` in
5488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5491 $as_echo_n 0123456789 >"conftest.in"
5494 cat "conftest.in" "conftest.in" >"conftest.tmp"
5495 mv "conftest.tmp" "conftest.in"
5496 cp "conftest.in" "conftest.nl"
5497 $as_echo 'GREP' >> "conftest.nl"
5498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5500 ac_count=`expr $ac_count + 1`
5501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5502 # Best one so far, save it but keep looking for a better one
5503 ac_cv_path_GREP="$ac_path_GREP"
5504 ac_path_GREP_max=$ac_count
5506 # 10*(2^10) chars as input seems more than enough
5507 test $ac_count -gt 10 && break
5509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5512 $ac_path_GREP_found && break 3
5517 if test -z "$ac_cv_path_GREP"; then
5518 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5519 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5520 { (exit 1); exit 1; }; }
5523 ac_cv_path_GREP=$GREP
5527 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5528 $as_echo "$ac_cv_path_GREP" >&6; }
5529 GREP="$ac_cv_path_GREP"
5532 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5533 $as_echo_n "checking for egrep... " >&6; }
5534 if test "${ac_cv_path_EGREP+set}" = set; then
5535 $as_echo_n "(cached) " >&6
5537 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5538 then ac_cv_path_EGREP="$GREP -E"
5540 if test -z "$EGREP"; then
5541 ac_path_EGREP_found=false
5542 # Loop through the user's path and test for each of PROGNAME-LIST
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5547 test -z "$as_dir" && as_dir=.
5548 for ac_prog in egrep; do
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5551 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5552 # Check for GNU ac_path_EGREP and select it if it is found.
5553 # Check for GNU $ac_path_EGREP
5554 case `"$ac_path_EGREP" --version 2>&1` in
5556 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5559 $as_echo_n 0123456789 >"conftest.in"
5562 cat "conftest.in" "conftest.in" >"conftest.tmp"
5563 mv "conftest.tmp" "conftest.in"
5564 cp "conftest.in" "conftest.nl"
5565 $as_echo 'EGREP' >> "conftest.nl"
5566 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5567 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5568 ac_count=`expr $ac_count + 1`
5569 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5570 # Best one so far, save it but keep looking for a better one
5571 ac_cv_path_EGREP="$ac_path_EGREP"
5572 ac_path_EGREP_max=$ac_count
5574 # 10*(2^10) chars as input seems more than enough
5575 test $ac_count -gt 10 && break
5577 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5580 $ac_path_EGREP_found && break 3
5585 if test -z "$ac_cv_path_EGREP"; then
5586 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5587 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5588 { (exit 1); exit 1; }; }
5591 ac_cv_path_EGREP=$EGREP
5596 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5597 $as_echo "$ac_cv_path_EGREP" >&6; }
5598 EGREP="$ac_cv_path_EGREP"
5601 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5602 $as_echo_n "checking for ANSI C header files... " >&6; }
5603 if test "${ac_cv_header_stdc+set}" = set; then
5604 $as_echo_n "(cached) " >&6
5606 cat >conftest.$ac_ext <<_ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5625 rm -f conftest.$ac_objext
5626 if { (ac_try="$ac_compile"
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5632 $as_echo "$ac_try_echo") >&5
5633 (eval "$ac_compile") 2>conftest.er1
5635 grep -v '^ *+' conftest.er1 >conftest.err
5637 cat conftest.err >&5
5638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && {
5640 test -z "$ac_c_werror_flag" ||
5641 test ! -s conftest.err
5642 } && test -s conftest.$ac_objext; then
5643 ac_cv_header_stdc=yes
5645 $as_echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5648 ac_cv_header_stdc=no
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 if test $ac_cv_header_stdc = yes; then
5654 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5655 cat >conftest.$ac_ext <<_ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665 $EGREP "memchr" >/dev/null 2>&1; then
5668 ac_cv_header_stdc=no
5674 if test $ac_cv_header_stdc = yes; then
5675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5676 cat >conftest.$ac_ext <<_ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5686 $EGREP "free" >/dev/null 2>&1; then
5689 ac_cv_header_stdc=no
5695 if test $ac_cv_header_stdc = yes; then
5696 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5697 if test "$cross_compiling" = yes; then
5700 cat >conftest.$ac_ext <<_ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5708 #if ((' ' & 0x0FF) == 0x020)
5709 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5710 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5712 # define ISLOWER(c) \
5713 (('a' <= (c) && (c) <= 'i') \
5714 || ('j' <= (c) && (c) <= 'r') \
5715 || ('s' <= (c) && (c) <= 'z'))
5716 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5719 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5724 for (i = 0; i < 256; i++)
5725 if (XOR (islower (i), ISLOWER (i))
5726 || toupper (i) != TOUPPER (i))
5731 rm -f conftest$ac_exeext
5732 if { (ac_try="$ac_link"
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5738 $as_echo "$ac_try_echo") >&5
5739 (eval "$ac_link") 2>&5
5741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5743 { (case "(($ac_try" in
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_try") 2>&5
5751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5755 $as_echo "$as_me: program exited with status $ac_status" >&5
5756 $as_echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5760 ac_cv_header_stdc=no
5762 rm -rf conftest.dSYM
5763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5769 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5770 $as_echo "$ac_cv_header_stdc" >&6; }
5771 if test $ac_cv_header_stdc = yes; then
5773 cat >>confdefs.h <<\_ACEOF
5774 #define STDC_HEADERS 1
5779 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5789 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5790 inttypes.h stdint.h unistd.h
5792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5794 $as_echo_n "checking for $ac_header... " >&6; }
5795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5796 $as_echo_n "(cached) " >&6
5798 cat >conftest.$ac_ext <<_ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5806 #include <$ac_header>
5808 rm -f conftest.$ac_objext
5809 if { (ac_try="$ac_compile"
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5815 $as_echo "$ac_try_echo") >&5
5816 (eval "$ac_compile") 2>conftest.er1
5818 grep -v '^ *+' conftest.er1 >conftest.err
5820 cat conftest.err >&5
5821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } && {
5823 test -z "$ac_c_werror_flag" ||
5824 test ! -s conftest.err
5825 } && test -s conftest.$ac_objext; then
5826 eval "$as_ac_Header=yes"
5828 $as_echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 eval "$as_ac_Header=no"
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 ac_res=`eval 'as_val=${'$as_ac_Header'}
5837 $as_echo "$as_val"'`
5838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5839 $as_echo "$ac_res" >&6; }
5840 if test `eval 'as_val=${'$as_ac_Header'}
5841 $as_echo "$as_val"'` = yes; then
5842 cat >>confdefs.h <<_ACEOF
5843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5851 # The cast to long int works around a bug in the HP C Compiler
5852 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5853 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5854 # This bug is HP SR number 8606223364.
5855 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
5856 $as_echo_n "checking size of void *... " >&6; }
5857 if test "${ac_cv_sizeof_void_p+set}" = set; then
5858 $as_echo_n "(cached) " >&6
5860 if test "$cross_compiling" = yes; then
5861 # Depending upon the size, compute the lo and hi bounds.
5862 cat >conftest.$ac_ext <<_ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868 $ac_includes_default
5872 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
5879 rm -f conftest.$ac_objext
5880 if { (ac_try="$ac_compile"
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5886 $as_echo "$ac_try_echo") >&5
5887 (eval "$ac_compile") 2>conftest.er1
5889 grep -v '^ *+' conftest.er1 >conftest.err
5891 cat conftest.err >&5
5892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && {
5894 test -z "$ac_c_werror_flag" ||
5895 test ! -s conftest.err
5896 } && test -s conftest.$ac_objext; then
5899 cat >conftest.$ac_ext <<_ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5909 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
5916 rm -f conftest.$ac_objext
5917 if { (ac_try="$ac_compile"
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5923 $as_echo "$ac_try_echo") >&5
5924 (eval "$ac_compile") 2>conftest.er1
5926 grep -v '^ *+' conftest.er1 >conftest.err
5928 cat conftest.err >&5
5929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && {
5931 test -z "$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest.$ac_objext; then
5934 ac_hi=$ac_mid; break
5936 $as_echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 ac_lo=`expr $ac_mid + 1`
5940 if test $ac_lo -le $ac_mid; then
5944 ac_mid=`expr 2 '*' $ac_mid + 1`
5947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 $as_echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 cat >conftest.$ac_ext <<_ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 $ac_includes_default
5963 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5977 $as_echo "$ac_try_echo") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5980 grep -v '^ *+' conftest.er1 >conftest.err
5982 cat conftest.err >&5
5983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest.$ac_objext; then
5990 cat >conftest.$ac_ext <<_ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 $ac_includes_default
6000 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6007 rm -f conftest.$ac_objext
6008 if { (ac_try="$ac_compile"
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6014 $as_echo "$ac_try_echo") >&5
6015 (eval "$ac_compile") 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && {
6022 test -z "$ac_c_werror_flag" ||
6023 test ! -s conftest.err
6024 } && test -s conftest.$ac_objext; then
6025 ac_lo=$ac_mid; break
6027 $as_echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6030 ac_hi=`expr '(' $ac_mid ')' - 1`
6031 if test $ac_mid -le $ac_hi; then
6035 ac_mid=`expr 2 '*' $ac_mid`
6038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 $as_echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 # Binary search between lo and hi bounds.
6052 while test "x$ac_lo" != "x$ac_hi"; do
6053 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6054 cat >conftest.$ac_ext <<_ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6060 $ac_includes_default
6064 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6071 rm -f conftest.$ac_objext
6072 if { (ac_try="$ac_compile"
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6078 $as_echo "$ac_try_echo") >&5
6079 (eval "$ac_compile") 2>conftest.er1
6081 grep -v '^ *+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } && {
6086 test -z "$ac_c_werror_flag" ||
6087 test ! -s conftest.err
6088 } && test -s conftest.$ac_objext; then
6091 $as_echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094 ac_lo=`expr '(' $ac_mid ')' + 1`
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6101 '') if test "$ac_cv_type_void_p" = yes; then
6102 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6103 See \`config.log' for more details." >&5
6104 $as_echo "$as_me: error: cannot compute sizeof (void *)
6105 See \`config.log' for more details." >&2;}
6106 { (exit 77); exit 77; }; }
6108 ac_cv_sizeof_void_p=0
6112 cat >conftest.$ac_ext <<_ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 $ac_includes_default
6119 static long int longval () { return (long int) (sizeof (void *)); }
6120 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6127 FILE *f = fopen ("conftest.val", "w");
6130 if (((long int) (sizeof (void *))) < 0)
6132 long int i = longval ();
6133 if (i != ((long int) (sizeof (void *))))
6135 fprintf (f, "%ld", i);
6139 unsigned long int i = ulongval ();
6140 if (i != ((long int) (sizeof (void *))))
6142 fprintf (f, "%lu", i);
6144 /* Do not output a trailing newline, as this causes \r\n confusion
6145 on some platforms. */
6146 return ferror (f) || fclose (f) != 0;
6152 rm -f conftest$ac_exeext
6153 if { (ac_try="$ac_link"
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6159 $as_echo "$ac_try_echo") >&5
6160 (eval "$ac_link") 2>&5
6162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6164 { (case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6169 $as_echo "$ac_try_echo") >&5
6170 (eval "$ac_try") 2>&5
6172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_cv_sizeof_void_p=`cat conftest.val`
6176 $as_echo "$as_me: program exited with status $ac_status" >&5
6177 $as_echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6181 if test "$ac_cv_type_void_p" = yes; then
6182 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6183 See \`config.log' for more details." >&5
6184 $as_echo "$as_me: error: cannot compute sizeof (void *)
6185 See \`config.log' for more details." >&2;}
6186 { (exit 77); exit 77; }; }
6188 ac_cv_sizeof_void_p=0
6191 rm -rf conftest.dSYM
6192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6196 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6197 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6201 cat >>confdefs.h <<_ACEOF
6202 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6206 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6207 $as_echo_n "checking for ANSI C header files... " >&6; }
6208 if test "${ac_cv_header_stdc+set}" = set; then
6209 $as_echo_n "(cached) " >&6
6211 cat >conftest.$ac_ext <<_ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6230 rm -f conftest.$ac_objext
6231 if { (ac_try="$ac_compile"
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6237 $as_echo "$ac_try_echo") >&5
6238 (eval "$ac_compile") 2>conftest.er1
6240 grep -v '^ *+' conftest.er1 >conftest.err
6242 cat conftest.err >&5
6243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } && {
6245 test -z "$ac_c_werror_flag" ||
6246 test ! -s conftest.err
6247 } && test -s conftest.$ac_objext; then
6248 ac_cv_header_stdc=yes
6250 $as_echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 ac_cv_header_stdc=no
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 if test $ac_cv_header_stdc = yes; then
6259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6260 cat >conftest.$ac_ext <<_ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6270 $EGREP "memchr" >/dev/null 2>&1; then
6273 ac_cv_header_stdc=no
6279 if test $ac_cv_header_stdc = yes; then
6280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6281 cat >conftest.$ac_ext <<_ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291 $EGREP "free" >/dev/null 2>&1; then
6294 ac_cv_header_stdc=no
6300 if test $ac_cv_header_stdc = yes; then
6301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6302 if test "$cross_compiling" = yes; then
6305 cat >conftest.$ac_ext <<_ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6313 #if ((' ' & 0x0FF) == 0x020)
6314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6317 # define ISLOWER(c) \
6318 (('a' <= (c) && (c) <= 'i') \
6319 || ('j' <= (c) && (c) <= 'r') \
6320 || ('s' <= (c) && (c) <= 'z'))
6321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6329 for (i = 0; i < 256; i++)
6330 if (XOR (islower (i), ISLOWER (i))
6331 || toupper (i) != TOUPPER (i))
6336 rm -f conftest$ac_exeext
6337 if { (ac_try="$ac_link"
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6343 $as_echo "$ac_try_echo") >&5
6344 (eval "$ac_link") 2>&5
6346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6348 { (case "(($ac_try" in
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6353 $as_echo "$ac_try_echo") >&5
6354 (eval "$ac_try") 2>&5
6356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6360 $as_echo "$as_me: program exited with status $ac_status" >&5
6361 $as_echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6365 ac_cv_header_stdc=no
6367 rm -rf conftest.dSYM
6368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6374 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6375 $as_echo "$ac_cv_header_stdc" >&6; }
6376 if test $ac_cv_header_stdc = yes; then
6378 cat >>confdefs.h <<\_ACEOF
6379 #define STDC_HEADERS 1
6384 # Make sure we can run config.sub.
6385 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6386 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6387 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6388 { (exit 1); exit 1; }; }
6390 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6391 $as_echo_n "checking build system type... " >&6; }
6392 if test "${ac_cv_build+set}" = set; then
6393 $as_echo_n "(cached) " >&6
6395 ac_build_alias=$build_alias
6396 test "x$ac_build_alias" = x &&
6397 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6398 test "x$ac_build_alias" = x &&
6399 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6400 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6401 { (exit 1); exit 1; }; }
6402 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6403 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6404 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6405 { (exit 1); exit 1; }; }
6408 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6409 $as_echo "$ac_cv_build" >&6; }
6410 case $ac_cv_build in
6412 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6413 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6414 { (exit 1); exit 1; }; };;
6417 ac_save_IFS=$IFS; IFS='-'
6423 # Remember, the first character of IFS is used to create $*,
6424 # except with old shells:
6427 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6430 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6431 $as_echo_n "checking host system type... " >&6; }
6432 if test "${ac_cv_host+set}" = set; then
6433 $as_echo_n "(cached) " >&6
6435 if test "x$host_alias" = x; then
6436 ac_cv_host=$ac_cv_build
6438 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6439 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6440 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6441 { (exit 1); exit 1; }; }
6445 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6446 $as_echo "$ac_cv_host" >&6; }
6449 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6450 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6451 { (exit 1); exit 1; }; };;
6454 ac_save_IFS=$IFS; IFS='-'
6460 # Remember, the first character of IFS is used to create $*,
6461 # except with old shells:
6464 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6468 # Extract the first word of "pod2man", so it can be a program name with args.
6469 set dummy pod2man; ac_word=$2
6470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if test "${ac_cv_path_POD2MAN+set}" = set; then
6473 $as_echo_n "(cached) " >&6
6477 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
6488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 POD2MAN=$ac_cv_path_POD2MAN
6499 if test -n "$POD2MAN"; then
6500 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
6501 $as_echo "$POD2MAN" >&6; }
6503 { $as_echo "$as_me:$LINENO: result: no" >&5
6504 $as_echo "no" >&6; }
6508 # Extract the first word of "pod2html", so it can be a program name with args.
6509 set dummy pod2html; ac_word=$2
6510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if test "${ac_cv_path_POD2HTML+set}" = set; then
6513 $as_echo_n "(cached) " >&6
6517 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
6528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 POD2HTML=$ac_cv_path_POD2HTML
6539 if test -n "$POD2HTML"; then
6540 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
6541 $as_echo "$POD2HTML" >&6; }
6543 { $as_echo "$as_me:$LINENO: result: no" >&5
6544 $as_echo "no" >&6; }
6550 # Check whether --enable-trace was given.
6551 if test "${enable_trace+set}" = set; then
6552 enableval=$enable_trace; if test "$enableval" == "yes"; then
6554 cat >>confdefs.h <<\_ACEOF
6555 #define ENABLE_TRACE_IO 1
6561 # Check whether --enable-watch was given.
6562 if test "${enable_watch+set}" = set; then
6563 enableval=$enable_watch; if test "$enableval" == "yes"; then
6565 cat >>confdefs.h <<\_ACEOF
6566 #define ENABLE_WATCH 1
6572 # Check whether --enable-sh4stats was given.
6573 if test "${enable_sh4stats+set}" = set; then
6574 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
6576 cat >>confdefs.h <<\_ACEOF
6577 #define ENABLE_SH4STATS 1
6584 # Check whether --with-osmesa was given.
6585 if test "${with_osmesa+set}" = set; then
6586 withval=$with_osmesa;
6592 # Check whether --with-gtk was given.
6593 if test "${with_gtk+set}" = set; then
6594 withval=$with_gtk; with_gtk=yes
6601 lxdream_save_cppflags="$CPPFLAGS"
6602 CPPFLAGS="$CPPFLAGS -x objective-c"
6603 cat >conftest.$ac_ext <<_ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6618 rm -f conftest.$ac_objext
6619 if { (ac_try="$ac_compile"
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6625 $as_echo "$ac_try_echo") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6628 grep -v '^ *+' conftest.er1 >conftest.err
6630 cat conftest.err >&5
6631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.$ac_objext; then
6638 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6639 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6640 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6641 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6642 $as_echo_n "(cached) " >&6
6644 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6645 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6647 # Is the header compilable?
6648 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
6649 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
6650 cat >conftest.$ac_ext <<_ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 $ac_includes_default
6657 #include <Cocoa/Cocoa.h>
6659 rm -f conftest.$ac_objext
6660 if { (ac_try="$ac_compile"
6662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663 *) ac_try_echo=$ac_try;;
6665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6666 $as_echo "$ac_try_echo") >&5
6667 (eval "$ac_compile") 2>conftest.er1
6669 grep -v '^ *+' conftest.er1 >conftest.err
6671 cat conftest.err >&5
6672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } && {
6674 test -z "$ac_c_werror_flag" ||
6675 test ! -s conftest.err
6676 } && test -s conftest.$ac_objext; then
6677 ac_header_compiler=yes
6679 $as_echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6682 ac_header_compiler=no
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6687 $as_echo "$ac_header_compiler" >&6; }
6689 # Is the header present?
6690 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
6691 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
6692 cat >conftest.$ac_ext <<_ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <Cocoa/Cocoa.h>
6700 if { (ac_try="$ac_cpp conftest.$ac_ext"
6702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703 *) ac_try_echo=$ac_try;;
6705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6706 $as_echo "$ac_try_echo") >&5
6707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6709 grep -v '^ *+' conftest.er1 >conftest.err
6711 cat conftest.err >&5
6712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } >/dev/null && {
6714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6715 test ! -s conftest.err
6717 ac_header_preproc=yes
6719 $as_echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6722 ac_header_preproc=no
6725 rm -f conftest.err conftest.$ac_ext
6726 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6727 $as_echo "$ac_header_preproc" >&6; }
6729 # So? What about this header?
6730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6732 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6733 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6734 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
6735 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
6736 ac_header_preproc=yes
6739 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
6740 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
6741 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
6742 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
6743 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
6744 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
6745 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
6746 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6747 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
6748 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
6749 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
6750 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
6754 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6755 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6756 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6757 $as_echo_n "(cached) " >&6
6759 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
6761 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6762 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6765 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
6769 LIBS="$LIBS -framework AppKit"
6770 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"
6772 cat >>confdefs.h <<\_ACEOF
6773 #define HAVE_COCOA 1
6777 cat >>confdefs.h <<\_ACEOF
6778 #define APPLE_BUILD 1
6781 if test "x$with_gtk" = "xx11"; then
6791 $as_echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6794 CPPFLAGS="$lxdream_save_cppflags"
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
6811 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6812 if test -n "$ac_tool_prefix"; then
6813 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6814 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6815 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6818 $as_echo_n "(cached) " >&6
6822 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6844 if test -n "$PKG_CONFIG"; then
6845 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6846 $as_echo "$PKG_CONFIG" >&6; }
6848 { $as_echo "$as_me:$LINENO: result: no" >&5
6849 $as_echo "no" >&6; }
6854 if test -z "$ac_cv_path_PKG_CONFIG"; then
6855 ac_pt_PKG_CONFIG=$PKG_CONFIG
6856 # Extract the first word of "pkg-config", so it can be a program name with args.
6857 set dummy pkg-config; ac_word=$2
6858 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6861 $as_echo_n "(cached) " >&6
6863 case $ac_pt_PKG_CONFIG in
6865 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6887 if test -n "$ac_pt_PKG_CONFIG"; then
6888 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6889 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6891 { $as_echo "$as_me:$LINENO: result: no" >&5
6892 $as_echo "no" >&6; }
6895 if test "x$ac_pt_PKG_CONFIG" = x; then
6898 case $cross_compiling:$ac_tool_warned in
6900 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6901 whose name does not start with the host triplet. If you think this
6902 configuration is useful to you, please write to autoconf@gnu.org." >&5
6903 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6904 whose name does not start with the host triplet. If you think this
6905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6906 ac_tool_warned=yes ;;
6908 PKG_CONFIG=$ac_pt_PKG_CONFIG
6911 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6915 if test -n "$PKG_CONFIG"; then
6916 _pkg_min_version=0.9.0
6917 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6918 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6919 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6920 { $as_echo "$as_me:$LINENO: result: yes" >&5
6921 $as_echo "yes" >&6; }
6923 { $as_echo "$as_me:$LINENO: result: no" >&5
6924 $as_echo "no" >&6; }
6931 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
6932 $as_echo_n "checking for LIBPNG... " >&6; }
6934 if test -n "$PKG_CONFIG"; then
6935 if test -n "$LIBPNG_CFLAGS"; then
6936 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
6938 if test -n "$PKG_CONFIG" && \
6939 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6940 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; then
6944 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
6952 if test -n "$PKG_CONFIG"; then
6953 if test -n "$LIBPNG_LIBS"; then
6954 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
6956 if test -n "$PKG_CONFIG" && \
6957 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6958 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; then
6962 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
6973 if test $pkg_failed = yes; then
6975 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6976 _pkg_short_errors_supported=yes
6978 _pkg_short_errors_supported=no
6980 if test $_pkg_short_errors_supported = yes; then
6981 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
6983 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
6985 # Put the nasty error message in config.log where it belongs
6986 echo "$LIBPNG_PKG_ERRORS" >&5
6988 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
6992 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6993 installed software in a non-standard prefix.
6995 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6996 and LIBPNG_LIBS to avoid the need to call pkg-config.
6997 See the pkg-config man page for more details.
6999 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
7003 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7004 installed software in a non-standard prefix.
7006 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7007 and LIBPNG_LIBS to avoid the need to call pkg-config.
7008 See the pkg-config man page for more details.
7010 { (exit 1); exit 1; }; }
7011 elif test $pkg_failed = untried; then
7012 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7013 is in your PATH or set the PKG_CONFIG environment variable to the full
7016 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7017 and LIBPNG_LIBS to avoid the need to call pkg-config.
7018 See the pkg-config man page for more details.
7020 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7021 See \`config.log' for more details." >&5
7022 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7023 is in your PATH or set the PKG_CONFIG environment variable to the full
7026 Alternatively, you may set the environment variables LIBPNG_CFLAGS
7027 and LIBPNG_LIBS to avoid the need to call pkg-config.
7028 See the pkg-config man page for more details.
7030 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7031 See \`config.log' for more details." >&2;}
7032 { (exit 1); exit 1; }; }
7034 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
7035 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
7036 { $as_echo "$as_me:$LINENO: result: yes" >&5
7037 $as_echo "yes" >&6; }
7042 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
7043 $as_echo_n "checking for uncompress in -lz... " >&6; }
7044 if test "${ac_cv_lib_z_uncompress+set}" = set; then
7045 $as_echo_n "(cached) " >&6
7047 ac_check_lib_save_LIBS=$LIBS
7049 cat >conftest.$ac_ext <<_ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7056 /* Override any GCC internal prototype to avoid an error.
7057 Use char because int might match the return type of a GCC
7058 builtin and then its argument prototype would still apply. */
7066 return uncompress ();
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (ac_try="$ac_link"
7074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075 *) ac_try_echo=$ac_try;;
7077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7078 $as_echo "$ac_try_echo") >&5
7079 (eval "$ac_link") 2>conftest.er1
7081 grep -v '^ *+' conftest.er1 >conftest.err
7083 cat conftest.err >&5
7084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } && {
7086 test -z "$ac_c_werror_flag" ||
7087 test ! -s conftest.err
7088 } && test -s conftest$ac_exeext && {
7089 test "$cross_compiling" = yes ||
7090 $as_test_x conftest$ac_exeext
7092 ac_cv_lib_z_uncompress=yes
7094 $as_echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7097 ac_cv_lib_z_uncompress=no
7100 rm -rf conftest.dSYM
7101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7102 conftest$ac_exeext conftest.$ac_ext
7103 LIBS=$ac_check_lib_save_LIBS
7105 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
7106 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
7107 if test $ac_cv_lib_z_uncompress = yes; then
7108 cat >>confdefs.h <<_ACEOF
7116 echo "Zlib (libz.so) could not be found, but is required."
7121 if test "x$with_gtk" = "xno"; then
7124 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
7125 $as_echo_n "checking for GLIB... " >&6; }
7127 if test -n "$PKG_CONFIG"; then
7128 if test -n "$GLIB_CFLAGS"; then
7129 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
7131 if test -n "$PKG_CONFIG" && \
7132 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7133 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; then
7137 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
7145 if test -n "$PKG_CONFIG"; then
7146 if test -n "$GLIB_LIBS"; then
7147 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
7149 if test -n "$PKG_CONFIG" && \
7150 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7151 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; then
7155 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
7166 if test $pkg_failed = yes; then
7168 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7169 _pkg_short_errors_supported=yes
7171 _pkg_short_errors_supported=no
7173 if test $_pkg_short_errors_supported = yes; then
7174 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
7176 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
7178 # Put the nasty error message in config.log where it belongs
7179 echo "$GLIB_PKG_ERRORS" >&5
7181 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
7185 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7186 installed software in a non-standard prefix.
7188 Alternatively, you may set the environment variables GLIB_CFLAGS
7189 and GLIB_LIBS to avoid the need to call pkg-config.
7190 See the pkg-config man page for more details.
7192 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
7196 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7197 installed software in a non-standard prefix.
7199 Alternatively, you may set the environment variables GLIB_CFLAGS
7200 and GLIB_LIBS to avoid the need to call pkg-config.
7201 See the pkg-config man page for more details.
7203 { (exit 1); exit 1; }; }
7204 elif test $pkg_failed = untried; then
7205 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7206 is in your PATH or set the PKG_CONFIG environment variable to the full
7209 Alternatively, you may set the environment variables GLIB_CFLAGS
7210 and GLIB_LIBS to avoid the need to call pkg-config.
7211 See the pkg-config man page for more details.
7213 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7214 See \`config.log' for more details." >&5
7215 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7216 is in your PATH or set the PKG_CONFIG environment variable to the full
7219 Alternatively, you may set the environment variables GLIB_CFLAGS
7220 and GLIB_LIBS to avoid the need to call pkg-config.
7221 See the pkg-config man page for more details.
7223 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7224 See \`config.log' for more details." >&2;}
7225 { (exit 1); exit 1; }; }
7227 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
7228 GLIB_LIBS=$pkg_cv_GLIB_LIBS
7229 { $as_echo "$as_me:$LINENO: result: yes" >&5
7230 $as_echo "yes" >&6; }
7236 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
7237 $as_echo_n "checking for GTK... " >&6; }
7239 if test -n "$PKG_CONFIG"; then
7240 if test -n "$GTK_CFLAGS"; then
7241 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7243 if test -n "$PKG_CONFIG" && \
7244 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7245 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; then
7249 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
7257 if test -n "$PKG_CONFIG"; then
7258 if test -n "$GTK_LIBS"; then
7259 pkg_cv_GTK_LIBS="$GTK_LIBS"
7261 if test -n "$PKG_CONFIG" && \
7262 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7263 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; then
7267 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
7278 if test $pkg_failed = yes; then
7280 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7281 _pkg_short_errors_supported=yes
7283 _pkg_short_errors_supported=no
7285 if test $_pkg_short_errors_supported = yes; then
7286 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
7288 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
7290 # Put the nasty error message in config.log where it belongs
7291 echo "$GTK_PKG_ERRORS" >&5
7293 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
7297 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7298 installed software in a non-standard prefix.
7300 Alternatively, you may set the environment variables GTK_CFLAGS
7301 and GTK_LIBS to avoid the need to call pkg-config.
7302 See the pkg-config man page for more details.
7304 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
7308 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7309 installed software in a non-standard prefix.
7311 Alternatively, you may set the environment variables GTK_CFLAGS
7312 and GTK_LIBS to avoid the need to call pkg-config.
7313 See the pkg-config man page for more details.
7315 { (exit 1); exit 1; }; }
7316 elif test $pkg_failed = untried; then
7317 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7318 is in your PATH or set the PKG_CONFIG environment variable to the full
7321 Alternatively, you may set the environment variables GTK_CFLAGS
7322 and GTK_LIBS to avoid the need to call pkg-config.
7323 See the pkg-config man page for more details.
7325 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7326 See \`config.log' for more details." >&5
7327 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7328 is in your PATH or set the PKG_CONFIG environment variable to the full
7331 Alternatively, you may set the environment variables GTK_CFLAGS
7332 and GTK_LIBS to avoid the need to call pkg-config.
7333 See the pkg-config man page for more details.
7335 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7336 See \`config.log' for more details." >&2;}
7337 { (exit 1); exit 1; }; }
7339 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7340 GTK_LIBS=$pkg_cv_GTK_LIBS
7341 { $as_echo "$as_me:$LINENO: result: yes" >&5
7342 $as_echo "yes" >&6; }
7346 cat >>confdefs.h <<\_ACEOF
7353 LIBS="$LIBS $GTK_LIBS"
7354 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
7355 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
7356 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
7357 $as_echo_n "(cached) " >&6
7359 cat >conftest.$ac_ext <<_ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
7366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7367 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
7369 /* System header to define __stub macros and hopefully few prototypes,
7370 which can conflict with char gdk_x11_display_get_xdisplay (); below.
7371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7372 <limits.h> exists even on freestanding compilers. */
7375 # include <limits.h>
7377 # include <assert.h>
7380 #undef gdk_x11_display_get_xdisplay
7382 /* Override any GCC internal prototype to avoid an error.
7383 Use char because int might match the return type of a GCC
7384 builtin and then its argument prototype would still apply. */
7388 char gdk_x11_display_get_xdisplay ();
7389 /* The GNU C library defines this for functions which it implements
7390 to always fail with ENOSYS. Some functions are actually named
7391 something starting with __ and the normal name is an alias. */
7392 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
7399 return gdk_x11_display_get_xdisplay ();
7404 rm -f conftest.$ac_objext conftest$ac_exeext
7405 if { (ac_try="$ac_link"
7407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7411 $as_echo "$ac_try_echo") >&5
7412 (eval "$ac_link") 2>conftest.er1
7414 grep -v '^ *+' conftest.er1 >conftest.err
7416 cat conftest.err >&5
7417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest$ac_exeext && {
7422 test "$cross_compiling" = yes ||
7423 $as_test_x conftest$ac_exeext
7425 ac_cv_func_gdk_x11_display_get_xdisplay=yes
7427 $as_echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7430 ac_cv_func_gdk_x11_display_get_xdisplay=no
7433 rm -rf conftest.dSYM
7434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7435 conftest$ac_exeext conftest.$ac_ext
7437 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
7438 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
7439 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
7443 cat >>confdefs.h <<\_ACEOF
7444 #define HAVE_GTK_X11 1
7449 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
7450 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
7451 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
7452 $as_echo_n "(cached) " >&6
7454 cat >conftest.$ac_ext <<_ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
7461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7462 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
7464 /* System header to define __stub macros and hopefully few prototypes,
7465 which can conflict with char gdk_quartz_window_get_nsview (); below.
7466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7467 <limits.h> exists even on freestanding compilers. */
7470 # include <limits.h>
7472 # include <assert.h>
7475 #undef gdk_quartz_window_get_nsview
7477 /* Override any GCC internal prototype to avoid an error.
7478 Use char because int might match the return type of a GCC
7479 builtin and then its argument prototype would still apply. */
7483 char gdk_quartz_window_get_nsview ();
7484 /* The GNU C library defines this for functions which it implements
7485 to always fail with ENOSYS. Some functions are actually named
7486 something starting with __ and the normal name is an alias. */
7487 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
7494 return gdk_quartz_window_get_nsview ();
7499 rm -f conftest.$ac_objext conftest$ac_exeext
7500 if { (ac_try="$ac_link"
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7506 $as_echo "$ac_try_echo") >&5
7507 (eval "$ac_link") 2>conftest.er1
7509 grep -v '^ *+' conftest.er1 >conftest.err
7511 cat conftest.err >&5
7512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest$ac_exeext && {
7517 test "$cross_compiling" = yes ||
7518 $as_test_x conftest$ac_exeext
7520 ac_cv_func_gdk_quartz_window_get_nsview=yes
7522 $as_echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7525 ac_cv_func_gdk_quartz_window_get_nsview=no
7528 rm -rf conftest.dSYM
7529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7530 conftest$ac_exeext conftest.$ac_ext
7532 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
7533 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
7534 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
7538 cat >>confdefs.h <<\_ACEOF
7539 #define HAVE_GTK_OSX 1
7548 if test "$HAVE_GTK" = 'yes'; then
7557 if test "x$with_osmesa" != xno; then
7561 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
7562 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
7563 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
7564 $as_echo_n "(cached) " >&6
7566 ac_check_lib_save_LIBS=$LIBS
7567 LIBS="-lOSMesa $LIBS"
7568 cat >conftest.$ac_ext <<_ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7575 /* Override any GCC internal prototype to avoid an error.
7576 Use char because int might match the return type of a GCC
7577 builtin and then its argument prototype would still apply. */
7581 char OSMesaCreateContext ();
7585 return OSMesaCreateContext ();
7590 rm -f conftest.$ac_objext conftest$ac_exeext
7591 if { (ac_try="$ac_link"
7593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7594 *) ac_try_echo=$ac_try;;
7596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7597 $as_echo "$ac_try_echo") >&5
7598 (eval "$ac_link") 2>conftest.er1
7600 grep -v '^ *+' conftest.er1 >conftest.err
7602 cat conftest.err >&5
7603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } && {
7605 test -z "$ac_c_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest$ac_exeext && {
7608 test "$cross_compiling" = yes ||
7609 $as_test_x conftest$ac_exeext
7611 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
7613 $as_echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7616 ac_cv_lib_OSMesa_OSMesaCreateContext=no
7619 rm -rf conftest.dSYM
7620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7621 conftest$ac_exeext conftest.$ac_ext
7622 LIBS=$ac_check_lib_save_LIBS
7624 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
7625 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
7626 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
7627 cat >>confdefs.h <<_ACEOF
7628 #define HAVE_LIBOSMESA 1
7631 LIBS="-lOSMesa $LIBS"
7634 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
7635 See \`config.log' for more details." >&5
7636 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
7637 See \`config.log' for more details." >&2;}
7638 { (exit 1); exit 1; }; }
7641 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7642 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7643 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7644 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7645 $as_echo_n "(cached) " >&6
7647 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7648 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7650 # Is the header compilable?
7651 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
7652 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
7653 cat >conftest.$ac_ext <<_ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 $ac_includes_default
7660 #include <GL/osmesa.h>
7662 rm -f conftest.$ac_objext
7663 if { (ac_try="$ac_compile"
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7669 $as_echo "$ac_try_echo") >&5
7670 (eval "$ac_compile") 2>conftest.er1
7672 grep -v '^ *+' conftest.er1 >conftest.err
7674 cat conftest.err >&5
7675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && {
7677 test -z "$ac_c_werror_flag" ||
7678 test ! -s conftest.err
7679 } && test -s conftest.$ac_objext; then
7680 ac_header_compiler=yes
7682 $as_echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7685 ac_header_compiler=no
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7690 $as_echo "$ac_header_compiler" >&6; }
7692 # Is the header present?
7693 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
7694 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
7695 cat >conftest.$ac_ext <<_ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7701 #include <GL/osmesa.h>
7703 if { (ac_try="$ac_cpp conftest.$ac_ext"
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7709 $as_echo "$ac_try_echo") >&5
7710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7712 grep -v '^ *+' conftest.er1 >conftest.err
7714 cat conftest.err >&5
7715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } >/dev/null && {
7717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7718 test ! -s conftest.err
7720 ac_header_preproc=yes
7722 $as_echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7725 ac_header_preproc=no
7728 rm -f conftest.err conftest.$ac_ext
7729 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7730 $as_echo "$ac_header_preproc" >&6; }
7732 # So? What about this header?
7733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7735 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
7736 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7737 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
7738 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
7739 ac_header_preproc=yes
7742 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
7743 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
7744 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
7745 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
7746 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
7747 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
7748 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
7749 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
7750 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
7751 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
7752 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
7753 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
7757 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7758 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7759 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7760 $as_echo_n "(cached) " >&6
7762 ac_cv_header_GL_osmesa_h=$ac_header_preproc
7764 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7765 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7768 if test $ac_cv_header_GL_osmesa_h = yes; then
7771 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
7772 See \`config.log' for more details." >&5
7773 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
7774 See \`config.log' for more details." >&2;}
7775 { (exit 1); exit 1; }; }
7780 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
7782 cat >>confdefs.h <<\_ACEOF
7783 #define HAVE_OSMESA 1
7789 if test "x$APPLE_BUILD" != 'xyes'; then
7791 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
7792 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
7793 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
7794 $as_echo_n "(cached) " >&6
7796 ac_check_lib_save_LIBS=$LIBS
7798 cat >conftest.$ac_ext <<_ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7805 /* Override any GCC internal prototype to avoid an error.
7806 Use char because int might match the return type of a GCC
7807 builtin and then its argument prototype would still apply. */
7815 return glVertex3f ();
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (ac_try="$ac_link"
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7827 $as_echo "$ac_try_echo") >&5
7828 (eval "$ac_link") 2>conftest.er1
7830 grep -v '^ *+' conftest.er1 >conftest.err
7832 cat conftest.err >&5
7833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } && {
7835 test -z "$ac_c_werror_flag" ||
7836 test ! -s conftest.err
7837 } && test -s conftest$ac_exeext && {
7838 test "$cross_compiling" = yes ||
7839 $as_test_x conftest$ac_exeext
7841 ac_cv_lib_GL_glVertex3f=yes
7843 $as_echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7846 ac_cv_lib_GL_glVertex3f=no
7849 rm -rf conftest.dSYM
7850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7851 conftest$ac_exeext conftest.$ac_ext
7852 LIBS=$ac_check_lib_save_LIBS
7854 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
7855 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
7856 if test $ac_cv_lib_GL_glVertex3f = yes; then
7857 cat >>confdefs.h <<_ACEOF
7858 #define HAVE_LIBGL 1
7865 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7866 See \`config.log' for more details." >&5
7867 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7868 See \`config.log' for more details." >&2;}
7869 { (exit 1); exit 1; }; }
7872 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7873 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7874 $as_echo_n "checking for GL/gl.h... " >&6; }
7875 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7876 $as_echo_n "(cached) " >&6
7878 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7879 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
7881 # Is the header compilable?
7882 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
7883 $as_echo_n "checking GL/gl.h usability... " >&6; }
7884 cat >conftest.$ac_ext <<_ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 $ac_includes_default
7893 rm -f conftest.$ac_objext
7894 if { (ac_try="$ac_compile"
7896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7900 $as_echo "$ac_try_echo") >&5
7901 (eval "$ac_compile") 2>conftest.er1
7903 grep -v '^ *+' conftest.er1 >conftest.err
7905 cat conftest.err >&5
7906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } && {
7908 test -z "$ac_c_werror_flag" ||
7909 test ! -s conftest.err
7910 } && test -s conftest.$ac_objext; then
7911 ac_header_compiler=yes
7913 $as_echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7916 ac_header_compiler=no
7919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7921 $as_echo "$ac_header_compiler" >&6; }
7923 # Is the header present?
7924 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
7925 $as_echo_n "checking GL/gl.h presence... " >&6; }
7926 cat >conftest.$ac_ext <<_ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7934 if { (ac_try="$ac_cpp conftest.$ac_ext"
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7940 $as_echo "$ac_try_echo") >&5
7941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7943 grep -v '^ *+' conftest.er1 >conftest.err
7945 cat conftest.err >&5
7946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } >/dev/null && {
7948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7949 test ! -s conftest.err
7951 ac_header_preproc=yes
7953 $as_echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7956 ac_header_preproc=no
7959 rm -f conftest.err conftest.$ac_ext
7960 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7961 $as_echo "$ac_header_preproc" >&6; }
7963 # So? What about this header?
7964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7966 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7967 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7968 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
7969 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
7970 ac_header_preproc=yes
7973 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
7974 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
7975 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
7976 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
7977 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
7978 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
7979 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
7980 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7981 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
7982 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
7983 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
7984 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
7988 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7989 $as_echo_n "checking for GL/gl.h... " >&6; }
7990 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7991 $as_echo_n "(cached) " >&6
7993 ac_cv_header_GL_gl_h=$ac_header_preproc
7995 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7996 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
7999 if test $ac_cv_header_GL_gl_h = yes; then
8003 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
8004 See \`config.log' for more details." >&5
8005 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
8006 See \`config.log' for more details." >&2;}
8007 { (exit 1); exit 1; }; }
8012 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
8013 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
8014 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
8015 $as_echo_n "(cached) " >&6
8017 cat >conftest.$ac_ext <<_ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
8024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8025 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
8027 /* System header to define __stub macros and hopefully few prototypes,
8028 which can conflict with char NSOpenGLGetVersion (); below.
8029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8030 <limits.h> exists even on freestanding compilers. */
8033 # include <limits.h>
8035 # include <assert.h>
8038 #undef NSOpenGLGetVersion
8040 /* Override any GCC internal prototype to avoid an error.
8041 Use char because int might match the return type of a GCC
8042 builtin and then its argument prototype would still apply. */
8046 char NSOpenGLGetVersion ();
8047 /* The GNU C library defines this for functions which it implements
8048 to always fail with ENOSYS. Some functions are actually named
8049 something starting with __ and the normal name is an alias. */
8050 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
8057 return NSOpenGLGetVersion ();
8062 rm -f conftest.$ac_objext conftest$ac_exeext
8063 if { (ac_try="$ac_link"
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069 $as_echo "$ac_try_echo") >&5
8070 (eval "$ac_link") 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest$ac_exeext && {
8080 test "$cross_compiling" = yes ||
8081 $as_test_x conftest$ac_exeext
8083 ac_cv_func_NSOpenGLGetVersion=yes
8085 $as_echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ac_cv_func_NSOpenGLGetVersion=no
8091 rm -rf conftest.dSYM
8092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8093 conftest$ac_exeext conftest.$ac_ext
8095 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
8096 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
8097 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
8100 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
8102 cat >>confdefs.h <<\_ACEOF
8110 if test "x$HAVE_GTK_X11" = "xyes"; then
8111 if test "x$APPLE_BUILD" = "xyes"; then
8112 LIBS="$LIBS -L/usr/X11/lib -lGL"
8114 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
8115 $as_echo_n "checking for glXQueryVersion... " >&6; }
8116 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
8117 $as_echo_n "(cached) " >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
8126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8127 #define glXQueryVersion innocuous_glXQueryVersion
8129 /* System header to define __stub macros and hopefully few prototypes,
8130 which can conflict with char glXQueryVersion (); below.
8131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8132 <limits.h> exists even on freestanding compilers. */
8135 # include <limits.h>
8137 # include <assert.h>
8140 #undef glXQueryVersion
8142 /* Override any GCC internal prototype to avoid an error.
8143 Use char because int might match the return type of a GCC
8144 builtin and then its argument prototype would still apply. */
8148 char glXQueryVersion ();
8149 /* The GNU C library defines this for functions which it implements
8150 to always fail with ENOSYS. Some functions are actually named
8151 something starting with __ and the normal name is an alias. */
8152 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
8159 return glXQueryVersion ();
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8171 $as_echo "$ac_try_echo") >&5
8172 (eval "$ac_link") 2>conftest.er1
8174 grep -v '^ *+' conftest.er1 >conftest.err
8176 cat conftest.err >&5
8177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_c_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest$ac_exeext && {
8182 test "$cross_compiling" = yes ||
8183 $as_test_x conftest$ac_exeext
8185 ac_cv_func_glXQueryVersion=yes
8187 $as_echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8190 ac_cv_func_glXQueryVersion=no
8193 rm -rf conftest.dSYM
8194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8195 conftest$ac_exeext conftest.$ac_ext
8197 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
8198 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
8199 if test $ac_cv_func_glXQueryVersion = yes; then
8202 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
8204 cat >>confdefs.h <<\_ACEOF
8220 if test "x$HAVE_OSMESA" = "xyes"; then
8222 VIDEO_OSMESA_FALSE='#'
8224 VIDEO_OSMESA_TRUE='#'
8230 if test "x$HAVE_GLX" = "xyes"; then
8240 if test "x$HAVE_NSGL" = "xyes"; then
8242 VIDEO_NSGL_FALSE='#'
8249 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
8250 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
8251 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
8252 $as_echo_n "(cached) " >&6
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
8261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8262 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
8264 /* System header to define __stub macros and hopefully few prototypes,
8265 which can conflict with char glGenFramebuffersEXT (); below.
8266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8267 <limits.h> exists even on freestanding compilers. */
8270 # include <limits.h>
8272 # include <assert.h>
8275 #undef glGenFramebuffersEXT
8277 /* Override any GCC internal prototype to avoid an error.
8278 Use char because int might match the return type of a GCC
8279 builtin and then its argument prototype would still apply. */
8283 char glGenFramebuffersEXT ();
8284 /* The GNU C library defines this for functions which it implements
8285 to always fail with ENOSYS. Some functions are actually named
8286 something starting with __ and the normal name is an alias. */
8287 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
8294 return glGenFramebuffersEXT ();
8299 rm -f conftest.$ac_objext conftest$ac_exeext
8300 if { (ac_try="$ac_link"
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8306 $as_echo "$ac_try_echo") >&5
8307 (eval "$ac_link") 2>conftest.er1
8309 grep -v '^ *+' conftest.er1 >conftest.err
8311 cat conftest.err >&5
8312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } && {
8314 test -z "$ac_c_werror_flag" ||
8315 test ! -s conftest.err
8316 } && test -s conftest$ac_exeext && {
8317 test "$cross_compiling" = yes ||
8318 $as_test_x conftest$ac_exeext
8320 ac_cv_func_glGenFramebuffersEXT=yes
8322 $as_echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8325 ac_cv_func_glGenFramebuffersEXT=no
8328 rm -rf conftest.dSYM
8329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8330 conftest$ac_exeext conftest.$ac_ext
8332 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
8333 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
8334 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
8336 cat >>confdefs.h <<\_ACEOF
8337 #define HAVE_OPENGL_FBO 1
8342 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
8343 $as_echo_n "checking for glCreateShader... " >&6; }
8344 if test "${ac_cv_func_glCreateShader+set}" = set; then
8345 $as_echo_n "(cached) " >&6
8347 cat >conftest.$ac_ext <<_ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
8354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8355 #define glCreateShader innocuous_glCreateShader
8357 /* System header to define __stub macros and hopefully few prototypes,
8358 which can conflict with char glCreateShader (); below.
8359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8360 <limits.h> exists even on freestanding compilers. */
8363 # include <limits.h>
8365 # include <assert.h>
8368 #undef glCreateShader
8370 /* Override any GCC internal prototype to avoid an error.
8371 Use char because int might match the return type of a GCC
8372 builtin and then its argument prototype would still apply. */
8376 char glCreateShader ();
8377 /* The GNU C library defines this for functions which it implements
8378 to always fail with ENOSYS. Some functions are actually named
8379 something starting with __ and the normal name is an alias. */
8380 #if defined __stub_glCreateShader || defined __stub___glCreateShader
8387 return glCreateShader ();
8392 rm -f conftest.$ac_objext conftest$ac_exeext
8393 if { (ac_try="$ac_link"
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8399 $as_echo "$ac_try_echo") >&5
8400 (eval "$ac_link") 2>conftest.er1
8402 grep -v '^ *+' conftest.er1 >conftest.err
8404 cat conftest.err >&5
8405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } && {
8407 test -z "$ac_c_werror_flag" ||
8408 test ! -s conftest.err
8409 } && test -s conftest$ac_exeext && {
8410 test "$cross_compiling" = yes ||
8411 $as_test_x conftest$ac_exeext
8413 ac_cv_func_glCreateShader=yes
8415 $as_echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8418 ac_cv_func_glCreateShader=no
8421 rm -rf conftest.dSYM
8422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8423 conftest$ac_exeext conftest.$ac_ext
8425 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
8426 $as_echo "$ac_cv_func_glCreateShader" >&6; }
8427 if test $ac_cv_func_glCreateShader = yes; then
8429 cat >>confdefs.h <<\_ACEOF
8430 #define HAVE_OPENGL_SHADER 1
8435 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
8436 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
8437 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
8438 $as_echo_n "(cached) " >&6
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
8447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8448 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
8450 /* System header to define __stub macros and hopefully few prototypes,
8451 which can conflict with char glCreateShaderObjectARB (); below.
8452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8453 <limits.h> exists even on freestanding compilers. */
8456 # include <limits.h>
8458 # include <assert.h>
8461 #undef glCreateShaderObjectARB
8463 /* Override any GCC internal prototype to avoid an error.
8464 Use char because int might match the return type of a GCC
8465 builtin and then its argument prototype would still apply. */
8469 char glCreateShaderObjectARB ();
8470 /* The GNU C library defines this for functions which it implements
8471 to always fail with ENOSYS. Some functions are actually named
8472 something starting with __ and the normal name is an alias. */
8473 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
8480 return glCreateShaderObjectARB ();
8485 rm -f conftest.$ac_objext conftest$ac_exeext
8486 if { (ac_try="$ac_link"
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8492 $as_echo "$ac_try_echo") >&5
8493 (eval "$ac_link") 2>conftest.er1
8495 grep -v '^ *+' conftest.er1 >conftest.err
8497 cat conftest.err >&5
8498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && {
8500 test -z "$ac_c_werror_flag" ||
8501 test ! -s conftest.err
8502 } && test -s conftest$ac_exeext && {
8503 test "$cross_compiling" = yes ||
8504 $as_test_x conftest$ac_exeext
8506 ac_cv_func_glCreateShaderObjectARB=yes
8508 $as_echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 ac_cv_func_glCreateShaderObjectARB=no
8514 rm -rf conftest.dSYM
8515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8516 conftest$ac_exeext conftest.$ac_ext
8518 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
8519 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
8520 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
8522 cat >>confdefs.h <<\_ACEOF
8523 #define HAVE_OPENGL_SHADER_ARB 1
8528 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
8529 $as_echo_n "checking for glClampColorARB... " >&6; }
8530 if test "${ac_cv_func_glClampColorARB+set}" = set; then
8531 $as_echo_n "(cached) " >&6
8533 cat >conftest.$ac_ext <<_ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
8540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8541 #define glClampColorARB innocuous_glClampColorARB
8543 /* System header to define __stub macros and hopefully few prototypes,
8544 which can conflict with char glClampColorARB (); below.
8545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8546 <limits.h> exists even on freestanding compilers. */
8549 # include <limits.h>
8551 # include <assert.h>
8554 #undef glClampColorARB
8556 /* Override any GCC internal prototype to avoid an error.
8557 Use char because int might match the return type of a GCC
8558 builtin and then its argument prototype would still apply. */
8562 char glClampColorARB ();
8563 /* The GNU C library defines this for functions which it implements
8564 to always fail with ENOSYS. Some functions are actually named
8565 something starting with __ and the normal name is an alias. */
8566 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
8573 return glClampColorARB ();
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (ac_try="$ac_link"
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8585 $as_echo "$ac_try_echo") >&5
8586 (eval "$ac_link") 2>conftest.er1
8588 grep -v '^ *+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } && {
8593 test -z "$ac_c_werror_flag" ||
8594 test ! -s conftest.err
8595 } && test -s conftest$ac_exeext && {
8596 test "$cross_compiling" = yes ||
8597 $as_test_x conftest$ac_exeext
8599 ac_cv_func_glClampColorARB=yes
8601 $as_echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 ac_cv_func_glClampColorARB=no
8607 rm -rf conftest.dSYM
8608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8609 conftest$ac_exeext conftest.$ac_ext
8611 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
8612 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
8613 if test $ac_cv_func_glClampColorARB = yes; then
8615 cat >>confdefs.h <<\_ACEOF
8616 #define HAVE_OPENGL_CLAMP_COLOR 1
8624 i386|i486|i586|i686|x86_64)
8625 SH4_TRANSLATOR="x86"
8627 cat >>confdefs.h <<_ACEOF
8628 #define SH4_TRANSLATOR TARGET_X86
8634 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
8636 BUILD_SH4X86_FALSE='#'
8638 BUILD_SH4X86_TRUE='#'
8644 if test "$SH4_TRANSLATOR" = "x86_64"; then
8646 BUILD_X86_64_FALSE='#'
8648 BUILD_X86_64_TRUE='#'
8653 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8654 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
8655 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
8656 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8657 $as_echo_n "(cached) " >&6
8659 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
8660 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
8662 # Is the header compilable?
8663 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
8664 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
8665 cat >conftest.$ac_ext <<_ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8671 $ac_includes_default
8672 #include <CoreAudio/CoreAudio.h>
8674 rm -f conftest.$ac_objext
8675 if { (ac_try="$ac_compile"
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8681 $as_echo "$ac_try_echo") >&5
8682 (eval "$ac_compile") 2>conftest.er1
8684 grep -v '^ *+' conftest.er1 >conftest.err
8686 cat conftest.err >&5
8687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } && {
8689 test -z "$ac_c_werror_flag" ||
8690 test ! -s conftest.err
8691 } && test -s conftest.$ac_objext; then
8692 ac_header_compiler=yes
8694 $as_echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 ac_header_compiler=no
8700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8701 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8702 $as_echo "$ac_header_compiler" >&6; }
8704 # Is the header present?
8705 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
8706 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
8707 cat >conftest.$ac_ext <<_ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8713 #include <CoreAudio/CoreAudio.h>
8715 if { (ac_try="$ac_cpp conftest.$ac_ext"
8717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8718 *) ac_try_echo=$ac_try;;
8720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8721 $as_echo "$ac_try_echo") >&5
8722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8724 grep -v '^ *+' conftest.er1 >conftest.err
8726 cat conftest.err >&5
8727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } >/dev/null && {
8729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8730 test ! -s conftest.err
8732 ac_header_preproc=yes
8734 $as_echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 ac_header_preproc=no
8740 rm -f conftest.err conftest.$ac_ext
8741 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8742 $as_echo "$ac_header_preproc" >&6; }
8744 # So? What about this header?
8745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8747 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8748 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8749 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
8750 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
8751 ac_header_preproc=yes
8754 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
8755 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
8756 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
8757 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
8758 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
8759 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
8760 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
8761 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
8762 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
8763 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
8764 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
8765 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
8769 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
8770 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
8771 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8772 $as_echo_n "(cached) " >&6
8774 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
8776 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
8777 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
8780 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
8783 LIBS="$LIBS -framework CoreAudio"
8784 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
8786 cat >>confdefs.h <<\_ACEOF
8787 #define HAVE_CORE_AUDIO 1
8797 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
8808 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
8809 $as_echo_n "checking for PULSE... " >&6; }
8811 if test -n "$PKG_CONFIG"; then
8812 if test -n "$PULSE_CFLAGS"; then
8813 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
8815 if test -n "$PKG_CONFIG" && \
8816 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8817 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; then
8821 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
8829 if test -n "$PKG_CONFIG"; then
8830 if test -n "$PULSE_LIBS"; then
8831 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
8833 if test -n "$PKG_CONFIG" && \
8834 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8835 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; then
8839 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
8850 if test $pkg_failed = yes; then
8852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8853 _pkg_short_errors_supported=yes
8855 _pkg_short_errors_supported=no
8857 if test $_pkg_short_errors_supported = yes; then
8858 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
8860 PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
8862 # Put the nasty error message in config.log where it belongs
8863 echo "$PULSE_PKG_ERRORS" >&5
8865 { $as_echo "$as_me:$LINENO: result: no" >&5
8866 $as_echo "no" >&6; }
8868 elif test $pkg_failed = untried; then
8871 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
8872 PULSE_LIBS=$pkg_cv_PULSE_LIBS
8873 { $as_echo "$as_me:$LINENO: result: yes" >&5
8874 $as_echo "yes" >&6; }
8877 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
8879 cat >>confdefs.h <<\_ACEOF
8880 #define HAVE_PULSE 1
8886 if test "$HAVE_PULSE" = 'yes' ; then
8888 AUDIO_PULSE_FALSE='#'
8890 AUDIO_PULSE_TRUE='#'
8897 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
8898 $as_echo_n "checking for ESOUND... " >&6; }
8900 if test -n "$PKG_CONFIG"; then
8901 if test -n "$ESOUND_CFLAGS"; then
8902 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
8904 if test -n "$PKG_CONFIG" && \
8905 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8906 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; then
8910 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
8918 if test -n "$PKG_CONFIG"; then
8919 if test -n "$ESOUND_LIBS"; then
8920 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
8922 if test -n "$PKG_CONFIG" && \
8923 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8924 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; then
8928 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
8939 if test $pkg_failed = yes; then
8941 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8942 _pkg_short_errors_supported=yes
8944 _pkg_short_errors_supported=no
8946 if test $_pkg_short_errors_supported = yes; then
8947 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
8949 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
8951 # Put the nasty error message in config.log where it belongs
8952 echo "$ESOUND_PKG_ERRORS" >&5
8954 { $as_echo "$as_me:$LINENO: result: no" >&5
8955 $as_echo "no" >&6; }
8957 elif test $pkg_failed = untried; then
8960 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
8961 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
8962 { $as_echo "$as_me:$LINENO: result: yes" >&5
8963 $as_echo "yes" >&6; }
8966 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
8968 cat >>confdefs.h <<\_ACEOF
8969 #define HAVE_ESOUND 1
8975 if test "$HAVE_ESOUND" = 'yes' ; then
8977 AUDIO_ESOUND_FALSE='#'
8979 AUDIO_ESOUND_TRUE='#'
8986 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
8987 $as_echo_n "checking for ALSA... " >&6; }
8989 if test -n "$PKG_CONFIG"; then
8990 if test -n "$ALSA_CFLAGS"; then
8991 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
8993 if test -n "$PKG_CONFIG" && \
8994 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
8995 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
8997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; then
8999 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
9007 if test -n "$PKG_CONFIG"; then
9008 if test -n "$ALSA_LIBS"; then
9009 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
9011 if test -n "$PKG_CONFIG" && \
9012 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
9013 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
9015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; then
9017 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
9028 if test $pkg_failed = yes; then
9030 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9031 _pkg_short_errors_supported=yes
9033 _pkg_short_errors_supported=no
9035 if test $_pkg_short_errors_supported = yes; then
9036 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
9038 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
9040 # Put the nasty error message in config.log where it belongs
9041 echo "$ALSA_PKG_ERRORS" >&5
9043 { $as_echo "$as_me:$LINENO: result: no" >&5
9044 $as_echo "no" >&6; }
9046 elif test $pkg_failed = untried; then
9049 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
9050 ALSA_LIBS=$pkg_cv_ALSA_LIBS
9051 { $as_echo "$as_me:$LINENO: result: yes" >&5
9052 $as_echo "yes" >&6; }
9055 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
9057 cat >>confdefs.h <<\_ACEOF
9064 if test "$HAVE_ALSA" = 'yes' ; then
9066 AUDIO_ALSA_FALSE='#'
9074 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9075 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
9076 $as_echo_n "checking for linux/cdrom.h... " >&6; }
9077 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9078 $as_echo_n "(cached) " >&6
9080 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
9081 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
9083 # Is the header compilable?
9084 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
9085 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
9086 cat >conftest.$ac_ext <<_ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9092 $ac_includes_default
9093 #include <linux/cdrom.h>
9095 rm -f conftest.$ac_objext
9096 if { (ac_try="$ac_compile"
9098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9102 $as_echo "$ac_try_echo") >&5
9103 (eval "$ac_compile") 2>conftest.er1
9105 grep -v '^ *+' conftest.er1 >conftest.err
9107 cat conftest.err >&5
9108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } && {
9110 test -z "$ac_c_werror_flag" ||
9111 test ! -s conftest.err
9112 } && test -s conftest.$ac_objext; then
9113 ac_header_compiler=yes
9115 $as_echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9118 ac_header_compiler=no
9121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9122 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9123 $as_echo "$ac_header_compiler" >&6; }
9125 # Is the header present?
9126 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
9127 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
9128 cat >conftest.$ac_ext <<_ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9134 #include <linux/cdrom.h>
9136 if { (ac_try="$ac_cpp conftest.$ac_ext"
9138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9139 *) ac_try_echo=$ac_try;;
9141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9142 $as_echo "$ac_try_echo") >&5
9143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9145 grep -v '^ *+' conftest.er1 >conftest.err
9147 cat conftest.err >&5
9148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } >/dev/null && {
9150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9151 test ! -s conftest.err
9153 ac_header_preproc=yes
9155 $as_echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9158 ac_header_preproc=no
9161 rm -f conftest.err conftest.$ac_ext
9162 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9163 $as_echo "$ac_header_preproc" >&6; }
9165 # So? What about this header?
9166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9168 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
9169 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9170 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
9171 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
9172 ac_header_preproc=yes
9175 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
9176 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
9177 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
9178 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
9179 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
9180 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
9181 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
9182 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
9183 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
9184 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
9185 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
9186 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
9190 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
9191 $as_echo_n "checking for linux/cdrom.h... " >&6; }
9192 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
9193 $as_echo_n "(cached) " >&6
9195 ac_cv_header_linux_cdrom_h=$ac_header_preproc
9197 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
9198 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
9201 if test $ac_cv_header_linux_cdrom_h = yes; then
9210 if test "x$CDROM_DRIVER" = "xlinux"; then
9212 CDROM_LINUX_FALSE='#'
9214 CDROM_LINUX_TRUE='#'
9220 if test "x$CDROM_DRIVER" = "xosx"; then
9230 if test "x$CDROM_DRIVER" = "x"; then
9232 CDROM_NONE_FALSE='#'
9239 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9240 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9241 $as_echo_n "checking for linux/joystick.h... " >&6; }
9242 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9243 $as_echo_n "(cached) " >&6
9245 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9246 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9248 # Is the header compilable?
9249 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
9250 $as_echo_n "checking linux/joystick.h usability... " >&6; }
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 $ac_includes_default
9258 #include <linux/joystick.h>
9260 rm -f conftest.$ac_objext
9261 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
9278 ac_header_compiler=yes
9280 $as_echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9283 ac_header_compiler=no
9286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9288 $as_echo "$ac_header_compiler" >&6; }
9290 # Is the header present?
9291 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
9292 $as_echo_n "checking linux/joystick.h presence... " >&6; }
9293 cat >conftest.$ac_ext <<_ACEOF
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h. */
9299 #include <linux/joystick.h>
9301 if { (ac_try="$ac_cpp conftest.$ac_ext"
9303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304 *) ac_try_echo=$ac_try;;
9306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9307 $as_echo "$ac_try_echo") >&5
9308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9310 grep -v '^ *+' conftest.er1 >conftest.err
9312 cat conftest.err >&5
9313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } >/dev/null && {
9315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9316 test ! -s conftest.err
9318 ac_header_preproc=yes
9320 $as_echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9323 ac_header_preproc=no
9326 rm -f conftest.err conftest.$ac_ext
9327 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9328 $as_echo "$ac_header_preproc" >&6; }
9330 # So? What about this header?
9331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9333 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
9334 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9335 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
9336 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
9337 ac_header_preproc=yes
9340 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
9341 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
9342 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
9343 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
9344 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
9345 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
9346 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
9347 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
9348 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
9349 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
9350 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
9351 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
9355 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9356 $as_echo_n "checking for linux/joystick.h... " >&6; }
9357 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9358 $as_echo_n "(cached) " >&6
9360 ac_cv_header_linux_joystick_h=$ac_header_preproc
9362 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9363 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9366 if test $ac_cv_header_linux_joystick_h = yes; then
9368 HAVE_LINUX_JOYSTICK_H=yes
9370 cat >>confdefs.h <<\_ACEOF
9371 #define HAVE_LINUX_JOYSTICK 1
9375 echo "Linux Joystick support not found, building without it."
9381 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
9390 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
9391 set dummy sh-elf-gcc; ac_word=$2
9392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9393 $as_echo_n "checking for $ac_word... " >&6; }
9394 if test "${ac_cv_path_SHCC+set}" = set; then
9395 $as_echo_n "(cached) " >&6
9399 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
9402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406 test -z "$as_dir" && as_dir=.
9407 for ac_exec_ext in '' $ac_executable_extensions; do
9408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9409 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
9410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9420 SHCC=$ac_cv_path_SHCC
9421 if test -n "$SHCC"; then
9422 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
9423 $as_echo "$SHCC" >&6; }
9425 { $as_echo "$as_me:$LINENO: result: no" >&5
9426 $as_echo "no" >&6; }
9430 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
9431 set dummy sh-elf-ld; ac_word=$2
9432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9433 $as_echo_n "checking for $ac_word... " >&6; }
9434 if test "${ac_cv_path_SHLD+set}" = set; then
9435 $as_echo_n "(cached) " >&6
9439 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446 test -z "$as_dir" && as_dir=.
9447 for ac_exec_ext in '' $ac_executable_extensions; do
9448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9449 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
9450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9460 SHLD=$ac_cv_path_SHLD
9461 if test -n "$SHLD"; then
9462 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
9463 $as_echo "$SHLD" >&6; }
9465 { $as_echo "$as_me:$LINENO: result: no" >&5
9466 $as_echo "no" >&6; }
9470 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
9471 set dummy sh-elf-objcopy; ac_word=$2
9472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9473 $as_echo_n "checking for $ac_word... " >&6; }
9474 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
9475 $as_echo_n "(cached) " >&6
9479 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
9482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486 test -z "$as_dir" && as_dir=.
9487 for ac_exec_ext in '' $ac_executable_extensions; do
9488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9489 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9490 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9500 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
9501 if test -n "$SHOBJCOPY"; then
9502 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
9503 $as_echo "$SHOBJCOPY" >&6; }
9505 { $as_echo "$as_me:$LINENO: result: no" >&5
9506 $as_echo "no" >&6; }
9510 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
9511 set dummy arm-elf-gcc; ac_word=$2
9512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9513 $as_echo_n "checking for $ac_word... " >&6; }
9514 if test "${ac_cv_path_ARMCC+set}" = set; then
9515 $as_echo_n "(cached) " >&6
9519 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526 test -z "$as_dir" && as_dir=.
9527 for ac_exec_ext in '' $ac_executable_extensions; do
9528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9529 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
9530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9540 ARMCC=$ac_cv_path_ARMCC
9541 if test -n "$ARMCC"; then
9542 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
9543 $as_echo "$ARMCC" >&6; }
9545 { $as_echo "$as_me:$LINENO: result: no" >&5
9546 $as_echo "no" >&6; }
9550 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
9551 set dummy arm-elf-ld; ac_word=$2
9552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9553 $as_echo_n "checking for $ac_word... " >&6; }
9554 if test "${ac_cv_path_ARMLD+set}" = set; then
9555 $as_echo_n "(cached) " >&6
9559 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
9562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9566 test -z "$as_dir" && as_dir=.
9567 for ac_exec_ext in '' $ac_executable_extensions; do
9568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9569 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
9570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9580 ARMLD=$ac_cv_path_ARMLD
9581 if test -n "$ARMLD"; then
9582 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
9583 $as_echo "$ARMLD" >&6; }
9585 { $as_echo "$as_me:$LINENO: result: no" >&5
9586 $as_echo "no" >&6; }
9590 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
9591 set dummy arm-elf-objcopy; ac_word=$2
9592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9593 $as_echo_n "checking for $ac_word... " >&6; }
9594 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
9595 $as_echo_n "(cached) " >&6
9599 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
9602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606 test -z "$as_dir" && as_dir=.
9607 for ac_exec_ext in '' $ac_executable_extensions; do
9608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9609 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9610 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9620 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
9621 if test -n "$ARMOBJCOPY"; then
9622 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
9623 $as_echo "$ARMOBJCOPY" >&6; }
9625 { $as_echo "$as_me:$LINENO: result: no" >&5
9626 $as_echo "no" >&6; }
9631 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
9633 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
9637 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
9639 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
9645 if test "$BUILD_SH" = "yes"; then
9647 BUILD_SYSTEST_FALSE='#'
9649 BUILD_SYSTEST_TRUE='#'
9650 BUILD_SYSTEST_FALSE=
9655 if test "$BUILD_ARM" = "yes"; then
9657 BUILD_ARMTEST_FALSE='#'
9659 BUILD_ARMTEST_TRUE='#'
9660 BUILD_ARMTEST_FALSE=
9665 GETTEXT_PACKAGE=lxdream
9668 cat >>confdefs.h <<_ACEOF
9669 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
9673 ALL_LINGUAS="de es it pt_BR"
9676 for ac_header in locale.h
9678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9680 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9681 $as_echo_n "checking for $ac_header... " >&6; }
9682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9683 $as_echo_n "(cached) " >&6
9685 ac_res=`eval 'as_val=${'$as_ac_Header'}
9686 $as_echo "$as_val"'`
9687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9688 $as_echo "$ac_res" >&6; }
9690 # Is the header compilable?
9691 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9692 $as_echo_n "checking $ac_header usability... " >&6; }
9693 cat >conftest.$ac_ext <<_ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9699 $ac_includes_default
9700 #include <$ac_header>
9702 rm -f conftest.$ac_objext
9703 if { (ac_try="$ac_compile"
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9709 $as_echo "$ac_try_echo") >&5
9710 (eval "$ac_compile") 2>conftest.er1
9712 grep -v '^ *+' conftest.er1 >conftest.err
9714 cat conftest.err >&5
9715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } && {
9717 test -z "$ac_c_werror_flag" ||
9718 test ! -s conftest.err
9719 } && test -s conftest.$ac_objext; then
9720 ac_header_compiler=yes
9722 $as_echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 ac_header_compiler=no
9728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9729 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9730 $as_echo "$ac_header_compiler" >&6; }
9732 # Is the header present?
9733 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9734 $as_echo_n "checking $ac_header presence... " >&6; }
9735 cat >conftest.$ac_ext <<_ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 #include <$ac_header>
9743 if { (ac_try="$ac_cpp conftest.$ac_ext"
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9749 $as_echo "$ac_try_echo") >&5
9750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9752 grep -v '^ *+' conftest.er1 >conftest.err
9754 cat conftest.err >&5
9755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } >/dev/null && {
9757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9758 test ! -s conftest.err
9760 ac_header_preproc=yes
9762 $as_echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9765 ac_header_preproc=no
9768 rm -f conftest.err conftest.$ac_ext
9769 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9770 $as_echo "$ac_header_preproc" >&6; }
9772 # So? What about this header?
9773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9776 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9778 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9779 ac_header_preproc=yes
9782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9783 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9785 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9787 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9789 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9791 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9793 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9797 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9798 $as_echo_n "checking for $ac_header... " >&6; }
9799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9800 $as_echo_n "(cached) " >&6
9802 eval "$as_ac_Header=\$ac_header_preproc"
9804 ac_res=`eval 'as_val=${'$as_ac_Header'}
9805 $as_echo "$as_val"'`
9806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9807 $as_echo "$ac_res" >&6; }
9810 if test `eval 'as_val=${'$as_ac_Header'}
9811 $as_echo "$as_val"'` = yes; then
9812 cat >>confdefs.h <<_ACEOF
9813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9820 if test $ac_cv_header_locale_h = yes; then
9821 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9822 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9823 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9824 $as_echo_n "(cached) " >&6
9826 cat >conftest.$ac_ext <<_ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (ac_try="$ac_link"
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9848 $as_echo "$ac_try_echo") >&5
9849 (eval "$ac_link") 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } && {
9856 test -z "$ac_c_werror_flag" ||
9857 test ! -s conftest.err
9858 } && test -s conftest$ac_exeext && {
9859 test "$cross_compiling" = yes ||
9860 $as_test_x conftest$ac_exeext
9862 am_cv_val_LC_MESSAGES=yes
9864 $as_echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9867 am_cv_val_LC_MESSAGES=no
9870 rm -rf conftest.dSYM
9871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9872 conftest$ac_exeext conftest.$ac_ext
9874 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9875 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9876 if test $am_cv_val_LC_MESSAGES = yes; then
9878 cat >>confdefs.h <<\_ACEOF
9879 #define HAVE_LC_MESSAGES 1
9887 gt_cv_have_gettext=no
9893 if test "${ac_cv_header_libintl_h+set}" = set; then
9894 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
9895 $as_echo_n "checking for libintl.h... " >&6; }
9896 if test "${ac_cv_header_libintl_h+set}" = set; then
9897 $as_echo_n "(cached) " >&6
9899 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9900 $as_echo "$ac_cv_header_libintl_h" >&6; }
9902 # Is the header compilable?
9903 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
9904 $as_echo_n "checking libintl.h usability... " >&6; }
9905 cat >conftest.$ac_ext <<_ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 $ac_includes_default
9912 #include <libintl.h>
9914 rm -f conftest.$ac_objext
9915 if { (ac_try="$ac_compile"
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9921 $as_echo "$ac_try_echo") >&5
9922 (eval "$ac_compile") 2>conftest.er1
9924 grep -v '^ *+' conftest.er1 >conftest.err
9926 cat conftest.err >&5
9927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } && {
9929 test -z "$ac_c_werror_flag" ||
9930 test ! -s conftest.err
9931 } && test -s conftest.$ac_objext; then
9932 ac_header_compiler=yes
9934 $as_echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9937 ac_header_compiler=no
9940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9941 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9942 $as_echo "$ac_header_compiler" >&6; }
9944 # Is the header present?
9945 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
9946 $as_echo_n "checking libintl.h presence... " >&6; }
9947 cat >conftest.$ac_ext <<_ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h. */
9953 #include <libintl.h>
9955 if { (ac_try="$ac_cpp conftest.$ac_ext"
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9961 $as_echo "$ac_try_echo") >&5
9962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } >/dev/null && {
9969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9972 ac_header_preproc=yes
9974 $as_echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 ac_header_preproc=no
9980 rm -f conftest.err conftest.$ac_ext
9981 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9982 $as_echo "$ac_header_preproc" >&6; }
9984 # So? What about this header?
9985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9987 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9988 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9989 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
9990 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
9991 ac_header_preproc=yes
9994 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
9995 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
9996 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
9997 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
9998 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
9999 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
10000 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
10001 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10002 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
10003 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
10004 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
10005 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
10009 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
10010 $as_echo_n "checking for libintl.h... " >&6; }
10011 if test "${ac_cv_header_libintl_h+set}" = set; then
10012 $as_echo_n "(cached) " >&6
10014 ac_cv_header_libintl_h=$ac_header_preproc
10016 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10017 $as_echo "$ac_cv_header_libintl_h" >&6; }
10020 if test $ac_cv_header_libintl_h = yes; then
10021 gt_cv_func_dgettext_libintl="no"
10022 libintl_extra_libs=""
10025 # First check in libc
10027 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
10028 $as_echo_n "checking for ngettext in libc... " >&6; }
10029 if test "${gt_cv_func_ngettext_libc+set}" = set; then
10030 $as_echo_n "(cached) " >&6
10032 cat >conftest.$ac_ext <<_ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10039 #include <libintl.h>
10044 return !ngettext ("","", 1)
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10056 $as_echo "$ac_try_echo") >&5
10057 (eval "$ac_link") 2>conftest.er1
10059 grep -v '^ *+' conftest.er1 >conftest.err
10061 cat conftest.err >&5
10062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest$ac_exeext && {
10067 test "$cross_compiling" = yes ||
10068 $as_test_x conftest$ac_exeext
10070 gt_cv_func_ngettext_libc=yes
10072 $as_echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10075 gt_cv_func_ngettext_libc=no
10078 rm -rf conftest.dSYM
10079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10080 conftest$ac_exeext conftest.$ac_ext
10083 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
10084 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
10086 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10087 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
10088 $as_echo_n "checking for dgettext in libc... " >&6; }
10089 if test "${gt_cv_func_dgettext_libc+set}" = set; then
10090 $as_echo_n "(cached) " >&6
10092 cat >conftest.$ac_ext <<_ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10099 #include <libintl.h>
10104 return !dgettext ("","")
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (ac_try="$ac_link"
10111 case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10116 $as_echo "$ac_try_echo") >&5
10117 (eval "$ac_link") 2>conftest.er1
10119 grep -v '^ *+' conftest.er1 >conftest.err
10121 cat conftest.err >&5
10122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && {
10124 test -z "$ac_c_werror_flag" ||
10125 test ! -s conftest.err
10126 } && test -s conftest$ac_exeext && {
10127 test "$cross_compiling" = yes ||
10128 $as_test_x conftest$ac_exeext
10130 gt_cv_func_dgettext_libc=yes
10132 $as_echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10135 gt_cv_func_dgettext_libc=no
10138 rm -rf conftest.dSYM
10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140 conftest$ac_exeext conftest.$ac_ext
10143 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
10144 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
10147 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10149 for ac_func in bind_textdomain_codeset
10151 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10152 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10153 $as_echo_n "checking for $ac_func... " >&6; }
10154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10155 $as_echo_n "(cached) " >&6
10157 cat >conftest.$ac_ext <<_ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10165 #define $ac_func innocuous_$ac_func
10167 /* System header to define __stub macros and hopefully few prototypes,
10168 which can conflict with char $ac_func (); below.
10169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10170 <limits.h> exists even on freestanding compilers. */
10173 # include <limits.h>
10175 # include <assert.h>
10180 /* Override any GCC internal prototype to avoid an error.
10181 Use char because int might match the return type of a GCC
10182 builtin and then its argument prototype would still apply. */
10187 /* The GNU C library defines this for functions which it implements
10188 to always fail with ENOSYS. Some functions are actually named
10189 something starting with __ and the normal name is an alias. */
10190 #if defined __stub_$ac_func || defined __stub___$ac_func
10197 return $ac_func ();
10202 rm -f conftest.$ac_objext conftest$ac_exeext
10203 if { (ac_try="$ac_link"
10204 case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10209 $as_echo "$ac_try_echo") >&5
10210 (eval "$ac_link") 2>conftest.er1
10212 grep -v '^ *+' conftest.er1 >conftest.err
10214 cat conftest.err >&5
10215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } && {
10217 test -z "$ac_c_werror_flag" ||
10218 test ! -s conftest.err
10219 } && test -s conftest$ac_exeext && {
10220 test "$cross_compiling" = yes ||
10221 $as_test_x conftest$ac_exeext
10223 eval "$as_ac_var=yes"
10225 $as_echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 eval "$as_ac_var=no"
10231 rm -rf conftest.dSYM
10232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10233 conftest$ac_exeext conftest.$ac_ext
10235 ac_res=`eval 'as_val=${'$as_ac_var'}
10236 $as_echo "$as_val"'`
10237 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10238 $as_echo "$ac_res" >&6; }
10239 if test `eval 'as_val=${'$as_ac_var'}
10240 $as_echo "$as_val"'` = yes; then
10241 cat >>confdefs.h <<_ACEOF
10242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10251 # If we don't have everything we want, check in libintl
10253 if test "$gt_cv_func_dgettext_libc" != "yes" \
10254 || test "$gt_cv_func_ngettext_libc" != "yes" \
10255 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
10257 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
10258 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
10259 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
10260 $as_echo_n "(cached) " >&6
10262 ac_check_lib_save_LIBS=$LIBS
10263 LIBS="-lintl $LIBS"
10264 cat >conftest.$ac_ext <<_ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10271 /* Override any GCC internal prototype to avoid an error.
10272 Use char because int might match the return type of a GCC
10273 builtin and then its argument prototype would still apply. */
10277 char bindtextdomain ();
10281 return bindtextdomain ();
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (ac_try="$ac_link"
10288 case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293 $as_echo "$ac_try_echo") >&5
10294 (eval "$ac_link") 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest$ac_exeext && {
10304 test "$cross_compiling" = yes ||
10305 $as_test_x conftest$ac_exeext
10307 ac_cv_lib_intl_bindtextdomain=yes
10309 $as_echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_cv_lib_intl_bindtextdomain=no
10315 rm -rf conftest.dSYM
10316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10317 conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10320 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
10321 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
10322 if test $ac_cv_lib_intl_bindtextdomain = yes; then
10323 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10324 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10325 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10326 $as_echo_n "(cached) " >&6
10328 ac_check_lib_save_LIBS=$LIBS
10329 LIBS="-lintl $LIBS"
10330 cat >conftest.$ac_ext <<_ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10337 /* Override any GCC internal prototype to avoid an error.
10338 Use char because int might match the return type of a GCC
10339 builtin and then its argument prototype would still apply. */
10347 return ngettext ();
10352 rm -f conftest.$ac_objext conftest$ac_exeext
10353 if { (ac_try="$ac_link"
10354 case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10359 $as_echo "$ac_try_echo") >&5
10360 (eval "$ac_link") 2>conftest.er1
10362 grep -v '^ *+' conftest.er1 >conftest.err
10364 cat conftest.err >&5
10365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && {
10367 test -z "$ac_c_werror_flag" ||
10368 test ! -s conftest.err
10369 } && test -s conftest$ac_exeext && {
10370 test "$cross_compiling" = yes ||
10371 $as_test_x conftest$ac_exeext
10373 ac_cv_lib_intl_ngettext=yes
10375 $as_echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10378 ac_cv_lib_intl_ngettext=no
10381 rm -rf conftest.dSYM
10382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_lib_save_LIBS
10386 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10387 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10388 if test $ac_cv_lib_intl_ngettext = yes; then
10389 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
10390 $as_echo_n "checking for dgettext in -lintl... " >&6; }
10391 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
10392 $as_echo_n "(cached) " >&6
10394 ac_check_lib_save_LIBS=$LIBS
10395 LIBS="-lintl $LIBS"
10396 cat >conftest.$ac_ext <<_ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10403 /* Override any GCC internal prototype to avoid an error.
10404 Use char because int might match the return type of a GCC
10405 builtin and then its argument prototype would still apply. */
10413 return dgettext ();
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (ac_try="$ac_link"
10420 case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10425 $as_echo "$ac_try_echo") >&5
10426 (eval "$ac_link") 2>conftest.er1
10428 grep -v '^ *+' conftest.er1 >conftest.err
10430 cat conftest.err >&5
10431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } && {
10433 test -z "$ac_c_werror_flag" ||
10434 test ! -s conftest.err
10435 } && test -s conftest$ac_exeext && {
10436 test "$cross_compiling" = yes ||
10437 $as_test_x conftest$ac_exeext
10439 ac_cv_lib_intl_dgettext=yes
10441 $as_echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 ac_cv_lib_intl_dgettext=no
10447 rm -rf conftest.dSYM
10448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10449 conftest$ac_exeext conftest.$ac_ext
10450 LIBS=$ac_check_lib_save_LIBS
10452 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
10453 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
10454 if test $ac_cv_lib_intl_dgettext = yes; then
10455 gt_cv_func_dgettext_libintl=yes
10463 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
10464 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
10465 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
10466 { $as_echo "$as_me:$LINENO: result: " >&5
10468 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10469 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10470 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10471 $as_echo_n "(cached) " >&6
10473 ac_check_lib_save_LIBS=$LIBS
10474 LIBS="-lintl -liconv $LIBS"
10475 cat >conftest.$ac_ext <<_ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10482 /* Override any GCC internal prototype to avoid an error.
10483 Use char because int might match the return type of a GCC
10484 builtin and then its argument prototype would still apply. */
10492 return ngettext ();
10497 rm -f conftest.$ac_objext conftest$ac_exeext
10498 if { (ac_try="$ac_link"
10499 case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10504 $as_echo "$ac_try_echo") >&5
10505 (eval "$ac_link") 2>conftest.er1
10507 grep -v '^ *+' conftest.er1 >conftest.err
10509 cat conftest.err >&5
10510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && {
10512 test -z "$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 } && test -s conftest$ac_exeext && {
10515 test "$cross_compiling" = yes ||
10516 $as_test_x conftest$ac_exeext
10518 ac_cv_lib_intl_ngettext=yes
10520 $as_echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10523 ac_cv_lib_intl_ngettext=no
10526 rm -rf conftest.dSYM
10527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10528 conftest$ac_exeext conftest.$ac_ext
10529 LIBS=$ac_check_lib_save_LIBS
10531 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10532 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10533 if test $ac_cv_lib_intl_ngettext = yes; then
10534 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
10535 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
10536 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
10537 $as_echo_n "(cached) " >&6
10539 ac_check_lib_save_LIBS=$LIBS
10540 LIBS="-lintl -liconv $LIBS"
10541 cat >conftest.$ac_ext <<_ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10548 /* Override any GCC internal prototype to avoid an error.
10549 Use char because int might match the return type of a GCC
10550 builtin and then its argument prototype would still apply. */
10558 return dcgettext ();
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (ac_try="$ac_link"
10565 case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10570 $as_echo "$ac_try_echo") >&5
10571 (eval "$ac_link") 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest$ac_exeext && {
10581 test "$cross_compiling" = yes ||
10582 $as_test_x conftest$ac_exeext
10584 ac_cv_lib_intl_dcgettext=yes
10586 $as_echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10589 ac_cv_lib_intl_dcgettext=no
10592 rm -rf conftest.dSYM
10593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10594 conftest$ac_exeext conftest.$ac_ext
10595 LIBS=$ac_check_lib_save_LIBS
10597 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
10598 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
10599 if test $ac_cv_lib_intl_dcgettext = yes; then
10600 gt_cv_func_dgettext_libintl=yes
10601 libintl_extra_libs=-liconv
10613 # If we found libintl, then check in it for bind_textdomain_codeset();
10614 # we'll prefer libc if neither have bind_textdomain_codeset(),
10615 # and both have dgettext and ngettext
10617 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
10618 glib_save_LIBS="$LIBS"
10619 LIBS="$LIBS -lintl $libintl_extra_libs"
10620 unset ac_cv_func_bind_textdomain_codeset
10622 for ac_func in bind_textdomain_codeset
10624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10625 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10626 $as_echo_n "checking for $ac_func... " >&6; }
10627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10628 $as_echo_n "(cached) " >&6
10630 cat >conftest.$ac_ext <<_ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10638 #define $ac_func innocuous_$ac_func
10640 /* System header to define __stub macros and hopefully few prototypes,
10641 which can conflict with char $ac_func (); below.
10642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10643 <limits.h> exists even on freestanding compilers. */
10646 # include <limits.h>
10648 # include <assert.h>
10653 /* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10660 /* The GNU C library defines this for functions which it implements
10661 to always fail with ENOSYS. Some functions are actually named
10662 something starting with __ and the normal name is an alias. */
10663 #if defined __stub_$ac_func || defined __stub___$ac_func
10670 return $ac_func ();
10675 rm -f conftest.$ac_objext conftest$ac_exeext
10676 if { (ac_try="$ac_link"
10677 case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10682 $as_echo "$ac_try_echo") >&5
10683 (eval "$ac_link") 2>conftest.er1
10685 grep -v '^ *+' conftest.er1 >conftest.err
10687 cat conftest.err >&5
10688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } && {
10690 test -z "$ac_c_werror_flag" ||
10691 test ! -s conftest.err
10692 } && test -s conftest$ac_exeext && {
10693 test "$cross_compiling" = yes ||
10694 $as_test_x conftest$ac_exeext
10696 eval "$as_ac_var=yes"
10698 $as_echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 eval "$as_ac_var=no"
10704 rm -rf conftest.dSYM
10705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10706 conftest$ac_exeext conftest.$ac_ext
10708 ac_res=`eval 'as_val=${'$as_ac_var'}
10709 $as_echo "$as_val"'`
10710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10711 $as_echo "$ac_res" >&6; }
10712 if test `eval 'as_val=${'$as_ac_var'}
10713 $as_echo "$as_val"'` = yes; then
10714 cat >>confdefs.h <<_ACEOF
10715 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10721 LIBS="$glib_save_LIBS"
10723 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
10724 gt_cv_func_dgettext_libc=no
10726 if test "$gt_cv_func_dgettext_libc" = "yes" \
10727 && test "$gt_cv_func_ngettext_libc" = "yes"; then
10728 gt_cv_func_dgettext_libintl=no
10734 if test "$gt_cv_func_dgettext_libc" = "yes" \
10735 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10736 gt_cv_have_gettext=yes
10739 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10740 INTLLIBS="-lintl $libintl_extra_libs"
10743 if test "$gt_cv_have_gettext" = "yes"; then
10745 cat >>confdefs.h <<\_ACEOF
10746 #define HAVE_GETTEXT 1
10749 # Extract the first word of "msgfmt", so it can be a program name with args.
10750 set dummy msgfmt; ac_word=$2
10751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10752 $as_echo_n "checking for $ac_word... " >&6; }
10753 if test "${ac_cv_path_MSGFMT+set}" = set; then
10754 $as_echo_n "(cached) " >&6
10758 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10762 for ac_dir in $PATH; do
10763 test -z "$ac_dir" && ac_dir=.
10764 if test -f $ac_dir/$ac_word; then
10765 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
10766 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10772 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
10776 MSGFMT="$ac_cv_path_MSGFMT"
10777 if test "$MSGFMT" != "no"; then
10778 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10779 $as_echo "$MSGFMT" >&6; }
10781 { $as_echo "$as_me:$LINENO: result: no" >&5
10782 $as_echo "no" >&6; }
10784 if test "$MSGFMT" != "no"; then
10785 glib_save_LIBS="$LIBS"
10786 LIBS="$LIBS $INTLLIBS"
10788 for ac_func in dcgettext
10790 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10791 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10792 $as_echo_n "checking for $ac_func... " >&6; }
10793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10794 $as_echo_n "(cached) " >&6
10796 cat >conftest.$ac_ext <<_ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10804 #define $ac_func innocuous_$ac_func
10806 /* System header to define __stub macros and hopefully few prototypes,
10807 which can conflict with char $ac_func (); below.
10808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10809 <limits.h> exists even on freestanding compilers. */
10812 # include <limits.h>
10814 # include <assert.h>
10819 /* Override any GCC internal prototype to avoid an error.
10820 Use char because int might match the return type of a GCC
10821 builtin and then its argument prototype would still apply. */
10826 /* The GNU C library defines this for functions which it implements
10827 to always fail with ENOSYS. Some functions are actually named
10828 something starting with __ and the normal name is an alias. */
10829 #if defined __stub_$ac_func || defined __stub___$ac_func
10836 return $ac_func ();
10841 rm -f conftest.$ac_objext conftest$ac_exeext
10842 if { (ac_try="$ac_link"
10843 case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10848 $as_echo "$ac_try_echo") >&5
10849 (eval "$ac_link") 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest$ac_exeext && {
10859 test "$cross_compiling" = yes ||
10860 $as_test_x conftest$ac_exeext
10862 eval "$as_ac_var=yes"
10864 $as_echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10867 eval "$as_ac_var=no"
10870 rm -rf conftest.dSYM
10871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10872 conftest$ac_exeext conftest.$ac_ext
10874 ac_res=`eval 'as_val=${'$as_ac_var'}
10875 $as_echo "$as_val"'`
10876 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10877 $as_echo "$ac_res" >&6; }
10878 if test `eval 'as_val=${'$as_ac_var'}
10879 $as_echo "$as_val"'` = yes; then
10880 cat >>confdefs.h <<_ACEOF
10881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10888 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
10889 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
10890 cat >conftest.foo <<_ACEOF
10894 "Content-Type: text/plain; charset=UTF-8\n"
10895 "Project-Id-Version: test 1.0\n"
10896 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
10897 "Last-Translator: test <foo@bar.xx>\n"
10898 "Language-Team: C <LL@li.org>\n"
10899 "MIME-Version: 1.0\n"
10900 "Content-Transfer-Encoding: 8bit\n"
10903 if { ($as_echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
10904 (msgfmt -c -o /dev/null conftest.foo) 2>&5
10906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; then
10908 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
10909 $as_echo "yes" >&6; }
10910 else { $as_echo "$as_me:$LINENO: result: no" >&5
10911 $as_echo "no" >&6; }
10912 echo "$as_me: failed input was:" >&5
10913 sed 's/^/| /' conftest.foo >&5
10916 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10917 set dummy gmsgfmt; ac_word=$2
10918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10919 $as_echo_n "checking for $ac_word... " >&6; }
10920 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10921 $as_echo_n "(cached) " >&6
10925 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10929 for as_dir in $PATH
10932 test -z "$as_dir" && as_dir=.
10933 for ac_exec_ext in '' $ac_executable_extensions; do
10934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10935 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10947 GMSGFMT=$ac_cv_path_GMSGFMT
10948 if test -n "$GMSGFMT"; then
10949 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10950 $as_echo "$GMSGFMT" >&6; }
10952 { $as_echo "$as_me:$LINENO: result: no" >&5
10953 $as_echo "no" >&6; }
10957 # Extract the first word of "xgettext", so it can be a program name with args.
10958 set dummy xgettext; ac_word=$2
10959 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10960 $as_echo_n "checking for $ac_word... " >&6; }
10961 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10962 $as_echo_n "(cached) " >&6
10964 case "$XGETTEXT" in
10966 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10970 for ac_dir in $PATH; do
10971 test -z "$ac_dir" && ac_dir=.
10972 if test -f $ac_dir/$ac_word; then
10973 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
10974 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
10980 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10984 XGETTEXT="$ac_cv_path_XGETTEXT"
10985 if test "$XGETTEXT" != ":"; then
10986 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10987 $as_echo "$XGETTEXT" >&6; }
10989 { $as_echo "$as_me:$LINENO: result: no" >&5
10990 $as_echo "no" >&6; }
10993 cat >conftest.$ac_ext <<_ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
11003 extern int _nl_msg_cat_cntr;
11004 return _nl_msg_cat_cntr
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (ac_try="$ac_link"
11011 case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11016 $as_echo "$ac_try_echo") >&5
11017 (eval "$ac_link") 2>conftest.er1
11019 grep -v '^ *+' conftest.er1 >conftest.err
11021 cat conftest.err >&5
11022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } && {
11024 test -z "$ac_c_werror_flag" ||
11025 test ! -s conftest.err
11026 } && test -s conftest$ac_exeext && {
11027 test "$cross_compiling" = yes ||
11028 $as_test_x conftest$ac_exeext
11033 $as_echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11038 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
11039 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
11040 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
11041 $as_echo_n "(cached) " >&6
11043 cat >conftest.$ac_ext <<_ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
11050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11051 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
11053 /* System header to define __stub macros and hopefully few prototypes,
11054 which can conflict with char bind_textdomain_codeset (); below.
11055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11056 <limits.h> exists even on freestanding compilers. */
11059 # include <limits.h>
11061 # include <assert.h>
11064 #undef bind_textdomain_codeset
11066 /* Override any GCC internal prototype to avoid an error.
11067 Use char because int might match the return type of a GCC
11068 builtin and then its argument prototype would still apply. */
11072 char bind_textdomain_codeset ();
11073 /* The GNU C library defines this for functions which it implements
11074 to always fail with ENOSYS. Some functions are actually named
11075 something starting with __ and the normal name is an alias. */
11076 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
11083 return bind_textdomain_codeset ();
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (ac_try="$ac_link"
11090 case "(($ac_try" in
11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11095 $as_echo "$ac_try_echo") >&5
11096 (eval "$ac_link") 2>conftest.er1
11098 grep -v '^ *+' conftest.er1 >conftest.err
11100 cat conftest.err >&5
11101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } && {
11103 test -z "$ac_c_werror_flag" ||
11104 test ! -s conftest.err
11105 } && test -s conftest$ac_exeext && {
11106 test "$cross_compiling" = yes ||
11107 $as_test_x conftest$ac_exeext
11109 ac_cv_func_bind_textdomain_codeset=yes
11111 $as_echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11114 ac_cv_func_bind_textdomain_codeset=no
11117 rm -rf conftest.dSYM
11118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11119 conftest$ac_exeext conftest.$ac_ext
11121 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
11122 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
11123 if test $ac_cv_func_bind_textdomain_codeset = yes; then
11139 rm -rf conftest.dSYM
11140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11141 conftest$ac_exeext conftest.$ac_ext
11142 LIBS="$glib_save_LIBS"
11145 gt_cv_have_gettext=no
11153 if test "$gt_cv_have_gettext" = "yes" ; then
11155 cat >>confdefs.h <<\_ACEOF
11156 #define ENABLE_NLS 1
11161 if test "$XGETTEXT" != ":"; then
11162 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
11165 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11166 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11171 # We need to process the po/ directory.
11174 ac_config_commands="$ac_config_commands default-1"
11177 for lang in $ALL_LINGUAS; do
11178 GMOFILES="$GMOFILES $lang.gmo"
11179 POFILES="$POFILES $lang.po"
11194 if test "$gt_cv_have_gettext" = "yes"; then
11195 if test "x$ALL_LINGUAS" = "x"; then
11198 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11199 $as_echo_n "checking for catalogs to be installed... " >&6; }
11201 for presentlang in $ALL_LINGUAS; do
11203 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
11204 desiredlanguages="$LINGUAS"
11206 desiredlanguages="$ALL_LINGUAS"
11208 for desiredlang in $desiredlanguages; do
11209 # Use the presentlang catalog if desiredlang is
11210 # a. equal to presentlang, or
11211 # b. a variant of presentlang (because in this case,
11212 # presentlang can be used as a fallback for messages
11213 # which are not translated in the desiredlang catalog).
11214 case "$desiredlang" in
11215 "$presentlang"*) useit=yes;;
11218 if test $useit = yes; then
11219 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
11222 LINGUAS=$NEW_LINGUAS
11223 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
11224 $as_echo "$LINGUAS" >&6; }
11227 if test -n "$LINGUAS"; then
11228 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
11233 if test -n "$ac_aux_dir"; then
11234 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11236 if test -z "$MKINSTALLDIRS"; then
11237 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11241 test -d po || mkdir po
11242 if test "x$srcdir" != "x."; then
11243 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
11244 posrcprefix="$srcdir/"
11246 posrcprefix="../$srcdir/"
11252 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
11253 < $srcdir/po/POTFILES.in > po/POTFILES
11256 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
11258 cat >confcache <<\_ACEOF
11259 # This file is a shell script that caches the results of configure
11260 # tests run on this system so they can be shared between configure
11261 # scripts and configure runs, see configure's option --config-cache.
11262 # It is not useful on other systems. If it contains results you don't
11263 # want to keep, you may remove or edit it.
11265 # config.status only pays attention to the cache file if you give it
11266 # the --recheck option to rerun configure.
11268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11270 # following values.
11274 # The following way of writing the cache mishandles newlines in values,
11275 # but we know of no workaround that is simple, portable, and efficient.
11276 # So, we kill variables containing newlines.
11277 # Ultrix sh set writes to stderr and can't be redirected directly,
11278 # and sets the high bit in the cache file unless we assign to the vars.
11280 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11281 eval ac_val=\$$ac_var
11285 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11286 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11289 _ | IFS | as_nl) ;; #(
11290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11291 *) $as_unset $ac_var ;;
11297 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11298 *${as_nl}ac_space=\ *)
11299 # `set' does not quote correctly, so add quotes (double-quote
11300 # substitution turns \\\\ into \\, and sed turns \\ into \).
11303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11306 # `set' quotes correctly as required by POSIX, so do not add quotes.
11307 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11316 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11318 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11320 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11321 if test -w "$cache_file"; then
11322 test "x$cache_file" != "x/dev/null" &&
11323 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11324 $as_echo "$as_me: updating cache $cache_file" >&6;}
11325 cat confcache >$cache_file
11327 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11328 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11334 # Let make expand exec_prefix.
11335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11337 DEFS=-DHAVE_CONFIG_H
11341 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11342 # 1. Remove the extension, and $U if already installed.
11343 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11344 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11345 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11346 # will be set to the directory where LIBOBJS objects are built.
11347 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11348 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11350 LIBOBJS=$ac_libobjs
11352 LTLIBOBJS=$ac_ltlibobjs
11355 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11356 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11357 Usually this means the macro was only invoked conditionally." >&5
11358 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11359 Usually this means the macro was only invoked conditionally." >&2;}
11360 { (exit 1); exit 1; }; }
11362 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11363 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11364 Usually this means the macro was only invoked conditionally." >&5
11365 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11366 Usually this means the macro was only invoked conditionally." >&2;}
11367 { (exit 1); exit 1; }; }
11369 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11370 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11371 Usually this means the macro was only invoked conditionally." >&5
11372 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11373 Usually this means the macro was only invoked conditionally." >&2;}
11374 { (exit 1); exit 1; }; }
11376 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11377 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11378 Usually this means the macro was only invoked conditionally." >&5
11379 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11380 Usually this means the macro was only invoked conditionally." >&2;}
11381 { (exit 1); exit 1; }; }
11383 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11384 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11385 Usually this means the macro was only invoked conditionally." >&5
11386 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11387 Usually this means the macro was only invoked conditionally." >&2;}
11388 { (exit 1); exit 1; }; }
11390 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
11391 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
11392 Usually this means the macro was only invoked conditionally." >&5
11393 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
11394 Usually this means the macro was only invoked conditionally." >&2;}
11395 { (exit 1); exit 1; }; }
11397 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
11398 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
11399 Usually this means the macro was only invoked conditionally." >&5
11400 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
11401 Usually this means the macro was only invoked conditionally." >&2;}
11402 { (exit 1); exit 1; }; }
11404 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
11405 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
11406 Usually this means the macro was only invoked conditionally." >&5
11407 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
11408 Usually this means the macro was only invoked conditionally." >&2;}
11409 { (exit 1); exit 1; }; }
11411 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
11412 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
11413 Usually this means the macro was only invoked conditionally." >&5
11414 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
11415 Usually this means the macro was only invoked conditionally." >&2;}
11416 { (exit 1); exit 1; }; }
11418 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
11419 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
11420 Usually this means the macro was only invoked conditionally." >&5
11421 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
11422 Usually this means the macro was only invoked conditionally." >&2;}
11423 { (exit 1); exit 1; }; }
11425 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
11426 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
11427 Usually this means the macro was only invoked conditionally." >&5
11428 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
11429 Usually this means the macro was only invoked conditionally." >&2;}
11430 { (exit 1); exit 1; }; }
11432 if test -z "${BUILD_X86_64_TRUE}" && test -z "${BUILD_X86_64_FALSE}"; then
11433 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_X86_64\" was never defined.
11434 Usually this means the macro was only invoked conditionally." >&5
11435 $as_echo "$as_me: error: conditional \"BUILD_X86_64\" was never defined.
11436 Usually this means the macro was only invoked conditionally." >&2;}
11437 { (exit 1); exit 1; }; }
11439 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
11440 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
11441 Usually this means the macro was only invoked conditionally." >&5
11442 $as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
11443 Usually this means the macro was only invoked conditionally." >&2;}
11444 { (exit 1); exit 1; }; }
11446 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
11447 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
11448 Usually this means the macro was only invoked conditionally." >&5
11449 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
11450 Usually this means the macro was only invoked conditionally." >&2;}
11451 { (exit 1); exit 1; }; }
11453 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
11454 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
11455 Usually this means the macro was only invoked conditionally." >&5
11456 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
11457 Usually this means the macro was only invoked conditionally." >&2;}
11458 { (exit 1); exit 1; }; }
11460 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
11461 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
11462 Usually this means the macro was only invoked conditionally." >&5
11463 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
11464 Usually this means the macro was only invoked conditionally." >&2;}
11465 { (exit 1); exit 1; }; }
11467 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
11468 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
11469 Usually this means the macro was only invoked conditionally." >&5
11470 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
11471 Usually this means the macro was only invoked conditionally." >&2;}
11472 { (exit 1); exit 1; }; }
11474 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
11475 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
11476 Usually this means the macro was only invoked conditionally." >&5
11477 $as_echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
11478 Usually this means the macro was only invoked conditionally." >&2;}
11479 { (exit 1); exit 1; }; }
11481 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
11482 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
11483 Usually this means the macro was only invoked conditionally." >&5
11484 $as_echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
11485 Usually this means the macro was only invoked conditionally." >&2;}
11486 { (exit 1); exit 1; }; }
11488 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
11489 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
11490 Usually this means the macro was only invoked conditionally." >&5
11491 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
11492 Usually this means the macro was only invoked conditionally." >&2;}
11493 { (exit 1); exit 1; }; }
11495 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
11496 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
11497 Usually this means the macro was only invoked conditionally." >&5
11498 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
11499 Usually this means the macro was only invoked conditionally." >&2;}
11500 { (exit 1); exit 1; }; }
11502 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
11503 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
11504 Usually this means the macro was only invoked conditionally." >&5
11505 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
11506 Usually this means the macro was only invoked conditionally." >&2;}
11507 { (exit 1); exit 1; }; }
11510 : ${CONFIG_STATUS=./config.status}
11512 ac_clean_files_save=$ac_clean_files
11513 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11514 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11515 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11516 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11518 # Generated by $as_me.
11519 # Run this file to recreate the current configuration.
11520 # Compiler output produced by configure, useful for debugging
11521 # configure, is in config.log if it exists.
11524 ac_cs_recheck=false
11526 SHELL=\${CONFIG_SHELL-$SHELL}
11529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11530 ## --------------------- ##
11531 ## M4sh Initialization. ##
11532 ## --------------------- ##
11534 # Be more Bourne compatible
11535 DUALCASE=1; export DUALCASE # for MKS sh
11536 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11539 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11540 # is contrary to our usage. Disable this feature.
11541 alias -g '${1+"$@"}'='"$@"'
11542 setopt NO_GLOB_SUBST
11544 case `(set -o) 2>/dev/null` in
11545 *posix*) set -o posix ;;
11554 # Avoid depending upon Character Ranges.
11555 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11556 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11557 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11558 as_cr_digits='0123456789'
11559 as_cr_alnum=$as_cr_Letters$as_cr_digits
11564 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11565 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11566 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11567 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11568 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11569 as_echo='printf %s\n'
11570 as_echo_n='printf %s'
11572 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11573 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11574 as_echo_n='/usr/ucb/echo -n'
11576 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11577 as_echo_n_body='eval
11581 expr "X$arg" : "X\\(.*\\)$as_nl";
11582 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11584 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11586 export as_echo_n_body
11587 as_echo_n='sh -c $as_echo_n_body as_echo'
11589 export as_echo_body
11590 as_echo='sh -c $as_echo_body as_echo'
11593 # The user is always right.
11594 if test "${PATH_SEPARATOR+set}" != set; then
11596 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11597 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11602 # Support unset when possible.
11603 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11611 # We need space, tab and new line, in precisely that order. Quoting is
11612 # there to prevent editors from complaining about space-tab.
11613 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11614 # splitting by setting IFS to empty value.)
11617 # Find who we are. Look in the path if we contain no directory separator.
11619 *[\\/]* ) as_myself=$0 ;;
11620 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11621 for as_dir in $PATH
11624 test -z "$as_dir" && as_dir=.
11625 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11631 # We did not find ourselves, most probably we were run as `sh COMMAND'
11632 # in which case we are not to be found in the path.
11633 if test "x$as_myself" = x; then
11636 if test ! -f "$as_myself"; then
11637 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11638 { (exit 1); exit 1; }
11641 # Work around bugs in pre-3.0 UWIN ksh.
11642 for as_var in ENV MAIL MAILPATH
11643 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11655 # Required to use basename.
11656 if expr a : '\(a\)' >/dev/null 2>&1 &&
11657 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11663 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11664 as_basename=basename
11670 # Name of the executable.
11671 as_me=`$as_basename -- "$0" ||
11672 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11673 X"$0" : 'X\(//\)$' \| \
11674 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11676 sed '/^.*\/\([^/][^/]*\)\/*$/{
11695 as_lineno_1=$LINENO
11696 as_lineno_2=$LINENO
11697 test "x$as_lineno_1" != "x$as_lineno_2" &&
11698 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11700 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11701 # uniformly replaced by the line number. The first 'sed' inserts a
11702 # line-number line after each line using $LINENO; the second 'sed'
11703 # does the real work. The second script uses 'N' to pair each
11704 # line-number line with the line containing $LINENO, and appends
11705 # trailing '-' during substitution so that $LINENO is not a special
11706 # case at line end.
11707 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11708 # scripts with optimization help from Paolo Bonzini. Blame Lee
11709 # E. McMahon (1931-1989) for sed's syntax. :-)
11721 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11724 ' >$as_me.lineno &&
11725 chmod +x "$as_me.lineno" ||
11726 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11727 { (exit 1); exit 1; }; }
11729 # Don't try to exec as it changes $[0], causing all sort of problems
11730 # (the dirname of $[0] is not the place where we might find the
11731 # original and so on. Autoconf is especially sensitive to this).
11732 . "./$as_me.lineno"
11733 # Exit status is that of the last command.
11738 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11744 ECHO_C= ECHO_N= ECHO_T=
11745 case `echo -n x` in
11747 case `echo 'x\c'` in
11748 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11754 if expr a : '\(a\)' >/dev/null 2>&1 &&
11755 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11761 rm -f conf$$ conf$$.exe conf$$.file
11762 if test -d conf$$.dir; then
11763 rm -f conf$$.dir/conf$$.file
11766 mkdir conf$$.dir 2>/dev/null
11768 if (echo >conf$$.file) 2>/dev/null; then
11769 if ln -s conf$$.file conf$$ 2>/dev/null; then
11771 # ... but there are two gotchas:
11772 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11773 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11774 # In both cases, we have to default to `cp -p'.
11775 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11777 elif ln conf$$.file conf$$ 2>/dev/null; then
11785 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11786 rmdir conf$$.dir 2>/dev/null
11788 if mkdir -p . 2>/dev/null; then
11791 test -d ./-p && rmdir ./-p
11795 if test -x / >/dev/null 2>&1; then
11796 as_test_x='test -x'
11798 if ls -dL / >/dev/null 2>&1; then
11805 if test -d "$1"; then
11811 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11812 ???[sx]*):;;*)false;;esac;fi
11816 as_executable_p=$as_test_x
11818 # Sed expression to map a string onto a valid CPP name.
11819 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11821 # Sed expression to map a string onto a valid variable name.
11822 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11827 # Save the log message, to keep $[0] and so on meaningful, and to
11828 # report actual input values of CONFIG_FILES etc. instead of their
11829 # values after options handling.
11831 This file was extended by $as_me, which was
11832 generated by GNU Autoconf 2.62. Invocation command line was
11834 CONFIG_FILES = $CONFIG_FILES
11835 CONFIG_HEADERS = $CONFIG_HEADERS
11836 CONFIG_LINKS = $CONFIG_LINKS
11837 CONFIG_COMMANDS = $CONFIG_COMMANDS
11840 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11846 # Files that config.status was made for.
11847 config_files="$ac_config_files"
11848 config_headers="$ac_config_headers"
11849 config_commands="$ac_config_commands"
11853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11855 \`$as_me' instantiates files from templates according to the
11856 current configuration.
11858 Usage: $0 [OPTIONS] [FILE]...
11860 -h, --help print this help, then exit
11861 -V, --version print version number and configuration settings, then exit
11862 -q, --quiet do not print progress messages
11863 -d, --debug don't remove temporary files
11864 --recheck update $as_me by reconfiguring in the same conditions
11865 --file=FILE[:TEMPLATE]
11866 instantiate the configuration file FILE
11867 --header=FILE[:TEMPLATE]
11868 instantiate the configuration header FILE
11870 Configuration files:
11873 Configuration headers:
11876 Configuration commands:
11879 Report bugs to <bug-autoconf@gnu.org>."
11882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11885 configured by $0, generated by GNU Autoconf 2.62,
11886 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11888 Copyright (C) 2008 Free Software Foundation, Inc.
11889 This config.status script is free software; the Free Software Foundation
11890 gives unlimited permission to copy, distribute and modify it."
11896 test -n "\$AWK" || AWK=awk
11899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11900 # The default lists apply if the user does not specify any file.
11906 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11907 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11918 # Handling of the options.
11919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11921 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11922 $as_echo "$ac_cs_version"; exit ;;
11923 --debug | --debu | --deb | --de | --d | -d )
11925 --file | --fil | --fi | --f )
11928 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11930 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11931 ac_need_defaults=false;;
11932 --header | --heade | --head | --hea )
11935 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11937 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11938 ac_need_defaults=false;;
11940 # Conflict between --help and --header
11941 { $as_echo "$as_me: error: ambiguous option: $1
11942 Try \`$0 --help' for more information." >&2
11943 { (exit 1); exit 1; }; };;
11944 --help | --hel | -h )
11945 $as_echo "$ac_cs_usage"; exit ;;
11946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11947 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11950 # This is an error.
11951 -*) { $as_echo "$as_me: error: unrecognized option: $1
11952 Try \`$0 --help' for more information." >&2
11953 { (exit 1); exit 1; }; } ;;
11955 *) ac_config_targets="$ac_config_targets $1"
11956 ac_need_defaults=false ;;
11962 ac_configure_extra_args=
11964 if $ac_cs_silent; then
11966 ac_configure_extra_args="$ac_configure_extra_args --silent"
11970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11971 if \$ac_cs_recheck; then
11972 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11974 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11975 CONFIG_SHELL='$SHELL'
11976 export CONFIG_SHELL
11981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11985 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11986 ## Running $as_me. ##
11992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11996 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12003 # Handling of arguments.
12004 for ac_config_target in $ac_config_targets
12006 case $ac_config_target in
12007 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12008 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12009 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12010 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12011 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12012 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12013 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12015 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12016 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12017 { (exit 1); exit 1; }; };;
12022 # If the user did not use the arguments to specify the items to instantiate,
12023 # then the envvar interface is used. Set only those that are not.
12024 # We use the long form for the default assignment because of an extremely
12025 # bizarre bug on SunOS 4.1.3.
12026 if $ac_need_defaults; then
12027 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12028 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12029 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12032 # Have a temporary directory for convenience. Make it in the build tree
12033 # simply because there is no reason against having it here, and in addition,
12034 # creating and moving files from /tmp can sometimes cause problems.
12035 # Hook for its removal unless debugging.
12036 # Note that there is a small window in which the directory will not be cleaned:
12037 # after its creation but before its name has been assigned to `$tmp'.
12041 trap 'exit_status=$?
12042 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12044 trap '{ (exit 1); exit 1; }' 1 2 13 15
12046 # Create a (secure) tmp directory for tmp files.
12049 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12050 test -n "$tmp" && test -d "$tmp"
12053 tmp=./conf$$-$RANDOM
12054 (umask 077 && mkdir "$tmp")
12057 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12058 { (exit 1); exit 1; }
12061 # Set up the scripts for CONFIG_FILES section.
12062 # No need to generate them if there are no CONFIG_FILES.
12063 # This happens for instance with `./config.status config.h'.
12064 if test -n "$CONFIG_FILES"; then
12069 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12070 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12073 ac_cs_awk_cr=$ac_cr
12076 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12081 echo "cat >conf$$subs.awk <<_ACEOF" &&
12082 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12084 } >conf$$subs.sh ||
12085 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12086 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12087 { (exit 1); exit 1; }; }
12088 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12090 for ac_last_try in false false false false false :; do
12091 . ./conf$$subs.sh ||
12092 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12093 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12094 { (exit 1); exit 1; }; }
12096 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
12098 elif $ac_last_try; then
12099 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12100 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12101 { (exit 1); exit 1; }; }
12103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12106 rm -f conf$$subs.sh
12108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12109 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12113 s/^/S["/; s/!.*/"]=/
12123 s/\(.\{148\}\).*/\1/
12125 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12130 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12137 s/\(.\{148\}\).*/\1/
12139 s/["\\]/\\&/g; s/^/"/; s/$/"/
12143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12148 ' <conf$$subs.awk | sed '
12153 ' >>$CONFIG_STATUS || ac_write_fail=1
12154 rm -f conf$$subs.awk
12155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12157 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12158 for (key in S) S_is_set[key] = 1
12164 nfields = split(line, field, "@")
12166 len = length(field[1])
12167 for (i = 2; i < nfields; i++) {
12169 keylen = length(key)
12170 if (S_is_set[key]) {
12172 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12173 len += length(value) + length(field[++i])
12184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12185 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12186 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12189 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12190 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12191 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
12192 { (exit 1); exit 1; }; }
12195 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12196 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12197 # trailing colons and then remove the whole line if VPATH becomes empty
12198 # (actually we leave an empty line to preserve line numbers).
12199 if test "x$srcdir" = x.; then
12200 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12201 s/:*\$(srcdir):*/:/
12202 s/:*\${srcdir}:*/:/
12204 s/^\([^=]*=[ ]*\):*/\1/
12210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12211 fi # test -n "$CONFIG_FILES"
12213 # Set up the scripts for CONFIG_HEADERS section.
12214 # No need to generate them if there are no CONFIG_HEADERS.
12215 # This happens for instance with `./config.status Makefile'.
12216 if test -n "$CONFIG_HEADERS"; then
12217 cat >"$tmp/defines.awk" <<\_ACAWK ||
12221 # Transform confdefs.h into an awk script `defines.awk', embedded as
12222 # here-document in config.status, that substitutes the proper values into
12223 # config.h.in to produce config.h.
12225 # Create a delimiter string that does not exist in confdefs.h, to ease
12226 # handling of long lines.
12228 for ac_last_try in false false :; do
12229 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12230 if test -z "$ac_t"; then
12232 elif $ac_last_try; then
12233 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12234 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12235 { (exit 1); exit 1; }; }
12237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12241 # For the awk script, D is an array of macro values keyed by name,
12242 # likewise P contains macro parameters if any. Preserve backslash
12243 # newline sequences.
12245 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12247 s/.\{148\}/&'"$ac_delim"'/g
12250 s/^[ ]*#[ ]*define[ ][ ]*/ /
12257 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12259 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12263 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12264 D["\1"]=" \3\\\\\\n"\\/p
12266 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12271 s/.\{148\}/&'"$ac_delim"'/g
12276 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12279 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12281 ' <confdefs.h | sed '
12282 s/'"$ac_delim"'/"\\\
12283 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12286 for (key in D) D_is_set[key] = 1
12289 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12291 split(line, arg, " ")
12292 if (arg[1] == "#") {
12296 defundef = substr(arg[1], 2)
12299 split(mac1, mac2, "(") #)
12301 if (D_is_set[macro]) {
12302 # Preserve the white space surrounding the "#".
12303 prefix = substr(line, 1, index(line, defundef) - 1)
12304 print prefix "define", macro P[macro] D[macro]
12307 # Replace #undef with comments. This is necessary, for example,
12308 # in the case of _POSIX_SOURCE, which is predefined and required
12309 # on some systems where configure will not decide to define it.
12310 if (defundef == "undef") {
12311 print "/*", line, "*/"
12319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12320 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12321 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12322 { (exit 1); exit 1; }; }
12323 fi # test -n "$CONFIG_HEADERS"
12326 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12331 :[FHLC]) ac_mode=$ac_tag; continue;;
12333 case $ac_mode$ac_tag in
12335 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12336 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12337 { (exit 1); exit 1; }; };;
12338 :[FH]-) ac_tag=-:-;;
12339 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12356 -) ac_f="$tmp/stdin";;
12357 *) # Look for the file first in the build tree, then in the source tree
12358 # (if the path is not absolute). The absolute path cannot be DOS-style,
12359 # because $ac_f cannot contain `:'.
12363 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12365 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12366 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12367 { (exit 1); exit 1; }; };;
12369 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12370 ac_file_inputs="$ac_file_inputs '$ac_f'"
12373 # Let's still pretend it is `configure' which instantiates (i.e., don't
12374 # use $as_me), people would be surprised to read:
12375 # /* config.h. Generated by config.status. */
12376 configure_input='Generated from '`
12377 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12379 if test x"$ac_file" != x-; then
12380 configure_input="$ac_file. $configure_input"
12381 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12382 $as_echo "$as_me: creating $ac_file" >&6;}
12384 # Neutralize special characters interpreted by sed in replacement strings.
12385 case $configure_input in #(
12386 *\&* | *\|* | *\\* )
12387 ac_sed_conf_input=`$as_echo "$configure_input" |
12388 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12389 *) ac_sed_conf_input=$configure_input;;
12393 *:-:* | *:-) cat >"$tmp/stdin" \
12394 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12395 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12396 { (exit 1); exit 1; }; } ;;
12401 ac_dir=`$as_dirname -- "$ac_file" ||
12402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12403 X"$ac_file" : 'X\(//\)[^/]' \| \
12404 X"$ac_file" : 'X\(//\)$' \| \
12405 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12406 $as_echo X"$ac_file" |
12407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12411 /^X\(\/\/\)[^/].*/{
12426 -*) as_dir=./$as_dir;;
12428 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12432 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12433 *) as_qdir=$as_dir;;
12435 as_dirs="'$as_qdir' $as_dirs"
12436 as_dir=`$as_dirname -- "$as_dir" ||
12437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12438 X"$as_dir" : 'X\(//\)[^/]' \| \
12439 X"$as_dir" : 'X\(//\)$' \| \
12440 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12441 $as_echo X"$as_dir" |
12442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12446 /^X\(\/\/\)[^/].*/{
12459 test -d "$as_dir" && break
12461 test -z "$as_dirs" || eval "mkdir $as_dirs"
12462 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12463 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12464 { (exit 1); exit 1; }; }; }
12468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12471 # A ".." for each directory in $ac_dir_suffix.
12472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12473 case $ac_top_builddir_sub in
12474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12478 ac_abs_top_builddir=$ac_pwd
12479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12480 # for backward compatibility:
12481 ac_top_builddir=$ac_top_build_prefix
12484 .) # We are building in place.
12486 ac_top_srcdir=$ac_top_builddir_sub
12487 ac_abs_top_srcdir=$ac_pwd ;;
12488 [\\/]* | ?:[\\/]* ) # Absolute name.
12489 ac_srcdir=$srcdir$ac_dir_suffix;
12490 ac_top_srcdir=$srcdir
12491 ac_abs_top_srcdir=$srcdir ;;
12492 *) # Relative name.
12493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12494 ac_top_srcdir=$ac_top_build_prefix$srcdir
12495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12507 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12508 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12513 # If the template does not know about datarootdir, expand it.
12514 # FIXME: This hack should be removed a few years after 2.60.
12515 ac_datarootdir_hack=; ac_datarootdir_seen=
12528 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12529 *datarootdir*) ac_datarootdir_seen=yes;;
12530 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12531 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12532 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12535 ac_datarootdir_hack='
12536 s&@datadir@&$datadir&g
12537 s&@docdir@&$docdir&g
12538 s&@infodir@&$infodir&g
12539 s&@localedir@&$localedir&g
12540 s&@mandir@&$mandir&g
12541 s&\\\${datarootdir}&$datarootdir&g' ;;
12545 # Neutralize VPATH when `$srcdir' = `.'.
12546 # Shell code in configure.ac might set extrasub.
12547 # FIXME: do we really want to maintain this feature?
12548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12549 ac_sed_extra="$ac_vpsub
12552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12554 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12555 s|@configure_input@|$ac_sed_conf_input|;t t
12556 s&@top_builddir@&$ac_top_builddir_sub&;t t
12557 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12558 s&@srcdir@&$ac_srcdir&;t t
12559 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12560 s&@top_srcdir@&$ac_top_srcdir&;t t
12561 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12562 s&@builddir@&$ac_builddir&;t t
12563 s&@abs_builddir@&$ac_abs_builddir&;t t
12564 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12565 s&@INSTALL@&$ac_INSTALL&;t t
12566 $ac_datarootdir_hack
12568 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12569 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12570 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12571 { (exit 1); exit 1; }; }
12573 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12574 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12575 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12576 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12577 which seems to be undefined. Please make sure it is defined." >&5
12578 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12579 which seems to be undefined. Please make sure it is defined." >&2;}
12583 -) cat "$tmp/out" && rm -f "$tmp/out";;
12584 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12586 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12587 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12588 { (exit 1); exit 1; }; }
12594 if test x"$ac_file" != x-; then
12596 $as_echo "/* $configure_input */" \
12597 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12598 } >"$tmp/config.h" \
12599 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12600 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12601 { (exit 1); exit 1; }; }
12602 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12603 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12604 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12607 mv "$tmp/config.h" "$ac_file" \
12608 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12609 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12610 { (exit 1); exit 1; }; }
12613 $as_echo "/* $configure_input */" \
12614 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12615 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12616 $as_echo "$as_me: error: could not create -" >&2;}
12617 { (exit 1); exit 1; }; }
12619 # Compute "$ac_file"'s index in $config_headers.
12621 for _am_header in $config_headers :; do
12622 case $_am_header in
12623 "$ac_file" | "$ac_file":* )
12626 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12629 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
12630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12631 X"$ac_file" : 'X\(//\)[^/]' \| \
12632 X"$ac_file" : 'X\(//\)$' \| \
12633 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12634 $as_echo X"$ac_file" |
12635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12639 /^X\(\/\/\)[^/].*/{
12651 s/.*/./; q'`/stamp-h$_am_stamp_count
12654 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12655 $as_echo "$as_me: executing $ac_file commands" >&6;}
12660 case $ac_file$ac_mode in
12661 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12662 # Strip MF so we end up with the name of the file.
12663 mf=`echo "$mf" | sed -e 's/:.*$//'`
12664 # Check whether this is an Automake generated Makefile or not.
12665 # We used to match only the files named `Makefile.in', but
12666 # some people rename them; so instead we look at the file content.
12667 # Grep'ing the first line is not enough: some people post-process
12668 # each Makefile.in and add a new line on top of each file to say so.
12669 # So let's grep whole file.
12670 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12671 dirpart=`$as_dirname -- "$mf" ||
12672 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12673 X"$mf" : 'X\(//\)[^/]' \| \
12674 X"$mf" : 'X\(//\)$' \| \
12675 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12681 /^X\(\/\/\)[^/].*/{
12697 # Extract the definition of DEPDIR, am__include, and am__quote
12698 # from the Makefile without running `make'.
12699 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12700 test -z "$DEPDIR" && continue
12701 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12702 test -z "am__include" && continue
12703 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12704 # When using ansi2knr, U may be empty or an underscore; expand it
12705 U=`sed -n 's/^U = //p' < "$mf"`
12706 # Find all dependency output files, they are included files with
12707 # $(DEPDIR) in their names. We invoke sed twice because it is the
12708 # simplest approach to changing $(DEPDIR) to its actual value in the
12710 for file in `sed -n "
12711 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12712 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12713 # Make sure the directory exists.
12714 test -f "$dirpart/$file" && continue
12715 fdir=`$as_dirname -- "$file" ||
12716 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12717 X"$file" : 'X\(//\)[^/]' \| \
12718 X"$file" : 'X\(//\)$' \| \
12719 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12720 $as_echo X"$file" |
12721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12725 /^X\(\/\/\)[^/].*/{
12738 { as_dir=$dirpart/$fdir
12740 -*) as_dir=./$as_dir;;
12742 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12746 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12747 *) as_qdir=$as_dir;;
12749 as_dirs="'$as_qdir' $as_dirs"
12750 as_dir=`$as_dirname -- "$as_dir" ||
12751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12752 X"$as_dir" : 'X\(//\)[^/]' \| \
12753 X"$as_dir" : 'X\(//\)$' \| \
12754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12755 $as_echo X"$as_dir" |
12756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12760 /^X\(\/\/\)[^/].*/{
12773 test -d "$as_dir" && break
12775 test -z "$as_dirs" || eval "mkdir $as_dirs"
12776 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12777 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12778 { (exit 1); exit 1; }; }; }
12779 # echo "creating $dirpart/$file"
12780 echo '# dummy' > "$dirpart/$file"
12784 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
12785 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
12792 { (exit 0); exit 0; }
12794 chmod +x $CONFIG_STATUS
12795 ac_clean_files=$ac_clean_files_save
12797 test $ac_write_fail = 0 ||
12798 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
12799 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
12800 { (exit 1); exit 1; }; }
12803 # configure is writing to config.log, and then calls config.status.
12804 # config.status does its own redirection, appending to config.log.
12805 # Unfortunately, on DOS this fails, as config.log is still kept open
12806 # by configure, so config.status won't be able to write to it; its
12807 # output is simply discarded. So we exec the FD to /dev/null,
12808 # effectively closing config.log, so it can be properly (re)opened and
12809 # appended to by config.status. When coming back to configure, we
12810 # need to make the FD available again.
12811 if test "$no_create" != yes; then
12813 ac_config_status_args=
12814 test "$silent" = yes &&
12815 ac_config_status_args="$ac_config_status_args --quiet"
12817 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12819 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12820 # would make configure fail if this is the last instruction.
12821 $ac_cs_success || { (exit 1); exit 1; }
12823 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12824 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
12825 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
12831 echo "Configuration complete"
12834 if test "x$HAVE_GTK" = x; then
12835 if test "x$HAVE_COCOA" = x; then
12836 echo " User interface: none"
12838 echo " User interface: Cocoa"
12841 echo " User interface: GTK"
12844 if test "x$SH4_TRANSLATOR" = "x"; then
12845 echo " SH4 translator: None (emulation core only)"
12847 echo " SH4 translator: $SH4_TRANSLATOR"
12850 if test "x$VIDEO_DRIVERS" = "x"; then
12851 echo " Video drivers: none (no supported GL found)"
12853 echo " Video drivers: $VIDEO_DRIVERS"
12856 if test "x$AUDIO_DRIVERS" = "x"; then
12857 echo " Audio drivers: none (no supported output devices found)"
12859 echo " Audio drivers: $AUDIO_DRIVERS"
12862 if test "x$CDROM_DRIVER" = "x"; then
12863 echo " CD-ROM driver: none (no supported cd-rom devices found)"
12865 echo " CD-ROM driver: $CDROM_DRIVER"
.