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
798 enable_option_checking
799 enable_maintainer_mode
800 enable_dependency_tracking
807 ac_precious_vars='build_alias
833 # Initialize some variables set by options.
835 ac_init_version=false
836 ac_unrecognized_opts=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
847 program_transform_name=s,x,x,
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE}'
872 infodir='${datarootdir}/info'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
893 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 # Accept the important Cygnus configure options, so we can diagnose typos.
899 case $ac_dashdash$ac_option in
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
921 cache_file=config.cache ;;
923 -datadir | --datadir | --datadi | --datad)
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
935 -disable-* | --disable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
940 { (exit 1); exit 1; }; }
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
950 eval enable_$ac_useropt=no ;;
952 -docdir | --docdir | --docdi | --doc | --do)
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
967 { (exit 1); exit 1; }; }
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
977 eval enable_$ac_useropt=\$ac_optarg ;;
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
992 -help | --help | --hel | --he | -h)
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 htmldir=$ac_optarg ;;
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1022 -libdir | --libdir | --libdi | --libd)
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1113 -psdir | --psdir | --psdi | --psd | --ps)
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 sbindir=$ac_optarg ;;
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 sharedstatedir=$ac_optarg ;;
1139 -site | --site | --sit)
1141 -site=* | --site=* | --sit=*)
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1172 { (exit 1); exit 1; }; }
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1182 eval with_$ac_useropt=\$ac_optarg ;;
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1189 { (exit 1); exit 1; }; }
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1199 eval with_$ac_useropt=no ;;
1202 # Obsolete; use --with-x.
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1220 Try \`$0 --help' for more information." >&2
1221 { (exit 1); exit 1; }; }
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1228 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1229 { (exit 1); exit 1; }; }
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1247 { (exit 1); exit 1; }; }
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1253 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1254 { (exit 1); exit 1; }; } ;;
1255 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1272 # Be sure to have absolute directory names.
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278 { (exit 1); exit 1; }; }
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1309 { (exit 1); exit 1; }; }
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1312 { (exit 1); exit 1; }; }
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324 $as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1347 ac_srcdir_defaulted=no
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352 { (exit 1); exit 1; }; }
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1357 { (exit 1); exit 1; }; }
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1383 \`configure' configures this package to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 if test -n "$ac_init_help"; then
1456 --disable-option-checking ignore unrecognized --enable/--with options
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --enable-maintainer-mode enable make rules and dependencies not useful
1460 (and sometimes confusing) to the casual installer
1461 --disable-dependency-tracking speeds up one-time build
1462 --enable-dependency-tracking do not reject slow dependency extractors
1463 --enable-trace Enable generation of IO traces (warning: hurts
1465 --enable-watch Enable watchpoints in the debugger (warning: hurts
1467 --enable-sh4stats Enable statistics on executed sh4 instructions
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-osmesa Build with the osmesa GL library (software
1474 --with-gtk Build with the GTK UI. Default on X11 systems
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 LIBS libraries to pass to the linker, e.g. -l<library>
1482 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1484 CCAS assembler compiler command (defaults to CC)
1485 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1487 PKG_CONFIG path to pkg-config utility
1489 C compiler flags for LIBPNG, overriding pkg-config
1490 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1491 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1492 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1493 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1494 GTK_LIBS linker flags for GTK, overriding pkg-config
1496 C compiler flags for PULSE, overriding pkg-config
1497 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1499 C compiler flags for ESOUND, overriding pkg-config
1500 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1501 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1502 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1536 .) # We are building in place.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1560 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1570 generated by GNU Autoconf 2.62
1572 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1573 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1579 cat >config.log <<_ACEOF
1580 This file contains any messages produced by compilers while
1581 running configure, to aid debugging if configure makes a mistake.
1583 It was created by $as_me, which was
1584 generated by GNU Autoconf 2.62. Invocation command line was
1596 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1606 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1607 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1608 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1609 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1610 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1611 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 test -z "$as_dir" && as_dir=.
1620 $as_echo "PATH: $as_dir"
1636 # Keep a trace of the command line.
1637 # Strip out --no-create and --no-recursion so they do not pile up.
1638 # Strip out --silent because we don't want to record it for future runs.
1639 # Also quote any args containing shell meta-characters.
1640 # Make two passes to allow for proper duplicate-argument suppression.
1644 ac_must_keep_next=false
1650 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652 | -silent | --silent | --silen | --sile | --sil)
1655 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1658 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1661 if test $ac_must_keep_next = true; then
1662 ac_must_keep_next=false # Got value, back to normal.
1665 *=* | --config-cache | -C | -disable-* | --disable-* \
1666 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668 | -with-* | --with-* | -without-* | --without-* | --x)
1669 case "$ac_configure_args0 " in
1670 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1673 -* ) ac_must_keep_next=true ;;
1676 ac_configure_args="$ac_configure_args '$ac_arg'"
1681 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1682 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684 # When interrupted or exit'd, cleanup temporary files, and complete
1685 # config.log. We remove comments because anyway the quotes in there
1686 # would cause problems or look ugly.
1687 # WARNING: Use '\'' to represent an apostrophe within the trap.
1688 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1689 trap 'exit_status=$?
1690 # Save into config.log some information that might help in debugging.
1695 ## ---------------- ##
1696 ## Cache variables. ##
1697 ## ---------------- ##
1700 # The following way of writing the cache mishandles newlines in values,
1702 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1703 eval ac_val=\$$ac_var
1707 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1708 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1711 _ | IFS | as_nl) ;; #(
1712 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1713 *) $as_unset $ac_var ;;
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1738 for ac_var in $ac_subst_vars
1740 eval ac_val=\$$ac_var
1742 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 $as_echo "$ac_var='\''$ac_val'\''"
1748 if test -n "$ac_subst_files"; then
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1755 for ac_var in $ac_subst_files
1757 eval ac_val=\$$ac_var
1759 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 $as_echo "$ac_var='\''$ac_val'\''"
1766 if test -s confdefs.h; then
1776 test "$ac_signal" != 0 &&
1777 $as_echo "$as_me: caught signal $ac_signal"
1778 $as_echo "$as_me: exit $exit_status"
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1784 for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1792 # Predefined preprocessor variables.
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer an explicitly selected file to automatically selected ones.
1823 if test -n "$CONFIG_SITE"; then
1824 ac_site_file1=$CONFIG_SITE
1825 elif test "x$prefix" != xNONE; then
1826 ac_site_file1=$prefix/share/config.site
1827 ac_site_file2=$prefix/etc/config.site
1829 ac_site_file1=$ac_default_prefix/share/config.site
1830 ac_site_file2=$ac_default_prefix/etc/config.site
1832 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1834 test "x$ac_site_file" = xNONE && continue
1835 if test -r "$ac_site_file"; then
1836 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1837 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1838 sed 's/^/| /' "$ac_site_file" >&5
1843 if test -r "$cache_file"; then
1844 # Some versions of bash will fail to source /dev/null (special
1845 # files actually), so we avoid doing that.
1846 if test -f "$cache_file"; then
1847 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1848 $as_echo "$as_me: loading cache $cache_file" >&6;}
1850 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1851 *) . "./$cache_file";;
1855 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1856 $as_echo "$as_me: creating cache $cache_file" >&6;}
1860 # Check that the precious variables saved in the cache have kept the same
1862 ac_cache_corrupted=false
1863 for ac_var in $ac_precious_vars; do
1864 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1865 eval ac_new_set=\$ac_env_${ac_var}_set
1866 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1867 eval ac_new_val=\$ac_env_${ac_var}_value
1868 case $ac_old_set,$ac_new_set in
1870 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1871 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1874 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1875 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1876 ac_cache_corrupted=: ;;
1879 if test "x$ac_old_val" != "x$ac_new_val"; then
1880 # differences in whitespace do not lead to failure.
1881 ac_old_val_w=`echo x $ac_old_val`
1882 ac_new_val_w=`echo x $ac_new_val`
1883 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1884 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1885 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1886 ac_cache_corrupted=:
1888 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1889 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1890 eval $ac_var=\$ac_old_val
1892 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1893 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1894 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1895 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1898 # Pass precious variables to config.status.
1899 if test "$ac_new_set" = set; then
1901 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 *) ac_arg=$ac_var=$ac_new_val ;;
1904 case " $ac_configure_args " in
1905 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1906 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1910 if $ac_cache_corrupted; then
1911 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1912 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1913 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1914 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1915 { (exit 1); exit 1; }; }
1935 ac_cpp='$CPP $CPPFLAGS'
1936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1941 am__api_version="1.9"
1943 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1944 if test -f "$ac_dir/install-sh"; then
1946 ac_install_sh="$ac_aux_dir/install-sh -c"
1948 elif test -f "$ac_dir/install.sh"; then
1950 ac_install_sh="$ac_aux_dir/install.sh -c"
1952 elif test -f "$ac_dir/shtool"; then
1954 ac_install_sh="$ac_aux_dir/shtool install -c"
1958 if test -z "$ac_aux_dir"; then
1959 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1960 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1961 { (exit 1); exit 1; }; }
1964 # These three variables are undocumented and unsupported,
1965 # and are intended to be withdrawn in a future Autoconf release.
1966 # They can cause serious problems if a builder's source tree is in a directory
1967 # whose full name contains unusual characters.
1968 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1969 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1970 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1973 # Find a good install program. We prefer a C program (faster),
1974 # so one script is as good as another. But avoid the broken or
1975 # incompatible versions:
1976 # SysV /etc/install, /usr/sbin/install
1977 # SunOS /usr/etc/install
1978 # IRIX /sbin/install
1980 # AmigaOS /C/install, which installs bootblocks on floppy discs
1981 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1982 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1984 # OS/2's system install, which has a completely different semantic
1985 # ./install, which can be erroneously created by make from ./install.sh.
1986 # Reject install programs that cannot install multiple files.
1987 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1988 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1989 if test -z "$INSTALL"; then
1990 if test "${ac_cv_path_install+set}" = set; then
1991 $as_echo_n "(cached) " >&6
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir=.
1998 # Account for people who put trailing slashes in PATH elements.
2000 ./ | .// | /cC/* | \
2001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2005 # OSF1 and SCO ODT 3.0 have their own names for install.
2006 # Don't use installbsd from OSF since it installs stuff as root
2008 for ac_prog in ginstall scoinst install; do
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2011 if test $ac_prog = install &&
2012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013 # AIX install. It has an incompatible calling convention.
2015 elif test $ac_prog = install &&
2016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017 # program-specific install script used by HP pwplus--don't use.
2020 rm -rf conftest.one conftest.two conftest.dir
2021 echo one > conftest.one
2022 echo two > conftest.two
2024 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2025 test -s conftest.one && test -s conftest.two &&
2026 test -s conftest.dir/conftest.one &&
2027 test -s conftest.dir/conftest.two
2029 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2042 rm -rf conftest.one conftest.two conftest.dir
2045 if test "${ac_cv_path_install+set}" = set; then
2046 INSTALL=$ac_cv_path_install
2048 # As a last resort, use the slow shell script. Don't cache a
2049 # value for INSTALL within a source directory, because that will
2050 # break other packages using the cache if that directory is
2051 # removed, or if the value is a relative name.
2052 INSTALL=$ac_install_sh
2055 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2056 $as_echo "$INSTALL" >&6; }
2058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2059 # It thinks the first close brace ends the variable substitution.
2060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2062 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2064 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2066 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2067 $as_echo_n "checking whether build environment is sane... " >&6; }
2070 echo timestamp > conftest.file
2071 # Do `set' in a subshell so we don't clobber the current shell's
2072 # arguments. Must try -L first in case configure is actually a
2073 # symlink; some systems play weird games with the mod time of symlinks
2074 # (eg FreeBSD returns the mod time of the symlink's containing
2077 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2078 if test "$*" = "X"; then
2080 set X `ls -t $srcdir/configure conftest.file`
2083 if test "$*" != "X $srcdir/configure conftest.file" \
2084 && test "$*" != "X conftest.file $srcdir/configure"; then
2086 # If neither matched, then we have a broken ls. This can happen
2087 # if, for instance, CONFIG_SHELL is bash and it inherits a
2088 # broken ls alias from the environment. This has actually
2089 # happened. Such a system could not be considered "sane".
2090 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2091 alias in your environment" >&5
2092 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2093 alias in your environment" >&2;}
2094 { (exit 1); exit 1; }; }
2097 test "$2" = conftest.file
2103 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2104 Check your system clock" >&5
2105 $as_echo "$as_me: error: newly created file is older than distributed files!
2106 Check your system clock" >&2;}
2107 { (exit 1); exit 1; }; }
2109 { $as_echo "$as_me:$LINENO: result: yes" >&5
2110 $as_echo "yes" >&6; }
2111 test "$program_prefix" != NONE &&
2112 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2113 # Use a double $ so make ignores it.
2114 test "$program_suffix" != NONE &&
2115 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2116 # Double any \ or $.
2117 # By default was `s,x,x', remove it if useless.
2118 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2119 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2121 # expand $ac_aux_dir to an absolute path
2122 am_aux_dir=`cd $ac_aux_dir && pwd`
2124 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2125 # Use eval to expand $SHELL
2126 if eval "$MISSING --run true"; then
2127 am_missing_run="$MISSING --run "
2130 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2131 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2134 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2135 # We used to keeping the `.' as first argument, in order to
2136 # allow $(mkdir_p) to be used without argument. As in
2137 # $(mkdir_p) $(somedir)
2138 # where $(somedir) is conditionally defined. However this is wrong
2140 # 1. if the package is installed by a user who cannot write `.'
2141 # make install will fail,
2142 # 2. the above comment should most certainly read
2143 # $(mkdir_p) $(DESTDIR)$(somedir)
2144 # so it does not work when $(somedir) is undefined and
2145 # $(DESTDIR) is not.
2146 # To support the latter case, we have to write
2147 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2148 # so the `.' trick is pointless.
2149 mkdir_p='mkdir -p --'
2151 # On NextStep and OpenStep, the `mkdir' command does not
2152 # recognize any option. It will interpret all options as
2153 # directories to create, and then abort because `.' already
2155 for d in ./-p ./--version;
2157 test -d $d && rmdir $d
2159 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2160 if test -f "$ac_aux_dir/mkinstalldirs"; then
2161 mkdir_p='$(mkinstalldirs)'
2163 mkdir_p='$(install_sh) -d'
2167 for ac_prog in gawk mawk nawk awk
2169 # Extract the first word of "$ac_prog", so it can be a program name with args.
2170 set dummy $ac_prog; ac_word=$2
2171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 $as_echo_n "checking for $ac_word... " >&6; }
2173 if test "${ac_cv_prog_AWK+set}" = set; then
2174 $as_echo_n "(cached) " >&6
2176 if test -n "$AWK"; then
2177 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2186 ac_cv_prog_AWK="$ac_prog"
2187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 if test -n "$AWK"; then
2198 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2199 $as_echo "$AWK" >&6; }
2201 { $as_echo "$as_me:$LINENO: result: no" >&5
2202 $as_echo "no" >&6; }
2206 test -n "$AWK" && break
2209 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2210 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2212 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2213 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2214 $as_echo_n "(cached) " >&6
2216 cat >conftest.make <<\_ACEOF
2219 @echo '@@@%%%=$(MAKE)=@@@%%%'
2221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2224 eval ac_cv_prog_make_${ac_make}_set=yes;;
2226 eval ac_cv_prog_make_${ac_make}_set=no;;
2230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2231 { $as_echo "$as_me:$LINENO: result: yes" >&5
2232 $as_echo "yes" >&6; }
2235 { $as_echo "$as_me:$LINENO: result: no" >&5
2236 $as_echo "no" >&6; }
2237 SET_MAKE="MAKE=${MAKE-make}"
2240 rm -rf .tst 2>/dev/null
2241 mkdir .tst 2>/dev/null
2242 if test -d .tst; then
2247 rmdir .tst 2>/dev/null
2249 # test to see if srcdir already configured
2250 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2251 test -f $srcdir/config.status; then
2252 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2253 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2254 { (exit 1); exit 1; }; }
2257 # test whether we have cygpath
2258 if test -z "$CYGPATH_W"; then
2259 if (cygpath --version) >/dev/null 2>/dev/null; then
2260 CYGPATH_W='cygpath -w'
2267 # Define the identity of the package.
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE "$PACKAGE"
2277 cat >>confdefs.h <<_ACEOF
2278 #define VERSION "$VERSION"
2281 # Some tools Automake needs.
2283 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2286 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2289 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2292 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2295 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2297 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2299 # Installed binaries are usually stripped using `strip' when the user
2300 # run `make install-strip'. However `strip' might not be the right
2301 # tool to use in cross-compilation environments, therefore Automake
2302 # will honor the `STRIP' environment variable to overrule this program.
2303 if test "$cross_compiling" != no; then
2304 if test -n "$ac_tool_prefix"; then
2305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2306 set dummy ${ac_tool_prefix}strip; ac_word=$2
2307 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 $as_echo_n "checking for $ac_word... " >&6; }
2309 if test "${ac_cv_prog_STRIP+set}" = set; then
2310 $as_echo_n "(cached) " >&6
2312 if test -n "$STRIP"; then
2313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2323 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 STRIP=$ac_cv_prog_STRIP
2333 if test -n "$STRIP"; then
2334 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2335 $as_echo "$STRIP" >&6; }
2337 { $as_echo "$as_me:$LINENO: result: no" >&5
2338 $as_echo "no" >&6; }
2343 if test -z "$ac_cv_prog_STRIP"; then
2345 # Extract the first word of "strip", so it can be a program name with args.
2346 set dummy strip; ac_word=$2
2347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 $as_echo_n "checking for $ac_word... " >&6; }
2349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2350 $as_echo_n "(cached) " >&6
2352 if test -n "$ac_ct_STRIP"; then
2353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_ac_ct_STRIP="strip"
2363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2373 if test -n "$ac_ct_STRIP"; then
2374 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2375 $as_echo "$ac_ct_STRIP" >&6; }
2377 { $as_echo "$as_me:$LINENO: result: no" >&5
2378 $as_echo "no" >&6; }
2381 if test "x$ac_ct_STRIP" = x; then
2384 case $cross_compiling:$ac_tool_warned in
2386 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2387 whose name does not start with the host triplet. If you think this
2388 configuration is useful to you, please write to autoconf@gnu.org." >&5
2389 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet. If you think this
2391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2392 ac_tool_warned=yes ;;
2397 STRIP="$ac_cv_prog_STRIP"
2401 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2403 # We need awk for the "check" target. The system "awk" is bad on
2405 # Always define AMTAR for backward compatibility.
2407 AMTAR=${AMTAR-"${am_missing_run}tar"}
2409 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2415 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2416 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2417 # Check whether --enable-maintainer-mode was given.
2418 if test "${enable_maintainer_mode+set}" = set; then
2419 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2421 USE_MAINTAINER_MODE=no
2424 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2425 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2428 if test $USE_MAINTAINER_MODE = yes; then
2429 MAINTAINER_MODE_TRUE=
2430 MAINTAINER_MODE_FALSE='#'
2432 MAINTAINER_MODE_TRUE='#'
2433 MAINTAINER_MODE_FALSE=
2436 MAINT=$MAINTAINER_MODE_TRUE
2439 ac_config_headers="$ac_config_headers config.h"
2442 DEPDIR="${am__leading_dot}deps"
2444 ac_config_commands="$ac_config_commands depfiles"
2447 am_make=${MAKE-make}
2448 cat > confinc << 'END'
2453 # If we don't find an include directive, just comment out the code.
2454 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2455 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2459 # First try GNU make style include.
2460 echo "include confinc" > confmf
2461 # We grep out `Entering directory' and `Leaving directory'
2462 # messages which can occur if `w' ends up in MAKEFLAGS.
2463 # In particular we don't look at `^make:' because GNU make might
2464 # be invoked under some other name (usually "gmake"), in which
2465 # case it prints its new name instead of `make'.
2466 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2471 # Now try BSD make style include.
2472 if test "$am__include" = "#"; then
2473 echo '.include "confinc"' > confmf
2474 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2475 am__include=.include
2482 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2483 $as_echo "$_am_result" >&6; }
2484 rm -f confinc confmf
2486 # Check whether --enable-dependency-tracking was given.
2487 if test "${enable_dependency_tracking+set}" = set; then
2488 enableval=$enable_dependency_tracking;
2491 if test "x$enable_dependency_tracking" != xno; then
2492 am_depcomp="$ac_aux_dir/depcomp"
2497 if test "x$enable_dependency_tracking" != xno; then
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2514 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if test "${ac_cv_prog_CC+set}" = set; then
2518 $as_echo_n "(cached) " >&6
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 if test -n "$CC"; then
2542 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2543 $as_echo "$CC" >&6; }
2545 { $as_echo "$as_me:$LINENO: result: no" >&5
2546 $as_echo "no" >&6; }
2551 if test -z "$ac_cv_prog_CC"; then
2553 # Extract the first word of "gcc", so it can be a program name with args.
2554 set dummy gcc; ac_word=$2
2555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2558 $as_echo_n "(cached) " >&6
2560 if test -n "$ac_ct_CC"; then
2561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 ac_cv_prog_ac_ct_CC="gcc"
2571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2581 if test -n "$ac_ct_CC"; then
2582 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2583 $as_echo "$ac_ct_CC" >&6; }
2585 { $as_echo "$as_me:$LINENO: result: no" >&5
2586 $as_echo "no" >&6; }
2589 if test "x$ac_ct_CC" = x; then
2592 case $cross_compiling:$ac_tool_warned in
2594 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2595 whose name does not start with the host triplet. If you think this
2596 configuration is useful to you, please write to autoconf@gnu.org." >&5
2597 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2598 whose name does not start with the host triplet. If you think this
2599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2600 ac_tool_warned=yes ;;
2608 if test -z "$CC"; then
2609 if test -n "$ac_tool_prefix"; then
2610 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2611 set dummy ${ac_tool_prefix}cc; ac_word=$2
2612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if test "${ac_cv_prog_CC+set}" = set; then
2615 $as_echo_n "(cached) " >&6
2617 if test -n "$CC"; then
2618 ac_cv_prog_CC="$CC" # Let the user override the test.
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_CC="${ac_tool_prefix}cc"
2628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 if test -n "$CC"; then
2639 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2640 $as_echo "$CC" >&6; }
2642 { $as_echo "$as_me:$LINENO: result: no" >&5
2643 $as_echo "no" >&6; }
2649 if test -z "$CC"; then
2650 # Extract the first word of "cc", so it can be a program name with args.
2651 set dummy cc; ac_word=$2
2652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_prog_CC+set}" = set; then
2655 $as_echo_n "(cached) " >&6
2657 if test -n "$CC"; then
2658 ac_cv_prog_CC="$CC" # Let the user override the test.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2669 ac_prog_rejected=yes
2673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 if test $ac_prog_rejected = yes; then
2681 # We found a bogon in the path, so make sure we never use it.
2682 set dummy $ac_cv_prog_CC
2684 if test $# != 0; then
2685 # We chose a different compiler from the bogus one.
2686 # However, it has the same basename, so the bogon will be chosen
2687 # first if we set CC to just the basename; use the full file name.
2689 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2695 if test -n "$CC"; then
2696 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2697 $as_echo "$CC" >&6; }
2699 { $as_echo "$as_me:$LINENO: result: no" >&5
2700 $as_echo "no" >&6; }
2705 if test -z "$CC"; then
2706 if test -n "$ac_tool_prefix"; then
2707 for ac_prog in cl.exe
2709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2711 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if test "${ac_cv_prog_CC+set}" = set; then
2714 $as_echo_n "(cached) " >&6
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC="$CC" # Let the user override the test.
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 if test -n "$CC"; then
2738 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2739 $as_echo "$CC" >&6; }
2741 { $as_echo "$as_me:$LINENO: result: no" >&5
2742 $as_echo "no" >&6; }
2746 test -n "$CC" && break
2749 if test -z "$CC"; then
2751 for ac_prog in cl.exe
2753 # Extract the first word of "$ac_prog", so it can be a program name with args.
2754 set dummy $ac_prog; ac_word=$2
2755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2758 $as_echo_n "(cached) " >&6
2760 if test -n "$ac_ct_CC"; then
2761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_ac_ct_CC="$ac_prog"
2771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2781 if test -n "$ac_ct_CC"; then
2782 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2783 $as_echo "$ac_ct_CC" >&6; }
2785 { $as_echo "$as_me:$LINENO: result: no" >&5
2786 $as_echo "no" >&6; }
2790 test -n "$ac_ct_CC" && break
2793 if test "x$ac_ct_CC" = x; then
2796 case $cross_compiling:$ac_tool_warned in
2798 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2799 whose name does not start with the host triplet. If you think this
2800 configuration is useful to you, please write to autoconf@gnu.org." >&5
2801 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2802 whose name does not start with the host triplet. If you think this
2803 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2804 ac_tool_warned=yes ;;
2813 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2814 See \`config.log' for more details." >&5
2815 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2816 See \`config.log' for more details." >&2;}
2817 { (exit 1); exit 1; }; }
2819 # Provide some information about the compiler.
2820 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2823 { (ac_try="$ac_compiler --version >&5"
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2829 $as_echo "$ac_try_echo") >&5
2830 (eval "$ac_compiler --version >&5") 2>&5
2832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }
2834 { (ac_try="$ac_compiler -v >&5"
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2840 $as_echo "$ac_try_echo") >&5
2841 (eval "$ac_compiler -v >&5") 2>&5
2843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }
2845 { (ac_try="$ac_compiler -V >&5"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2851 $as_echo "$ac_try_echo") >&5
2852 (eval "$ac_compiler -V >&5") 2>&5
2854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }
2857 cat >conftest.$ac_ext <<_ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2872 ac_clean_files_save=$ac_clean_files
2873 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2874 # Try to create an executable without -o first, disregard a.out.
2875 # It will help us diagnose broken compilers, and finding out an intuition
2877 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2878 $as_echo_n "checking for C compiler default output file name... " >&6; }
2879 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2881 # The possible output files:
2882 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2885 for ac_file in $ac_files
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2889 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2894 if { (ac_try="$ac_link_default"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2900 $as_echo "$ac_try_echo") >&5
2901 (eval "$ac_link_default") 2>&5
2903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; then
2905 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2906 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2907 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2908 # so that the user can short-circuit this test for compilers unknown to
2910 for ac_file in $ac_files ''
2912 test -f "$ac_file" || continue
2914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2917 # We found the default executable, but exeext='' is most
2921 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2923 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2925 # We set ac_cv_exeext here because the later test for it is not
2926 # safe: cross compilers may not add the suffix if given an `-o'
2927 # argument, so we may need to know it at that point already.
2928 # Even if this section looks crufty: it has the advantage of
2935 test "$ac_cv_exeext" = no && ac_cv_exeext=
2941 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2942 $as_echo "$ac_file" >&6; }
2943 if test -z "$ac_file"; then
2944 $as_echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2948 See \`config.log' for more details." >&5
2949 $as_echo "$as_me: error: C compiler cannot create executables
2950 See \`config.log' for more details." >&2;}
2951 { (exit 77); exit 77; }; }
2954 ac_exeext=$ac_cv_exeext
2956 # Check that the compiler produces executables we can run. If not, either
2957 # the compiler is broken, or we cross compile.
2958 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2959 $as_echo_n "checking whether the C compiler works... " >&6; }
2960 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2961 # If not cross compiling, check that we can run a simple program.
2962 if test "$cross_compiling" != yes; then
2963 if { ac_try='./$ac_file'
2964 { (case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2969 $as_echo "$ac_try_echo") >&5
2970 (eval "$ac_try") 2>&5
2972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2976 if test "$cross_compiling" = maybe; then
2979 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2980 If you meant to cross compile, use \`--host'.
2981 See \`config.log' for more details." >&5
2982 $as_echo "$as_me: error: cannot run C compiled programs.
2983 If you meant to cross compile, use \`--host'.
2984 See \`config.log' for more details." >&2;}
2985 { (exit 1); exit 1; }; }
2989 { $as_echo "$as_me:$LINENO: result: yes" >&5
2990 $as_echo "yes" >&6; }
2992 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2993 ac_clean_files=$ac_clean_files_save
2994 # Check that the compiler produces executables we can run. If not, either
2995 # the compiler is broken, or we cross compile.
2996 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2997 $as_echo_n "checking whether we are cross compiling... " >&6; }
2998 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2999 $as_echo "$cross_compiling" >&6; }
3001 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3002 $as_echo_n "checking for suffix of executables... " >&6; }
3003 if { (ac_try="$ac_link"
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3009 $as_echo "$ac_try_echo") >&5
3010 (eval "$ac_link") 2>&5
3012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; then
3014 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3015 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3016 # work properly (i.e., refer to `conftest.exe'), while it won't with
3018 for ac_file in conftest.exe conftest conftest.*; do
3019 test -f "$ac_file" || continue
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3028 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3029 See \`config.log' for more details." >&5
3030 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3035 rm -f conftest$ac_cv_exeext
3036 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3037 $as_echo "$ac_cv_exeext" >&6; }
3039 rm -f conftest.$ac_ext
3040 EXEEXT=$ac_cv_exeext
3042 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3043 $as_echo_n "checking for suffix of object files... " >&6; }
3044 if test "${ac_cv_objext+set}" = set; then
3045 $as_echo_n "(cached) " >&6
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3062 rm -f conftest.o conftest.obj
3063 if { (ac_try="$ac_compile"
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3069 $as_echo "$ac_try_echo") >&5
3070 (eval "$ac_compile") 2>&5
3072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; then
3074 for ac_file in conftest.o conftest.obj conftest.*; do
3075 test -f "$ac_file" || continue;
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3078 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3083 $as_echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3086 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3087 See \`config.log' for more details." >&5
3088 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3093 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3095 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3096 $as_echo "$ac_cv_objext" >&6; }
3097 OBJEXT=$ac_cv_objext
3099 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3100 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3101 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3102 $as_echo_n "(cached) " >&6
3104 cat >conftest.$ac_ext <<_ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3129 $as_echo "$ac_try_echo") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } && {
3137 test -z "$ac_c_werror_flag" ||
3138 test ! -s conftest.err
3139 } && test -s conftest.$ac_objext; then
3142 $as_echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3152 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3153 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3154 if test $ac_compiler_gnu = yes; then
3159 ac_test_CFLAGS=${CFLAGS+set}
3160 ac_save_CFLAGS=$CFLAGS
3161 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3162 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3163 if test "${ac_cv_prog_cc_g+set}" = set; then
3164 $as_echo_n "(cached) " >&6
3166 ac_save_c_werror_flag=$ac_c_werror_flag
3167 ac_c_werror_flag=yes
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3185 rm -f conftest.$ac_objext
3186 if { (ac_try="$ac_compile"
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3192 $as_echo "$ac_try_echo") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3195 grep -v '^ *+' conftest.er1 >conftest.err
3197 cat conftest.err >&5
3198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } && {
3200 test -z "$ac_c_werror_flag" ||
3201 test ! -s conftest.err
3202 } && test -s conftest.$ac_objext; then
3205 $as_echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3209 cat >conftest.$ac_ext <<_ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3231 $as_echo "$ac_try_echo") >&5
3232 (eval "$ac_compile") 2>conftest.er1
3234 grep -v '^ *+' conftest.er1 >conftest.err
3236 cat conftest.err >&5
3237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } && {
3239 test -z "$ac_c_werror_flag" ||
3240 test ! -s conftest.err
3241 } && test -s conftest.$ac_objext; then
3244 $as_echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3247 ac_c_werror_flag=$ac_save_c_werror_flag
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3264 rm -f conftest.$ac_objext
3265 if { (ac_try="$ac_compile"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3274 grep -v '^ *+' conftest.er1 >conftest.err
3276 cat conftest.err >&5
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_c_werror_flag=$ac_save_c_werror_flag
3299 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3300 $as_echo "$ac_cv_prog_cc_g" >&6; }
3301 if test "$ac_test_CFLAGS" = set; then
3302 CFLAGS=$ac_save_CFLAGS
3303 elif test $ac_cv_prog_cc_g = yes; then
3304 if test "$GCC" = yes; then
3310 if test "$GCC" = yes; then
3316 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3317 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3318 if test "${ac_cv_prog_cc_c89+set}" = set; then
3319 $as_echo_n "(cached) " >&6
3321 ac_cv_prog_cc_c89=no
3323 cat >conftest.$ac_ext <<_ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3331 #include <sys/types.h>
3332 #include <sys/stat.h>
3333 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3334 struct buf { int x; };
3335 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3336 static char *e (p, i)
3342 static char *f (char * (*g) (char **, int), char **p, ...)
3347 s = g (p, va_arg (v,int));
3352 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3353 function prototypes and stuff, but not '\xHH' hex character constants.
3354 These don't provoke an error unfortunately, instead are silently treated
3355 as 'x'. The following induces an error, until -std is added to get
3356 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3357 array size at least. It's necessary to write '\x00'==0 to get something
3358 that's true only with -std. */
3359 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3361 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3362 inside strings and character constants. */
3364 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3366 int test (int i, double x);
3367 struct s1 {int (*f) (int a);};
3368 struct s2 {int (*f) (double a);};
3369 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3375 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3380 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3381 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3383 CC="$ac_save_CC $ac_arg"
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3391 $as_echo "$ac_try_echo") >&5
3392 (eval "$ac_compile") 2>conftest.er1
3394 grep -v '^ *+' conftest.er1 >conftest.err
3396 cat conftest.err >&5
3397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } && {
3399 test -z "$ac_c_werror_flag" ||
3400 test ! -s conftest.err
3401 } && test -s conftest.$ac_objext; then
3402 ac_cv_prog_cc_c89=$ac_arg
3404 $as_echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3410 rm -f core conftest.err conftest.$ac_objext
3411 test "x$ac_cv_prog_cc_c89" != "xno" && break
3413 rm -f conftest.$ac_ext
3418 case "x$ac_cv_prog_cc_c89" in
3420 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3421 $as_echo "none needed" >&6; } ;;
3423 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3424 $as_echo "unsupported" >&6; } ;;
3426 CC="$CC $ac_cv_prog_cc_c89"
3427 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3428 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3433 ac_cpp='$CPP $CPPFLAGS'
3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 depcc="$CC" am_compiler_list=
3440 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441 $as_echo_n "checking dependency style of $depcc... " >&6; }
3442 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3443 $as_echo_n "(cached) " >&6
3445 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446 # We make a subdir and do the tests there. Otherwise we can end up
3447 # making bogus files that we don't know about and never remove. For
3448 # instance it was reported that on HP-UX the gcc test will end up
3449 # making a dummy file named `D' -- because `-MD' means `put the output
3452 # Copy depcomp to subdir because otherwise we won't find it if we're
3453 # using a relative directory.
3454 cp "$am_depcomp" conftest.dir
3456 # We will build objects and dependencies in a subdirectory because
3457 # it helps to detect inapplicable dependency modes. For instance
3458 # both Tru64's cc and ICC support -MD to output dependencies as a
3459 # side effect of compilation, but ICC will put the dependencies in
3460 # the current directory while Tru64 will put them in the object
3464 am_cv_CC_dependencies_compiler_type=none
3465 if test "$am_compiler_list" = ""; then
3466 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3468 for depmode in $am_compiler_list; do
3469 # Setup a source with many dependencies, because some compilers
3470 # like to wrap large dependency lists on column 80 (with \), and
3471 # we should not choose a depcomp mode which is confused by this.
3473 # We need to recreate these files for each test, as the compiler may
3474 # overwrite some of them when testing with obscure command lines.
3475 # This happens at least with the AIX C compiler.
3477 for i in 1 2 3 4 5 6; do
3478 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3479 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3480 # Solaris 8's {/usr,}/bin/sh.
3481 touch sub/conftst$i.h
3483 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3487 # after this tag, mechanisms are not by side-effect, so they'll
3488 # only be used when explicitly requested
3489 if test "x$enable_dependency_tracking" = xyes; then
3497 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3498 # mode. It turns out that the SunPro C++ compiler does not properly
3499 # handle `-M -o', and we need to detect this.
3500 if depmode=$depmode \
3501 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3502 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3503 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3504 >/dev/null 2>conftest.err &&
3505 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3506 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3507 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3508 # icc doesn't choke on unknown options, it will just issue warnings
3509 # or remarks (even with -Werror). So we grep stderr for any message
3510 # that says an option was ignored or not supported.
3511 # When given -MP, icc 7.0 and 7.1 complain thusly:
3512 # icc: Command line warning: ignoring option '-M'; no argument required
3513 # The diagnosis changed in icc 8.0:
3514 # icc: Command line remark: option '-MP' not supported
3515 if (grep 'ignoring option' conftest.err ||
3516 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3517 am_cv_CC_dependencies_compiler_type=$depmode
3526 am_cv_CC_dependencies_compiler_type=none
3530 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3531 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3532 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3537 test "x$enable_dependency_tracking" != xno \
3538 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3540 am__fastdepCC_FALSE='#'
3542 am__fastdepCC_TRUE='#'
3543 am__fastdepCC_FALSE=
3549 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3550 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3551 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3552 $as_echo_n "(cached) " >&6
3554 ac_check_lib_save_LIBS=$LIBS
3555 LIBS="-lcposix $LIBS"
3556 cat >conftest.$ac_ext <<_ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3563 /* Override any GCC internal prototype to avoid an error.
3564 Use char because int might match the return type of a GCC
3565 builtin and then its argument prototype would still apply. */
3578 rm -f conftest.$ac_objext conftest$ac_exeext
3579 if { (ac_try="$ac_link"
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3585 $as_echo "$ac_try_echo") >&5
3586 (eval "$ac_link") 2>conftest.er1
3588 grep -v '^ *+' conftest.er1 >conftest.err
3590 cat conftest.err >&5
3591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } && {
3593 test -z "$ac_c_werror_flag" ||
3594 test ! -s conftest.err
3595 } && test -s conftest$ac_exeext && {
3596 test "$cross_compiling" = yes ||
3597 $as_test_x conftest$ac_exeext
3599 ac_cv_lib_cposix_strerror=yes
3601 $as_echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 ac_cv_lib_cposix_strerror=no
3607 rm -rf conftest.dSYM
3608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3609 conftest$ac_exeext conftest.$ac_ext
3610 LIBS=$ac_check_lib_save_LIBS
3612 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3613 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3614 if test $ac_cv_lib_cposix_strerror = yes; then
3615 LIBS="$LIBS -lcposix"
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3627 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC="$CC" # Let the user override the test.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 if test -n "$CC"; then
3655 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3656 $as_echo "$CC" >&6; }
3658 { $as_echo "$as_me:$LINENO: result: no" >&5
3659 $as_echo "no" >&6; }
3664 if test -z "$ac_cv_prog_CC"; then
3666 # Extract the first word of "gcc", so it can be a program name with args.
3667 set dummy gcc; ac_word=$2
3668 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3671 $as_echo_n "(cached) " >&6
3673 if test -n "$ac_ct_CC"; then
3674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_ac_ct_CC="gcc"
3684 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3694 if test -n "$ac_ct_CC"; then
3695 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3696 $as_echo "$ac_ct_CC" >&6; }
3698 { $as_echo "$as_me:$LINENO: result: no" >&5
3699 $as_echo "no" >&6; }
3702 if test "x$ac_ct_CC" = x; then
3705 case $cross_compiling:$ac_tool_warned in
3707 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3708 whose name does not start with the host triplet. If you think this
3709 configuration is useful to you, please write to autoconf@gnu.org." >&5
3710 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3711 whose name does not start with the host triplet. If you think this
3712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3713 ac_tool_warned=yes ;;
3721 if test -z "$CC"; then
3722 if test -n "$ac_tool_prefix"; then
3723 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3724 set dummy ${ac_tool_prefix}cc; ac_word=$2
3725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 $as_echo_n "checking for $ac_word... " >&6; }
3727 if test "${ac_cv_prog_CC+set}" = set; then
3728 $as_echo_n "(cached) " >&6
3730 if test -n "$CC"; then
3731 ac_cv_prog_CC="$CC" # Let the user override the test.
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3740 ac_cv_prog_CC="${ac_tool_prefix}cc"
3741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 if test -n "$CC"; then
3752 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3753 $as_echo "$CC" >&6; }
3755 { $as_echo "$as_me:$LINENO: result: no" >&5
3756 $as_echo "no" >&6; }
3762 if test -z "$CC"; then
3763 # Extract the first word of "cc", so it can be a program name with args.
3764 set dummy cc; ac_word=$2
3765 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 $as_echo_n "checking for $ac_word... " >&6; }
3767 if test "${ac_cv_prog_CC+set}" = set; then
3768 $as_echo_n "(cached) " >&6
3770 if test -n "$CC"; then
3771 ac_cv_prog_CC="$CC" # Let the user override the test.
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3782 ac_prog_rejected=yes
3786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 if test $ac_prog_rejected = yes; then
3794 # We found a bogon in the path, so make sure we never use it.
3795 set dummy $ac_cv_prog_CC
3797 if test $# != 0; then
3798 # We chose a different compiler from the bogus one.
3799 # However, it has the same basename, so the bogon will be chosen
3800 # first if we set CC to just the basename; use the full file name.
3802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3808 if test -n "$CC"; then
3809 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3810 $as_echo "$CC" >&6; }
3812 { $as_echo "$as_me:$LINENO: result: no" >&5
3813 $as_echo "no" >&6; }
3818 if test -z "$CC"; then
3819 if test -n "$ac_tool_prefix"; then
3820 for ac_prog in cl.exe
3822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if test "${ac_cv_prog_CC+set}" = set; then
3827 $as_echo_n "(cached) " >&6
3829 if test -n "$CC"; then
3830 ac_cv_prog_CC="$CC" # Let the user override the test.
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 if test -n "$CC"; then
3851 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3852 $as_echo "$CC" >&6; }
3854 { $as_echo "$as_me:$LINENO: result: no" >&5
3855 $as_echo "no" >&6; }
3859 test -n "$CC" && break
3862 if test -z "$CC"; then
3864 for ac_prog in cl.exe
3866 # Extract the first word of "$ac_prog", so it can be a program name with args.
3867 set dummy $ac_prog; ac_word=$2
3868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3869 $as_echo_n "checking for $ac_word... " >&6; }
3870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3871 $as_echo_n "(cached) " >&6
3873 if test -n "$ac_ct_CC"; then
3874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3883 ac_cv_prog_ac_ct_CC="$ac_prog"
3884 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3894 if test -n "$ac_ct_CC"; then
3895 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3896 $as_echo "$ac_ct_CC" >&6; }
3898 { $as_echo "$as_me:$LINENO: result: no" >&5
3899 $as_echo "no" >&6; }
3903 test -n "$ac_ct_CC" && break
3906 if test "x$ac_ct_CC" = x; then
3909 case $cross_compiling:$ac_tool_warned in
3911 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3912 whose name does not start with the host triplet. If you think this
3913 configuration is useful to you, please write to autoconf@gnu.org." >&5
3914 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3915 whose name does not start with the host triplet. If you think this
3916 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3917 ac_tool_warned=yes ;;
3926 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3927 See \`config.log' for more details." >&5
3928 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3929 See \`config.log' for more details." >&2;}
3930 { (exit 1); exit 1; }; }
3932 # Provide some information about the compiler.
3933 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3936 { (ac_try="$ac_compiler --version >&5"
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3942 $as_echo "$ac_try_echo") >&5
3943 (eval "$ac_compiler --version >&5") 2>&5
3945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }
3947 { (ac_try="$ac_compiler -v >&5"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3953 $as_echo "$ac_try_echo") >&5
3954 (eval "$ac_compiler -v >&5") 2>&5
3956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }
3958 { (ac_try="$ac_compiler -V >&5"
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3964 $as_echo "$ac_try_echo") >&5
3965 (eval "$ac_compiler -V >&5") 2>&5
3967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }
3970 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3971 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3972 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3973 $as_echo_n "(cached) " >&6
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3993 rm -f conftest.$ac_objext
3994 if { (ac_try="$ac_compile"
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4000 $as_echo "$ac_try_echo") >&5
4001 (eval "$ac_compile") 2>conftest.er1
4003 grep -v '^ *+' conftest.er1 >conftest.err
4005 cat conftest.err >&5
4006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && {
4008 test -z "$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 } && test -s conftest.$ac_objext; then
4013 $as_echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4023 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4024 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4025 if test $ac_compiler_gnu = yes; then
4030 ac_test_CFLAGS=${CFLAGS+set}
4031 ac_save_CFLAGS=$CFLAGS
4032 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4033 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4034 if test "${ac_cv_prog_cc_g+set}" = set; then
4035 $as_echo_n "(cached) " >&6
4037 ac_save_c_werror_flag=$ac_c_werror_flag
4038 ac_c_werror_flag=yes
4041 cat >conftest.$ac_ext <<_ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4056 rm -f conftest.$ac_objext
4057 if { (ac_try="$ac_compile"
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4063 $as_echo "$ac_try_echo") >&5
4064 (eval "$ac_compile") 2>conftest.er1
4066 grep -v '^ *+' conftest.er1 >conftest.err
4068 cat conftest.err >&5
4069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && {
4071 test -z "$ac_c_werror_flag" ||
4072 test ! -s conftest.err
4073 } && test -s conftest.$ac_objext; then
4076 $as_echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4080 cat >conftest.$ac_ext <<_ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4095 rm -f conftest.$ac_objext
4096 if { (ac_try="$ac_compile"
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4102 $as_echo "$ac_try_echo") >&5
4103 (eval "$ac_compile") 2>conftest.er1
4105 grep -v '^ *+' conftest.er1 >conftest.err
4107 cat conftest.err >&5
4108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } && {
4110 test -z "$ac_c_werror_flag" ||
4111 test ! -s conftest.err
4112 } && test -s conftest.$ac_objext; then
4115 $as_echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4118 ac_c_werror_flag=$ac_save_c_werror_flag
4120 cat >conftest.$ac_ext <<_ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4135 rm -f conftest.$ac_objext
4136 if { (ac_try="$ac_compile"
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4142 $as_echo "$ac_try_echo") >&5
4143 (eval "$ac_compile") 2>conftest.er1
4145 grep -v '^ *+' conftest.er1 >conftest.err
4147 cat conftest.err >&5
4148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } && {
4150 test -z "$ac_c_werror_flag" ||
4151 test ! -s conftest.err
4152 } && test -s conftest.$ac_objext; then
4155 $as_echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168 ac_c_werror_flag=$ac_save_c_werror_flag
4170 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4171 $as_echo "$ac_cv_prog_cc_g" >&6; }
4172 if test "$ac_test_CFLAGS" = set; then
4173 CFLAGS=$ac_save_CFLAGS
4174 elif test $ac_cv_prog_cc_g = yes; then
4175 if test "$GCC" = yes; then
4181 if test "$GCC" = yes; then
4187 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4188 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4189 if test "${ac_cv_prog_cc_c89+set}" = set; then
4190 $as_echo_n "(cached) " >&6
4192 ac_cv_prog_cc_c89=no
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4202 #include <sys/types.h>
4203 #include <sys/stat.h>
4204 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4205 struct buf { int x; };
4206 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4207 static char *e (p, i)
4213 static char *f (char * (*g) (char **, int), char **p, ...)
4218 s = g (p, va_arg (v,int));
4223 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4224 function prototypes and stuff, but not '\xHH' hex character constants.
4225 These don't provoke an error unfortunately, instead are silently treated
4226 as 'x'. The following induces an error, until -std is added to get
4227 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4228 array size at least. It's necessary to write '\x00'==0 to get something
4229 that's true only with -std. */
4230 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4232 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4233 inside strings and character constants. */
4235 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4237 int test (int i, double x);
4238 struct s1 {int (*f) (int a);};
4239 struct s2 {int (*f) (double a);};
4240 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4246 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4251 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4252 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4254 CC="$ac_save_CC $ac_arg"
4255 rm -f conftest.$ac_objext
4256 if { (ac_try="$ac_compile"
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4262 $as_echo "$ac_try_echo") >&5
4263 (eval "$ac_compile") 2>conftest.er1
4265 grep -v '^ *+' conftest.er1 >conftest.err
4267 cat conftest.err >&5
4268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && {
4270 test -z "$ac_c_werror_flag" ||
4271 test ! -s conftest.err
4272 } && test -s conftest.$ac_objext; then
4273 ac_cv_prog_cc_c89=$ac_arg
4275 $as_echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4281 rm -f core conftest.err conftest.$ac_objext
4282 test "x$ac_cv_prog_cc_c89" != "xno" && break
4284 rm -f conftest.$ac_ext
4289 case "x$ac_cv_prog_cc_c89" in
4291 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4292 $as_echo "none needed" >&6; } ;;
4294 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4295 $as_echo "unsupported" >&6; } ;;
4297 CC="$CC $ac_cv_prog_cc_c89"
4298 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4299 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 depcc="$CC" am_compiler_list=
4311 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4312 $as_echo_n "checking dependency style of $depcc... " >&6; }
4313 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4314 $as_echo_n "(cached) " >&6
4316 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4317 # We make a subdir and do the tests there. Otherwise we can end up
4318 # making bogus files that we don't know about and never remove. For
4319 # instance it was reported that on HP-UX the gcc test will end up
4320 # making a dummy file named `D' -- because `-MD' means `put the output
4323 # Copy depcomp to subdir because otherwise we won't find it if we're
4324 # using a relative directory.
4325 cp "$am_depcomp" conftest.dir
4327 # We will build objects and dependencies in a subdirectory because
4328 # it helps to detect inapplicable dependency modes. For instance
4329 # both Tru64's cc and ICC support -MD to output dependencies as a
4330 # side effect of compilation, but ICC will put the dependencies in
4331 # the current directory while Tru64 will put them in the object
4335 am_cv_CC_dependencies_compiler_type=none
4336 if test "$am_compiler_list" = ""; then
4337 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4339 for depmode in $am_compiler_list; do
4340 # Setup a source with many dependencies, because some compilers
4341 # like to wrap large dependency lists on column 80 (with \), and
4342 # we should not choose a depcomp mode which is confused by this.
4344 # We need to recreate these files for each test, as the compiler may
4345 # overwrite some of them when testing with obscure command lines.
4346 # This happens at least with the AIX C compiler.
4348 for i in 1 2 3 4 5 6; do
4349 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4350 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4351 # Solaris 8's {/usr,}/bin/sh.
4352 touch sub/conftst$i.h
4354 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4358 # after this tag, mechanisms are not by side-effect, so they'll
4359 # only be used when explicitly requested
4360 if test "x$enable_dependency_tracking" = xyes; then
4368 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4369 # mode. It turns out that the SunPro C++ compiler does not properly
4370 # handle `-M -o', and we need to detect this.
4371 if depmode=$depmode \
4372 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4373 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4374 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4375 >/dev/null 2>conftest.err &&
4376 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4377 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4378 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4379 # icc doesn't choke on unknown options, it will just issue warnings
4380 # or remarks (even with -Werror). So we grep stderr for any message
4381 # that says an option was ignored or not supported.
4382 # When given -MP, icc 7.0 and 7.1 complain thusly:
4383 # icc: Command line warning: ignoring option '-M'; no argument required
4384 # The diagnosis changed in icc 8.0:
4385 # icc: Command line remark: option '-MP' not supported
4386 if (grep 'ignoring option' conftest.err ||
4387 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4388 am_cv_CC_dependencies_compiler_type=$depmode
4397 am_cv_CC_dependencies_compiler_type=none
4401 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4402 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4403 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4408 test "x$enable_dependency_tracking" != xno \
4409 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4411 am__fastdepCC_FALSE='#'
4413 am__fastdepCC_TRUE='#'
4414 am__fastdepCC_FALSE=
4419 ac_cpp='$CPP $CPPFLAGS'
4420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423 if test -n "$ac_tool_prefix"; then
4424 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4425 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4426 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if test "${ac_cv_prog_CC+set}" = set; then
4429 $as_echo_n "(cached) " >&6
4431 if test -n "$CC"; then
4432 ac_cv_prog_CC="$CC" # Let the user override the test.
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4441 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4442 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 if test -n "$CC"; then
4453 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4454 $as_echo "$CC" >&6; }
4456 { $as_echo "$as_me:$LINENO: result: no" >&5
4457 $as_echo "no" >&6; }
4462 if test -z "$ac_cv_prog_CC"; then
4464 # Extract the first word of "gcc", so it can be a program name with args.
4465 set dummy gcc; ac_word=$2
4466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4469 $as_echo_n "(cached) " >&6
4471 if test -n "$ac_ct_CC"; then
4472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481 ac_cv_prog_ac_ct_CC="gcc"
4482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4492 if test -n "$ac_ct_CC"; then
4493 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4494 $as_echo "$ac_ct_CC" >&6; }
4496 { $as_echo "$as_me:$LINENO: result: no" >&5
4497 $as_echo "no" >&6; }
4500 if test "x$ac_ct_CC" = x; then
4503 case $cross_compiling:$ac_tool_warned in
4505 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4506 whose name does not start with the host triplet. If you think this
4507 configuration is useful to you, please write to autoconf@gnu.org." >&5
4508 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4509 whose name does not start with the host triplet. If you think this
4510 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4511 ac_tool_warned=yes ;;
4519 if test -z "$CC"; then
4520 if test -n "$ac_tool_prefix"; then
4521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4522 set dummy ${ac_tool_prefix}cc; ac_word=$2
4523 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if test "${ac_cv_prog_CC+set}" = set; then
4526 $as_echo_n "(cached) " >&6
4528 if test -n "$CC"; then
4529 ac_cv_prog_CC="$CC" # Let the user override the test.
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_CC="${ac_tool_prefix}cc"
4539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 if test -n "$CC"; then
4550 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4551 $as_echo "$CC" >&6; }
4553 { $as_echo "$as_me:$LINENO: result: no" >&5
4554 $as_echo "no" >&6; }
4560 if test -z "$CC"; then
4561 # Extract the first word of "cc", so it can be a program name with args.
4562 set dummy cc; ac_word=$2
4563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if test "${ac_cv_prog_CC+set}" = set; then
4566 $as_echo_n "(cached) " >&6
4568 if test -n "$CC"; then
4569 ac_cv_prog_CC="$CC" # Let the user override the test.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4580 ac_prog_rejected=yes
4584 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 if test $ac_prog_rejected = yes; then
4592 # We found a bogon in the path, so make sure we never use it.
4593 set dummy $ac_cv_prog_CC
4595 if test $# != 0; then
4596 # We chose a different compiler from the bogus one.
4597 # However, it has the same basename, so the bogon will be chosen
4598 # first if we set CC to just the basename; use the full file name.
4600 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4606 if test -n "$CC"; then
4607 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4608 $as_echo "$CC" >&6; }
4610 { $as_echo "$as_me:$LINENO: result: no" >&5
4611 $as_echo "no" >&6; }
4616 if test -z "$CC"; then
4617 if test -n "$ac_tool_prefix"; then
4618 for ac_prog in cl.exe
4620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4622 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then
4625 $as_echo_n "(cached) " >&6
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC="$CC" # Let the user override the test.
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4638 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 if test -n "$CC"; then
4649 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4650 $as_echo "$CC" >&6; }
4652 { $as_echo "$as_me:$LINENO: result: no" >&5
4653 $as_echo "no" >&6; }
4657 test -n "$CC" && break
4660 if test -z "$CC"; then
4662 for ac_prog in cl.exe
4664 # Extract the first word of "$ac_prog", so it can be a program name with args.
4665 set dummy $ac_prog; ac_word=$2
4666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4669 $as_echo_n "(cached) " >&6
4671 if test -n "$ac_ct_CC"; then
4672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_ac_ct_CC="$ac_prog"
4682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4692 if test -n "$ac_ct_CC"; then
4693 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4694 $as_echo "$ac_ct_CC" >&6; }
4696 { $as_echo "$as_me:$LINENO: result: no" >&5
4697 $as_echo "no" >&6; }
4701 test -n "$ac_ct_CC" && break
4704 if test "x$ac_ct_CC" = x; then
4707 case $cross_compiling:$ac_tool_warned in
4709 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4710 whose name does not start with the host triplet. If you think this
4711 configuration is useful to you, please write to autoconf@gnu.org." >&5
4712 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4713 whose name does not start with the host triplet. If you think this
4714 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4715 ac_tool_warned=yes ;;
4724 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4725 See \`config.log' for more details." >&5
4726 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4727 See \`config.log' for more details." >&2;}
4728 { (exit 1); exit 1; }; }
4730 # Provide some information about the compiler.
4731 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4734 { (ac_try="$ac_compiler --version >&5"
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4740 $as_echo "$ac_try_echo") >&5
4741 (eval "$ac_compiler --version >&5") 2>&5
4743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }
4745 { (ac_try="$ac_compiler -v >&5"
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4751 $as_echo "$ac_try_echo") >&5
4752 (eval "$ac_compiler -v >&5") 2>&5
4754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }
4756 { (ac_try="$ac_compiler -V >&5"
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4762 $as_echo "$ac_try_echo") >&5
4763 (eval "$ac_compiler -V >&5") 2>&5
4765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }
4768 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4769 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4770 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4773 cat >conftest.$ac_ext <<_ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4791 rm -f conftest.$ac_objext
4792 if { (ac_try="$ac_compile"
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4798 $as_echo "$ac_try_echo") >&5
4799 (eval "$ac_compile") 2>conftest.er1
4801 grep -v '^ *+' conftest.er1 >conftest.err
4803 cat conftest.err >&5
4804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } && {
4806 test -z "$ac_c_werror_flag" ||
4807 test ! -s conftest.err
4808 } && test -s conftest.$ac_objext; then
4811 $as_echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4821 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4822 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4823 if test $ac_compiler_gnu = yes; then
4828 ac_test_CFLAGS=${CFLAGS+set}
4829 ac_save_CFLAGS=$CFLAGS
4830 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4831 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4832 if test "${ac_cv_prog_cc_g+set}" = set; then
4833 $as_echo_n "(cached) " >&6
4835 ac_save_c_werror_flag=$ac_c_werror_flag
4836 ac_c_werror_flag=yes
4839 cat >conftest.$ac_ext <<_ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4854 rm -f conftest.$ac_objext
4855 if { (ac_try="$ac_compile"
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861 $as_echo "$ac_try_echo") >&5
4862 (eval "$ac_compile") 2>conftest.er1
4864 grep -v '^ *+' conftest.er1 >conftest.err
4866 cat conftest.err >&5
4867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest.$ac_objext; then
4874 $as_echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4878 cat >conftest.$ac_ext <<_ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4893 rm -f conftest.$ac_objext
4894 if { (ac_try="$ac_compile"
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4900 $as_echo "$ac_try_echo") >&5
4901 (eval "$ac_compile") 2>conftest.er1
4903 grep -v '^ *+' conftest.er1 >conftest.err
4905 cat conftest.err >&5
4906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } && {
4908 test -z "$ac_c_werror_flag" ||
4909 test ! -s conftest.err
4910 } && test -s conftest.$ac_objext; then
4913 $as_echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4916 ac_c_werror_flag=$ac_save_c_werror_flag
4918 cat >conftest.$ac_ext <<_ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4933 rm -f conftest.$ac_objext
4934 if { (ac_try="$ac_compile"
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4940 $as_echo "$ac_try_echo") >&5
4941 (eval "$ac_compile") 2>conftest.er1
4943 grep -v '^ *+' conftest.er1 >conftest.err
4945 cat conftest.err >&5
4946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.$ac_objext; then
4953 $as_echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 ac_c_werror_flag=$ac_save_c_werror_flag
4968 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4969 $as_echo "$ac_cv_prog_cc_g" >&6; }
4970 if test "$ac_test_CFLAGS" = set; then
4971 CFLAGS=$ac_save_CFLAGS
4972 elif test $ac_cv_prog_cc_g = yes; then
4973 if test "$GCC" = yes; then
4979 if test "$GCC" = yes; then
4985 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4986 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4987 if test "${ac_cv_prog_cc_c89+set}" = set; then
4988 $as_echo_n "(cached) " >&6
4990 ac_cv_prog_cc_c89=no
4992 cat >conftest.$ac_ext <<_ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
5000 #include <sys/types.h>
5001 #include <sys/stat.h>
5002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5003 struct buf { int x; };
5004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5005 static char *e (p, i)
5011 static char *f (char * (*g) (char **, int), char **p, ...)
5016 s = g (p, va_arg (v,int));
5021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5022 function prototypes and stuff, but not '\xHH' hex character constants.
5023 These don't provoke an error unfortunately, instead are silently treated
5024 as 'x'. The following induces an error, until -std is added to get
5025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5026 array size at least. It's necessary to write '\x00'==0 to get something
5027 that's true only with -std. */
5028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5031 inside strings and character constants. */
5033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5035 int test (int i, double x);
5036 struct s1 {int (*f) (int a);};
5037 struct s2 {int (*f) (double a);};
5038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5044 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5052 CC="$ac_save_CC $ac_arg"
5053 rm -f conftest.$ac_objext
5054 if { (ac_try="$ac_compile"
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5060 $as_echo "$ac_try_echo") >&5
5061 (eval "$ac_compile") 2>conftest.er1
5063 grep -v '^ *+' conftest.er1 >conftest.err
5065 cat conftest.err >&5
5066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } && {
5068 test -z "$ac_c_werror_flag" ||
5069 test ! -s conftest.err
5070 } && test -s conftest.$ac_objext; then
5071 ac_cv_prog_cc_c89=$ac_arg
5073 $as_echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5079 rm -f core conftest.err conftest.$ac_objext
5080 test "x$ac_cv_prog_cc_c89" != "xno" && break
5082 rm -f conftest.$ac_ext
5087 case "x$ac_cv_prog_cc_c89" in
5089 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5090 $as_echo "none needed" >&6; } ;;
5092 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5093 $as_echo "unsupported" >&6; } ;;
5095 CC="$CC $ac_cv_prog_cc_c89"
5096 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5097 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5107 depcc="$CC" am_compiler_list=
5109 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5110 $as_echo_n "checking dependency style of $depcc... " >&6; }
5111 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5112 $as_echo_n "(cached) " >&6
5114 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5115 # We make a subdir and do the tests there. Otherwise we can end up
5116 # making bogus files that we don't know about and never remove. For
5117 # instance it was reported that on HP-UX the gcc test will end up
5118 # making a dummy file named `D' -- because `-MD' means `put the output
5121 # Copy depcomp to subdir because otherwise we won't find it if we're
5122 # using a relative directory.
5123 cp "$am_depcomp" conftest.dir
5125 # We will build objects and dependencies in a subdirectory because
5126 # it helps to detect inapplicable dependency modes. For instance
5127 # both Tru64's cc and ICC support -MD to output dependencies as a
5128 # side effect of compilation, but ICC will put the dependencies in
5129 # the current directory while Tru64 will put them in the object
5133 am_cv_CC_dependencies_compiler_type=none
5134 if test "$am_compiler_list" = ""; then
5135 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5137 for depmode in $am_compiler_list; do
5138 # Setup a source with many dependencies, because some compilers
5139 # like to wrap large dependency lists on column 80 (with \), and
5140 # we should not choose a depcomp mode which is confused by this.
5142 # We need to recreate these files for each test, as the compiler may
5143 # overwrite some of them when testing with obscure command lines.
5144 # This happens at least with the AIX C compiler.
5146 for i in 1 2 3 4 5 6; do
5147 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5148 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5149 # Solaris 8's {/usr,}/bin/sh.
5150 touch sub/conftst$i.h
5152 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5156 # after this tag, mechanisms are not by side-effect, so they'll
5157 # only be used when explicitly requested
5158 if test "x$enable_dependency_tracking" = xyes; then
5166 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5167 # mode. It turns out that the SunPro C++ compiler does not properly
5168 # handle `-M -o', and we need to detect this.
5169 if depmode=$depmode \
5170 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5171 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5172 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5173 >/dev/null 2>conftest.err &&
5174 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5175 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5176 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5177 # icc doesn't choke on unknown options, it will just issue warnings
5178 # or remarks (even with -Werror). So we grep stderr for any message
5179 # that says an option was ignored or not supported.
5180 # When given -MP, icc 7.0 and 7.1 complain thusly:
5181 # icc: Command line warning: ignoring option '-M'; no argument required
5182 # The diagnosis changed in icc 8.0:
5183 # icc: Command line remark: option '-MP' not supported
5184 if (grep 'ignoring option' conftest.err ||
5185 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5186 am_cv_CC_dependencies_compiler_type=$depmode
5195 am_cv_CC_dependencies_compiler_type=none
5199 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5200 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5201 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5206 test "x$enable_dependency_tracking" != xno \
5207 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5209 am__fastdepCC_FALSE='#'
5211 am__fastdepCC_TRUE='#'
5212 am__fastdepCC_FALSE=
5217 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5219 # By default we simply use the C compiler to build assembly code.
5221 test "${CCAS+set}" = set || CCAS=$CC
5222 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5227 ac_cpp='$CPP $CPPFLAGS'
5228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5231 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5232 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5233 # On Suns, sometimes $CPP names a directory.
5234 if test -n "$CPP" && test -d "$CPP"; then
5237 if test -z "$CPP"; then
5238 if test "${ac_cv_prog_CPP+set}" = set; then
5239 $as_echo_n "(cached) " >&6
5241 # Double quotes because CPP needs to be expanded
5242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5245 for ac_c_preproc_warn_flag in '' yes
5247 # Use a header file that comes with gcc, so configuring glibc
5248 # with a fresh cross-compiler works.
5249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5250 # <limits.h> exists even on freestanding compilers.
5251 # On the NeXT, cc -E runs the code through the compiler's parser,
5252 # not just through cpp. "Syntax error" is here to catch this case.
5253 cat >conftest.$ac_ext <<_ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5260 # include <limits.h>
5262 # include <assert.h>
5266 if { (ac_try="$ac_cpp conftest.$ac_ext"
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5272 $as_echo "$ac_try_echo") >&5
5273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5275 grep -v '^ *+' conftest.er1 >conftest.err
5277 cat conftest.err >&5
5278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } >/dev/null && {
5280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5285 $as_echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 # Broken: fails on valid input.
5292 rm -f conftest.err conftest.$ac_ext
5294 # OK, works on sane cases. Now check whether nonexistent headers
5295 # can be detected and how.
5296 cat >conftest.$ac_ext <<_ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 #include <ac_nonexistent.h>
5304 if { (ac_try="$ac_cpp conftest.$ac_ext"
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5310 $as_echo "$ac_try_echo") >&5
5311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5313 grep -v '^ *+' conftest.er1 >conftest.err
5315 cat conftest.err >&5
5316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } >/dev/null && {
5318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5319 test ! -s conftest.err
5321 # Broken: success on invalid input.
5324 $as_echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327 # Passes both tests.
5332 rm -f conftest.err conftest.$ac_ext
5335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5336 rm -f conftest.err conftest.$ac_ext
5337 if $ac_preproc_ok; then
5349 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5350 $as_echo "$CPP" >&6; }
5352 for ac_c_preproc_warn_flag in '' yes
5354 # Use a header file that comes with gcc, so configuring glibc
5355 # with a fresh cross-compiler works.
5356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5357 # <limits.h> exists even on freestanding compilers.
5358 # On the NeXT, cc -E runs the code through the compiler's parser,
5359 # not just through cpp. "Syntax error" is here to catch this case.
5360 cat >conftest.$ac_ext <<_ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5367 # include <limits.h>
5369 # include <assert.h>
5373 if { (ac_try="$ac_cpp conftest.$ac_ext"
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5379 $as_echo "$ac_try_echo") >&5
5380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5382 grep -v '^ *+' conftest.er1 >conftest.err
5384 cat conftest.err >&5
5385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } >/dev/null && {
5387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5392 $as_echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 # Broken: fails on valid input.
5399 rm -f conftest.err conftest.$ac_ext
5401 # OK, works on sane cases. Now check whether nonexistent headers
5402 # can be detected and how.
5403 cat >conftest.$ac_ext <<_ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 #include <ac_nonexistent.h>
5411 if { (ac_try="$ac_cpp conftest.$ac_ext"
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5417 $as_echo "$ac_try_echo") >&5
5418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5420 grep -v '^ *+' conftest.er1 >conftest.err
5422 cat conftest.err >&5
5423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } >/dev/null && {
5425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5426 test ! -s conftest.err
5428 # Broken: success on invalid input.
5431 $as_echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5434 # Passes both tests.
5439 rm -f conftest.err conftest.$ac_ext
5442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5443 rm -f conftest.err conftest.$ac_ext
5444 if $ac_preproc_ok; then
5447 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5448 See \`config.log' for more details." >&5
5449 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5450 See \`config.log' for more details." >&2;}
5451 { (exit 1); exit 1; }; }
5455 ac_cpp='$CPP $CPPFLAGS'
5456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5461 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5462 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5463 if test "${ac_cv_path_GREP+set}" = set; then
5464 $as_echo_n "(cached) " >&6
5466 if test -z "$GREP"; then
5467 ac_path_GREP_found=false
5468 # Loop through the user's path and test for each of PROGNAME-LIST
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5473 test -z "$as_dir" && as_dir=.
5474 for ac_prog in grep ggrep; do
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5477 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5478 # Check for GNU ac_path_GREP and select it if it is found.
5479 # Check for GNU $ac_path_GREP
5480 case `"$ac_path_GREP" --version 2>&1` in
5482 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5485 $as_echo_n 0123456789 >"conftest.in"
5488 cat "conftest.in" "conftest.in" >"conftest.tmp"
5489 mv "conftest.tmp" "conftest.in"
5490 cp "conftest.in" "conftest.nl"
5491 $as_echo 'GREP' >> "conftest.nl"
5492 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5494 ac_count=`expr $ac_count + 1`
5495 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5496 # Best one so far, save it but keep looking for a better one
5497 ac_cv_path_GREP="$ac_path_GREP"
5498 ac_path_GREP_max=$ac_count
5500 # 10*(2^10) chars as input seems more than enough
5501 test $ac_count -gt 10 && break
5503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5506 $ac_path_GREP_found && break 3
5511 if test -z "$ac_cv_path_GREP"; then
5512 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5513 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5514 { (exit 1); exit 1; }; }
5517 ac_cv_path_GREP=$GREP
5521 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5522 $as_echo "$ac_cv_path_GREP" >&6; }
5523 GREP="$ac_cv_path_GREP"
5526 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5527 $as_echo_n "checking for egrep... " >&6; }
5528 if test "${ac_cv_path_EGREP+set}" = set; then
5529 $as_echo_n "(cached) " >&6
5531 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5532 then ac_cv_path_EGREP="$GREP -E"
5534 if test -z "$EGREP"; then
5535 ac_path_EGREP_found=false
5536 # Loop through the user's path and test for each of PROGNAME-LIST
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5541 test -z "$as_dir" && as_dir=.
5542 for ac_prog in egrep; do
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5545 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5546 # Check for GNU ac_path_EGREP and select it if it is found.
5547 # Check for GNU $ac_path_EGREP
5548 case `"$ac_path_EGREP" --version 2>&1` in
5550 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5553 $as_echo_n 0123456789 >"conftest.in"
5556 cat "conftest.in" "conftest.in" >"conftest.tmp"
5557 mv "conftest.tmp" "conftest.in"
5558 cp "conftest.in" "conftest.nl"
5559 $as_echo 'EGREP' >> "conftest.nl"
5560 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5562 ac_count=`expr $ac_count + 1`
5563 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5564 # Best one so far, save it but keep looking for a better one
5565 ac_cv_path_EGREP="$ac_path_EGREP"
5566 ac_path_EGREP_max=$ac_count
5568 # 10*(2^10) chars as input seems more than enough
5569 test $ac_count -gt 10 && break
5571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5574 $ac_path_EGREP_found && break 3
5579 if test -z "$ac_cv_path_EGREP"; then
5580 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5581 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5582 { (exit 1); exit 1; }; }
5585 ac_cv_path_EGREP=$EGREP
5590 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5591 $as_echo "$ac_cv_path_EGREP" >&6; }
5592 EGREP="$ac_cv_path_EGREP"
5595 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5596 $as_echo_n "checking for ANSI C header files... " >&6; }
5597 if test "${ac_cv_header_stdc+set}" = set; then
5598 $as_echo_n "(cached) " >&6
5600 cat >conftest.$ac_ext <<_ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5619 rm -f conftest.$ac_objext
5620 if { (ac_try="$ac_compile"
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5626 $as_echo "$ac_try_echo") >&5
5627 (eval "$ac_compile") 2>conftest.er1
5629 grep -v '^ *+' conftest.er1 >conftest.err
5631 cat conftest.err >&5
5632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && {
5634 test -z "$ac_c_werror_flag" ||
5635 test ! -s conftest.err
5636 } && test -s conftest.$ac_objext; then
5637 ac_cv_header_stdc=yes
5639 $as_echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5642 ac_cv_header_stdc=no
5645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 if test $ac_cv_header_stdc = yes; then
5648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5649 cat >conftest.$ac_ext <<_ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5659 $EGREP "memchr" >/dev/null 2>&1; then
5662 ac_cv_header_stdc=no
5668 if test $ac_cv_header_stdc = yes; then
5669 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5670 cat >conftest.$ac_ext <<_ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5680 $EGREP "free" >/dev/null 2>&1; then
5683 ac_cv_header_stdc=no
5689 if test $ac_cv_header_stdc = yes; then
5690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5691 if test "$cross_compiling" = yes; then
5694 cat >conftest.$ac_ext <<_ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5702 #if ((' ' & 0x0FF) == 0x020)
5703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5706 # define ISLOWER(c) \
5707 (('a' <= (c) && (c) <= 'i') \
5708 || ('j' <= (c) && (c) <= 'r') \
5709 || ('s' <= (c) && (c) <= 'z'))
5710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5718 for (i = 0; i < 256; i++)
5719 if (XOR (islower (i), ISLOWER (i))
5720 || toupper (i) != TOUPPER (i))
5725 rm -f conftest$ac_exeext
5726 if { (ac_try="$ac_link"
5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729 *) ac_try_echo=$ac_try;;
5731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5732 $as_echo "$ac_try_echo") >&5
5733 (eval "$ac_link") 2>&5
5735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5737 { (case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5742 $as_echo "$ac_try_echo") >&5
5743 (eval "$ac_try") 2>&5
5745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5749 $as_echo "$as_me: program exited with status $ac_status" >&5
5750 $as_echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5754 ac_cv_header_stdc=no
5756 rm -rf conftest.dSYM
5757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5763 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5764 $as_echo "$ac_cv_header_stdc" >&6; }
5765 if test $ac_cv_header_stdc = yes; then
5767 cat >>confdefs.h <<\_ACEOF
5768 #define STDC_HEADERS 1
5773 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5783 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5784 inttypes.h stdint.h unistd.h
5786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5787 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5788 $as_echo_n "checking for $ac_header... " >&6; }
5789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5790 $as_echo_n "(cached) " >&6
5792 cat >conftest.$ac_ext <<_ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 $ac_includes_default
5800 #include <$ac_header>
5802 rm -f conftest.$ac_objext
5803 if { (ac_try="$ac_compile"
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5809 $as_echo "$ac_try_echo") >&5
5810 (eval "$ac_compile") 2>conftest.er1
5812 grep -v '^ *+' conftest.er1 >conftest.err
5814 cat conftest.err >&5
5815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && {
5817 test -z "$ac_c_werror_flag" ||
5818 test ! -s conftest.err
5819 } && test -s conftest.$ac_objext; then
5820 eval "$as_ac_Header=yes"
5822 $as_echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5825 eval "$as_ac_Header=no"
5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830 ac_res=`eval 'as_val=${'$as_ac_Header'}
5831 $as_echo "$as_val"'`
5832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5833 $as_echo "$ac_res" >&6; }
5834 if test `eval 'as_val=${'$as_ac_Header'}
5835 $as_echo "$as_val"'` = yes; then
5836 cat >>confdefs.h <<_ACEOF
5837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5845 # The cast to long int works around a bug in the HP C Compiler
5846 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5847 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5848 # This bug is HP SR number 8606223364.
5849 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
5850 $as_echo_n "checking size of void *... " >&6; }
5851 if test "${ac_cv_sizeof_void_p+set}" = set; then
5852 $as_echo_n "(cached) " >&6
5854 if test "$cross_compiling" = yes; then
5855 # Depending upon the size, compute the lo and hi bounds.
5856 cat >conftest.$ac_ext <<_ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 $ac_includes_default
5866 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
5873 rm -f conftest.$ac_objext
5874 if { (ac_try="$ac_compile"
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5880 $as_echo "$ac_try_echo") >&5
5881 (eval "$ac_compile") 2>conftest.er1
5883 grep -v '^ *+' conftest.er1 >conftest.err
5885 cat conftest.err >&5
5886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } && {
5888 test -z "$ac_c_werror_flag" ||
5889 test ! -s conftest.err
5890 } && test -s conftest.$ac_objext; then
5893 cat >conftest.$ac_ext <<_ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 $ac_includes_default
5903 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
5910 rm -f conftest.$ac_objext
5911 if { (ac_try="$ac_compile"
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5917 $as_echo "$ac_try_echo") >&5
5918 (eval "$ac_compile") 2>conftest.er1
5920 grep -v '^ *+' conftest.er1 >conftest.err
5922 cat conftest.err >&5
5923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } && {
5925 test -z "$ac_c_werror_flag" ||
5926 test ! -s conftest.err
5927 } && test -s conftest.$ac_objext; then
5928 ac_hi=$ac_mid; break
5930 $as_echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5933 ac_lo=`expr $ac_mid + 1`
5934 if test $ac_lo -le $ac_mid; then
5938 ac_mid=`expr 2 '*' $ac_mid + 1`
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944 $as_echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 cat >conftest.$ac_ext <<_ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 $ac_includes_default
5957 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
5964 rm -f conftest.$ac_objext
5965 if { (ac_try="$ac_compile"
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5971 $as_echo "$ac_try_echo") >&5
5972 (eval "$ac_compile") 2>conftest.er1
5974 grep -v '^ *+' conftest.er1 >conftest.err
5976 cat conftest.err >&5
5977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } && {
5979 test -z "$ac_c_werror_flag" ||
5980 test ! -s conftest.err
5981 } && test -s conftest.$ac_objext; then
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 $ac_includes_default
5994 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6008 $as_echo "$ac_try_echo") >&5
6009 (eval "$ac_compile") 2>conftest.er1
6011 grep -v '^ *+' conftest.er1 >conftest.err
6013 cat conftest.err >&5
6014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } && {
6016 test -z "$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6018 } && test -s conftest.$ac_objext; then
6019 ac_lo=$ac_mid; break
6021 $as_echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 ac_hi=`expr '(' $ac_mid ')' - 1`
6025 if test $ac_mid -le $ac_hi; then
6029 ac_mid=`expr 2 '*' $ac_mid`
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 $as_echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045 # Binary search between lo and hi bounds.
6046 while test "x$ac_lo" != "x$ac_hi"; do
6047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6048 cat >conftest.$ac_ext <<_ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 $ac_includes_default
6058 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6065 rm -f conftest.$ac_objext
6066 if { (ac_try="$ac_compile"
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6072 $as_echo "$ac_try_echo") >&5
6073 (eval "$ac_compile") 2>conftest.er1
6075 grep -v '^ *+' conftest.er1 >conftest.err
6077 cat conftest.err >&5
6078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } && {
6080 test -z "$ac_c_werror_flag" ||
6081 test ! -s conftest.err
6082 } && test -s conftest.$ac_objext; then
6085 $as_echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6088 ac_lo=`expr '(' $ac_mid ')' + 1`
6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6095 '') if test "$ac_cv_type_void_p" = yes; then
6096 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6097 See \`config.log' for more details." >&5
6098 $as_echo "$as_me: error: cannot compute sizeof (void *)
6099 See \`config.log' for more details." >&2;}
6100 { (exit 77); exit 77; }; }
6102 ac_cv_sizeof_void_p=0
6106 cat >conftest.$ac_ext <<_ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 $ac_includes_default
6113 static long int longval () { return (long int) (sizeof (void *)); }
6114 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6121 FILE *f = fopen ("conftest.val", "w");
6124 if (((long int) (sizeof (void *))) < 0)
6126 long int i = longval ();
6127 if (i != ((long int) (sizeof (void *))))
6129 fprintf (f, "%ld", i);
6133 unsigned long int i = ulongval ();
6134 if (i != ((long int) (sizeof (void *))))
6136 fprintf (f, "%lu", i);
6138 /* Do not output a trailing newline, as this causes \r\n confusion
6139 on some platforms. */
6140 return ferror (f) || fclose (f) != 0;
6146 rm -f conftest$ac_exeext
6147 if { (ac_try="$ac_link"
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6153 $as_echo "$ac_try_echo") >&5
6154 (eval "$ac_link") 2>&5
6156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6158 { (case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6163 $as_echo "$ac_try_echo") >&5
6164 (eval "$ac_try") 2>&5
6166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 ac_cv_sizeof_void_p=`cat conftest.val`
6170 $as_echo "$as_me: program exited with status $ac_status" >&5
6171 $as_echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6175 if test "$ac_cv_type_void_p" = yes; then
6176 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6177 See \`config.log' for more details." >&5
6178 $as_echo "$as_me: error: cannot compute sizeof (void *)
6179 See \`config.log' for more details." >&2;}
6180 { (exit 77); exit 77; }; }
6182 ac_cv_sizeof_void_p=0
6185 rm -rf conftest.dSYM
6186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6190 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6191 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6195 cat >>confdefs.h <<_ACEOF
6196 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6200 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6201 $as_echo_n "checking for ANSI C header files... " >&6; }
6202 if test "${ac_cv_header_stdc+set}" = set; then
6203 $as_echo_n "(cached) " >&6
6205 cat >conftest.$ac_ext <<_ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6224 rm -f conftest.$ac_objext
6225 if { (ac_try="$ac_compile"
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6231 $as_echo "$ac_try_echo") >&5
6232 (eval "$ac_compile") 2>conftest.er1
6234 grep -v '^ *+' conftest.er1 >conftest.err
6236 cat conftest.err >&5
6237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } && {
6239 test -z "$ac_c_werror_flag" ||
6240 test ! -s conftest.err
6241 } && test -s conftest.$ac_objext; then
6242 ac_cv_header_stdc=yes
6244 $as_echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6247 ac_cv_header_stdc=no
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 if test $ac_cv_header_stdc = yes; then
6253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6254 cat >conftest.$ac_ext <<_ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6264 $EGREP "memchr" >/dev/null 2>&1; then
6267 ac_cv_header_stdc=no
6273 if test $ac_cv_header_stdc = yes; then
6274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6275 cat >conftest.$ac_ext <<_ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "free" >/dev/null 2>&1; then
6288 ac_cv_header_stdc=no
6294 if test $ac_cv_header_stdc = yes; then
6295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6296 if test "$cross_compiling" = yes; then
6299 cat >conftest.$ac_ext <<_ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6307 #if ((' ' & 0x0FF) == 0x020)
6308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6311 # define ISLOWER(c) \
6312 (('a' <= (c) && (c) <= 'i') \
6313 || ('j' <= (c) && (c) <= 'r') \
6314 || ('s' <= (c) && (c) <= 'z'))
6315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6323 for (i = 0; i < 256; i++)
6324 if (XOR (islower (i), ISLOWER (i))
6325 || toupper (i) != TOUPPER (i))
6330 rm -f conftest$ac_exeext
6331 if { (ac_try="$ac_link"
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6337 $as_echo "$ac_try_echo") >&5
6338 (eval "$ac_link") 2>&5
6340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6342 { (case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6347 $as_echo "$ac_try_echo") >&5
6348 (eval "$ac_try") 2>&5
6350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6354 $as_echo "$as_me: program exited with status $ac_status" >&5
6355 $as_echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6359 ac_cv_header_stdc=no
6361 rm -rf conftest.dSYM
6362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6368 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6369 $as_echo "$ac_cv_header_stdc" >&6; }
6370 if test $ac_cv_header_stdc = yes; then
6372 cat >>confdefs.h <<\_ACEOF
6373 #define STDC_HEADERS 1
6378 # Make sure we can run config.sub.
6379 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6380 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6381 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6382 { (exit 1); exit 1; }; }
6384 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6385 $as_echo_n "checking build system type... " >&6; }
6386 if test "${ac_cv_build+set}" = set; then
6387 $as_echo_n "(cached) " >&6
6389 ac_build_alias=$build_alias
6390 test "x$ac_build_alias" = x &&
6391 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6392 test "x$ac_build_alias" = x &&
6393 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6394 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6395 { (exit 1); exit 1; }; }
6396 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6397 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6398 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6399 { (exit 1); exit 1; }; }
6402 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6403 $as_echo "$ac_cv_build" >&6; }
6404 case $ac_cv_build in
6406 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6407 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6408 { (exit 1); exit 1; }; };;
6411 ac_save_IFS=$IFS; IFS='-'
6417 # Remember, the first character of IFS is used to create $*,
6418 # except with old shells:
6421 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6424 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6425 $as_echo_n "checking host system type... " >&6; }
6426 if test "${ac_cv_host+set}" = set; then
6427 $as_echo_n "(cached) " >&6
6429 if test "x$host_alias" = x; then
6430 ac_cv_host=$ac_cv_build
6432 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6433 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6434 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6435 { (exit 1); exit 1; }; }
6439 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6440 $as_echo "$ac_cv_host" >&6; }
6443 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6444 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6445 { (exit 1); exit 1; }; };;
6448 ac_save_IFS=$IFS; IFS='-'
6454 # Remember, the first character of IFS is used to create $*,
6455 # except with old shells:
6458 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6461 # Check whether --enable-trace was given.
6462 if test "${enable_trace+set}" = set; then
6463 enableval=$enable_trace; if test "$enableval" == "yes"; then
6465 cat >>confdefs.h <<\_ACEOF
6466 #define ENABLE_TRACE_IO 1
6472 # Check whether --enable-watch was given.
6473 if test "${enable_watch+set}" = set; then
6474 enableval=$enable_watch; if test "$enableval" == "yes"; then
6476 cat >>confdefs.h <<\_ACEOF
6477 #define ENABLE_WATCH 1
6483 # Check whether --enable-sh4stats was given.
6484 if test "${enable_sh4stats+set}" = set; then
6485 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
6487 cat >>confdefs.h <<\_ACEOF
6488 #define ENABLE_SH4STATS 1
6495 # Check whether --with-osmesa was given.
6496 if test "${with_osmesa+set}" = set; then
6497 withval=$with_osmesa;
6503 # Check whether --with-gtk was given.
6504 if test "${with_gtk+set}" = set; then
6505 withval=$with_gtk; with_gtk=yes
6512 lxdream_save_cppflags="$CPPFLAGS"
6513 CPPFLAGS="$CPPFLAGS -x objective-c"
6514 cat >conftest.$ac_ext <<_ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6529 rm -f conftest.$ac_objext
6530 if { (ac_try="$ac_compile"
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6536 $as_echo "$ac_try_echo") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6539 grep -v '^ *+' conftest.er1 >conftest.err
6541 cat conftest.err >&5
6542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6549 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6550 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6551 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6552 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6553 $as_echo_n "(cached) " >&6
6555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6556 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6558 # Is the header compilable?
6559 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
6560 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
6561 cat >conftest.$ac_ext <<_ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567 $ac_includes_default
6568 #include <Cocoa/Cocoa.h>
6570 rm -f conftest.$ac_objext
6571 if { (ac_try="$ac_compile"
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6577 $as_echo "$ac_try_echo") >&5
6578 (eval "$ac_compile") 2>conftest.er1
6580 grep -v '^ *+' conftest.er1 >conftest.err
6582 cat conftest.err >&5
6583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } && {
6585 test -z "$ac_c_werror_flag" ||
6586 test ! -s conftest.err
6587 } && test -s conftest.$ac_objext; then
6588 ac_header_compiler=yes
6590 $as_echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6593 ac_header_compiler=no
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6598 $as_echo "$ac_header_compiler" >&6; }
6600 # Is the header present?
6601 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
6602 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
6603 cat >conftest.$ac_ext <<_ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6609 #include <Cocoa/Cocoa.h>
6611 if { (ac_try="$ac_cpp conftest.$ac_ext"
6613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6614 *) ac_try_echo=$ac_try;;
6616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6617 $as_echo "$ac_try_echo") >&5
6618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6620 grep -v '^ *+' conftest.er1 >conftest.err
6622 cat conftest.err >&5
6623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } >/dev/null && {
6625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6626 test ! -s conftest.err
6628 ac_header_preproc=yes
6630 $as_echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 ac_header_preproc=no
6636 rm -f conftest.err conftest.$ac_ext
6637 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6638 $as_echo "$ac_header_preproc" >&6; }
6640 # So? What about this header?
6641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6643 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6644 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6645 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
6646 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
6647 ac_header_preproc=yes
6650 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
6651 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
6652 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
6653 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
6654 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
6655 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
6656 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
6657 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6658 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
6659 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
6660 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
6661 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
6665 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6666 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6667 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6668 $as_echo_n "(cached) " >&6
6670 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
6672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6673 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6676 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
6680 LIBS="$LIBS -framework AppKit"
6681 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"
6683 cat >>confdefs.h <<\_ACEOF
6684 #define HAVE_COCOA 1
6688 cat >>confdefs.h <<\_ACEOF
6689 #define APPLE_BUILD 1
6697 if test "x$with_gtk" = "xx11"; then
6703 $as_echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 CPPFLAGS="$lxdream_save_cppflags"
6709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
6723 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6724 if test -n "$ac_tool_prefix"; then
6725 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6726 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6730 $as_echo_n "(cached) " >&6
6734 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6745 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6756 if test -n "$PKG_CONFIG"; then
6757 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6758 $as_echo "$PKG_CONFIG" >&6; }
6760 { $as_echo "$as_me:$LINENO: result: no" >&5
6761 $as_echo "no" >&6; }
6766 if test -z "$ac_cv_path_PKG_CONFIG"; then
6767 ac_pt_PKG_CONFIG=$PKG_CONFIG
6768 # Extract the first word of "pkg-config", so it can be a program name with args.
6769 set dummy pkg-config; ac_word=$2
6770 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6773 $as_echo_n "(cached) " >&6
6775 case $ac_pt_PKG_CONFIG in
6777 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.