2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="configure.in"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
647 program_transform_name
688 INSTALL_STRIP_PROGRAM
697 MAINTAINER_MODE_FALSE
804 enable_option_checking
805 enable_maintainer_mode
806 enable_dependency_tracking
813 ac_precious_vars='build_alias
839 # Initialize some variables set by options.
841 ac_init_version=false
842 ac_unrecognized_opts=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
853 program_transform_name=s,x,x,
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE}'
878 infodir='${datarootdir}/info'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
899 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
946 { (exit 1); exit 1; }; }
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
956 eval enable_$ac_useropt=no ;;
958 -docdir | --docdir | --docdi | --doc | --do)
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
973 { (exit 1); exit 1; }; }
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
983 eval enable_$ac_useropt=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
998 -help | --help | --hel | --he | -h)
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1147 -site=* | --site=* | --sit=*)
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval with_$ac_useropt=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1205 eval with_$ac_useropt=no ;;
1208 # Obsolete; use --with-x.
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1226 Try \`$0 --help' for more information." >&2
1227 { (exit 1); exit 1; }; }
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1234 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1235 { (exit 1); exit 1; }; }
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1253 { (exit 1); exit 1; }; }
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1259 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1260 { (exit 1); exit 1; }; } ;;
1261 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1278 # Be sure to have absolute directory names.
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1284 { (exit 1); exit 1; }; }
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1292 target=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308 test "$silent" = yes && exec 6>/dev/null
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1315 { (exit 1); exit 1; }; }
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1318 { (exit 1); exit 1; }; }
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1353 ac_srcdir_defaulted=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1358 { (exit 1); exit 1; }; }
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1363 { (exit 1); exit 1; }; }
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1389 \`configure' configures this package to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 if test -n "$ac_init_help"; then
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-maintainer-mode enable make rules and dependencies not useful
1466 (and sometimes confusing) to the casual installer
1467 --disable-dependency-tracking speeds up one-time build
1468 --enable-dependency-tracking do not reject slow dependency extractors
1469 --enable-trace Enable generation of IO traces (warning: hurts
1471 --enable-watch Enable watchpoints in the debugger (warning: hurts
1473 --enable-sh4stats Enable statistics on executed sh4 instructions
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-osmesa Build with the osmesa GL library (software
1480 --with-gtk Build with the GTK UI. Default on X11 systems
1482 Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 LIBS libraries to pass to the linker, e.g. -l<library>
1488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 CCAS assembler compiler command (defaults to CC)
1491 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1493 PKG_CONFIG path to pkg-config utility
1495 C compiler flags for LIBPNG, overriding pkg-config
1496 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1497 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1498 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1499 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1500 GTK_LIBS linker flags for GTK, overriding pkg-config
1502 C compiler flags for PULSE, overriding pkg-config
1503 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1505 C compiler flags for ESOUND, overriding pkg-config
1506 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1507 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1508 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1542 .) # We are building in place.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1576 generated by GNU Autoconf 2.62
1578 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1579 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1585 cat >config.log <<_ACEOF
1586 This file contains any messages produced by compilers while
1587 running configure, to aid debugging if configure makes a mistake.
1589 It was created by $as_me, which was
1590 generated by GNU Autoconf 2.62. Invocation command line was
1602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1611 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1612 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1613 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1614 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1615 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1616 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1617 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 test -z "$as_dir" && as_dir=.
1626 $as_echo "PATH: $as_dir"
1642 # Keep a trace of the command line.
1643 # Strip out --no-create and --no-recursion so they do not pile up.
1644 # Strip out --silent because we don't want to record it for future runs.
1645 # Also quote any args containing shell meta-characters.
1646 # Make two passes to allow for proper duplicate-argument suppression.
1650 ac_must_keep_next=false
1656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658 | -silent | --silent | --silen | --sile | --sil)
1661 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1664 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667 if test $ac_must_keep_next = true; then
1668 ac_must_keep_next=false # Got value, back to normal.
1671 *=* | --config-cache | -C | -disable-* | --disable-* \
1672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674 | -with-* | --with-* | -without-* | --without-* | --x)
1675 case "$ac_configure_args0 " in
1676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1679 -* ) ac_must_keep_next=true ;;
1682 ac_configure_args="$ac_configure_args '$ac_arg'"
1687 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690 # When interrupted or exit'd, cleanup temporary files, and complete
1691 # config.log. We remove comments because anyway the quotes in there
1692 # would cause problems or look ugly.
1693 # WARNING: Use '\'' to represent an apostrophe within the trap.
1694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1695 trap 'exit_status=$?
1696 # Save into config.log some information that might help in debugging.
1701 ## ---------------- ##
1702 ## Cache variables. ##
1703 ## ---------------- ##
1706 # The following way of writing the cache mishandles newlines in values,
1708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709 eval ac_val=\$$ac_var
1713 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1717 _ | IFS | as_nl) ;; #(
1718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1719 *) $as_unset $ac_var ;;
1724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725 *${as_nl}ac_space=\ *)
1727 "s/'\''/'\''\\\\'\'''\''/g;
1728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1744 for ac_var in $ac_subst_vars
1746 eval ac_val=\$$ac_var
1748 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 $as_echo "$ac_var='\''$ac_val'\''"
1754 if test -n "$ac_subst_files"; then
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1761 for ac_var in $ac_subst_files
1763 eval ac_val=\$$ac_var
1765 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767 $as_echo "$ac_var='\''$ac_val'\''"
1772 if test -s confdefs.h; then
1782 test "$ac_signal" != 0 &&
1783 $as_echo "$as_me: caught signal $ac_signal"
1784 $as_echo "$as_me: exit $exit_status"
1786 rm -f core *.core core.conftest.* &&
1787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1790 for ac_signal in 1 2 13 15; do
1791 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1798 # Predefined preprocessor variables.
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer an explicitly selected file to automatically selected ones.
1829 if test -n "$CONFIG_SITE"; then
1830 ac_site_file1=$CONFIG_SITE
1831 elif test "x$prefix" != xNONE; then
1832 ac_site_file1=$prefix/share/config.site
1833 ac_site_file2=$prefix/etc/config.site
1835 ac_site_file1=$ac_default_prefix/share/config.site
1836 ac_site_file2=$ac_default_prefix/etc/config.site
1838 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1840 test "x$ac_site_file" = xNONE && continue
1841 if test -r "$ac_site_file"; then
1842 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1844 sed 's/^/| /' "$ac_site_file" >&5
1849 if test -r "$cache_file"; then
1850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
1853 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854 $as_echo "$as_me: loading cache $cache_file" >&6;}
1856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
1861 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862 $as_echo "$as_me: creating cache $cache_file" >&6;}
1866 # Check that the precious variables saved in the cache have kept the same
1868 ac_cache_corrupted=false
1869 for ac_var in $ac_precious_vars; do
1870 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871 eval ac_new_set=\$ac_env_${ac_var}_set
1872 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873 eval ac_new_val=\$ac_env_${ac_var}_value
1874 case $ac_old_set,$ac_new_set in
1876 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1880 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1885 if test "x$ac_old_val" != "x$ac_new_val"; then
1886 # differences in whitespace do not lead to failure.
1887 ac_old_val_w=`echo x $ac_old_val`
1888 ac_new_val_w=`echo x $ac_new_val`
1889 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1890 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892 ac_cache_corrupted=:
1894 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1895 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1896 eval $ac_var=\$ac_old_val
1898 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1899 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1900 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1901 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1904 # Pass precious variables to config.status.
1905 if test "$ac_new_set" = set; then
1907 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 *) ac_arg=$ac_var=$ac_new_val ;;
1910 case " $ac_configure_args " in
1911 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1912 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916 if $ac_cache_corrupted; then
1917 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921 { (exit 1); exit 1; }; }
1941 ac_cpp='$CPP $CPPFLAGS'
1942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947 am__api_version="1.9"
1949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1950 if test -f "$ac_dir/install-sh"; then
1952 ac_install_sh="$ac_aux_dir/install-sh -c"
1954 elif test -f "$ac_dir/install.sh"; then
1956 ac_install_sh="$ac_aux_dir/install.sh -c"
1958 elif test -f "$ac_dir/shtool"; then
1960 ac_install_sh="$ac_aux_dir/shtool install -c"
1964 if test -z "$ac_aux_dir"; then
1965 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1966 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1967 { (exit 1); exit 1; }; }
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979 # Find a good install program. We prefer a C program (faster),
1980 # so one script is as good as another. But avoid the broken or
1981 # incompatible versions:
1982 # SysV /etc/install, /usr/sbin/install
1983 # SunOS /usr/etc/install
1984 # IRIX /sbin/install
1986 # AmigaOS /C/install, which installs bootblocks on floppy discs
1987 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1990 # OS/2's system install, which has a completely different semantic
1991 # ./install, which can be erroneously created by make from ./install.sh.
1992 # Reject install programs that cannot install multiple files.
1993 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1994 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1995 if test -z "$INSTALL"; then
1996 if test "${ac_cv_path_install+set}" = set; then
1997 $as_echo_n "(cached) " >&6
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 # Account for people who put trailing slashes in PATH elements.
2006 ./ | .// | /cC/* | \
2007 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2008 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2011 # OSF1 and SCO ODT 3.0 have their own names for install.
2012 # Don't use installbsd from OSF since it installs stuff as root
2014 for ac_prog in ginstall scoinst install; do
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2017 if test $ac_prog = install &&
2018 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # AIX install. It has an incompatible calling convention.
2021 elif test $ac_prog = install &&
2022 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023 # program-specific install script used by HP pwplus--don't use.
2026 rm -rf conftest.one conftest.two conftest.dir
2027 echo one > conftest.one
2028 echo two > conftest.two
2030 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2031 test -s conftest.one && test -s conftest.two &&
2032 test -s conftest.dir/conftest.one &&
2033 test -s conftest.dir/conftest.two
2035 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2048 rm -rf conftest.one conftest.two conftest.dir
2051 if test "${ac_cv_path_install+set}" = set; then
2052 INSTALL=$ac_cv_path_install
2054 # As a last resort, use the slow shell script. Don't cache a
2055 # value for INSTALL within a source directory, because that will
2056 # break other packages using the cache if that directory is
2057 # removed, or if the value is a relative name.
2058 INSTALL=$ac_install_sh
2061 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2062 $as_echo "$INSTALL" >&6; }
2064 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2065 # It thinks the first close brace ends the variable substitution.
2066 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2068 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2070 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2072 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2073 $as_echo_n "checking whether build environment is sane... " >&6; }
2076 echo timestamp > conftest.file
2077 # Do `set' in a subshell so we don't clobber the current shell's
2078 # arguments. Must try -L first in case configure is actually a
2079 # symlink; some systems play weird games with the mod time of symlinks
2080 # (eg FreeBSD returns the mod time of the symlink's containing
2083 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2084 if test "$*" = "X"; then
2086 set X `ls -t $srcdir/configure conftest.file`
2089 if test "$*" != "X $srcdir/configure conftest.file" \
2090 && test "$*" != "X conftest.file $srcdir/configure"; then
2092 # If neither matched, then we have a broken ls. This can happen
2093 # if, for instance, CONFIG_SHELL is bash and it inherits a
2094 # broken ls alias from the environment. This has actually
2095 # happened. Such a system could not be considered "sane".
2096 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2097 alias in your environment" >&5
2098 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2099 alias in your environment" >&2;}
2100 { (exit 1); exit 1; }; }
2103 test "$2" = conftest.file
2109 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2110 Check your system clock" >&5
2111 $as_echo "$as_me: error: newly created file is older than distributed files!
2112 Check your system clock" >&2;}
2113 { (exit 1); exit 1; }; }
2115 { $as_echo "$as_me:$LINENO: result: yes" >&5
2116 $as_echo "yes" >&6; }
2117 test "$program_prefix" != NONE &&
2118 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2119 # Use a double $ so make ignores it.
2120 test "$program_suffix" != NONE &&
2121 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2122 # Double any \ or $.
2123 # By default was `s,x,x', remove it if useless.
2124 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2125 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2127 # expand $ac_aux_dir to an absolute path
2128 am_aux_dir=`cd $ac_aux_dir && pwd`
2130 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2131 # Use eval to expand $SHELL
2132 if eval "$MISSING --run true"; then
2133 am_missing_run="$MISSING --run "
2136 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2137 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2140 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2141 # We used to keeping the `.' as first argument, in order to
2142 # allow $(mkdir_p) to be used without argument. As in
2143 # $(mkdir_p) $(somedir)
2144 # where $(somedir) is conditionally defined. However this is wrong
2146 # 1. if the package is installed by a user who cannot write `.'
2147 # make install will fail,
2148 # 2. the above comment should most certainly read
2149 # $(mkdir_p) $(DESTDIR)$(somedir)
2150 # so it does not work when $(somedir) is undefined and
2151 # $(DESTDIR) is not.
2152 # To support the latter case, we have to write
2153 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2154 # so the `.' trick is pointless.
2155 mkdir_p='mkdir -p --'
2157 # On NextStep and OpenStep, the `mkdir' command does not
2158 # recognize any option. It will interpret all options as
2159 # directories to create, and then abort because `.' already
2161 for d in ./-p ./--version;
2163 test -d $d && rmdir $d
2165 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2166 if test -f "$ac_aux_dir/mkinstalldirs"; then
2167 mkdir_p='$(mkinstalldirs)'
2169 mkdir_p='$(install_sh) -d'
2173 for ac_prog in gawk mawk nawk awk
2175 # Extract the first word of "$ac_prog", so it can be a program name with args.
2176 set dummy $ac_prog; ac_word=$2
2177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 $as_echo_n "checking for $ac_word... " >&6; }
2179 if test "${ac_cv_prog_AWK+set}" = set; then
2180 $as_echo_n "(cached) " >&6
2182 if test -n "$AWK"; then
2183 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192 ac_cv_prog_AWK="$ac_prog"
2193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 if test -n "$AWK"; then
2204 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2205 $as_echo "$AWK" >&6; }
2207 { $as_echo "$as_me:$LINENO: result: no" >&5
2208 $as_echo "no" >&6; }
2212 test -n "$AWK" && break
2215 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2216 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2218 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2219 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2220 $as_echo_n "(cached) " >&6
2222 cat >conftest.make <<\_ACEOF
2225 @echo '@@@%%%=$(MAKE)=@@@%%%'
2227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2228 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2230 eval ac_cv_prog_make_${ac_make}_set=yes;;
2232 eval ac_cv_prog_make_${ac_make}_set=no;;
2236 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2237 { $as_echo "$as_me:$LINENO: result: yes" >&5
2238 $as_echo "yes" >&6; }
2241 { $as_echo "$as_me:$LINENO: result: no" >&5
2242 $as_echo "no" >&6; }
2243 SET_MAKE="MAKE=${MAKE-make}"
2246 rm -rf .tst 2>/dev/null
2247 mkdir .tst 2>/dev/null
2248 if test -d .tst; then
2253 rmdir .tst 2>/dev/null
2255 # test to see if srcdir already configured
2256 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2257 test -f $srcdir/config.status; then
2258 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2259 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2260 { (exit 1); exit 1; }; }
2263 # test whether we have cygpath
2264 if test -z "$CYGPATH_W"; then
2265 if (cygpath --version) >/dev/null 2>/dev/null; then
2266 CYGPATH_W='cygpath -w'
2273 # Define the identity of the package.
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE "$PACKAGE"
2283 cat >>confdefs.h <<_ACEOF
2284 #define VERSION "$VERSION"
2287 # Some tools Automake needs.
2289 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2292 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2295 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2298 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2301 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2303 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2305 # Installed binaries are usually stripped using `strip' when the user
2306 # run `make install-strip'. However `strip' might not be the right
2307 # tool to use in cross-compilation environments, therefore Automake
2308 # will honor the `STRIP' environment variable to overrule this program.
2309 if test "$cross_compiling" != no; then
2310 if test -n "$ac_tool_prefix"; then
2311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2312 set dummy ${ac_tool_prefix}strip; ac_word=$2
2313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 $as_echo_n "checking for $ac_word... " >&6; }
2315 if test "${ac_cv_prog_STRIP+set}" = set; then
2316 $as_echo_n "(cached) " >&6
2318 if test -n "$STRIP"; then
2319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 STRIP=$ac_cv_prog_STRIP
2339 if test -n "$STRIP"; then
2340 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2341 $as_echo "$STRIP" >&6; }
2343 { $as_echo "$as_me:$LINENO: result: no" >&5
2344 $as_echo "no" >&6; }
2349 if test -z "$ac_cv_prog_STRIP"; then
2351 # Extract the first word of "strip", so it can be a program name with args.
2352 set dummy strip; ac_word=$2
2353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 $as_echo_n "checking for $ac_word... " >&6; }
2355 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2356 $as_echo_n "(cached) " >&6
2358 if test -n "$ac_ct_STRIP"; then
2359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2368 ac_cv_prog_ac_ct_STRIP="strip"
2369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2379 if test -n "$ac_ct_STRIP"; then
2380 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2381 $as_echo "$ac_ct_STRIP" >&6; }
2383 { $as_echo "$as_me:$LINENO: result: no" >&5
2384 $as_echo "no" >&6; }
2387 if test "x$ac_ct_STRIP" = x; then
2390 case $cross_compiling:$ac_tool_warned in
2392 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2393 whose name does not start with the host triplet. If you think this
2394 configuration is useful to you, please write to autoconf@gnu.org." >&5
2395 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2396 whose name does not start with the host triplet. If you think this
2397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2398 ac_tool_warned=yes ;;
2403 STRIP="$ac_cv_prog_STRIP"
2407 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2409 # We need awk for the "check" target. The system "awk" is bad on
2411 # Always define AMTAR for backward compatibility.
2413 AMTAR=${AMTAR-"${am_missing_run}tar"}
2415 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2421 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2422 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2423 # Check whether --enable-maintainer-mode was given.
2424 if test "${enable_maintainer_mode+set}" = set; then
2425 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2427 USE_MAINTAINER_MODE=no
2430 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2431 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2434 if test $USE_MAINTAINER_MODE = yes; then
2435 MAINTAINER_MODE_TRUE=
2436 MAINTAINER_MODE_FALSE='#'
2438 MAINTAINER_MODE_TRUE='#'
2439 MAINTAINER_MODE_FALSE=
2442 MAINT=$MAINTAINER_MODE_TRUE
2445 ac_config_headers="$ac_config_headers config.h"
2448 DEPDIR="${am__leading_dot}deps"
2450 ac_config_commands="$ac_config_commands depfiles"
2453 am_make=${MAKE-make}
2454 cat > confinc << 'END'
2459 # If we don't find an include directive, just comment out the code.
2460 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2461 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2465 # First try GNU make style include.
2466 echo "include confinc" > confmf
2467 # We grep out `Entering directory' and `Leaving directory'
2468 # messages which can occur if `w' ends up in MAKEFLAGS.
2469 # In particular we don't look at `^make:' because GNU make might
2470 # be invoked under some other name (usually "gmake"), in which
2471 # case it prints its new name instead of `make'.
2472 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2477 # Now try BSD make style include.
2478 if test "$am__include" = "#"; then
2479 echo '.include "confinc"' > confmf
2480 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2481 am__include=.include
2488 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2489 $as_echo "$_am_result" >&6; }
2490 rm -f confinc confmf
2492 # Check whether --enable-dependency-tracking was given.
2493 if test "${enable_dependency_tracking+set}" = set; then
2494 enableval=$enable_dependency_tracking;
2497 if test "x$enable_dependency_tracking" != xno; then
2498 am_depcomp="$ac_aux_dir/depcomp"
2503 if test "x$enable_dependency_tracking" != xno; then
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518 if test -n "$ac_tool_prefix"; then
2519 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2520 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 $as_echo_n "checking for $ac_word... " >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 $as_echo_n "(cached) " >&6
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 if test -n "$CC"; then
2548 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2549 $as_echo "$CC" >&6; }
2551 { $as_echo "$as_me:$LINENO: result: no" >&5
2552 $as_echo "no" >&6; }
2557 if test -z "$ac_cv_prog_CC"; then
2559 # Extract the first word of "gcc", so it can be a program name with args.
2560 set dummy gcc; ac_word=$2
2561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 $as_echo_n "checking for $ac_word... " >&6; }
2563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2564 $as_echo_n "(cached) " >&6
2566 if test -n "$ac_ct_CC"; then
2567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576 ac_cv_prog_ac_ct_CC="gcc"
2577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2587 if test -n "$ac_ct_CC"; then
2588 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2589 $as_echo "$ac_ct_CC" >&6; }
2591 { $as_echo "$as_me:$LINENO: result: no" >&5
2592 $as_echo "no" >&6; }
2595 if test "x$ac_ct_CC" = x; then
2598 case $cross_compiling:$ac_tool_warned in
2600 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2601 whose name does not start with the host triplet. If you think this
2602 configuration is useful to you, please write to autoconf@gnu.org." >&5
2603 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2604 whose name does not start with the host triplet. If you think this
2605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2606 ac_tool_warned=yes ;;
2614 if test -z "$CC"; then
2615 if test -n "$ac_tool_prefix"; then
2616 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}cc; ac_word=$2
2618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if test "${ac_cv_prog_CC+set}" = set; then
2621 $as_echo_n "(cached) " >&6
2623 if test -n "$CC"; then
2624 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_CC="${ac_tool_prefix}cc"
2634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 if test -n "$CC"; then
2645 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2646 $as_echo "$CC" >&6; }
2648 { $as_echo "$as_me:$LINENO: result: no" >&5
2649 $as_echo "no" >&6; }
2655 if test -z "$CC"; then
2656 # Extract the first word of "cc", so it can be a program name with args.
2657 set dummy cc; ac_word=$2
2658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_CC+set}" = set; then
2661 $as_echo_n "(cached) " >&6
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2675 ac_prog_rejected=yes
2679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 if test $ac_prog_rejected = yes; then
2687 # We found a bogon in the path, so make sure we never use it.
2688 set dummy $ac_cv_prog_CC
2690 if test $# != 0; then
2691 # We chose a different compiler from the bogus one.
2692 # However, it has the same basename, so the bogon will be chosen
2693 # first if we set CC to just the basename; use the full file name.
2695 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2701 if test -n "$CC"; then
2702 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2703 $as_echo "$CC" >&6; }
2705 { $as_echo "$as_me:$LINENO: result: no" >&5
2706 $as_echo "no" >&6; }
2711 if test -z "$CC"; then
2712 if test -n "$ac_tool_prefix"; then
2713 for ac_prog in cl.exe
2715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2717 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if test "${ac_cv_prog_CC+set}" = set; then
2720 $as_echo_n "(cached) " >&6
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC="$CC" # Let the user override the test.
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2733 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 if test -n "$CC"; then
2744 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2745 $as_echo "$CC" >&6; }
2747 { $as_echo "$as_me:$LINENO: result: no" >&5
2748 $as_echo "no" >&6; }
2752 test -n "$CC" && break
2755 if test -z "$CC"; then
2757 for ac_prog in cl.exe
2759 # Extract the first word of "$ac_prog", so it can be a program name with args.
2760 set dummy $ac_prog; ac_word=$2
2761 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2764 $as_echo_n "(cached) " >&6
2766 if test -n "$ac_ct_CC"; then
2767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_ac_ct_CC="$ac_prog"
2777 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2787 if test -n "$ac_ct_CC"; then
2788 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2789 $as_echo "$ac_ct_CC" >&6; }
2791 { $as_echo "$as_me:$LINENO: result: no" >&5
2792 $as_echo "no" >&6; }
2796 test -n "$ac_ct_CC" && break
2799 if test "x$ac_ct_CC" = x; then
2802 case $cross_compiling:$ac_tool_warned in
2804 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2805 whose name does not start with the host triplet. If you think this
2806 configuration is useful to you, please write to autoconf@gnu.org." >&5
2807 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2808 whose name does not start with the host triplet. If you think this
2809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2810 ac_tool_warned=yes ;;
2819 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2820 See \`config.log' for more details." >&5
2821 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2822 See \`config.log' for more details." >&2;}
2823 { (exit 1); exit 1; }; }
2825 # Provide some information about the compiler.
2826 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2829 { (ac_try="$ac_compiler --version >&5"
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2835 $as_echo "$ac_try_echo") >&5
2836 (eval "$ac_compiler --version >&5") 2>&5
2838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }
2840 { (ac_try="$ac_compiler -v >&5"
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2846 $as_echo "$ac_try_echo") >&5
2847 (eval "$ac_compiler -v >&5") 2>&5
2849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }
2851 { (ac_try="$ac_compiler -V >&5"
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857 $as_echo "$ac_try_echo") >&5
2858 (eval "$ac_compiler -V >&5") 2>&5
2860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2863 cat >conftest.$ac_ext <<_ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2878 ac_clean_files_save=$ac_clean_files
2879 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2880 # Try to create an executable without -o first, disregard a.out.
2881 # It will help us diagnose broken compilers, and finding out an intuition
2883 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2884 $as_echo_n "checking for C compiler default output file name... " >&6; }
2885 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2887 # The possible output files:
2888 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2891 for ac_file in $ac_files
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2895 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2900 if { (ac_try="$ac_link_default"
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2906 $as_echo "$ac_try_echo") >&5
2907 (eval "$ac_link_default") 2>&5
2909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; then
2911 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2912 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2913 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2914 # so that the user can short-circuit this test for compilers unknown to
2916 for ac_file in $ac_files ''
2918 test -f "$ac_file" || continue
2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2923 # We found the default executable, but exeext='' is most
2927 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2929 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931 # We set ac_cv_exeext here because the later test for it is not
2932 # safe: cross compilers may not add the suffix if given an `-o'
2933 # argument, so we may need to know it at that point already.
2934 # Even if this section looks crufty: it has the advantage of
2941 test "$ac_cv_exeext" = no && ac_cv_exeext=
2947 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2948 $as_echo "$ac_file" >&6; }
2949 if test -z "$ac_file"; then
2950 $as_echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2954 See \`config.log' for more details." >&5
2955 $as_echo "$as_me: error: C compiler cannot create executables
2956 See \`config.log' for more details." >&2;}
2957 { (exit 77); exit 77; }; }
2960 ac_exeext=$ac_cv_exeext
2962 # Check that the compiler produces executables we can run. If not, either
2963 # the compiler is broken, or we cross compile.
2964 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2965 $as_echo_n "checking whether the C compiler works... " >&6; }
2966 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2967 # If not cross compiling, check that we can run a simple program.
2968 if test "$cross_compiling" != yes; then
2969 if { ac_try='./$ac_file'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2975 $as_echo "$ac_try_echo") >&5
2976 (eval "$ac_try") 2>&5
2978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2982 if test "$cross_compiling" = maybe; then
2985 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2986 If you meant to cross compile, use \`--host'.
2987 See \`config.log' for more details." >&5
2988 $as_echo "$as_me: error: cannot run C compiled programs.
2989 If you meant to cross compile, use \`--host'.
2990 See \`config.log' for more details." >&2;}
2991 { (exit 1); exit 1; }; }
2995 { $as_echo "$as_me:$LINENO: result: yes" >&5
2996 $as_echo "yes" >&6; }
2998 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2999 ac_clean_files=$ac_clean_files_save
3000 # Check that the compiler produces executables we can run. If not, either
3001 # the compiler is broken, or we cross compile.
3002 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3003 $as_echo_n "checking whether we are cross compiling... " >&6; }
3004 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3005 $as_echo "$cross_compiling" >&6; }
3007 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3008 $as_echo_n "checking for suffix of executables... " >&6; }
3009 if { (ac_try="$ac_link"
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3015 $as_echo "$ac_try_echo") >&5
3016 (eval "$ac_link") 2>&5
3018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; then
3020 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3021 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3022 # work properly (i.e., refer to `conftest.exe'), while it won't with
3024 for ac_file in conftest.exe conftest conftest.*; do
3025 test -f "$ac_file" || continue
3027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3028 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3034 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3035 See \`config.log' for more details." >&5
3036 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3037 See \`config.log' for more details." >&2;}
3038 { (exit 1); exit 1; }; }
3041 rm -f conftest$ac_cv_exeext
3042 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3043 $as_echo "$ac_cv_exeext" >&6; }
3045 rm -f conftest.$ac_ext
3046 EXEEXT=$ac_cv_exeext
3048 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3049 $as_echo_n "checking for suffix of object files... " >&6; }
3050 if test "${ac_cv_objext+set}" = set; then
3051 $as_echo_n "(cached) " >&6
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 rm -f conftest.o conftest.obj
3069 if { (ac_try="$ac_compile"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3075 $as_echo "$ac_try_echo") >&5
3076 (eval "$ac_compile") 2>&5
3078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; then
3080 for ac_file in conftest.o conftest.obj conftest.*; do
3081 test -f "$ac_file" || continue;
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3084 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3089 $as_echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3093 See \`config.log' for more details." >&5
3094 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3095 See \`config.log' for more details." >&2;}
3096 { (exit 1); exit 1; }; }
3099 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3101 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3102 $as_echo "$ac_cv_objext" >&6; }
3103 OBJEXT=$ac_cv_objext
3105 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3106 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3107 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3108 $as_echo_n "(cached) " >&6
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3128 rm -f conftest.$ac_objext
3129 if { (ac_try="$ac_compile"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3135 $as_echo "$ac_try_echo") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } && {
3143 test -z "$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 } && test -s conftest.$ac_objext; then
3148 $as_echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3158 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3159 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3160 if test $ac_compiler_gnu = yes; then
3165 ac_test_CFLAGS=${CFLAGS+set}
3166 ac_save_CFLAGS=$CFLAGS
3167 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3168 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3169 if test "${ac_cv_prog_cc_g+set}" = set; then
3170 $as_echo_n "(cached) " >&6
3172 ac_save_c_werror_flag=$ac_c_werror_flag
3173 ac_c_werror_flag=yes
3176 cat >conftest.$ac_ext <<_ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3198 $as_echo "$ac_try_echo") >&5
3199 (eval "$ac_compile") 2>conftest.er1
3201 grep -v '^ *+' conftest.er1 >conftest.err
3203 cat conftest.err >&5
3204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } && {
3206 test -z "$ac_c_werror_flag" ||
3207 test ! -s conftest.err
3208 } && test -s conftest.$ac_objext; then
3211 $as_echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3237 $as_echo "$ac_try_echo") >&5
3238 (eval "$ac_compile") 2>conftest.er1
3240 grep -v '^ *+' conftest.er1 >conftest.err
3242 cat conftest.err >&5
3243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } && {
3245 test -z "$ac_c_werror_flag" ||
3246 test ! -s conftest.err
3247 } && test -s conftest.$ac_objext; then
3250 $as_echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3253 ac_c_werror_flag=$ac_save_c_werror_flag
3255 cat >conftest.$ac_ext <<_ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3270 rm -f conftest.$ac_objext
3271 if { (ac_try="$ac_compile"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3277 $as_echo "$ac_try_echo") >&5
3278 (eval "$ac_compile") 2>conftest.er1
3280 grep -v '^ *+' conftest.er1 >conftest.err
3282 cat conftest.err >&5
3283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } && {
3285 test -z "$ac_c_werror_flag" ||
3286 test ! -s conftest.err
3287 } && test -s conftest.$ac_objext; then
3290 $as_echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 ac_c_werror_flag=$ac_save_c_werror_flag
3305 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3306 $as_echo "$ac_cv_prog_cc_g" >&6; }
3307 if test "$ac_test_CFLAGS" = set; then
3308 CFLAGS=$ac_save_CFLAGS
3309 elif test $ac_cv_prog_cc_g = yes; then
3310 if test "$GCC" = yes; then
3316 if test "$GCC" = yes; then
3322 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3323 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3324 if test "${ac_cv_prog_cc_c89+set}" = set; then
3325 $as_echo_n "(cached) " >&6
3327 ac_cv_prog_cc_c89=no
3329 cat >conftest.$ac_ext <<_ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3337 #include <sys/types.h>
3338 #include <sys/stat.h>
3339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3340 struct buf { int x; };
3341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3342 static char *e (p, i)
3348 static char *f (char * (*g) (char **, int), char **p, ...)
3353 s = g (p, va_arg (v,int));
3358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3359 function prototypes and stuff, but not '\xHH' hex character constants.
3360 These don't provoke an error unfortunately, instead are silently treated
3361 as 'x'. The following induces an error, until -std is added to get
3362 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3363 array size at least. It's necessary to write '\x00'==0 to get something
3364 that's true only with -std. */
3365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3367 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3368 inside strings and character constants. */
3370 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3372 int test (int i, double x);
3373 struct s1 {int (*f) (int a);};
3374 struct s2 {int (*f) (double a);};
3375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3381 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3386 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3387 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3389 CC="$ac_save_CC $ac_arg"
3390 rm -f conftest.$ac_objext
3391 if { (ac_try="$ac_compile"
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3397 $as_echo "$ac_try_echo") >&5
3398 (eval "$ac_compile") 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
3402 cat conftest.err >&5
3403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } && {
3405 test -z "$ac_c_werror_flag" ||
3406 test ! -s conftest.err
3407 } && test -s conftest.$ac_objext; then
3408 ac_cv_prog_cc_c89=$ac_arg
3410 $as_echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3416 rm -f core conftest.err conftest.$ac_objext
3417 test "x$ac_cv_prog_cc_c89" != "xno" && break
3419 rm -f conftest.$ac_ext
3424 case "x$ac_cv_prog_cc_c89" in
3426 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3427 $as_echo "none needed" >&6; } ;;
3429 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3430 $as_echo "unsupported" >&6; } ;;
3432 CC="$CC $ac_cv_prog_cc_c89"
3433 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3434 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 depcc="$CC" am_compiler_list=
3446 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3447 $as_echo_n "checking dependency style of $depcc... " >&6; }
3448 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3449 $as_echo_n "(cached) " >&6
3451 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3452 # We make a subdir and do the tests there. Otherwise we can end up
3453 # making bogus files that we don't know about and never remove. For
3454 # instance it was reported that on HP-UX the gcc test will end up
3455 # making a dummy file named `D' -- because `-MD' means `put the output
3458 # Copy depcomp to subdir because otherwise we won't find it if we're
3459 # using a relative directory.
3460 cp "$am_depcomp" conftest.dir
3462 # We will build objects and dependencies in a subdirectory because
3463 # it helps to detect inapplicable dependency modes. For instance
3464 # both Tru64's cc and ICC support -MD to output dependencies as a
3465 # side effect of compilation, but ICC will put the dependencies in
3466 # the current directory while Tru64 will put them in the object
3470 am_cv_CC_dependencies_compiler_type=none
3471 if test "$am_compiler_list" = ""; then
3472 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3474 for depmode in $am_compiler_list; do
3475 # Setup a source with many dependencies, because some compilers
3476 # like to wrap large dependency lists on column 80 (with \), and
3477 # we should not choose a depcomp mode which is confused by this.
3479 # We need to recreate these files for each test, as the compiler may
3480 # overwrite some of them when testing with obscure command lines.
3481 # This happens at least with the AIX C compiler.
3483 for i in 1 2 3 4 5 6; do
3484 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3485 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3486 # Solaris 8's {/usr,}/bin/sh.
3487 touch sub/conftst$i.h
3489 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3493 # after this tag, mechanisms are not by side-effect, so they'll
3494 # only be used when explicitly requested
3495 if test "x$enable_dependency_tracking" = xyes; then
3503 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3504 # mode. It turns out that the SunPro C++ compiler does not properly
3505 # handle `-M -o', and we need to detect this.
3506 if depmode=$depmode \
3507 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3508 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3509 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3510 >/dev/null 2>conftest.err &&
3511 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3512 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3513 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3514 # icc doesn't choke on unknown options, it will just issue warnings
3515 # or remarks (even with -Werror). So we grep stderr for any message
3516 # that says an option was ignored or not supported.
3517 # When given -MP, icc 7.0 and 7.1 complain thusly:
3518 # icc: Command line warning: ignoring option '-M'; no argument required
3519 # The diagnosis changed in icc 8.0:
3520 # icc: Command line remark: option '-MP' not supported
3521 if (grep 'ignoring option' conftest.err ||
3522 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3523 am_cv_CC_dependencies_compiler_type=$depmode
3532 am_cv_CC_dependencies_compiler_type=none
3536 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3537 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3538 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3543 test "x$enable_dependency_tracking" != xno \
3544 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3546 am__fastdepCC_FALSE='#'
3548 am__fastdepCC_TRUE='#'
3549 am__fastdepCC_FALSE=
3555 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3556 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3557 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3558 $as_echo_n "(cached) " >&6
3560 ac_check_lib_save_LIBS=$LIBS
3561 LIBS="-lcposix $LIBS"
3562 cat >conftest.$ac_ext <<_ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3569 /* Override any GCC internal prototype to avoid an error.
3570 Use char because int might match the return type of a GCC
3571 builtin and then its argument prototype would still apply. */
3584 rm -f conftest.$ac_objext conftest$ac_exeext
3585 if { (ac_try="$ac_link"
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3591 $as_echo "$ac_try_echo") >&5
3592 (eval "$ac_link") 2>conftest.er1
3594 grep -v '^ *+' conftest.er1 >conftest.err
3596 cat conftest.err >&5
3597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } && {
3599 test -z "$ac_c_werror_flag" ||
3600 test ! -s conftest.err
3601 } && test -s conftest$ac_exeext && {
3602 test "$cross_compiling" = yes ||
3603 $as_test_x conftest$ac_exeext
3605 ac_cv_lib_cposix_strerror=yes
3607 $as_echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3610 ac_cv_lib_cposix_strerror=no
3613 rm -rf conftest.dSYM
3614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3615 conftest$ac_exeext conftest.$ac_ext
3616 LIBS=$ac_check_lib_save_LIBS
3618 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3619 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3620 if test $ac_cv_lib_cposix_strerror = yes; then
3621 LIBS="$LIBS -lcposix"
3627 ac_cpp='$CPP $CPPFLAGS'
3628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631 if test -n "$ac_tool_prefix"; then
3632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3633 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3634 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if test "${ac_cv_prog_CC+set}" = set; then
3637 $as_echo_n "(cached) " >&6
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3650 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 if test -n "$CC"; then
3661 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3664 { $as_echo "$as_me:$LINENO: result: no" >&5
3665 $as_echo "no" >&6; }
3670 if test -z "$ac_cv_prog_CC"; then
3672 # Extract the first word of "gcc", so it can be a program name with args.
3673 set dummy gcc; ac_word=$2
3674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3675 $as_echo_n "checking for $ac_word... " >&6; }
3676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3677 $as_echo_n "(cached) " >&6
3679 if test -n "$ac_ct_CC"; then
3680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3689 ac_cv_prog_ac_ct_CC="gcc"
3690 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3700 if test -n "$ac_ct_CC"; then
3701 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3702 $as_echo "$ac_ct_CC" >&6; }
3704 { $as_echo "$as_me:$LINENO: result: no" >&5
3705 $as_echo "no" >&6; }
3708 if test "x$ac_ct_CC" = x; then
3711 case $cross_compiling:$ac_tool_warned in
3713 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3714 whose name does not start with the host triplet. If you think this
3715 configuration is useful to you, please write to autoconf@gnu.org." >&5
3716 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3717 whose name does not start with the host triplet. If you think this
3718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3719 ac_tool_warned=yes ;;
3727 if test -z "$CC"; then
3728 if test -n "$ac_tool_prefix"; then
3729 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3730 set dummy ${ac_tool_prefix}cc; ac_word=$2
3731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if test "${ac_cv_prog_CC+set}" = set; then
3734 $as_echo_n "(cached) " >&6
3736 if test -n "$CC"; then
3737 ac_cv_prog_CC="$CC" # Let the user override the test.
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 ac_cv_prog_CC="${ac_tool_prefix}cc"
3747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 if test -n "$CC"; then
3758 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3759 $as_echo "$CC" >&6; }
3761 { $as_echo "$as_me:$LINENO: result: no" >&5
3762 $as_echo "no" >&6; }
3768 if test -z "$CC"; then
3769 # Extract the first word of "cc", so it can be a program name with args.
3770 set dummy cc; ac_word=$2
3771 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 $as_echo_n "checking for $ac_word... " >&6; }
3773 if test "${ac_cv_prog_CC+set}" = set; then
3774 $as_echo_n "(cached) " >&6
3776 if test -n "$CC"; then
3777 ac_cv_prog_CC="$CC" # Let the user override the test.
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3788 ac_prog_rejected=yes
3792 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 if test $ac_prog_rejected = yes; then
3800 # We found a bogon in the path, so make sure we never use it.
3801 set dummy $ac_cv_prog_CC
3803 if test $# != 0; then
3804 # We chose a different compiler from the bogus one.
3805 # However, it has the same basename, so the bogon will be chosen
3806 # first if we set CC to just the basename; use the full file name.
3808 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3814 if test -n "$CC"; then
3815 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3816 $as_echo "$CC" >&6; }
3818 { $as_echo "$as_me:$LINENO: result: no" >&5
3819 $as_echo "no" >&6; }
3824 if test -z "$CC"; then
3825 if test -n "$ac_tool_prefix"; then
3826 for ac_prog in cl.exe
3828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3830 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3831 $as_echo_n "checking for $ac_word... " >&6; }
3832 if test "${ac_cv_prog_CC+set}" = set; then
3833 $as_echo_n "(cached) " >&6
3835 if test -n "$CC"; then
3836 ac_cv_prog_CC="$CC" # Let the user override the test.
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3845 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3846 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 if test -n "$CC"; then
3857 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3858 $as_echo "$CC" >&6; }
3860 { $as_echo "$as_me:$LINENO: result: no" >&5
3861 $as_echo "no" >&6; }
3865 test -n "$CC" && break
3868 if test -z "$CC"; then
3870 for ac_prog in cl.exe
3872 # Extract the first word of "$ac_prog", so it can be a program name with args.
3873 set dummy $ac_prog; ac_word=$2
3874 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3877 $as_echo_n "(cached) " >&6
3879 if test -n "$ac_ct_CC"; then
3880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3889 ac_cv_prog_ac_ct_CC="$ac_prog"
3890 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3900 if test -n "$ac_ct_CC"; then
3901 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3902 $as_echo "$ac_ct_CC" >&6; }
3904 { $as_echo "$as_me:$LINENO: result: no" >&5
3905 $as_echo "no" >&6; }
3909 test -n "$ac_ct_CC" && break
3912 if test "x$ac_ct_CC" = x; then
3915 case $cross_compiling:$ac_tool_warned in
3917 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3918 whose name does not start with the host triplet. If you think this
3919 configuration is useful to you, please write to autoconf@gnu.org." >&5
3920 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3921 whose name does not start with the host triplet. If you think this
3922 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3923 ac_tool_warned=yes ;;
3932 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3933 See \`config.log' for more details." >&5
3934 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3935 See \`config.log' for more details." >&2;}
3936 { (exit 1); exit 1; }; }
3938 # Provide some information about the compiler.
3939 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3942 { (ac_try="$ac_compiler --version >&5"
3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3948 $as_echo "$ac_try_echo") >&5
3949 (eval "$ac_compiler --version >&5") 2>&5
3951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }
3953 { (ac_try="$ac_compiler -v >&5"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3959 $as_echo "$ac_try_echo") >&5
3960 (eval "$ac_compiler -v >&5") 2>&5
3962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }
3964 { (ac_try="$ac_compiler -V >&5"
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3970 $as_echo "$ac_try_echo") >&5
3971 (eval "$ac_compiler -V >&5") 2>&5
3973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }
3976 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3977 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3978 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3979 $as_echo_n "(cached) " >&6
3981 cat >conftest.$ac_ext <<_ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3999 rm -f conftest.$ac_objext
4000 if { (ac_try="$ac_compile"
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4006 $as_echo "$ac_try_echo") >&5
4007 (eval "$ac_compile") 2>conftest.er1
4009 grep -v '^ *+' conftest.er1 >conftest.err
4011 cat conftest.err >&5
4012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } && {
4014 test -z "$ac_c_werror_flag" ||
4015 test ! -s conftest.err
4016 } && test -s conftest.$ac_objext; then
4019 $as_echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4029 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4030 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4031 if test $ac_compiler_gnu = yes; then
4036 ac_test_CFLAGS=${CFLAGS+set}
4037 ac_save_CFLAGS=$CFLAGS
4038 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4039 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4040 if test "${ac_cv_prog_cc_g+set}" = set; then
4041 $as_echo_n "(cached) " >&6
4043 ac_save_c_werror_flag=$ac_c_werror_flag
4044 ac_c_werror_flag=yes
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4062 rm -f conftest.$ac_objext
4063 if { (ac_try="$ac_compile"
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4069 $as_echo "$ac_try_echo") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } && {
4077 test -z "$ac_c_werror_flag" ||
4078 test ! -s conftest.err
4079 } && test -s conftest.$ac_objext; then
4082 $as_echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4101 rm -f conftest.$ac_objext
4102 if { (ac_try="$ac_compile"
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4108 $as_echo "$ac_try_echo") >&5
4109 (eval "$ac_compile") 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } && {
4116 test -z "$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4118 } && test -s conftest.$ac_objext; then
4121 $as_echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4141 rm -f conftest.$ac_objext
4142 if { (ac_try="$ac_compile"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4148 $as_echo "$ac_try_echo") >&5
4149 (eval "$ac_compile") 2>conftest.er1
4151 grep -v '^ *+' conftest.er1 >conftest.err
4153 cat conftest.err >&5
4154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } && {
4156 test -z "$ac_c_werror_flag" ||
4157 test ! -s conftest.err
4158 } && test -s conftest.$ac_objext; then
4161 $as_echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 ac_c_werror_flag=$ac_save_c_werror_flag
4176 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4177 $as_echo "$ac_cv_prog_cc_g" >&6; }
4178 if test "$ac_test_CFLAGS" = set; then
4179 CFLAGS=$ac_save_CFLAGS
4180 elif test $ac_cv_prog_cc_g = yes; then
4181 if test "$GCC" = yes; then
4187 if test "$GCC" = yes; then
4193 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4194 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4195 if test "${ac_cv_prog_cc_c89+set}" = set; then
4196 $as_echo_n "(cached) " >&6
4198 ac_cv_prog_cc_c89=no
4200 cat >conftest.$ac_ext <<_ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4208 #include <sys/types.h>
4209 #include <sys/stat.h>
4210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4211 struct buf { int x; };
4212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4213 static char *e (p, i)
4219 static char *f (char * (*g) (char **, int), char **p, ...)
4224 s = g (p, va_arg (v,int));
4229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4230 function prototypes and stuff, but not '\xHH' hex character constants.
4231 These don't provoke an error unfortunately, instead are silently treated
4232 as 'x'. The following induces an error, until -std is added to get
4233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4234 array size at least. It's necessary to write '\x00'==0 to get something
4235 that's true only with -std. */
4236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4239 inside strings and character constants. */
4241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4243 int test (int i, double x);
4244 struct s1 {int (*f) (int a);};
4245 struct s2 {int (*f) (double a);};
4246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4258 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4260 CC="$ac_save_CC $ac_arg"
4261 rm -f conftest.$ac_objext
4262 if { (ac_try="$ac_compile"
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4268 $as_echo "$ac_try_echo") >&5
4269 (eval "$ac_compile") 2>conftest.er1
4271 grep -v '^ *+' conftest.er1 >conftest.err
4273 cat conftest.err >&5
4274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } && {
4276 test -z "$ac_c_werror_flag" ||
4277 test ! -s conftest.err
4278 } && test -s conftest.$ac_objext; then
4279 ac_cv_prog_cc_c89=$ac_arg
4281 $as_echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4287 rm -f core conftest.err conftest.$ac_objext
4288 test "x$ac_cv_prog_cc_c89" != "xno" && break
4290 rm -f conftest.$ac_ext
4295 case "x$ac_cv_prog_cc_c89" in
4297 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4298 $as_echo "none needed" >&6; } ;;
4300 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4301 $as_echo "unsupported" >&6; } ;;
4303 CC="$CC $ac_cv_prog_cc_c89"
4304 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4305 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4310 ac_cpp='$CPP $CPPFLAGS'
4311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4315 depcc="$CC" am_compiler_list=
4317 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4318 $as_echo_n "checking dependency style of $depcc... " >&6; }
4319 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4320 $as_echo_n "(cached) " >&6
4322 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4323 # We make a subdir and do the tests there. Otherwise we can end up
4324 # making bogus files that we don't know about and never remove. For
4325 # instance it was reported that on HP-UX the gcc test will end up
4326 # making a dummy file named `D' -- because `-MD' means `put the output
4329 # Copy depcomp to subdir because otherwise we won't find it if we're
4330 # using a relative directory.
4331 cp "$am_depcomp" conftest.dir
4333 # We will build objects and dependencies in a subdirectory because
4334 # it helps to detect inapplicable dependency modes. For instance
4335 # both Tru64's cc and ICC support -MD to output dependencies as a
4336 # side effect of compilation, but ICC will put the dependencies in
4337 # the current directory while Tru64 will put them in the object
4341 am_cv_CC_dependencies_compiler_type=none
4342 if test "$am_compiler_list" = ""; then
4343 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4345 for depmode in $am_compiler_list; do
4346 # Setup a source with many dependencies, because some compilers
4347 # like to wrap large dependency lists on column 80 (with \), and
4348 # we should not choose a depcomp mode which is confused by this.
4350 # We need to recreate these files for each test, as the compiler may
4351 # overwrite some of them when testing with obscure command lines.
4352 # This happens at least with the AIX C compiler.
4354 for i in 1 2 3 4 5 6; do
4355 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4356 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4357 # Solaris 8's {/usr,}/bin/sh.
4358 touch sub/conftst$i.h
4360 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4364 # after this tag, mechanisms are not by side-effect, so they'll
4365 # only be used when explicitly requested
4366 if test "x$enable_dependency_tracking" = xyes; then
4374 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4375 # mode. It turns out that the SunPro C++ compiler does not properly
4376 # handle `-M -o', and we need to detect this.
4377 if depmode=$depmode \
4378 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4379 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4380 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4381 >/dev/null 2>conftest.err &&
4382 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4383 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4384 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4385 # icc doesn't choke on unknown options, it will just issue warnings
4386 # or remarks (even with -Werror). So we grep stderr for any message
4387 # that says an option was ignored or not supported.
4388 # When given -MP, icc 7.0 and 7.1 complain thusly:
4389 # icc: Command line warning: ignoring option '-M'; no argument required
4390 # The diagnosis changed in icc 8.0:
4391 # icc: Command line remark: option '-MP' not supported
4392 if (grep 'ignoring option' conftest.err ||
4393 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4394 am_cv_CC_dependencies_compiler_type=$depmode
4403 am_cv_CC_dependencies_compiler_type=none
4407 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4408 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4409 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4414 test "x$enable_dependency_tracking" != xno \
4415 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4417 am__fastdepCC_FALSE='#'
4419 am__fastdepCC_TRUE='#'
4420 am__fastdepCC_FALSE=
4425 ac_cpp='$CPP $CPPFLAGS'
4426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429 if test -n "$ac_tool_prefix"; then
4430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4431 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if test "${ac_cv_prog_CC+set}" = set; then
4435 $as_echo_n "(cached) " >&6
4437 if test -n "$CC"; then
4438 ac_cv_prog_CC="$CC" # Let the user override the test.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 if test -n "$CC"; then
4459 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4460 $as_echo "$CC" >&6; }
4462 { $as_echo "$as_me:$LINENO: result: no" >&5
4463 $as_echo "no" >&6; }
4468 if test -z "$ac_cv_prog_CC"; then
4470 # Extract the first word of "gcc", so it can be a program name with args.
4471 set dummy gcc; ac_word=$2
4472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4475 $as_echo_n "(cached) " >&6
4477 if test -n "$ac_ct_CC"; then
4478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_prog_ac_ct_CC="gcc"
4488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4498 if test -n "$ac_ct_CC"; then
4499 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4500 $as_echo "$ac_ct_CC" >&6; }
4502 { $as_echo "$as_me:$LINENO: result: no" >&5
4503 $as_echo "no" >&6; }
4506 if test "x$ac_ct_CC" = x; then
4509 case $cross_compiling:$ac_tool_warned in
4511 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4512 whose name does not start with the host triplet. If you think this
4513 configuration is useful to you, please write to autoconf@gnu.org." >&5
4514 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4515 whose name does not start with the host triplet. If you think this
4516 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4517 ac_tool_warned=yes ;;
4525 if test -z "$CC"; then
4526 if test -n "$ac_tool_prefix"; then
4527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4528 set dummy ${ac_tool_prefix}cc; ac_word=$2
4529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if test "${ac_cv_prog_CC+set}" = set; then
4532 $as_echo_n "(cached) " >&6
4534 if test -n "$CC"; then
4535 ac_cv_prog_CC="$CC" # Let the user override the test.
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_prog_CC="${ac_tool_prefix}cc"
4545 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 if test -n "$CC"; then
4556 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4557 $as_echo "$CC" >&6; }
4559 { $as_echo "$as_me:$LINENO: result: no" >&5
4560 $as_echo "no" >&6; }
4566 if test -z "$CC"; then
4567 # Extract the first word of "cc", so it can be a program name with args.
4568 set dummy cc; ac_word=$2
4569 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_CC+set}" = set; then
4572 $as_echo_n "(cached) " >&6
4574 if test -n "$CC"; then
4575 ac_cv_prog_CC="$CC" # Let the user override the test.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4586 ac_prog_rejected=yes
4590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 if test $ac_prog_rejected = yes; then
4598 # We found a bogon in the path, so make sure we never use it.
4599 set dummy $ac_cv_prog_CC
4601 if test $# != 0; then
4602 # We chose a different compiler from the bogus one.
4603 # However, it has the same basename, so the bogon will be chosen
4604 # first if we set CC to just the basename; use the full file name.
4606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4612 if test -n "$CC"; then
4613 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4614 $as_echo "$CC" >&6; }
4616 { $as_echo "$as_me:$LINENO: result: no" >&5
4617 $as_echo "no" >&6; }
4622 if test -z "$CC"; then
4623 if test -n "$ac_tool_prefix"; then
4624 for ac_prog in cl.exe
4626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 $as_echo_n "checking for $ac_word... " >&6; }
4630 if test "${ac_cv_prog_CC+set}" = set; then
4631 $as_echo_n "(cached) " >&6
4633 if test -n "$CC"; then
4634 ac_cv_prog_CC="$CC" # Let the user override the test.
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4643 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 if test -n "$CC"; then
4655 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4656 $as_echo "$CC" >&6; }
4658 { $as_echo "$as_me:$LINENO: result: no" >&5
4659 $as_echo "no" >&6; }
4663 test -n "$CC" && break
4666 if test -z "$CC"; then
4668 for ac_prog in cl.exe
4670 # Extract the first word of "$ac_prog", so it can be a program name with args.
4671 set dummy $ac_prog; ac_word=$2
4672 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4675 $as_echo_n "(cached) " >&6
4677 if test -n "$ac_ct_CC"; then
4678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_ac_ct_CC="$ac_prog"
4688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4698 if test -n "$ac_ct_CC"; then
4699 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4700 $as_echo "$ac_ct_CC" >&6; }
4702 { $as_echo "$as_me:$LINENO: result: no" >&5
4703 $as_echo "no" >&6; }
4707 test -n "$ac_ct_CC" && break
4710 if test "x$ac_ct_CC" = x; then
4713 case $cross_compiling:$ac_tool_warned in
4715 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4716 whose name does not start with the host triplet. If you think this
4717 configuration is useful to you, please write to autoconf@gnu.org." >&5
4718 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4719 whose name does not start with the host triplet. If you think this
4720 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4721 ac_tool_warned=yes ;;
4730 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4731 See \`config.log' for more details." >&5
4732 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4733 See \`config.log' for more details." >&2;}
4734 { (exit 1); exit 1; }; }
4736 # Provide some information about the compiler.
4737 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4740 { (ac_try="$ac_compiler --version >&5"
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4746 $as_echo "$ac_try_echo") >&5
4747 (eval "$ac_compiler --version >&5") 2>&5
4749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }
4751 { (ac_try="$ac_compiler -v >&5"
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4757 $as_echo "$ac_try_echo") >&5
4758 (eval "$ac_compiler -v >&5") 2>&5
4760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }
4762 { (ac_try="$ac_compiler -V >&5"
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4768 $as_echo "$ac_try_echo") >&5
4769 (eval "$ac_compiler -V >&5") 2>&5
4771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }
4774 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4776 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4777 $as_echo_n "(cached) " >&6
4779 cat >conftest.$ac_ext <<_ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4797 rm -f conftest.$ac_objext
4798 if { (ac_try="$ac_compile"
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4804 $as_echo "$ac_try_echo") >&5
4805 (eval "$ac_compile") 2>conftest.er1
4807 grep -v '^ *+' conftest.er1 >conftest.err
4809 cat conftest.err >&5
4810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } && {
4812 test -z "$ac_c_werror_flag" ||
4813 test ! -s conftest.err
4814 } && test -s conftest.$ac_objext; then
4817 $as_echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4827 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4829 if test $ac_compiler_gnu = yes; then
4834 ac_test_CFLAGS=${CFLAGS+set}
4835 ac_save_CFLAGS=$CFLAGS
4836 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4838 if test "${ac_cv_prog_cc_g+set}" = set; then
4839 $as_echo_n "(cached) " >&6
4841 ac_save_c_werror_flag=$ac_c_werror_flag
4842 ac_c_werror_flag=yes
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867 $as_echo "$ac_try_echo") >&5
4868 (eval "$ac_compile") 2>conftest.er1
4870 grep -v '^ *+' conftest.er1 >conftest.err
4872 cat conftest.err >&5
4873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } && {
4875 test -z "$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 } && test -s conftest.$ac_objext; then
4880 $as_echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4884 cat >conftest.$ac_ext <<_ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4899 rm -f conftest.$ac_objext
4900 if { (ac_try="$ac_compile"
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4906 $as_echo "$ac_try_echo") >&5
4907 (eval "$ac_compile") 2>conftest.er1
4909 grep -v '^ *+' conftest.er1 >conftest.err
4911 cat conftest.err >&5
4912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } && {
4914 test -z "$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 } && test -s conftest.$ac_objext; then
4919 $as_echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 ac_c_werror_flag=$ac_save_c_werror_flag
4924 cat >conftest.$ac_ext <<_ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4939 rm -f conftest.$ac_objext
4940 if { (ac_try="$ac_compile"
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4946 $as_echo "$ac_try_echo") >&5
4947 (eval "$ac_compile") 2>conftest.er1
4949 grep -v '^ *+' conftest.er1 >conftest.err
4951 cat conftest.err >&5
4952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } && {
4954 test -z "$ac_c_werror_flag" ||
4955 test ! -s conftest.err
4956 } && test -s conftest.$ac_objext; then
4959 $as_echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 ac_c_werror_flag=$ac_save_c_werror_flag
4974 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4975 $as_echo "$ac_cv_prog_cc_g" >&6; }
4976 if test "$ac_test_CFLAGS" = set; then
4977 CFLAGS=$ac_save_CFLAGS
4978 elif test $ac_cv_prog_cc_g = yes; then
4979 if test "$GCC" = yes; then
4985 if test "$GCC" = yes; then
4991 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4992 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4993 if test "${ac_cv_prog_cc_c89+set}" = set; then
4994 $as_echo_n "(cached) " >&6
4996 ac_cv_prog_cc_c89=no
4998 cat >conftest.$ac_ext <<_ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5006 #include <sys/types.h>
5007 #include <sys/stat.h>
5008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5009 struct buf { int x; };
5010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5011 static char *e (p, i)
5017 static char *f (char * (*g) (char **, int), char **p, ...)
5022 s = g (p, va_arg (v,int));
5027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5028 function prototypes and stuff, but not '\xHH' hex character constants.
5029 These don't provoke an error unfortunately, instead are silently treated
5030 as 'x'. The following induces an error, until -std is added to get
5031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5032 array size at least. It's necessary to write '\x00'==0 to get something
5033 that's true only with -std. */
5034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5036 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5037 inside strings and character constants. */
5039 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5041 int test (int i, double x);
5042 struct s1 {int (*f) (int a);};
5043 struct s2 {int (*f) (double a);};
5044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5050 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5055 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5058 CC="$ac_save_CC $ac_arg"
5059 rm -f conftest.$ac_objext
5060 if { (ac_try="$ac_compile"
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5066 $as_echo "$ac_try_echo") >&5
5067 (eval "$ac_compile") 2>conftest.er1
5069 grep -v '^ *+' conftest.er1 >conftest.err
5071 cat conftest.err >&5
5072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } && {
5074 test -z "$ac_c_werror_flag" ||
5075 test ! -s conftest.err
5076 } && test -s conftest.$ac_objext; then
5077 ac_cv_prog_cc_c89=$ac_arg
5079 $as_echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5085 rm -f core conftest.err conftest.$ac_objext
5086 test "x$ac_cv_prog_cc_c89" != "xno" && break
5088 rm -f conftest.$ac_ext
5093 case "x$ac_cv_prog_cc_c89" in
5095 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5096 $as_echo "none needed" >&6; } ;;
5098 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5099 $as_echo "unsupported" >&6; } ;;
5101 CC="$CC $ac_cv_prog_cc_c89"
5102 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5103 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5108 ac_cpp='$CPP $CPPFLAGS'
5109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5113 depcc="$CC" am_compiler_list=
5115 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5116 $as_echo_n "checking dependency style of $depcc... " >&6; }
5117 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5118 $as_echo_n "(cached) " >&6
5120 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5121 # We make a subdir and do the tests there. Otherwise we can end up
5122 # making bogus files that we don't know about and never remove. For
5123 # instance it was reported that on HP-UX the gcc test will end up
5124 # making a dummy file named `D' -- because `-MD' means `put the output
5127 # Copy depcomp to subdir because otherwise we won't find it if we're
5128 # using a relative directory.
5129 cp "$am_depcomp" conftest.dir
5131 # We will build objects and dependencies in a subdirectory because
5132 # it helps to detect inapplicable dependency modes. For instance
5133 # both Tru64's cc and ICC support -MD to output dependencies as a
5134 # side effect of compilation, but ICC will put the dependencies in
5135 # the current directory while Tru64 will put them in the object
5139 am_cv_CC_dependencies_compiler_type=none
5140 if test "$am_compiler_list" = ""; then
5141 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5143 for depmode in $am_compiler_list; do
5144 # Setup a source with many dependencies, because some compilers
5145 # like to wrap large dependency lists on column 80 (with \), and
5146 # we should not choose a depcomp mode which is confused by this.
5148 # We need to recreate these files for each test, as the compiler may
5149 # overwrite some of them when testing with obscure command lines.
5150 # This happens at least with the AIX C compiler.
5152 for i in 1 2 3 4 5 6; do
5153 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5154 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5155 # Solaris 8's {/usr,}/bin/sh.
5156 touch sub/conftst$i.h
5158 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5162 # after this tag, mechanisms are not by side-effect, so they'll
5163 # only be used when explicitly requested
5164 if test "x$enable_dependency_tracking" = xyes; then
5172 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5173 # mode. It turns out that the SunPro C++ compiler does not properly
5174 # handle `-M -o', and we need to detect this.
5175 if depmode=$depmode \
5176 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5177 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5178 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5179 >/dev/null 2>conftest.err &&
5180 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5181 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5182 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5183 # icc doesn't choke on unknown options, it will just issue warnings
5184 # or remarks (even with -Werror). So we grep stderr for any message
5185 # that says an option was ignored or not supported.
5186 # When given -MP, icc 7.0 and 7.1 complain thusly:
5187 # icc: Command line warning: ignoring option '-M'; no argument required
5188 # The diagnosis changed in icc 8.0:
5189 # icc: Command line remark: option '-MP' not supported
5190 if (grep 'ignoring option' conftest.err ||
5191 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5192 am_cv_CC_dependencies_compiler_type=$depmode
5201 am_cv_CC_dependencies_compiler_type=none
5205 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5206 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5207 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5212 test "x$enable_dependency_tracking" != xno \
5213 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5215 am__fastdepCC_FALSE='#'
5217 am__fastdepCC_TRUE='#'
5218 am__fastdepCC_FALSE=
5223 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5225 # By default we simply use the C compiler to build assembly code.
5227 test "${CCAS+set}" = set || CCAS=$CC
5228 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5233 ac_cpp='$CPP $CPPFLAGS'
5234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5237 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5238 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5239 # On Suns, sometimes $CPP names a directory.
5240 if test -n "$CPP" && test -d "$CPP"; then
5243 if test -z "$CPP"; then
5244 if test "${ac_cv_prog_CPP+set}" = set; then
5245 $as_echo_n "(cached) " >&6
5247 # Double quotes because CPP needs to be expanded
5248 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5251 for ac_c_preproc_warn_flag in '' yes
5253 # Use a header file that comes with gcc, so configuring glibc
5254 # with a fresh cross-compiler works.
5255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5256 # <limits.h> exists even on freestanding compilers.
5257 # On the NeXT, cc -E runs the code through the compiler's parser,
5258 # not just through cpp. "Syntax error" is here to catch this case.
5259 cat >conftest.$ac_ext <<_ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5266 # include <limits.h>
5268 # include <assert.h>
5272 if { (ac_try="$ac_cpp conftest.$ac_ext"
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5278 $as_echo "$ac_try_echo") >&5
5279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5281 grep -v '^ *+' conftest.er1 >conftest.err
5283 cat conftest.err >&5
5284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } >/dev/null && {
5286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5287 test ! -s conftest.err
5291 $as_echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5294 # Broken: fails on valid input.
5298 rm -f conftest.err conftest.$ac_ext
5300 # OK, works on sane cases. Now check whether nonexistent headers
5301 # can be detected and how.
5302 cat >conftest.$ac_ext <<_ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h. */
5308 #include <ac_nonexistent.h>
5310 if { (ac_try="$ac_cpp conftest.$ac_ext"
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5316 $as_echo "$ac_try_echo") >&5
5317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5319 grep -v '^ *+' conftest.er1 >conftest.err
5321 cat conftest.err >&5
5322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } >/dev/null && {
5324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5327 # Broken: success on invalid input.
5330 $as_echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5333 # Passes both tests.
5338 rm -f conftest.err conftest.$ac_ext
5341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5342 rm -f conftest.err conftest.$ac_ext
5343 if $ac_preproc_ok; then
5355 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5356 $as_echo "$CPP" >&6; }
5358 for ac_c_preproc_warn_flag in '' yes
5360 # Use a header file that comes with gcc, so configuring glibc
5361 # with a fresh cross-compiler works.
5362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363 # <limits.h> exists even on freestanding compilers.
5364 # On the NeXT, cc -E runs the code through the compiler's parser,
5365 # not just through cpp. "Syntax error" is here to catch this case.
5366 cat >conftest.$ac_ext <<_ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5373 # include <limits.h>
5375 # include <assert.h>
5379 if { (ac_try="$ac_cpp conftest.$ac_ext"
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5385 $as_echo "$ac_try_echo") >&5
5386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5388 grep -v '^ *+' conftest.er1 >conftest.err
5390 cat conftest.err >&5
5391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } >/dev/null && {
5393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5394 test ! -s conftest.err
5398 $as_echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 # Broken: fails on valid input.
5405 rm -f conftest.err conftest.$ac_ext
5407 # OK, works on sane cases. Now check whether nonexistent headers
5408 # can be detected and how.
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5415 #include <ac_nonexistent.h>
5417 if { (ac_try="$ac_cpp conftest.$ac_ext"
5419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420 *) ac_try_echo=$ac_try;;
5422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5423 $as_echo "$ac_try_echo") >&5
5424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5426 grep -v '^ *+' conftest.er1 >conftest.err
5428 cat conftest.err >&5
5429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } >/dev/null && {
5431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5432 test ! -s conftest.err
5434 # Broken: success on invalid input.
5437 $as_echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5440 # Passes both tests.
5445 rm -f conftest.err conftest.$ac_ext
5448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5449 rm -f conftest.err conftest.$ac_ext
5450 if $ac_preproc_ok; then
5453 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5454 See \`config.log' for more details." >&5
5455 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5456 See \`config.log' for more details." >&2;}
5457 { (exit 1); exit 1; }; }
5461 ac_cpp='$CPP $CPPFLAGS'
5462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5467 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5468 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5469 if test "${ac_cv_path_GREP+set}" = set; then
5470 $as_echo_n "(cached) " >&6
5472 if test -z "$GREP"; then
5473 ac_path_GREP_found=false
5474 # Loop through the user's path and test for each of PROGNAME-LIST
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5479 test -z "$as_dir" && as_dir=.
5480 for ac_prog in grep ggrep; do
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5483 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5484 # Check for GNU ac_path_GREP and select it if it is found.
5485 # Check for GNU $ac_path_GREP
5486 case `"$ac_path_GREP" --version 2>&1` in
5488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5491 $as_echo_n 0123456789 >"conftest.in"
5494 cat "conftest.in" "conftest.in" >"conftest.tmp"
5495 mv "conftest.tmp" "conftest.in"
5496 cp "conftest.in" "conftest.nl"
5497 $as_echo 'GREP' >> "conftest.nl"
5498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5500 ac_count=`expr $ac_count + 1`
5501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5502 # Best one so far, save it but keep looking for a better one
5503 ac_cv_path_GREP="$ac_path_GREP"
5504 ac_path_GREP_max=$ac_count
5506 # 10*(2^10) chars as input seems more than enough
5507 test $ac_count -gt 10 && break
5509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5512 $ac_path_GREP_found && break 3
5517 if test -z "$ac_cv_path_GREP"; then
5518 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5519 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5520 { (exit 1); exit 1; }; }
5523 ac_cv_path_GREP=$GREP
5527 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5528 $as_echo "$ac_cv_path_GREP" >&6; }
5529 GREP="$ac_cv_path_GREP"
5532 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5533 $as_echo_n "checking for egrep... " >&6; }
5534 if test "${ac_cv_path_EGREP+set}" = set; then
5535 $as_echo_n "(cached) " >&6
5537 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5538 then ac_cv_path_EGREP="$GREP -E"
5540 if test -z "$EGREP"; then
5541 ac_path_EGREP_found=false
5542 # Loop through the user's path and test for each of PROGNAME-LIST
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5547 test -z "$as_dir" && as_dir=.
5548 for ac_prog in egrep; do
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5551 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5552 # Check for GNU ac_path_EGREP and select it if it is found.
5553 # Check for GNU $ac_path_EGREP
5554 case `"$ac_path_EGREP" --version 2>&1` in
5556 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5559 $as_echo_n 0123456789 >"conftest.in"
5562 cat "conftest.in" "conftest.in" >"conftest.tmp"
5563 mv "conftest.tmp" "conftest.in"
5564 cp "conftest.in" "conftest.nl"
5565 $as_echo 'EGREP' >> "conftest.nl"
5566 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5567 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5568 ac_count=`expr $ac_count + 1`
5569 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5570 # Best one so far, save it but keep looking for a better one
5571 ac_cv_path_EGREP="$ac_path_EGREP"
5572 ac_path_EGREP_max=$ac_count
5574 # 10*(2^10) chars as input seems more than enough
5575 test $ac_count -gt 10 && break
5577 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5580 $ac_path_EGREP_found && break 3
5585 if test -z "$ac_cv_path_EGREP"; then
5586 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5587 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5588 { (exit 1); exit 1; }; }
5591 ac_cv_path_EGREP=$EGREP
5596 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5597 $as_echo "$ac_cv_path_EGREP" >&6; }
5598 EGREP="$ac_cv_path_EGREP"
5601 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5602 $as_echo_n "checking for ANSI C header files... " >&6; }
5603 if test "${ac_cv_header_stdc+set}" = set; then
5604 $as_echo_n "(cached) " >&6
5606 cat >conftest.$ac_ext <<_ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5625 rm -f conftest.$ac_objext
5626 if { (ac_try="$ac_compile"
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5632 $as_echo "$ac_try_echo") >&5
5633 (eval "$ac_compile") 2>conftest.er1
5635 grep -v '^ *+' conftest.er1 >conftest.err
5637 cat conftest.err >&5
5638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && {
5640 test -z "$ac_c_werror_flag" ||
5641 test ! -s conftest.err
5642 } && test -s conftest.$ac_objext; then
5643 ac_cv_header_stdc=yes
5645 $as_echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5648 ac_cv_header_stdc=no
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 if test $ac_cv_header_stdc = yes; then
5654 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5655 cat >conftest.$ac_ext <<_ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665 $EGREP "memchr" >/dev/null 2>&1; then
5668 ac_cv_header_stdc=no
5674 if test $ac_cv_header_stdc = yes; then
5675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5676 cat >conftest.$ac_ext <<_ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5686 $EGREP "free" >/dev/null 2>&1; then
5689 ac_cv_header_stdc=no
5695 if test $ac_cv_header_stdc = yes; then
5696 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5697 if test "$cross_compiling" = yes; then
5700 cat >conftest.$ac_ext <<_ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5708 #if ((' ' & 0x0FF) == 0x020)
5709 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5710 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5712 # define ISLOWER(c) \
5713 (('a' <= (c) && (c) <= 'i') \
5714 || ('j' <= (c) && (c) <= 'r') \
5715 || ('s' <= (c) && (c) <= 'z'))
5716 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5719 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5724 for (i = 0; i < 256; i++)
5725 if (XOR (islower (i), ISLOWER (i))
5726 || toupper (i) != TOUPPER (i))
5731 rm -f conftest$ac_exeext
5732 if { (ac_try="$ac_link"
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5738 $as_echo "$ac_try_echo") >&5
5739 (eval "$ac_link") 2>&5
5741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5743 { (case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5748 $as_echo "$ac_try_echo") >&5
5749 (eval "$ac_try") 2>&5
5751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5755 $as_echo "$as_me: program exited with status $ac_status" >&5
5756 $as_echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5760 ac_cv_header_stdc=no
5762 rm -rf conftest.dSYM
5763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5769 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5770 $as_echo "$ac_cv_header_stdc" >&6; }
5771 if test $ac_cv_header_stdc = yes; then
5773 cat >>confdefs.h <<\_ACEOF
5774 #define STDC_HEADERS 1
5779 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5789 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5790 inttypes.h stdint.h unistd.h
5792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5794 $as_echo_n "checking for $ac_header... " >&6; }
5795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5796 $as_echo_n "(cached) " >&6
5798 cat >conftest.$ac_ext <<_ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5806 #include <$ac_header>
5808 rm -f conftest.$ac_objext
5809 if { (ac_try="$ac_compile"
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5815 $as_echo "$ac_try_echo") >&5
5816 (eval "$ac_compile") 2>conftest.er1
5818 grep -v '^ *+' conftest.er1 >conftest.err
5820 cat conftest.err >&5
5821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } && {
5823 test -z "$ac_c_werror_flag" ||
5824 test ! -s conftest.err
5825 } && test -s conftest.$ac_objext; then
5826 eval "$as_ac_Header=yes"
5828 $as_echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 eval "$as_ac_Header=no"
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 ac_res=`eval 'as_val=${'$as_ac_Header'}
5837 $as_echo "$as_val"'`
5838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5839 $as_echo "$ac_res" >&6; }
5840 if test `eval 'as_val=${'$as_ac_Header'}
5841 $as_echo "$as_val"'` = yes; then
5842 cat >>confdefs.h <<_ACEOF
5843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5851 # The cast to long int works around a bug in the HP C Compiler
5852 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5853 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5854 # This bug is HP SR number 8606223364.
5855 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
5856 $as_echo_n "checking size of void *... " >&6; }
5857 if test "${ac_cv_sizeof_void_p+set}" = set; then
5858 $as_echo_n "(cached) " >&6
5860 if test "$cross_compiling" = yes; then
5861 # Depending upon the size, compute the lo and hi bounds.
5862 cat >conftest.$ac_ext <<_ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868 $ac_includes_default
5872 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
5879 rm -f conftest.$ac_objext
5880 if { (ac_try="$ac_compile"
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5886 $as_echo "$ac_try_echo") >&5
5887 (eval "$ac_compile") 2>conftest.er1
5889 grep -v '^ *+' conftest.er1 >conftest.err
5891 cat conftest.err >&5
5892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && {
5894 test -z "$ac_c_werror_flag" ||
5895 test ! -s conftest.err
5896 } && test -s conftest.$ac_objext; then
5899 cat >conftest.$ac_ext <<_ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5909 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
5916 rm -f conftest.$ac_objext
5917 if { (ac_try="$ac_compile"
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5923 $as_echo "$ac_try_echo") >&5
5924 (eval "$ac_compile") 2>conftest.er1
5926 grep -v '^ *+' conftest.er1 >conftest.err
5928 cat conftest.err >&5
5929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && {
5931 test -z "$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest.$ac_objext; then
5934 ac_hi=$ac_mid; break
5936 $as_echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 ac_lo=`expr $ac_mid + 1`
5940 if test $ac_lo -le $ac_mid; then
5944 ac_mid=`expr 2 '*' $ac_mid + 1`
5947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 $as_echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 cat >conftest.$ac_ext <<_ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 $ac_includes_default
5963 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5977 $as_echo "$ac_try_echo") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5980 grep -v '^ *+' conftest.er1 >conftest.err
5982 cat conftest.err >&5
5983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest.$ac_objext; then
5990 cat >conftest.$ac_ext <<_ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 $ac_includes_default
6000 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
6007 rm -f conftest.$ac_objext
6008 if { (ac_try="$ac_compile"
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6014 $as_echo "$ac_try_echo") >&5
6015 (eval "$ac_compile") 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && {
6022 test -z "$ac_c_werror_flag" ||
6023 test ! -s conftest.err
6024 } && test -s conftest.$ac_objext; then
6025 ac_lo=$ac_mid; break
6027 $as_echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6030 ac_hi=`expr '(' $ac_mid ')' - 1`
6031 if test $ac_mid -le $ac_hi; then
6035 ac_mid=`expr 2 '*' $ac_mid`
6038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 $as_echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 # Binary search between lo and hi bounds.
6052 while test "x$ac_lo" != "x$ac_hi"; do
6053 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6054 cat >conftest.$ac_ext <<_ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6060 $ac_includes_default
6064 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6071 rm -f conftest.$ac_objext
6072 if { (ac_try="$ac_compile"
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6078 $as_echo "$ac_try_echo") >&5
6079 (eval "$ac_compile") 2>conftest.er1
6081 grep -v '^ *+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } && {
6086 test -z "$ac_c_werror_flag" ||
6087 test ! -s conftest.err
6088 } && test -s conftest.$ac_objext; then
6091 $as_echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094 ac_lo=`expr '(' $ac_mid ')' + 1`
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6101 '') if test "$ac_cv_type_void_p" = yes; then
6102 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6103 See \`config.log' for more details." >&5
6104 $as_echo "$as_me: error: cannot compute sizeof (void *)
6105 See \`config.log' for more details." >&2;}
6106 { (exit 77); exit 77; }; }
6108 ac_cv_sizeof_void_p=0
6112 cat >conftest.$ac_ext <<_ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 $ac_includes_default
6119 static long int longval () { return (long int) (sizeof (void *)); }
6120 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6127 FILE *f = fopen ("conftest.val", "w");
6130 if (((long int) (sizeof (void *))) < 0)
6132 long int i = longval ();
6133 if (i != ((long int) (sizeof (void *))))
6135 fprintf (f, "%ld", i);
6139 unsigned long int i = ulongval ();
6140 if (i != ((long int) (sizeof (void *))))
6142 fprintf (f, "%lu", i);
6144 /* Do not output a trailing newline, as this causes \r\n confusion
6145 on some platforms. */
6146 return ferror (f) || fclose (f) != 0;
6152 rm -f conftest$ac_exeext
6153 if { (ac_try="$ac_link"
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6159 $as_echo "$ac_try_echo") >&5
6160 (eval "$ac_link") 2>&5
6162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6164 { (case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6169 $as_echo "$ac_try_echo") >&5
6170 (eval "$ac_try") 2>&5
6172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_cv_sizeof_void_p=`cat conftest.val`
6176 $as_echo "$as_me: program exited with status $ac_status" >&5
6177 $as_echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6181 if test "$ac_cv_type_void_p" = yes; then
6182 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6183 See \`config.log' for more details." >&5
6184 $as_echo "$as_me: error: cannot compute sizeof (void *)
6185 See \`config.log' for more details." >&2;}
6186 { (exit 77); exit 77; }; }
6188 ac_cv_sizeof_void_p=0
6191 rm -rf conftest.dSYM
6192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6196 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6197 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6201 cat >>confdefs.h <<_ACEOF
6202 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6206 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6207 $as_echo_n "checking for ANSI C header files... " >&6; }
6208 if test "${ac_cv_header_stdc+set}" = set; then
6209 $as_echo_n "(cached) " >&6
6211 cat >conftest.$ac_ext <<_ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6230 rm -f conftest.$ac_objext
6231 if { (ac_try="$ac_compile"
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6237 $as_echo "$ac_try_echo") >&5
6238 (eval "$ac_compile") 2>conftest.er1
6240 grep -v '^ *+' conftest.er1 >conftest.err
6242 cat conftest.err >&5
6243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } && {
6245 test -z "$ac_c_werror_flag" ||
6246 test ! -s conftest.err
6247 } && test -s conftest.$ac_objext; then
6248 ac_cv_header_stdc=yes
6250 $as_echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 ac_cv_header_stdc=no
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 if test $ac_cv_header_stdc = yes; then
6259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6260 cat >conftest.$ac_ext <<_ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6270 $EGREP "memchr" >/dev/null 2>&1; then
6273 ac_cv_header_stdc=no
6279 if test $ac_cv_header_stdc = yes; then
6280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6281 cat >conftest.$ac_ext <<_ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291 $EGREP "free" >/dev/null 2>&1; then
6294 ac_cv_header_stdc=no
6300 if test $ac_cv_header_stdc = yes; then
6301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6302 if test "$cross_compiling" = yes; then
6305 cat >conftest.$ac_ext <<_ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6313 #if ((' ' & 0x0FF) == 0x020)
6314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6317 # define ISLOWER(c) \
6318 (('a' <= (c) && (c) <= 'i') \
6319 || ('j' <= (c) && (c) <= 'r') \
6320 || ('s' <= (c) && (c) <= 'z'))
6321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6329 for (i = 0; i < 256; i++)
6330 if (XOR (islower (i), ISLOWER (i))
6331 || toupper (i) != TOUPPER (i))
6336 rm -f conftest$ac_exeext
6337 if { (ac_try="$ac_link"
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6343 $as_echo "$ac_try_echo") >&5
6344 (eval "$ac_link") 2>&5
6346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6348 { (case "(($ac_try" in
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6353 $as_echo "$ac_try_echo") >&5
6354 (eval "$ac_try") 2>&5
6356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6360 $as_echo "$as_me: program exited with status $ac_status" >&5
6361 $as_echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6365 ac_cv_header_stdc=no
6367 rm -rf conftest.dSYM
6368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6374 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6375 $as_echo "$ac_cv_header_stdc" >&6; }
6376 if test $ac_cv_header_stdc = yes; then
6378 cat >>confdefs.h <<\_ACEOF
6379 #define STDC_HEADERS 1
6384 # Make sure we can run config.sub.
6385 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6386 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6387 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6388 { (exit 1); exit 1; }; }
6390 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6391 $as_echo_n "checking build system type... " >&6; }
6392 if test "${ac_cv_build+set}" = set; then
6393 $as_echo_n "(cached) " >&6
6395 ac_build_alias=$build_alias
6396 test "x$ac_build_alias" = x &&
6397 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6398 test "x$ac_build_alias" = x &&
6399 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6400 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6401 { (exit 1); exit 1; }; }
6402 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6403 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6404 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6405 { (exit 1); exit 1; }; }
6408 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6409 $as_echo "$ac_cv_build" >&6; }
6410 case $ac_cv_build in
6412 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6413 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6414 { (exit 1); exit 1; }; };;
6417 ac_save_IFS=$IFS; IFS='-'
6423 # Remember, the first character of IFS is used to create $*,
6424 # except with old shells:
6427 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6430 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6431 $as_echo_n "checking host system type... " >&6; }
6432 if test "${ac_cv_host+set}" = set; then
6433 $as_echo_n "(cached) " >&6
6435 if test "x$host_alias" = x; then
6436 ac_cv_host=$ac_cv_build
6438 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6439 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6440 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6441 { (exit 1); exit 1; }; }
6445 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6446 $as_echo "$ac_cv_host" >&6; }
6449 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6450 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6451 { (exit 1); exit 1; }; };;
6454 ac_save_IFS=$IFS; IFS='-'
6460 # Remember, the first character of IFS is used to create $*,
6461 # except with old shells:
6464 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6468 # Extract the first word of "pod2man", so it can be a program name with args.
6469 set dummy pod2man; ac_word=$2
6470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if test "${ac_cv_path_POD2MAN+set}" = set; then
6473 $as_echo_n "(cached) " >&6
6477 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
6488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 POD2MAN=$ac_cv_path_POD2MAN
6499 if test -n "$POD2MAN"; then
6500 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
6501 $as_echo "$POD2MAN" >&6; }
6503 { $as_echo "$as_me:$LINENO: result: no" >&5
6504 $as_echo "no" >&6; }
6508 # Extract the first word of "pod2html", so it can be a program name with args.
6509 set dummy pod2html; ac_word=$2
6510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if test "${ac_cv_path_POD2HTML+set}" = set; then
6513 $as_echo_n "(cached) " >&6
6517 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
6528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 POD2HTML=$ac_cv_path_POD2HTML
6539 if test -n "$POD2HTML"; then
6540 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
6541 $as_echo "$POD2HTML" >&6; }
6543 { $as_echo "$as_me:$LINENO: result: no" >&5
6544 $as_echo "no" >&6; }
6550 # Check whether --enable-trace was given.
6551 if test "${enable_trace+set}" = set; then
6552 enableval=$enable_trace; if test "$enableval" == "yes"; then
6554 cat >>confdefs.h <<\_ACEOF
6555 #define ENABLE_TRACE_IO 1
6561 # Check whether --enable-watch was given.
6562 if test "${enable_watch+set}" = set; then
6563 enableval=$enable_watch; if test "$enableval" == "yes"; then
6565 cat >>confdefs.h <<\_ACEOF
6566 #define ENABLE_WATCH 1
6572 # Check whether --enable-sh4stats was given.
6573 if test "${enable_sh4stats+set}" = set; then
6574 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
6576 cat >>confdefs.h <<\_ACEOF
6577 #define ENABLE_SH4STATS 1
6584 # Check whether --with-osmesa was given.
6585 if test "${with_osmesa+set}" = set; then
6586 withval=$with_osmesa;
6592 # Check whether --with-gtk was given.
6593 if test "${with_gtk+set}" = set; then
6594 withval=$with_gtk; with_gtk=yes
6601 lxdream_save_cppflags="$CPPFLAGS"
6602 CPPFLAGS="$CPPFLAGS -x objective-c"
6603 cat >conftest.$ac_ext <<_ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6618 rm -f conftest.$ac_objext
6619 if { (ac_try="$ac_compile"
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6625 $as_echo "$ac_try_echo") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6628 grep -v '^ *+' conftest.er1 >conftest.err
6630 cat conftest.err >&5
6631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.$ac_objext; then
6638 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6639 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6640 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6641 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6642 $as_echo_n "(cached) " >&6
6644 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6645 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6647 # Is the header compilable?
6648 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
6649 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
6650 cat >conftest.$ac_ext <<_ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 $ac_includes_default
6657 #include <Cocoa/Cocoa.h>
6659 rm -f conftest.$ac_objext
6660 if { (ac_try="$ac_compile"
6662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663 *) ac_try_echo=$ac_try;;
6665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6666 $as_echo "$ac_try_echo") >&5
6667 (eval "$ac_compile") 2>conftest.er1
6669 grep -v '^ *+' conftest.er1 >conftest.err
6671 cat conftest.err >&5
6672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } && {
6674 test -z "$ac_c_werror_flag" ||
6675 test ! -s conftest.err
6676 } && test -s conftest.$ac_objext; then
6677 ac_header_compiler=yes
6679 $as_echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6682 ac_header_compiler=no
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6687 $as_echo "$ac_header_compiler" >&6; }
6689 # Is the header present?
6690 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
6691 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
6692 cat >conftest.$ac_ext <<_ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <Cocoa/Cocoa.h>
6700 if { (ac_try="$ac_cpp conftest.$ac_ext"
6702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703 *) ac_try_echo=$ac_try;;
6705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6706 $as_echo "$ac_try_echo") >&5
6707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6709 grep -v '^ *+' conftest.er1 >conftest.err
6711 cat conftest.err >&5
6712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } >/dev/null && {
6714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6715 test ! -s conftest.err
6717 ac_header_preproc=yes
6719 $as_echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6722 ac_header_preproc=no
6725 rm -f conftest.err conftest.$ac_ext
6726 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6727 $as_echo "$ac_header_preproc" >&6; }
6729 # So? What about this header?
6730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6732 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6733 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6734 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
6735 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
6736 ac_header_preproc=yes
6739 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
6740 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
6741 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
6742 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
6743 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
6744 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
6745 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
6746 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6747 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
6748 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
6749 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
6750 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
6754 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6755 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6756 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6757 $as_echo_n "(cached) " >&6
6759 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
6761 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6762 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6765 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
6769 LIBS="$LIBS -framework AppKit"
6770 LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"
6772 cat >>confdefs.h <<\_ACEOF
6773 #define HAVE_COCOA 1
6777 cat >>confdefs.h <<\_ACEOF
6778 #define APPLE_BUILD 1