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
796 enable_option_checking
797 enable_maintainer_mode
798 enable_dependency_tracking
805 ac_precious_vars='build_alias
831 # Initialize some variables set by options.
833 ac_init_version=false
834 ac_unrecognized_opts=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
845 program_transform_name=s,x,x,
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE}'
870 infodir='${datarootdir}/info'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
938 { (exit 1); exit 1; }; }
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
948 eval enable_$ac_useropt=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
965 { (exit 1); exit 1; }; }
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
975 eval enable_$ac_useropt=\$ac_optarg ;;
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
990 -help | --help | --hel | --he | -h)
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 htmldir=$ac_optarg ;;
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1020 -libdir | --libdir | --libdi | --libd)
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1111 -psdir | --psdir | --psdi | --psd | --ps)
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 sbindir=$ac_optarg ;;
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 sharedstatedir=$ac_optarg ;;
1137 -site | --site | --sit)
1139 -site=* | --site=* | --sit=*)
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1170 { (exit 1); exit 1; }; }
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1180 eval with_$ac_useropt=\$ac_optarg ;;
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1187 { (exit 1); exit 1; }; }
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1197 eval with_$ac_useropt=no ;;
1200 # Obsolete; use --with-x.
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1217 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1218 Try \`$0 --help' for more information." >&2
1219 { (exit 1); exit 1; }; }
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1226 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1227 { (exit 1); exit 1; }; }
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1245 { (exit 1); exit 1; }; }
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1251 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1252 { (exit 1); exit 1; }; } ;;
1253 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1270 # Be sure to have absolute directory names.
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1276 { (exit 1); exit 1; }; }
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1284 target=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 test "$silent" = yes && exec 6>/dev/null
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1307 { (exit 1); exit 1; }; }
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1310 { (exit 1); exit 1; }; }
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1350 { (exit 1); exit 1; }; }
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1355 { (exit 1); exit 1; }; }
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 # Report the --help message.
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1381 \`configure' configures this package to adapt to many kinds of systems.
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1388 Defaults for the options are specified in brackets.
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1412 For better control, use the options below.
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 if test -n "$ac_init_help"; then
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-maintainer-mode enable make rules and dependencies not useful
1458 (and sometimes confusing) to the casual installer
1459 --disable-dependency-tracking speeds up one-time build
1460 --enable-dependency-tracking do not reject slow dependency extractors
1461 --enable-trace Enable generation of IO traces (warning: hurts
1463 --enable-watch Enable watchpoints in the debugger (warning: hurts
1465 --enable-sh4stats Enable statistics on executed sh4 instructions
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-osmesa Build with the osmesa GL library (software
1472 --with-gtk Build with the GTK UI. Default on X11 systems
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 CCAS assembler compiler command (defaults to CC)
1483 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1485 PKG_CONFIG path to pkg-config utility
1487 C compiler flags for LIBPNG, overriding pkg-config
1488 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1489 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1490 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1491 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1492 GTK_LIBS linker flags for GTK, overriding pkg-config
1494 C compiler flags for PULSE, overriding pkg-config
1495 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1497 C compiler flags for ESOUND, overriding pkg-config
1498 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1499 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1500 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1534 .) # We are building in place.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1568 generated by GNU Autoconf 2.62
1570 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1571 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1577 cat >config.log <<_ACEOF
1578 This file contains any messages produced by compilers while
1579 running configure, to aid debugging if configure makes a mistake.
1581 It was created by $as_me, which was
1582 generated by GNU Autoconf 2.62. Invocation command line was
1594 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1595 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1596 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1597 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1598 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1601 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1603 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1604 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1605 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1606 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1607 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1608 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1609 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 test -z "$as_dir" && as_dir=.
1618 $as_echo "PATH: $as_dir"
1634 # Keep a trace of the command line.
1635 # Strip out --no-create and --no-recursion so they do not pile up.
1636 # Strip out --silent because we don't want to record it for future runs.
1637 # Also quote any args containing shell meta-characters.
1638 # Make two passes to allow for proper duplicate-argument suppression.
1642 ac_must_keep_next=false
1648 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1650 | -silent | --silent | --silen | --sile | --sil)
1653 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1656 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1659 if test $ac_must_keep_next = true; then
1660 ac_must_keep_next=false # Got value, back to normal.
1663 *=* | --config-cache | -C | -disable-* | --disable-* \
1664 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1665 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1666 | -with-* | --with-* | -without-* | --without-* | --x)
1667 case "$ac_configure_args0 " in
1668 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1671 -* ) ac_must_keep_next=true ;;
1674 ac_configure_args="$ac_configure_args '$ac_arg'"
1679 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1680 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682 # When interrupted or exit'd, cleanup temporary files, and complete
1683 # config.log. We remove comments because anyway the quotes in there
1684 # would cause problems or look ugly.
1685 # WARNING: Use '\'' to represent an apostrophe within the trap.
1686 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1687 trap 'exit_status=$?
1688 # Save into config.log some information that might help in debugging.
1693 ## ---------------- ##
1694 ## Cache variables. ##
1695 ## ---------------- ##
1698 # The following way of writing the cache mishandles newlines in values,
1700 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1701 eval ac_val=\$$ac_var
1705 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1706 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1709 _ | IFS | as_nl) ;; #(
1710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1711 *) $as_unset $ac_var ;;
1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1736 for ac_var in $ac_subst_vars
1738 eval ac_val=\$$ac_var
1740 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 $as_echo "$ac_var='\''$ac_val'\''"
1746 if test -n "$ac_subst_files"; then
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1753 for ac_var in $ac_subst_files
1755 eval ac_val=\$$ac_var
1757 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 $as_echo "$ac_var='\''$ac_val'\''"
1764 if test -s confdefs.h; then
1774 test "$ac_signal" != 0 &&
1775 $as_echo "$as_me: caught signal $ac_signal"
1776 $as_echo "$as_me: exit $exit_status"
1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1790 # Predefined preprocessor variables.
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer an explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 ac_site_file1=$CONFIG_SITE
1823 elif test "x$prefix" != xNONE; then
1824 ac_site_file1=$prefix/share/config.site
1825 ac_site_file2=$prefix/etc/config.site
1827 ac_site_file1=$ac_default_prefix/share/config.site
1828 ac_site_file2=$ac_default_prefix/etc/config.site
1830 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1832 test "x$ac_site_file" = xNONE && continue
1833 if test -r "$ac_site_file"; then
1834 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1835 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1836 sed 's/^/| /' "$ac_site_file" >&5
1841 if test -r "$cache_file"; then
1842 # Some versions of bash will fail to source /dev/null (special
1843 # files actually), so we avoid doing that.
1844 if test -f "$cache_file"; then
1845 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1846 $as_echo "$as_me: loading cache $cache_file" >&6;}
1848 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1849 *) . "./$cache_file";;
1853 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1854 $as_echo "$as_me: creating cache $cache_file" >&6;}
1858 # Check that the precious variables saved in the cache have kept the same
1860 ac_cache_corrupted=false
1861 for ac_var in $ac_precious_vars; do
1862 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1863 eval ac_new_set=\$ac_env_${ac_var}_set
1864 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1865 eval ac_new_val=\$ac_env_${ac_var}_value
1866 case $ac_old_set,$ac_new_set in
1868 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1869 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1870 ac_cache_corrupted=: ;;
1872 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1873 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1877 if test "x$ac_old_val" != "x$ac_new_val"; then
1878 # differences in whitespace do not lead to failure.
1879 ac_old_val_w=`echo x $ac_old_val`
1880 ac_new_val_w=`echo x $ac_new_val`
1881 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1882 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884 ac_cache_corrupted=:
1886 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1887 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1888 eval $ac_var=\$ac_old_val
1890 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1891 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1892 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1893 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1896 # Pass precious variables to config.status.
1897 if test "$ac_new_set" = set; then
1899 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 *) ac_arg=$ac_var=$ac_new_val ;;
1902 case " $ac_configure_args " in
1903 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1904 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1908 if $ac_cache_corrupted; then
1909 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913 { (exit 1); exit 1; }; }
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939 am__api_version="1.9"
1941 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1942 if test -f "$ac_dir/install-sh"; then
1944 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 elif test -f "$ac_dir/install.sh"; then
1948 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 elif test -f "$ac_dir/shtool"; then
1952 ac_install_sh="$ac_aux_dir/shtool install -c"
1956 if test -z "$ac_aux_dir"; then
1957 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1958 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1959 { (exit 1); exit 1; }; }
1962 # These three variables are undocumented and unsupported,
1963 # and are intended to be withdrawn in a future Autoconf release.
1964 # They can cause serious problems if a builder's source tree is in a directory
1965 # whose full name contains unusual characters.
1966 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1967 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1968 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971 # Find a good install program. We prefer a C program (faster),
1972 # so one script is as good as another. But avoid the broken or
1973 # incompatible versions:
1974 # SysV /etc/install, /usr/sbin/install
1975 # SunOS /usr/etc/install
1976 # IRIX /sbin/install
1978 # AmigaOS /C/install, which installs bootblocks on floppy discs
1979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1982 # OS/2's system install, which has a completely different semantic
1983 # ./install, which can be erroneously created by make from ./install.sh.
1984 # Reject install programs that cannot install multiple files.
1985 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1986 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1987 if test -z "$INSTALL"; then
1988 if test "${ac_cv_path_install+set}" = set; then
1989 $as_echo_n "(cached) " >&6
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 # Account for people who put trailing slashes in PATH elements.
1998 ./ | .// | /cC/* | \
1999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2003 # OSF1 and SCO ODT 3.0 have their own names for install.
2004 # Don't use installbsd from OSF since it installs stuff as root
2006 for ac_prog in ginstall scoinst install; do
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2009 if test $ac_prog = install &&
2010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # AIX install. It has an incompatible calling convention.
2013 elif test $ac_prog = install &&
2014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # program-specific install script used by HP pwplus--don't use.
2018 rm -rf conftest.one conftest.two conftest.dir
2019 echo one > conftest.one
2020 echo two > conftest.two
2022 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2023 test -s conftest.one && test -s conftest.two &&
2024 test -s conftest.dir/conftest.one &&
2025 test -s conftest.dir/conftest.two
2027 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2040 rm -rf conftest.one conftest.two conftest.dir
2043 if test "${ac_cv_path_install+set}" = set; then
2044 INSTALL=$ac_cv_path_install
2046 # As a last resort, use the slow shell script. Don't cache a
2047 # value for INSTALL within a source directory, because that will
2048 # break other packages using the cache if that directory is
2049 # removed, or if the value is a relative name.
2050 INSTALL=$ac_install_sh
2053 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2054 $as_echo "$INSTALL" >&6; }
2056 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2057 # It thinks the first close brace ends the variable substitution.
2058 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2060 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2062 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2064 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2065 $as_echo_n "checking whether build environment is sane... " >&6; }
2068 echo timestamp > conftest.file
2069 # Do `set' in a subshell so we don't clobber the current shell's
2070 # arguments. Must try -L first in case configure is actually a
2071 # symlink; some systems play weird games with the mod time of symlinks
2072 # (eg FreeBSD returns the mod time of the symlink's containing
2075 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2076 if test "$*" = "X"; then
2078 set X `ls -t $srcdir/configure conftest.file`
2081 if test "$*" != "X $srcdir/configure conftest.file" \
2082 && test "$*" != "X conftest.file $srcdir/configure"; then
2084 # If neither matched, then we have a broken ls. This can happen
2085 # if, for instance, CONFIG_SHELL is bash and it inherits a
2086 # broken ls alias from the environment. This has actually
2087 # happened. Such a system could not be considered "sane".
2088 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2089 alias in your environment" >&5
2090 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2091 alias in your environment" >&2;}
2092 { (exit 1); exit 1; }; }
2095 test "$2" = conftest.file
2101 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2102 Check your system clock" >&5
2103 $as_echo "$as_me: error: newly created file is older than distributed files!
2104 Check your system clock" >&2;}
2105 { (exit 1); exit 1; }; }
2107 { $as_echo "$as_me:$LINENO: result: yes" >&5
2108 $as_echo "yes" >&6; }
2109 test "$program_prefix" != NONE &&
2110 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2111 # Use a double $ so make ignores it.
2112 test "$program_suffix" != NONE &&
2113 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2114 # Double any \ or $.
2115 # By default was `s,x,x', remove it if useless.
2116 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2117 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2119 # expand $ac_aux_dir to an absolute path
2120 am_aux_dir=`cd $ac_aux_dir && pwd`
2122 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2123 # Use eval to expand $SHELL
2124 if eval "$MISSING --run true"; then
2125 am_missing_run="$MISSING --run "
2128 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2129 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2132 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2133 # We used to keeping the `.' as first argument, in order to
2134 # allow $(mkdir_p) to be used without argument. As in
2135 # $(mkdir_p) $(somedir)
2136 # where $(somedir) is conditionally defined. However this is wrong
2138 # 1. if the package is installed by a user who cannot write `.'
2139 # make install will fail,
2140 # 2. the above comment should most certainly read
2141 # $(mkdir_p) $(DESTDIR)$(somedir)
2142 # so it does not work when $(somedir) is undefined and
2143 # $(DESTDIR) is not.
2144 # To support the latter case, we have to write
2145 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2146 # so the `.' trick is pointless.
2147 mkdir_p='mkdir -p --'
2149 # On NextStep and OpenStep, the `mkdir' command does not
2150 # recognize any option. It will interpret all options as
2151 # directories to create, and then abort because `.' already
2153 for d in ./-p ./--version;
2155 test -d $d && rmdir $d
2157 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2158 if test -f "$ac_aux_dir/mkinstalldirs"; then
2159 mkdir_p='$(mkinstalldirs)'
2161 mkdir_p='$(install_sh) -d'
2165 for ac_prog in gawk mawk nawk awk
2167 # Extract the first word of "$ac_prog", so it can be a program name with args.
2168 set dummy $ac_prog; ac_word=$2
2169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 $as_echo_n "checking for $ac_word... " >&6; }
2171 if test "${ac_cv_prog_AWK+set}" = set; then
2172 $as_echo_n "(cached) " >&6
2174 if test -n "$AWK"; then
2175 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 ac_cv_prog_AWK="$ac_prog"
2185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 if test -n "$AWK"; then
2196 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2197 $as_echo "$AWK" >&6; }
2199 { $as_echo "$as_me:$LINENO: result: no" >&5
2200 $as_echo "no" >&6; }
2204 test -n "$AWK" && break
2207 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2208 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2210 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2211 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2212 $as_echo_n "(cached) " >&6
2214 cat >conftest.make <<\_ACEOF
2217 @echo '@@@%%%=$(MAKE)=@@@%%%'
2219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2220 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2222 eval ac_cv_prog_make_${ac_make}_set=yes;;
2224 eval ac_cv_prog_make_${ac_make}_set=no;;
2228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2229 { $as_echo "$as_me:$LINENO: result: yes" >&5
2230 $as_echo "yes" >&6; }
2233 { $as_echo "$as_me:$LINENO: result: no" >&5
2234 $as_echo "no" >&6; }
2235 SET_MAKE="MAKE=${MAKE-make}"
2238 rm -rf .tst 2>/dev/null
2239 mkdir .tst 2>/dev/null
2240 if test -d .tst; then
2245 rmdir .tst 2>/dev/null
2247 # test to see if srcdir already configured
2248 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2249 test -f $srcdir/config.status; then
2250 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2251 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2252 { (exit 1); exit 1; }; }
2255 # test whether we have cygpath
2256 if test -z "$CYGPATH_W"; then
2257 if (cygpath --version) >/dev/null 2>/dev/null; then
2258 CYGPATH_W='cygpath -w'
2265 # Define the identity of the package.
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE "$PACKAGE"
2275 cat >>confdefs.h <<_ACEOF
2276 #define VERSION "$VERSION"
2279 # Some tools Automake needs.
2281 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2287 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2293 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2295 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2297 # Installed binaries are usually stripped using `strip' when the user
2298 # run `make install-strip'. However `strip' might not be the right
2299 # tool to use in cross-compilation environments, therefore Automake
2300 # will honor the `STRIP' environment variable to overrule this program.
2301 if test "$cross_compiling" != no; then
2302 if test -n "$ac_tool_prefix"; then
2303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2304 set dummy ${ac_tool_prefix}strip; ac_word=$2
2305 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 $as_echo_n "checking for $ac_word... " >&6; }
2307 if test "${ac_cv_prog_STRIP+set}" = set; then
2308 $as_echo_n "(cached) " >&6
2310 if test -n "$STRIP"; then
2311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 STRIP=$ac_cv_prog_STRIP
2331 if test -n "$STRIP"; then
2332 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2333 $as_echo "$STRIP" >&6; }
2335 { $as_echo "$as_me:$LINENO: result: no" >&5
2336 $as_echo "no" >&6; }
2341 if test -z "$ac_cv_prog_STRIP"; then
2343 # Extract the first word of "strip", so it can be a program name with args.
2344 set dummy strip; ac_word=$2
2345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 $as_echo_n "checking for $ac_word... " >&6; }
2347 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2348 $as_echo_n "(cached) " >&6
2350 if test -n "$ac_ct_STRIP"; then
2351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_ac_ct_STRIP="strip"
2361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2371 if test -n "$ac_ct_STRIP"; then
2372 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2373 $as_echo "$ac_ct_STRIP" >&6; }
2375 { $as_echo "$as_me:$LINENO: result: no" >&5
2376 $as_echo "no" >&6; }
2379 if test "x$ac_ct_STRIP" = x; then
2382 case $cross_compiling:$ac_tool_warned in
2384 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2385 whose name does not start with the host triplet. If you think this
2386 configuration is useful to you, please write to autoconf@gnu.org." >&5
2387 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2388 whose name does not start with the host triplet. If you think this
2389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2390 ac_tool_warned=yes ;;
2395 STRIP="$ac_cv_prog_STRIP"
2399 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2401 # We need awk for the "check" target. The system "awk" is bad on
2403 # Always define AMTAR for backward compatibility.
2405 AMTAR=${AMTAR-"${am_missing_run}tar"}
2407 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2413 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2414 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2415 # Check whether --enable-maintainer-mode was given.
2416 if test "${enable_maintainer_mode+set}" = set; then
2417 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2419 USE_MAINTAINER_MODE=no
2422 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2423 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2426 if test $USE_MAINTAINER_MODE = yes; then
2427 MAINTAINER_MODE_TRUE=
2428 MAINTAINER_MODE_FALSE='#'
2430 MAINTAINER_MODE_TRUE='#'
2431 MAINTAINER_MODE_FALSE=
2434 MAINT=$MAINTAINER_MODE_TRUE
2437 ac_config_headers="$ac_config_headers config.h"
2440 DEPDIR="${am__leading_dot}deps"
2442 ac_config_commands="$ac_config_commands depfiles"
2445 am_make=${MAKE-make}
2446 cat > confinc << 'END'
2451 # If we don't find an include directive, just comment out the code.
2452 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2453 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2457 # First try GNU make style include.
2458 echo "include confinc" > confmf
2459 # We grep out `Entering directory' and `Leaving directory'
2460 # messages which can occur if `w' ends up in MAKEFLAGS.
2461 # In particular we don't look at `^make:' because GNU make might
2462 # be invoked under some other name (usually "gmake"), in which
2463 # case it prints its new name instead of `make'.
2464 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2469 # Now try BSD make style include.
2470 if test "$am__include" = "#"; then
2471 echo '.include "confinc"' > confmf
2472 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2473 am__include=.include
2480 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2481 $as_echo "$_am_result" >&6; }
2482 rm -f confinc confmf
2484 # Check whether --enable-dependency-tracking was given.
2485 if test "${enable_dependency_tracking+set}" = set; then
2486 enableval=$enable_dependency_tracking;
2489 if test "x$enable_dependency_tracking" != xno; then
2490 am_depcomp="$ac_aux_dir/depcomp"
2495 if test "x$enable_dependency_tracking" != xno; then
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516 $as_echo_n "(cached) " >&6
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 if test -n "$CC"; then
2540 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2541 $as_echo "$CC" >&6; }
2543 { $as_echo "$as_me:$LINENO: result: no" >&5
2544 $as_echo "no" >&6; }
2549 if test -z "$ac_cv_prog_CC"; then
2551 # Extract the first word of "gcc", so it can be a program name with args.
2552 set dummy gcc; ac_word=$2
2553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2556 $as_echo_n "(cached) " >&6
2558 if test -n "$ac_ct_CC"; then
2559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_ac_ct_CC="gcc"
2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579 if test -n "$ac_ct_CC"; then
2580 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2581 $as_echo "$ac_ct_CC" >&6; }
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584 $as_echo "no" >&6; }
2587 if test "x$ac_ct_CC" = x; then
2590 case $cross_compiling:$ac_tool_warned in
2592 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2593 whose name does not start with the host triplet. If you think this
2594 configuration is useful to you, please write to autoconf@gnu.org." >&5
2595 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2596 whose name does not start with the host triplet. If you think this
2597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2598 ac_tool_warned=yes ;;
2606 if test -z "$CC"; then
2607 if test -n "$ac_tool_prefix"; then
2608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2609 set dummy ${ac_tool_prefix}cc; ac_word=$2
2610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if test "${ac_cv_prog_CC+set}" = set; then
2613 $as_echo_n "(cached) " >&6
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_CC="${ac_tool_prefix}cc"
2626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 if test -n "$CC"; then
2637 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2638 $as_echo "$CC" >&6; }
2640 { $as_echo "$as_me:$LINENO: result: no" >&5
2641 $as_echo "no" >&6; }
2647 if test -z "$CC"; then
2648 # Extract the first word of "cc", so it can be a program name with args.
2649 set dummy cc; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_CC+set}" = set; then
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2667 ac_prog_rejected=yes
2671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 if test $ac_prog_rejected = yes; then
2679 # We found a bogon in the path, so make sure we never use it.
2680 set dummy $ac_cv_prog_CC
2682 if test $# != 0; then
2683 # We chose a different compiler from the bogus one.
2684 # However, it has the same basename, so the bogon will be chosen
2685 # first if we set CC to just the basename; use the full file name.
2687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2693 if test -n "$CC"; then
2694 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2695 $as_echo "$CC" >&6; }
2697 { $as_echo "$as_me:$LINENO: result: no" >&5
2698 $as_echo "no" >&6; }
2703 if test -z "$CC"; then
2704 if test -n "$ac_tool_prefix"; then
2705 for ac_prog in cl.exe
2707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_CC+set}" = set; then
2712 $as_echo_n "(cached) " >&6
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 if test -n "$CC"; then
2736 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2739 { $as_echo "$as_me:$LINENO: result: no" >&5
2740 $as_echo "no" >&6; }
2744 test -n "$CC" && break
2747 if test -z "$CC"; then
2749 for ac_prog in cl.exe
2751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2752 set dummy $ac_prog; ac_word=$2
2753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2756 $as_echo_n "(cached) " >&6
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_ac_ct_CC="$ac_prog"
2769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779 if test -n "$ac_ct_CC"; then
2780 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2781 $as_echo "$ac_ct_CC" >&6; }
2783 { $as_echo "$as_me:$LINENO: result: no" >&5
2784 $as_echo "no" >&6; }
2788 test -n "$ac_ct_CC" && break
2791 if test "x$ac_ct_CC" = x; then
2794 case $cross_compiling:$ac_tool_warned in
2796 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2797 whose name does not start with the host triplet. If you think this
2798 configuration is useful to you, please write to autoconf@gnu.org." >&5
2799 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2800 whose name does not start with the host triplet. If you think this
2801 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2802 ac_tool_warned=yes ;;
2811 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2812 See \`config.log' for more details." >&5
2813 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2814 See \`config.log' for more details." >&2;}
2815 { (exit 1); exit 1; }; }
2817 # Provide some information about the compiler.
2818 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2821 { (ac_try="$ac_compiler --version >&5"
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2827 $as_echo "$ac_try_echo") >&5
2828 (eval "$ac_compiler --version >&5") 2>&5
2830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }
2832 { (ac_try="$ac_compiler -v >&5"
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2838 $as_echo "$ac_try_echo") >&5
2839 (eval "$ac_compiler -v >&5") 2>&5
2841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }
2843 { (ac_try="$ac_compiler -V >&5"
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2849 $as_echo "$ac_try_echo") >&5
2850 (eval "$ac_compiler -V >&5") 2>&5
2852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }
2855 cat >conftest.$ac_ext <<_ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2870 ac_clean_files_save=$ac_clean_files
2871 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2872 # Try to create an executable without -o first, disregard a.out.
2873 # It will help us diagnose broken compilers, and finding out an intuition
2875 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2876 $as_echo_n "checking for C compiler default output file name... " >&6; }
2877 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2879 # The possible output files:
2880 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2883 for ac_file in $ac_files
2886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2887 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2892 if { (ac_try="$ac_link_default"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2898 $as_echo "$ac_try_echo") >&5
2899 (eval "$ac_link_default") 2>&5
2901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; then
2903 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2904 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2905 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2906 # so that the user can short-circuit this test for compilers unknown to
2908 for ac_file in $ac_files ''
2910 test -f "$ac_file" || continue
2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2915 # We found the default executable, but exeext='' is most
2919 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2921 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2923 # We set ac_cv_exeext here because the later test for it is not
2924 # safe: cross compilers may not add the suffix if given an `-o'
2925 # argument, so we may need to know it at that point already.
2926 # Even if this section looks crufty: it has the advantage of
2933 test "$ac_cv_exeext" = no && ac_cv_exeext=
2939 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2940 $as_echo "$ac_file" >&6; }
2941 if test -z "$ac_file"; then
2942 $as_echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2946 See \`config.log' for more details." >&5
2947 $as_echo "$as_me: error: C compiler cannot create executables
2948 See \`config.log' for more details." >&2;}
2949 { (exit 77); exit 77; }; }
2952 ac_exeext=$ac_cv_exeext
2954 # Check that the compiler produces executables we can run. If not, either
2955 # the compiler is broken, or we cross compile.
2956 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2957 $as_echo_n "checking whether the C compiler works... " >&6; }
2958 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2959 # If not cross compiling, check that we can run a simple program.
2960 if test "$cross_compiling" != yes; then
2961 if { ac_try='./$ac_file'
2962 { (case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2967 $as_echo "$ac_try_echo") >&5
2968 (eval "$ac_try") 2>&5
2970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2974 if test "$cross_compiling" = maybe; then
2977 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2978 If you meant to cross compile, use \`--host'.
2979 See \`config.log' for more details." >&5
2980 $as_echo "$as_me: error: cannot run C compiled programs.
2981 If you meant to cross compile, use \`--host'.
2982 See \`config.log' for more details." >&2;}
2983 { (exit 1); exit 1; }; }
2987 { $as_echo "$as_me:$LINENO: result: yes" >&5
2988 $as_echo "yes" >&6; }
2990 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2991 ac_clean_files=$ac_clean_files_save
2992 # Check that the compiler produces executables we can run. If not, either
2993 # the compiler is broken, or we cross compile.
2994 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2995 $as_echo_n "checking whether we are cross compiling... " >&6; }
2996 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2997 $as_echo "$cross_compiling" >&6; }
2999 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3000 $as_echo_n "checking for suffix of executables... " >&6; }
3001 if { (ac_try="$ac_link"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3007 $as_echo "$ac_try_echo") >&5
3008 (eval "$ac_link") 2>&5
3010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; then
3012 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3013 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3014 # work properly (i.e., refer to `conftest.exe'), while it won't with
3016 for ac_file in conftest.exe conftest conftest.*; do
3017 test -f "$ac_file" || continue
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3020 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3026 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3027 See \`config.log' for more details." >&5
3028 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3029 See \`config.log' for more details." >&2;}
3030 { (exit 1); exit 1; }; }
3033 rm -f conftest$ac_cv_exeext
3034 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3035 $as_echo "$ac_cv_exeext" >&6; }
3037 rm -f conftest.$ac_ext
3038 EXEEXT=$ac_cv_exeext
3040 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3041 $as_echo_n "checking for suffix of object files... " >&6; }
3042 if test "${ac_cv_objext+set}" = set; then
3043 $as_echo_n "(cached) " >&6
3045 cat >conftest.$ac_ext <<_ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3060 rm -f conftest.o conftest.obj
3061 if { (ac_try="$ac_compile"
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3067 $as_echo "$ac_try_echo") >&5
3068 (eval "$ac_compile") 2>&5
3070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; then
3072 for ac_file in conftest.o conftest.obj conftest.*; do
3073 test -f "$ac_file" || continue;
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3076 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3081 $as_echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3085 See \`config.log' for more details." >&5
3086 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3087 See \`config.log' for more details." >&2;}
3088 { (exit 1); exit 1; }; }
3091 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3093 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3094 $as_echo "$ac_cv_objext" >&6; }
3095 OBJEXT=$ac_cv_objext
3097 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3098 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3099 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3100 $as_echo_n "(cached) " >&6
3102 cat >conftest.$ac_ext <<_ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3127 $as_echo "$ac_try_echo") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } && {
3135 test -z "$ac_c_werror_flag" ||
3136 test ! -s conftest.err
3137 } && test -s conftest.$ac_objext; then
3140 $as_echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3150 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3151 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3152 if test $ac_compiler_gnu = yes; then
3157 ac_test_CFLAGS=${CFLAGS+set}
3158 ac_save_CFLAGS=$CFLAGS
3159 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3160 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3161 if test "${ac_cv_prog_cc_g+set}" = set; then
3162 $as_echo_n "(cached) " >&6
3164 ac_save_c_werror_flag=$ac_c_werror_flag
3165 ac_c_werror_flag=yes
3168 cat >conftest.$ac_ext <<_ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3190 $as_echo "$ac_try_echo") >&5
3191 (eval "$ac_compile") 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } && {
3198 test -z "$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 } && test -s conftest.$ac_objext; then
3203 $as_echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3207 cat >conftest.$ac_ext <<_ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3222 rm -f conftest.$ac_objext
3223 if { (ac_try="$ac_compile"
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3229 $as_echo "$ac_try_echo") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3232 grep -v '^ *+' conftest.er1 >conftest.err
3234 cat conftest.err >&5
3235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } && {
3237 test -z "$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 } && test -s conftest.$ac_objext; then
3242 $as_echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 ac_c_werror_flag=$ac_save_c_werror_flag
3247 cat >conftest.$ac_ext <<_ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3262 rm -f conftest.$ac_objext
3263 if { (ac_try="$ac_compile"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3269 $as_echo "$ac_try_echo") >&5
3270 (eval "$ac_compile") 2>conftest.er1
3272 grep -v '^ *+' conftest.er1 >conftest.err
3274 cat conftest.err >&5
3275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } && {
3277 test -z "$ac_c_werror_flag" ||
3278 test ! -s conftest.err
3279 } && test -s conftest.$ac_objext; then
3282 $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 ac_c_werror_flag=$ac_save_c_werror_flag
3297 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3298 $as_echo "$ac_cv_prog_cc_g" >&6; }
3299 if test "$ac_test_CFLAGS" = set; then
3300 CFLAGS=$ac_save_CFLAGS
3301 elif test $ac_cv_prog_cc_g = yes; then
3302 if test "$GCC" = yes; then
3308 if test "$GCC" = yes; then
3314 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3315 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3316 if test "${ac_cv_prog_cc_c89+set}" = set; then
3317 $as_echo_n "(cached) " >&6
3319 ac_cv_prog_cc_c89=no
3321 cat >conftest.$ac_ext <<_ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3329 #include <sys/types.h>
3330 #include <sys/stat.h>
3331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3332 struct buf { int x; };
3333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3334 static char *e (p, i)
3340 static char *f (char * (*g) (char **, int), char **p, ...)
3345 s = g (p, va_arg (v,int));
3350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3351 function prototypes and stuff, but not '\xHH' hex character constants.
3352 These don't provoke an error unfortunately, instead are silently treated
3353 as 'x'. The following induces an error, until -std is added to get
3354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3355 array size at least. It's necessary to write '\x00'==0 to get something
3356 that's true only with -std. */
3357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3360 inside strings and character constants. */
3362 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3381 CC="$ac_save_CC $ac_arg"
3382 rm -f conftest.$ac_objext
3383 if { (ac_try="$ac_compile"
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3389 $as_echo "$ac_try_echo") >&5
3390 (eval "$ac_compile") 2>conftest.er1
3392 grep -v '^ *+' conftest.er1 >conftest.err
3394 cat conftest.err >&5
3395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } && {
3397 test -z "$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 } && test -s conftest.$ac_objext; then
3400 ac_cv_prog_cc_c89=$ac_arg
3402 $as_echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3408 rm -f core conftest.err conftest.$ac_objext
3409 test "x$ac_cv_prog_cc_c89" != "xno" && break
3411 rm -f conftest.$ac_ext
3416 case "x$ac_cv_prog_cc_c89" in
3418 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3419 $as_echo "none needed" >&6; } ;;
3421 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3422 $as_echo "unsupported" >&6; } ;;
3424 CC="$CC $ac_cv_prog_cc_c89"
3425 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3426 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 depcc="$CC" am_compiler_list=
3438 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3439 $as_echo_n "checking dependency style of $depcc... " >&6; }
3440 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3441 $as_echo_n "(cached) " >&6
3443 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3444 # We make a subdir and do the tests there. Otherwise we can end up
3445 # making bogus files that we don't know about and never remove. For
3446 # instance it was reported that on HP-UX the gcc test will end up
3447 # making a dummy file named `D' -- because `-MD' means `put the output
3450 # Copy depcomp to subdir because otherwise we won't find it if we're
3451 # using a relative directory.
3452 cp "$am_depcomp" conftest.dir
3454 # We will build objects and dependencies in a subdirectory because
3455 # it helps to detect inapplicable dependency modes. For instance
3456 # both Tru64's cc and ICC support -MD to output dependencies as a
3457 # side effect of compilation, but ICC will put the dependencies in
3458 # the current directory while Tru64 will put them in the object
3462 am_cv_CC_dependencies_compiler_type=none
3463 if test "$am_compiler_list" = ""; then
3464 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3466 for depmode in $am_compiler_list; do
3467 # Setup a source with many dependencies, because some compilers
3468 # like to wrap large dependency lists on column 80 (with \), and
3469 # we should not choose a depcomp mode which is confused by this.
3471 # We need to recreate these files for each test, as the compiler may
3472 # overwrite some of them when testing with obscure command lines.
3473 # This happens at least with the AIX C compiler.
3475 for i in 1 2 3 4 5 6; do
3476 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3477 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3478 # Solaris 8's {/usr,}/bin/sh.
3479 touch sub/conftst$i.h
3481 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3485 # after this tag, mechanisms are not by side-effect, so they'll
3486 # only be used when explicitly requested
3487 if test "x$enable_dependency_tracking" = xyes; then
3495 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3496 # mode. It turns out that the SunPro C++ compiler does not properly
3497 # handle `-M -o', and we need to detect this.
3498 if depmode=$depmode \
3499 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3500 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3501 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3502 >/dev/null 2>conftest.err &&
3503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3504 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3506 # icc doesn't choke on unknown options, it will just issue warnings
3507 # or remarks (even with -Werror). So we grep stderr for any message
3508 # that says an option was ignored or not supported.
3509 # When given -MP, icc 7.0 and 7.1 complain thusly:
3510 # icc: Command line warning: ignoring option '-M'; no argument required
3511 # The diagnosis changed in icc 8.0:
3512 # icc: Command line remark: option '-MP' not supported
3513 if (grep 'ignoring option' conftest.err ||
3514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3515 am_cv_CC_dependencies_compiler_type=$depmode
3524 am_cv_CC_dependencies_compiler_type=none
3528 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3529 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3530 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3535 test "x$enable_dependency_tracking" != xno \
3536 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3538 am__fastdepCC_FALSE='#'
3540 am__fastdepCC_TRUE='#'
3541 am__fastdepCC_FALSE=
3547 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3548 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3549 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3550 $as_echo_n "(cached) " >&6
3552 ac_check_lib_save_LIBS=$LIBS
3553 LIBS="-lcposix $LIBS"
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3561 /* Override any GCC internal prototype to avoid an error.
3562 Use char because int might match the return type of a GCC
3563 builtin and then its argument prototype would still apply. */
3576 rm -f conftest.$ac_objext conftest$ac_exeext
3577 if { (ac_try="$ac_link"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3583 $as_echo "$ac_try_echo") >&5
3584 (eval "$ac_link") 2>conftest.er1
3586 grep -v '^ *+' conftest.er1 >conftest.err
3588 cat conftest.err >&5
3589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } && {
3591 test -z "$ac_c_werror_flag" ||
3592 test ! -s conftest.err
3593 } && test -s conftest$ac_exeext && {
3594 test "$cross_compiling" = yes ||
3595 $as_test_x conftest$ac_exeext
3597 ac_cv_lib_cposix_strerror=yes
3599 $as_echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 ac_cv_lib_cposix_strerror=no
3605 rm -rf conftest.dSYM
3606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3607 conftest$ac_exeext conftest.$ac_ext
3608 LIBS=$ac_check_lib_save_LIBS
3610 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3611 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3612 if test $ac_cv_lib_cposix_strerror = yes; then
3613 LIBS="$LIBS -lcposix"
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 if test -n "$ac_tool_prefix"; then
3624 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3625 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3626 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_CC+set}" = set; then
3629 $as_echo_n "(cached) " >&6
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 if test -n "$CC"; then
3653 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3654 $as_echo "$CC" >&6; }
3656 { $as_echo "$as_me:$LINENO: result: no" >&5
3657 $as_echo "no" >&6; }
3662 if test -z "$ac_cv_prog_CC"; then
3664 # Extract the first word of "gcc", so it can be a program name with args.
3665 set dummy gcc; ac_word=$2
3666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3669 $as_echo_n "(cached) " >&6
3671 if test -n "$ac_ct_CC"; then
3672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_ac_ct_CC="gcc"
3682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3692 if test -n "$ac_ct_CC"; then
3693 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3694 $as_echo "$ac_ct_CC" >&6; }
3696 { $as_echo "$as_me:$LINENO: result: no" >&5
3697 $as_echo "no" >&6; }
3700 if test "x$ac_ct_CC" = x; then
3703 case $cross_compiling:$ac_tool_warned in
3705 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3706 whose name does not start with the host triplet. If you think this
3707 configuration is useful to you, please write to autoconf@gnu.org." >&5
3708 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3709 whose name does not start with the host triplet. If you think this
3710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3711 ac_tool_warned=yes ;;
3719 if test -z "$CC"; then
3720 if test -n "$ac_tool_prefix"; then
3721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3722 set dummy ${ac_tool_prefix}cc; ac_word=$2
3723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if test "${ac_cv_prog_CC+set}" = set; then
3726 $as_echo_n "(cached) " >&6
3728 if test -n "$CC"; then
3729 ac_cv_prog_CC="$CC" # Let the user override the test.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3738 ac_cv_prog_CC="${ac_tool_prefix}cc"
3739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 if test -n "$CC"; then
3750 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3751 $as_echo "$CC" >&6; }
3753 { $as_echo "$as_me:$LINENO: result: no" >&5
3754 $as_echo "no" >&6; }
3760 if test -z "$CC"; then
3761 # Extract the first word of "cc", so it can be a program name with args.
3762 set dummy cc; ac_word=$2
3763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if test "${ac_cv_prog_CC+set}" = set; then
3766 $as_echo_n "(cached) " >&6
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3780 ac_prog_rejected=yes
3784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 if test $ac_prog_rejected = yes; then
3792 # We found a bogon in the path, so make sure we never use it.
3793 set dummy $ac_cv_prog_CC
3795 if test $# != 0; then
3796 # We chose a different compiler from the bogus one.
3797 # However, it has the same basename, so the bogon will be chosen
3798 # first if we set CC to just the basename; use the full file name.
3800 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3806 if test -n "$CC"; then
3807 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3808 $as_echo "$CC" >&6; }
3810 { $as_echo "$as_me:$LINENO: result: no" >&5
3811 $as_echo "no" >&6; }
3816 if test -z "$CC"; then
3817 if test -n "$ac_tool_prefix"; then
3818 for ac_prog in cl.exe
3820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 $as_echo_n "checking for $ac_word... " >&6; }
3824 if test "${ac_cv_prog_CC+set}" = set; then
3825 $as_echo_n "(cached) " >&6
3827 if test -n "$CC"; then
3828 ac_cv_prog_CC="$CC" # Let the user override the test.
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3838 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 if test -n "$CC"; then
3849 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3850 $as_echo "$CC" >&6; }
3852 { $as_echo "$as_me:$LINENO: result: no" >&5
3853 $as_echo "no" >&6; }
3857 test -n "$CC" && break
3860 if test -z "$CC"; then
3862 for ac_prog in cl.exe
3864 # Extract the first word of "$ac_prog", so it can be a program name with args.
3865 set dummy $ac_prog; ac_word=$2
3866 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3867 $as_echo_n "checking for $ac_word... " >&6; }
3868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3869 $as_echo_n "(cached) " >&6
3871 if test -n "$ac_ct_CC"; then
3872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3881 ac_cv_prog_ac_ct_CC="$ac_prog"
3882 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3892 if test -n "$ac_ct_CC"; then
3893 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3894 $as_echo "$ac_ct_CC" >&6; }
3896 { $as_echo "$as_me:$LINENO: result: no" >&5
3897 $as_echo "no" >&6; }
3901 test -n "$ac_ct_CC" && break
3904 if test "x$ac_ct_CC" = x; then
3907 case $cross_compiling:$ac_tool_warned in
3909 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3910 whose name does not start with the host triplet. If you think this
3911 configuration is useful to you, please write to autoconf@gnu.org." >&5
3912 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3913 whose name does not start with the host triplet. If you think this
3914 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3915 ac_tool_warned=yes ;;
3924 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3925 See \`config.log' for more details." >&5
3926 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3927 See \`config.log' for more details." >&2;}
3928 { (exit 1); exit 1; }; }
3930 # Provide some information about the compiler.
3931 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3934 { (ac_try="$ac_compiler --version >&5"
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3940 $as_echo "$ac_try_echo") >&5
3941 (eval "$ac_compiler --version >&5") 2>&5
3943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }
3945 { (ac_try="$ac_compiler -v >&5"
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3951 $as_echo "$ac_try_echo") >&5
3952 (eval "$ac_compiler -v >&5") 2>&5
3954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }
3956 { (ac_try="$ac_compiler -V >&5"
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3962 $as_echo "$ac_try_echo") >&5
3963 (eval "$ac_compiler -V >&5") 2>&5
3965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }
3968 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3969 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3971 $as_echo_n "(cached) " >&6
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3998 $as_echo "$ac_try_echo") >&5
3999 (eval "$ac_compile") 2>conftest.er1
4001 grep -v '^ *+' conftest.er1 >conftest.err
4003 cat conftest.err >&5
4004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && {
4006 test -z "$ac_c_werror_flag" ||
4007 test ! -s conftest.err
4008 } && test -s conftest.$ac_objext; then
4011 $as_echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4021 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4022 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4023 if test $ac_compiler_gnu = yes; then
4028 ac_test_CFLAGS=${CFLAGS+set}
4029 ac_save_CFLAGS=$CFLAGS
4030 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4031 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4032 if test "${ac_cv_prog_cc_g+set}" = set; then
4033 $as_echo_n "(cached) " >&6
4035 ac_save_c_werror_flag=$ac_c_werror_flag
4036 ac_c_werror_flag=yes
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4054 rm -f conftest.$ac_objext
4055 if { (ac_try="$ac_compile"
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4061 $as_echo "$ac_try_echo") >&5
4062 (eval "$ac_compile") 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && {
4069 test -z "$ac_c_werror_flag" ||
4070 test ! -s conftest.err
4071 } && test -s conftest.$ac_objext; then
4074 $as_echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4093 rm -f conftest.$ac_objext
4094 if { (ac_try="$ac_compile"
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4100 $as_echo "$ac_try_echo") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } && {
4108 test -z "$ac_c_werror_flag" ||
4109 test ! -s conftest.err
4110 } && test -s conftest.$ac_objext; then
4113 $as_echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4118 cat >conftest.$ac_ext <<_ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4140 $as_echo "$ac_try_echo") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4153 $as_echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 ac_c_werror_flag=$ac_save_c_werror_flag
4168 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4169 $as_echo "$ac_cv_prog_cc_g" >&6; }
4170 if test "$ac_test_CFLAGS" = set; then
4171 CFLAGS=$ac_save_CFLAGS
4172 elif test $ac_cv_prog_cc_g = yes; then
4173 if test "$GCC" = yes; then
4179 if test "$GCC" = yes; then
4185 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4186 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4187 if test "${ac_cv_prog_cc_c89+set}" = set; then
4188 $as_echo_n "(cached) " >&6
4190 ac_cv_prog_cc_c89=no
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4200 #include <sys/types.h>
4201 #include <sys/stat.h>
4202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4203 struct buf { int x; };
4204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4205 static char *e (p, i)
4211 static char *f (char * (*g) (char **, int), char **p, ...)
4216 s = g (p, va_arg (v,int));
4221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4222 function prototypes and stuff, but not '\xHH' hex character constants.
4223 These don't provoke an error unfortunately, instead are silently treated
4224 as 'x'. The following induces an error, until -std is added to get
4225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4226 array size at least. It's necessary to write '\x00'==0 to get something
4227 that's true only with -std. */
4228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4230 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4231 inside strings and character constants. */
4233 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4235 int test (int i, double x);
4236 struct s1 {int (*f) (int a);};
4237 struct s2 {int (*f) (double a);};
4238 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4244 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4249 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4250 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4252 CC="$ac_save_CC $ac_arg"
4253 rm -f conftest.$ac_objext
4254 if { (ac_try="$ac_compile"
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4260 $as_echo "$ac_try_echo") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && {
4268 test -z "$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 } && test -s conftest.$ac_objext; then
4271 ac_cv_prog_cc_c89=$ac_arg
4273 $as_echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4279 rm -f core conftest.err conftest.$ac_objext
4280 test "x$ac_cv_prog_cc_c89" != "xno" && break
4282 rm -f conftest.$ac_ext
4287 case "x$ac_cv_prog_cc_c89" in
4289 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4290 $as_echo "none needed" >&6; } ;;
4292 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4293 $as_echo "unsupported" >&6; } ;;
4295 CC="$CC $ac_cv_prog_cc_c89"
4296 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4297 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4302 ac_cpp='$CPP $CPPFLAGS'
4303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307 depcc="$CC" am_compiler_list=
4309 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4310 $as_echo_n "checking dependency style of $depcc... " >&6; }
4311 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4312 $as_echo_n "(cached) " >&6
4314 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4315 # We make a subdir and do the tests there. Otherwise we can end up
4316 # making bogus files that we don't know about and never remove. For
4317 # instance it was reported that on HP-UX the gcc test will end up
4318 # making a dummy file named `D' -- because `-MD' means `put the output
4321 # Copy depcomp to subdir because otherwise we won't find it if we're
4322 # using a relative directory.
4323 cp "$am_depcomp" conftest.dir
4325 # We will build objects and dependencies in a subdirectory because
4326 # it helps to detect inapplicable dependency modes. For instance
4327 # both Tru64's cc and ICC support -MD to output dependencies as a
4328 # side effect of compilation, but ICC will put the dependencies in
4329 # the current directory while Tru64 will put them in the object
4333 am_cv_CC_dependencies_compiler_type=none
4334 if test "$am_compiler_list" = ""; then
4335 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4337 for depmode in $am_compiler_list; do
4338 # Setup a source with many dependencies, because some compilers
4339 # like to wrap large dependency lists on column 80 (with \), and
4340 # we should not choose a depcomp mode which is confused by this.
4342 # We need to recreate these files for each test, as the compiler may
4343 # overwrite some of them when testing with obscure command lines.
4344 # This happens at least with the AIX C compiler.
4346 for i in 1 2 3 4 5 6; do
4347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4348 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4349 # Solaris 8's {/usr,}/bin/sh.
4350 touch sub/conftst$i.h
4352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4356 # after this tag, mechanisms are not by side-effect, so they'll
4357 # only be used when explicitly requested
4358 if test "x$enable_dependency_tracking" = xyes; then
4366 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4367 # mode. It turns out that the SunPro C++ compiler does not properly
4368 # handle `-M -o', and we need to detect this.
4369 if depmode=$depmode \
4370 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4371 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4372 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4373 >/dev/null 2>conftest.err &&
4374 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4375 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4376 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4377 # icc doesn't choke on unknown options, it will just issue warnings
4378 # or remarks (even with -Werror). So we grep stderr for any message
4379 # that says an option was ignored or not supported.
4380 # When given -MP, icc 7.0 and 7.1 complain thusly:
4381 # icc: Command line warning: ignoring option '-M'; no argument required
4382 # The diagnosis changed in icc 8.0:
4383 # icc: Command line remark: option '-MP' not supported
4384 if (grep 'ignoring option' conftest.err ||
4385 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4386 am_cv_CC_dependencies_compiler_type=$depmode
4395 am_cv_CC_dependencies_compiler_type=none
4399 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4400 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4401 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4406 test "x$enable_dependency_tracking" != xno \
4407 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4409 am__fastdepCC_FALSE='#'
4411 am__fastdepCC_TRUE='#'
4412 am__fastdepCC_FALSE=
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421 if test -n "$ac_tool_prefix"; then
4422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4424 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if test "${ac_cv_prog_CC+set}" = set; then
4427 $as_echo_n "(cached) " >&6
4429 if test -n "$CC"; then
4430 ac_cv_prog_CC="$CC" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 if test -n "$CC"; then
4451 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4452 $as_echo "$CC" >&6; }
4454 { $as_echo "$as_me:$LINENO: result: no" >&5
4455 $as_echo "no" >&6; }
4460 if test -z "$ac_cv_prog_CC"; then
4462 # Extract the first word of "gcc", so it can be a program name with args.
4463 set dummy gcc; ac_word=$2
4464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4467 $as_echo_n "(cached) " >&6
4469 if test -n "$ac_ct_CC"; then
4470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_ac_ct_CC="gcc"
4480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4490 if test -n "$ac_ct_CC"; then
4491 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4492 $as_echo "$ac_ct_CC" >&6; }
4494 { $as_echo "$as_me:$LINENO: result: no" >&5
4495 $as_echo "no" >&6; }
4498 if test "x$ac_ct_CC" = x; then
4501 case $cross_compiling:$ac_tool_warned in
4503 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4504 whose name does not start with the host triplet. If you think this
4505 configuration is useful to you, please write to autoconf@gnu.org." >&5
4506 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4507 whose name does not start with the host triplet. If you think this
4508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4509 ac_tool_warned=yes ;;
4517 if test -z "$CC"; then
4518 if test -n "$ac_tool_prefix"; then
4519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4520 set dummy ${ac_tool_prefix}cc; ac_word=$2
4521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if test "${ac_cv_prog_CC+set}" = set; then
4524 $as_echo_n "(cached) " >&6
4526 if test -n "$CC"; then
4527 ac_cv_prog_CC="$CC" # Let the user override the test.
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_CC="${ac_tool_prefix}cc"
4537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 if test -n "$CC"; then
4548 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4549 $as_echo "$CC" >&6; }
4551 { $as_echo "$as_me:$LINENO: result: no" >&5
4552 $as_echo "no" >&6; }
4558 if test -z "$CC"; then
4559 # Extract the first word of "cc", so it can be a program name with args.
4560 set dummy cc; ac_word=$2
4561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_CC+set}" = set; then
4564 $as_echo_n "(cached) " >&6
4566 if test -n "$CC"; then
4567 ac_cv_prog_CC="$CC" # Let the user override the test.
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4578 ac_prog_rejected=yes
4582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 if test $ac_prog_rejected = yes; then
4590 # We found a bogon in the path, so make sure we never use it.
4591 set dummy $ac_cv_prog_CC
4593 if test $# != 0; then
4594 # We chose a different compiler from the bogus one.
4595 # However, it has the same basename, so the bogon will be chosen
4596 # first if we set CC to just the basename; use the full file name.
4598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4604 if test -n "$CC"; then
4605 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4606 $as_echo "$CC" >&6; }
4608 { $as_echo "$as_me:$LINENO: result: no" >&5
4609 $as_echo "no" >&6; }
4614 if test -z "$CC"; then
4615 if test -n "$ac_tool_prefix"; then
4616 for ac_prog in cl.exe
4618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4620 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623 $as_echo_n "(cached) " >&6
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4636 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 if test -n "$CC"; then
4647 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4648 $as_echo "$CC" >&6; }
4650 { $as_echo "$as_me:$LINENO: result: no" >&5
4651 $as_echo "no" >&6; }
4655 test -n "$CC" && break
4658 if test -z "$CC"; then
4660 for ac_prog in cl.exe
4662 # Extract the first word of "$ac_prog", so it can be a program name with args.
4663 set dummy $ac_prog; ac_word=$2
4664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 $as_echo_n "checking for $ac_word... " >&6; }
4666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4667 $as_echo_n "(cached) " >&6
4669 if test -n "$ac_ct_CC"; then
4670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 ac_cv_prog_ac_ct_CC="$ac_prog"
4680 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4690 if test -n "$ac_ct_CC"; then
4691 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4692 $as_echo "$ac_ct_CC" >&6; }
4694 { $as_echo "$as_me:$LINENO: result: no" >&5
4695 $as_echo "no" >&6; }
4699 test -n "$ac_ct_CC" && break
4702 if test "x$ac_ct_CC" = x; then
4705 case $cross_compiling:$ac_tool_warned in
4707 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4708 whose name does not start with the host triplet. If you think this
4709 configuration is useful to you, please write to autoconf@gnu.org." >&5
4710 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4711 whose name does not start with the host triplet. If you think this
4712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4713 ac_tool_warned=yes ;;
4722 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4723 See \`config.log' for more details." >&5
4724 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4725 See \`config.log' for more details." >&2;}
4726 { (exit 1); exit 1; }; }
4728 # Provide some information about the compiler.
4729 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4732 { (ac_try="$ac_compiler --version >&5"
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4738 $as_echo "$ac_try_echo") >&5
4739 (eval "$ac_compiler --version >&5") 2>&5
4741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }
4743 { (ac_try="$ac_compiler -v >&5"
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750 (eval "$ac_compiler -v >&5") 2>&5
4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }
4754 { (ac_try="$ac_compiler -V >&5"
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4760 $as_echo "$ac_try_echo") >&5
4761 (eval "$ac_compiler -V >&5") 2>&5
4763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }
4766 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4767 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4768 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4769 $as_echo_n "(cached) " >&6
4771 cat >conftest.$ac_ext <<_ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4796 $as_echo "$ac_try_echo") >&5
4797 (eval "$ac_compile") 2>conftest.er1
4799 grep -v '^ *+' conftest.er1 >conftest.err
4801 cat conftest.err >&5
4802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } && {
4804 test -z "$ac_c_werror_flag" ||
4805 test ! -s conftest.err
4806 } && test -s conftest.$ac_objext; then
4809 $as_echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4819 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4820 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4821 if test $ac_compiler_gnu = yes; then
4826 ac_test_CFLAGS=${CFLAGS+set}
4827 ac_save_CFLAGS=$CFLAGS
4828 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4829 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4830 if test "${ac_cv_prog_cc_g+set}" = set; then
4831 $as_echo_n "(cached) " >&6
4833 ac_save_c_werror_flag=$ac_c_werror_flag
4834 ac_c_werror_flag=yes
4837 cat >conftest.$ac_ext <<_ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4852 rm -f conftest.$ac_objext
4853 if { (ac_try="$ac_compile"
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4859 $as_echo "$ac_try_echo") >&5
4860 (eval "$ac_compile") 2>conftest.er1
4862 grep -v '^ *+' conftest.er1 >conftest.err
4864 cat conftest.err >&5
4865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } && {
4867 test -z "$ac_c_werror_flag" ||
4868 test ! -s conftest.err
4869 } && test -s conftest.$ac_objext; then
4872 $as_echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4876 cat >conftest.$ac_ext <<_ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4891 rm -f conftest.$ac_objext
4892 if { (ac_try="$ac_compile"
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4898 $as_echo "$ac_try_echo") >&5
4899 (eval "$ac_compile") 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
4903 cat conftest.err >&5
4904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest.$ac_objext; then
4911 $as_echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4914 ac_c_werror_flag=$ac_save_c_werror_flag
4916 cat >conftest.$ac_ext <<_ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4938 $as_echo "$ac_try_echo") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4941 grep -v '^ *+' conftest.er1 >conftest.err
4943 cat conftest.err >&5
4944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.$ac_objext; then
4951 $as_echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 ac_c_werror_flag=$ac_save_c_werror_flag
4966 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4967 $as_echo "$ac_cv_prog_cc_g" >&6; }
4968 if test "$ac_test_CFLAGS" = set; then
4969 CFLAGS=$ac_save_CFLAGS
4970 elif test $ac_cv_prog_cc_g = yes; then
4971 if test "$GCC" = yes; then
4977 if test "$GCC" = yes; then
4983 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4984 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4985 if test "${ac_cv_prog_cc_c89+set}" = set; then
4986 $as_echo_n "(cached) " >&6
4988 ac_cv_prog_cc_c89=no
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4998 #include <sys/types.h>
4999 #include <sys/stat.h>
5000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5001 struct buf { int x; };
5002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5003 static char *e (p, i)
5009 static char *f (char * (*g) (char **, int), char **p, ...)
5014 s = g (p, va_arg (v,int));
5019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5020 function prototypes and stuff, but not '\xHH' hex character constants.
5021 These don't provoke an error unfortunately, instead are silently treated
5022 as 'x'. The following induces an error, until -std is added to get
5023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5024 array size at least. It's necessary to write '\x00'==0 to get something
5025 that's true only with -std. */
5026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5028 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5029 inside strings and character constants. */
5031 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5033 int test (int i, double x);
5034 struct s1 {int (*f) (int a);};
5035 struct s2 {int (*f) (double a);};
5036 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5042 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5047 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5048 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5050 CC="$ac_save_CC $ac_arg"
5051 rm -f conftest.$ac_objext
5052 if { (ac_try="$ac_compile"
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5058 $as_echo "$ac_try_echo") >&5
5059 (eval "$ac_compile") 2>conftest.er1
5061 grep -v '^ *+' conftest.er1 >conftest.err
5063 cat conftest.err >&5
5064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } && {
5066 test -z "$ac_c_werror_flag" ||
5067 test ! -s conftest.err
5068 } && test -s conftest.$ac_objext; then
5069 ac_cv_prog_cc_c89=$ac_arg
5071 $as_echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5077 rm -f core conftest.err conftest.$ac_objext
5078 test "x$ac_cv_prog_cc_c89" != "xno" && break
5080 rm -f conftest.$ac_ext
5085 case "x$ac_cv_prog_cc_c89" in
5087 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5088 $as_echo "none needed" >&6; } ;;
5090 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5091 $as_echo "unsupported" >&6; } ;;
5093 CC="$CC $ac_cv_prog_cc_c89"
5094 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5095 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105 depcc="$CC" am_compiler_list=
5107 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5108 $as_echo_n "checking dependency style of $depcc... " >&6; }
5109 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5110 $as_echo_n "(cached) " >&6
5112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5113 # We make a subdir and do the tests there. Otherwise we can end up
5114 # making bogus files that we don't know about and never remove. For
5115 # instance it was reported that on HP-UX the gcc test will end up
5116 # making a dummy file named `D' -- because `-MD' means `put the output
5119 # Copy depcomp to subdir because otherwise we won't find it if we're
5120 # using a relative directory.
5121 cp "$am_depcomp" conftest.dir
5123 # We will build objects and dependencies in a subdirectory because
5124 # it helps to detect inapplicable dependency modes. For instance
5125 # both Tru64's cc and ICC support -MD to output dependencies as a
5126 # side effect of compilation, but ICC will put the dependencies in
5127 # the current directory while Tru64 will put them in the object
5131 am_cv_CC_dependencies_compiler_type=none
5132 if test "$am_compiler_list" = ""; then
5133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5135 for depmode in $am_compiler_list; do
5136 # Setup a source with many dependencies, because some compilers
5137 # like to wrap large dependency lists on column 80 (with \), and
5138 # we should not choose a depcomp mode which is confused by this.
5140 # We need to recreate these files for each test, as the compiler may
5141 # overwrite some of them when testing with obscure command lines.
5142 # This happens at least with the AIX C compiler.
5144 for i in 1 2 3 4 5 6; do
5145 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5146 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5147 # Solaris 8's {/usr,}/bin/sh.
5148 touch sub/conftst$i.h
5150 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5154 # after this tag, mechanisms are not by side-effect, so they'll
5155 # only be used when explicitly requested
5156 if test "x$enable_dependency_tracking" = xyes; then
5164 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5165 # mode. It turns out that the SunPro C++ compiler does not properly
5166 # handle `-M -o', and we need to detect this.
5167 if depmode=$depmode \
5168 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5169 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5170 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5171 >/dev/null 2>conftest.err &&
5172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5173 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5175 # icc doesn't choke on unknown options, it will just issue warnings
5176 # or remarks (even with -Werror). So we grep stderr for any message
5177 # that says an option was ignored or not supported.
5178 # When given -MP, icc 7.0 and 7.1 complain thusly:
5179 # icc: Command line warning: ignoring option '-M'; no argument required
5180 # The diagnosis changed in icc 8.0:
5181 # icc: Command line remark: option '-MP' not supported
5182 if (grep 'ignoring option' conftest.err ||
5183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5184 am_cv_CC_dependencies_compiler_type=$depmode
5193 am_cv_CC_dependencies_compiler_type=none
5197 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5198 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5199 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5204 test "x$enable_dependency_tracking" != xno \
5205 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5207 am__fastdepCC_FALSE='#'
5209 am__fastdepCC_TRUE='#'
5210 am__fastdepCC_FALSE=
5215 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5217 # By default we simply use the C compiler to build assembly code.
5219 test "${CCAS+set}" = set || CCAS=$CC
5220 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5225 ac_cpp='$CPP $CPPFLAGS'
5226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5230 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5231 # On Suns, sometimes $CPP names a directory.
5232 if test -n "$CPP" && test -d "$CPP"; then
5235 if test -z "$CPP"; then
5236 if test "${ac_cv_prog_CPP+set}" = set; then
5237 $as_echo_n "(cached) " >&6
5239 # Double quotes because CPP needs to be expanded
5240 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5243 for ac_c_preproc_warn_flag in '' yes
5245 # Use a header file that comes with gcc, so configuring glibc
5246 # with a fresh cross-compiler works.
5247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5248 # <limits.h> exists even on freestanding compilers.
5249 # On the NeXT, cc -E runs the code through the compiler's parser,
5250 # not just through cpp. "Syntax error" is here to catch this case.
5251 cat >conftest.$ac_ext <<_ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5258 # include <limits.h>
5260 # include <assert.h>
5264 if { (ac_try="$ac_cpp conftest.$ac_ext"
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5270 $as_echo "$ac_try_echo") >&5
5271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5273 grep -v '^ *+' conftest.er1 >conftest.err
5275 cat conftest.err >&5
5276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } >/dev/null && {
5278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5283 $as_echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 # Broken: fails on valid input.
5290 rm -f conftest.err conftest.$ac_ext
5292 # OK, works on sane cases. Now check whether nonexistent headers
5293 # can be detected and how.
5294 cat >conftest.$ac_ext <<_ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <ac_nonexistent.h>
5302 if { (ac_try="$ac_cpp conftest.$ac_ext"
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5308 $as_echo "$ac_try_echo") >&5
5309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5311 grep -v '^ *+' conftest.er1 >conftest.err
5313 cat conftest.err >&5
5314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } >/dev/null && {
5316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5317 test ! -s conftest.err
5319 # Broken: success on invalid input.
5322 $as_echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5325 # Passes both tests.
5330 rm -f conftest.err conftest.$ac_ext
5333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5334 rm -f conftest.err conftest.$ac_ext
5335 if $ac_preproc_ok; then
5347 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5348 $as_echo "$CPP" >&6; }
5350 for ac_c_preproc_warn_flag in '' yes
5352 # Use a header file that comes with gcc, so configuring glibc
5353 # with a fresh cross-compiler works.
5354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5355 # <limits.h> exists even on freestanding compilers.
5356 # On the NeXT, cc -E runs the code through the compiler's parser,
5357 # not just through cpp. "Syntax error" is here to catch this case.
5358 cat >conftest.$ac_ext <<_ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5365 # include <limits.h>
5367 # include <assert.h>
5371 if { (ac_try="$ac_cpp conftest.$ac_ext"
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5377 $as_echo "$ac_try_echo") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null && {
5385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5390 $as_echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 # Broken: fails on valid input.
5397 rm -f conftest.err conftest.$ac_ext
5399 # OK, works on sane cases. Now check whether nonexistent headers
5400 # can be detected and how.
5401 cat >conftest.$ac_ext <<_ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5409 if { (ac_try="$ac_cpp conftest.$ac_ext"
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5415 $as_echo "$ac_try_echo") >&5
5416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5418 grep -v '^ *+' conftest.er1 >conftest.err
5420 cat conftest.err >&5
5421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } >/dev/null && {
5423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5424 test ! -s conftest.err
5426 # Broken: success on invalid input.
5429 $as_echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5432 # Passes both tests.
5437 rm -f conftest.err conftest.$ac_ext
5440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5441 rm -f conftest.err conftest.$ac_ext
5442 if $ac_preproc_ok; then
5445 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5446 See \`config.log' for more details." >&5
5447 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5448 See \`config.log' for more details." >&2;}
5449 { (exit 1); exit 1; }; }
5453 ac_cpp='$CPP $CPPFLAGS'
5454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5459 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5460 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5461 if test "${ac_cv_path_GREP+set}" = set; then
5462 $as_echo_n "(cached) " >&6
5464 if test -z "$GREP"; then
5465 ac_path_GREP_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5471 test -z "$as_dir" && as_dir=.
5472 for ac_prog in grep ggrep; do
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5475 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5476 # Check for GNU ac_path_GREP and select it if it is found.
5477 # Check for GNU $ac_path_GREP
5478 case `"$ac_path_GREP" --version 2>&1` in
5480 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5483 $as_echo_n 0123456789 >"conftest.in"
5486 cat "conftest.in" "conftest.in" >"conftest.tmp"
5487 mv "conftest.tmp" "conftest.in"
5488 cp "conftest.in" "conftest.nl"
5489 $as_echo 'GREP' >> "conftest.nl"
5490 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492 ac_count=`expr $ac_count + 1`
5493 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5494 # Best one so far, save it but keep looking for a better one
5495 ac_cv_path_GREP="$ac_path_GREP"
5496 ac_path_GREP_max=$ac_count
5498 # 10*(2^10) chars as input seems more than enough
5499 test $ac_count -gt 10 && break
5501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5504 $ac_path_GREP_found && break 3
5509 if test -z "$ac_cv_path_GREP"; then
5510 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5511 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5512 { (exit 1); exit 1; }; }
5515 ac_cv_path_GREP=$GREP
5519 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5520 $as_echo "$ac_cv_path_GREP" >&6; }
5521 GREP="$ac_cv_path_GREP"
5524 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5525 $as_echo_n "checking for egrep... " >&6; }
5526 if test "${ac_cv_path_EGREP+set}" = set; then
5527 $as_echo_n "(cached) " >&6
5529 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5530 then ac_cv_path_EGREP="$GREP -E"
5532 if test -z "$EGREP"; then
5533 ac_path_EGREP_found=false
5534 # Loop through the user's path and test for each of PROGNAME-LIST
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5539 test -z "$as_dir" && as_dir=.
5540 for ac_prog in egrep; do
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5543 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5544 # Check for GNU ac_path_EGREP and select it if it is found.
5545 # Check for GNU $ac_path_EGREP
5546 case `"$ac_path_EGREP" --version 2>&1` in
5548 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5551 $as_echo_n 0123456789 >"conftest.in"
5554 cat "conftest.in" "conftest.in" >"conftest.tmp"
5555 mv "conftest.tmp" "conftest.in"
5556 cp "conftest.in" "conftest.nl"
5557 $as_echo 'EGREP' >> "conftest.nl"
5558 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5559 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5560 ac_count=`expr $ac_count + 1`
5561 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5562 # Best one so far, save it but keep looking for a better one
5563 ac_cv_path_EGREP="$ac_path_EGREP"
5564 ac_path_EGREP_max=$ac_count
5566 # 10*(2^10) chars as input seems more than enough
5567 test $ac_count -gt 10 && break
5569 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5572 $ac_path_EGREP_found && break 3
5577 if test -z "$ac_cv_path_EGREP"; then
5578 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5579 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5580 { (exit 1); exit 1; }; }
5583 ac_cv_path_EGREP=$EGREP
5588 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5589 $as_echo "$ac_cv_path_EGREP" >&6; }
5590 EGREP="$ac_cv_path_EGREP"
5593 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5594 $as_echo_n "checking for ANSI C header files... " >&6; }
5595 if test "${ac_cv_header_stdc+set}" = set; then
5596 $as_echo_n "(cached) " >&6
5598 cat >conftest.$ac_ext <<_ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5617 rm -f conftest.$ac_objext
5618 if { (ac_try="$ac_compile"
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5624 $as_echo "$ac_try_echo") >&5
5625 (eval "$ac_compile") 2>conftest.er1
5627 grep -v '^ *+' conftest.er1 >conftest.err
5629 cat conftest.err >&5
5630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && {
5632 test -z "$ac_c_werror_flag" ||
5633 test ! -s conftest.err
5634 } && test -s conftest.$ac_objext; then
5635 ac_cv_header_stdc=yes
5637 $as_echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_cv_header_stdc=no
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 if test $ac_cv_header_stdc = yes; then
5646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5647 cat >conftest.$ac_ext <<_ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5657 $EGREP "memchr" >/dev/null 2>&1; then
5660 ac_cv_header_stdc=no
5666 if test $ac_cv_header_stdc = yes; then
5667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5668 cat >conftest.$ac_ext <<_ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5678 $EGREP "free" >/dev/null 2>&1; then
5681 ac_cv_header_stdc=no
5687 if test $ac_cv_header_stdc = yes; then
5688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5689 if test "$cross_compiling" = yes; then
5692 cat >conftest.$ac_ext <<_ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5700 #if ((' ' & 0x0FF) == 0x020)
5701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5704 # define ISLOWER(c) \
5705 (('a' <= (c) && (c) <= 'i') \
5706 || ('j' <= (c) && (c) <= 'r') \
5707 || ('s' <= (c) && (c) <= 'z'))
5708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5716 for (i = 0; i < 256; i++)
5717 if (XOR (islower (i), ISLOWER (i))
5718 || toupper (i) != TOUPPER (i))
5723 rm -f conftest$ac_exeext
5724 if { (ac_try="$ac_link"
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5730 $as_echo "$ac_try_echo") >&5
5731 (eval "$ac_link") 2>&5
5733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5735 { (case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5740 $as_echo "$ac_try_echo") >&5
5741 (eval "$ac_try") 2>&5
5743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5747 $as_echo "$as_me: program exited with status $ac_status" >&5
5748 $as_echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5752 ac_cv_header_stdc=no
5754 rm -rf conftest.dSYM
5755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5761 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5762 $as_echo "$ac_cv_header_stdc" >&6; }
5763 if test $ac_cv_header_stdc = yes; then
5765 cat >>confdefs.h <<\_ACEOF
5766 #define STDC_HEADERS 1
5771 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5781 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5782 inttypes.h stdint.h unistd.h
5784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5786 $as_echo_n "checking for $ac_header... " >&6; }
5787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5788 $as_echo_n "(cached) " >&6
5790 cat >conftest.$ac_ext <<_ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 $ac_includes_default
5798 #include <$ac_header>
5800 rm -f conftest.$ac_objext
5801 if { (ac_try="$ac_compile"
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5807 $as_echo "$ac_try_echo") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.$ac_objext; then
5818 eval "$as_ac_Header=yes"
5820 $as_echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 eval "$as_ac_Header=no"
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 ac_res=`eval 'as_val=${'$as_ac_Header'}
5829 $as_echo "$as_val"'`
5830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5831 $as_echo "$ac_res" >&6; }
5832 if test `eval 'as_val=${'$as_ac_Header'}
5833 $as_echo "$as_val"'` = yes; then
5834 cat >>confdefs.h <<_ACEOF
5835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5843 # The cast to long int works around a bug in the HP C Compiler
5844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5846 # This bug is HP SR number 8606223364.
5847 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
5848 $as_echo_n "checking size of void *... " >&6; }
5849 if test "${ac_cv_sizeof_void_p+set}" = set; then
5850 $as_echo_n "(cached) " >&6
5852 if test "$cross_compiling" = yes; then
5853 # Depending upon the size, compute the lo and hi bounds.
5854 cat >conftest.$ac_ext <<_ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5860 $ac_includes_default
5864 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5878 $as_echo "$ac_try_echo") >&5
5879 (eval "$ac_compile") 2>conftest.er1
5881 grep -v '^ *+' conftest.er1 >conftest.err
5883 cat conftest.err >&5
5884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } && {
5886 test -z "$ac_c_werror_flag" ||
5887 test ! -s conftest.err
5888 } && test -s conftest.$ac_objext; then
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 $ac_includes_default
5901 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
5908 rm -f conftest.$ac_objext
5909 if { (ac_try="$ac_compile"
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5915 $as_echo "$ac_try_echo") >&5
5916 (eval "$ac_compile") 2>conftest.er1
5918 grep -v '^ *+' conftest.er1 >conftest.err
5920 cat conftest.err >&5
5921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } && {
5923 test -z "$ac_c_werror_flag" ||
5924 test ! -s conftest.err
5925 } && test -s conftest.$ac_objext; then
5926 ac_hi=$ac_mid; break
5928 $as_echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5931 ac_lo=`expr $ac_mid + 1`
5932 if test $ac_lo -le $ac_mid; then
5936 ac_mid=`expr 2 '*' $ac_mid + 1`
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 $as_echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 cat >conftest.$ac_ext <<_ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 $ac_includes_default
5955 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
5962 rm -f conftest.$ac_objext
5963 if { (ac_try="$ac_compile"
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5969 $as_echo "$ac_try_echo") >&5
5970 (eval "$ac_compile") 2>conftest.er1
5972 grep -v '^ *+' conftest.er1 >conftest.err
5974 cat conftest.err >&5
5975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } && {
5977 test -z "$ac_c_werror_flag" ||
5978 test ! -s conftest.err
5979 } && test -s conftest.$ac_objext; then
5982 cat >conftest.$ac_ext <<_ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 $ac_includes_default
5992 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
5999 rm -f conftest.$ac_objext
6000 if { (ac_try="$ac_compile"
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007 (eval "$ac_compile") 2>conftest.er1
6009 grep -v '^ *+' conftest.er1 >conftest.err
6011 cat conftest.err >&5
6012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } && {
6014 test -z "$ac_c_werror_flag" ||
6015 test ! -s conftest.err
6016 } && test -s conftest.$ac_objext; then
6017 ac_lo=$ac_mid; break
6019 $as_echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 ac_hi=`expr '(' $ac_mid ')' - 1`
6023 if test $ac_mid -le $ac_hi; then
6027 ac_mid=`expr 2 '*' $ac_mid`
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 $as_echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 # Binary search between lo and hi bounds.
6044 while test "x$ac_lo" != "x$ac_hi"; do
6045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6046 cat >conftest.$ac_ext <<_ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 $ac_includes_default
6056 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6063 rm -f conftest.$ac_objext
6064 if { (ac_try="$ac_compile"
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6070 $as_echo "$ac_try_echo") >&5
6071 (eval "$ac_compile") 2>conftest.er1
6073 grep -v '^ *+' conftest.er1 >conftest.err
6075 cat conftest.err >&5
6076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } && {
6078 test -z "$ac_c_werror_flag" ||
6079 test ! -s conftest.err
6080 } && test -s conftest.$ac_objext; then
6083 $as_echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6086 ac_lo=`expr '(' $ac_mid ')' + 1`
6089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6093 '') if test "$ac_cv_type_void_p" = yes; then
6094 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6095 See \`config.log' for more details." >&5
6096 $as_echo "$as_me: error: cannot compute sizeof (void *)
6097 See \`config.log' for more details." >&2;}
6098 { (exit 77); exit 77; }; }
6100 ac_cv_sizeof_void_p=0
6104 cat >conftest.$ac_ext <<_ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 $ac_includes_default
6111 static long int longval () { return (long int) (sizeof (void *)); }
6112 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6119 FILE *f = fopen ("conftest.val", "w");
6122 if (((long int) (sizeof (void *))) < 0)
6124 long int i = longval ();
6125 if (i != ((long int) (sizeof (void *))))
6127 fprintf (f, "%ld", i);
6131 unsigned long int i = ulongval ();
6132 if (i != ((long int) (sizeof (void *))))
6134 fprintf (f, "%lu", i);
6136 /* Do not output a trailing newline, as this causes \r\n confusion
6137 on some platforms. */
6138 return ferror (f) || fclose (f) != 0;
6144 rm -f conftest$ac_exeext
6145 if { (ac_try="$ac_link"
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6151 $as_echo "$ac_try_echo") >&5
6152 (eval "$ac_link") 2>&5
6154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6156 { (case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161 $as_echo "$ac_try_echo") >&5
6162 (eval "$ac_try") 2>&5
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 ac_cv_sizeof_void_p=`cat conftest.val`
6168 $as_echo "$as_me: program exited with status $ac_status" >&5
6169 $as_echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6173 if test "$ac_cv_type_void_p" = yes; then
6174 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6175 See \`config.log' for more details." >&5
6176 $as_echo "$as_me: error: cannot compute sizeof (void *)
6177 See \`config.log' for more details." >&2;}
6178 { (exit 77); exit 77; }; }
6180 ac_cv_sizeof_void_p=0
6183 rm -rf conftest.dSYM
6184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6188 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6189 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6193 cat >>confdefs.h <<_ACEOF
6194 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6198 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6199 $as_echo_n "checking for ANSI C header files... " >&6; }
6200 if test "${ac_cv_header_stdc+set}" = set; then
6201 $as_echo_n "(cached) " >&6
6203 cat >conftest.$ac_ext <<_ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6222 rm -f conftest.$ac_objext
6223 if { (ac_try="$ac_compile"
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6229 $as_echo "$ac_try_echo") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6232 grep -v '^ *+' conftest.er1 >conftest.err
6234 cat conftest.err >&5
6235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 ac_cv_header_stdc=yes
6242 $as_echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6245 ac_cv_header_stdc=no
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250 if test $ac_cv_header_stdc = yes; then
6251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6252 cat >conftest.$ac_ext <<_ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262 $EGREP "memchr" >/dev/null 2>&1; then
6265 ac_cv_header_stdc=no
6271 if test $ac_cv_header_stdc = yes; then
6272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 $EGREP "free" >/dev/null 2>&1; then
6286 ac_cv_header_stdc=no
6292 if test $ac_cv_header_stdc = yes; then
6293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6294 if test "$cross_compiling" = yes; then
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6305 #if ((' ' & 0x0FF) == 0x020)
6306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6309 # define ISLOWER(c) \
6310 (('a' <= (c) && (c) <= 'i') \
6311 || ('j' <= (c) && (c) <= 'r') \
6312 || ('s' <= (c) && (c) <= 'z'))
6313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6321 for (i = 0; i < 256; i++)
6322 if (XOR (islower (i), ISLOWER (i))
6323 || toupper (i) != TOUPPER (i))
6328 rm -f conftest$ac_exeext
6329 if { (ac_try="$ac_link"
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6335 $as_echo "$ac_try_echo") >&5
6336 (eval "$ac_link") 2>&5
6338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6340 { (case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6345 $as_echo "$ac_try_echo") >&5
6346 (eval "$ac_try") 2>&5
6348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6352 $as_echo "$as_me: program exited with status $ac_status" >&5
6353 $as_echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_cv_header_stdc=no
6359 rm -rf conftest.dSYM
6360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6366 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6367 $as_echo "$ac_cv_header_stdc" >&6; }
6368 if test $ac_cv_header_stdc = yes; then
6370 cat >>confdefs.h <<\_ACEOF
6371 #define STDC_HEADERS 1
6376 # Make sure we can run config.sub.
6377 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6378 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6379 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6380 { (exit 1); exit 1; }; }
6382 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6383 $as_echo_n "checking build system type... " >&6; }
6384 if test "${ac_cv_build+set}" = set; then
6385 $as_echo_n "(cached) " >&6
6387 ac_build_alias=$build_alias
6388 test "x$ac_build_alias" = x &&
6389 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6390 test "x$ac_build_alias" = x &&
6391 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6392 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6393 { (exit 1); exit 1; }; }
6394 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6395 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6396 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6397 { (exit 1); exit 1; }; }
6400 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6401 $as_echo "$ac_cv_build" >&6; }
6402 case $ac_cv_build in
6404 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6405 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6406 { (exit 1); exit 1; }; };;
6409 ac_save_IFS=$IFS; IFS='-'
6415 # Remember, the first character of IFS is used to create $*,
6416 # except with old shells:
6419 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6422 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6423 $as_echo_n "checking host system type... " >&6; }
6424 if test "${ac_cv_host+set}" = set; then
6425 $as_echo_n "(cached) " >&6
6427 if test "x$host_alias" = x; then
6428 ac_cv_host=$ac_cv_build
6430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6431 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6432 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6433 { (exit 1); exit 1; }; }
6437 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6438 $as_echo "$ac_cv_host" >&6; }
6441 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6442 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6443 { (exit 1); exit 1; }; };;
6446 ac_save_IFS=$IFS; IFS='-'
6452 # Remember, the first character of IFS is used to create $*,
6453 # except with old shells:
6456 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6459 # Check whether --enable-trace was given.
6460 if test "${enable_trace+set}" = set; then
6461 enableval=$enable_trace; if test "$enableval" == "yes"; then
6463 cat >>confdefs.h <<\_ACEOF
6464 #define ENABLE_TRACE_IO 1
6470 # Check whether --enable-watch was given.
6471 if test "${enable_watch+set}" = set; then
6472 enableval=$enable_watch; if test "$enableval" == "yes"; then
6474 cat >>confdefs.h <<\_ACEOF
6475 #define ENABLE_WATCH 1
6481 # Check whether --enable-sh4stats was given.
6482 if test "${enable_sh4stats+set}" = set; then
6483 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
6485 cat >>confdefs.h <<\_ACEOF
6486 #define ENABLE_SH4STATS 1
6493 # Check whether --with-osmesa was given.
6494 if test "${with_osmesa+set}" = set; then
6495 withval=$with_osmesa;
6501 # Check whether --with-gtk was given.
6502 if test "${with_gtk+set}" = set; then
6503 withval=$with_gtk; with_gtk=yes
6510 lxdream_save_cppflags="$CPPFLAGS"
6511 CPPFLAGS="$CPPFLAGS -x objective-c"
6512 cat >conftest.$ac_ext <<_ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6527 rm -f conftest.$ac_objext
6528 if { (ac_try="$ac_compile"
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6534 $as_echo "$ac_try_echo") >&5
6535 (eval "$ac_compile") 2>conftest.er1
6537 grep -v '^ *+' conftest.er1 >conftest.err
6539 cat conftest.err >&5
6540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } && {
6542 test -z "$ac_c_werror_flag" ||
6543 test ! -s conftest.err
6544 } && test -s conftest.$ac_objext; then
6547 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6548 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6549 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6550 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6551 $as_echo_n "(cached) " >&6
6553 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6554 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6556 # Is the header compilable?
6557 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
6558 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
6559 cat >conftest.$ac_ext <<_ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 $ac_includes_default
6566 #include <Cocoa/Cocoa.h>
6568 rm -f conftest.$ac_objext
6569 if { (ac_try="$ac_compile"
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6575 $as_echo "$ac_try_echo") >&5
6576 (eval "$ac_compile") 2>conftest.er1
6578 grep -v '^ *+' conftest.er1 >conftest.err
6580 cat conftest.err >&5
6581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && {
6583 test -z "$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 } && test -s conftest.$ac_objext; then
6586 ac_header_compiler=yes
6588 $as_echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6591 ac_header_compiler=no
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6596 $as_echo "$ac_header_compiler" >&6; }
6598 # Is the header present?
6599 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
6600 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
6601 cat >conftest.$ac_ext <<_ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 #include <Cocoa/Cocoa.h>
6609 if { (ac_try="$ac_cpp conftest.$ac_ext"
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6615 $as_echo "$ac_try_echo") >&5
6616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6618 grep -v '^ *+' conftest.er1 >conftest.err
6620 cat conftest.err >&5
6621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } >/dev/null && {
6623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6626 ac_header_preproc=yes
6628 $as_echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_header_preproc=no
6634 rm -f conftest.err conftest.$ac_ext
6635 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6636 $as_echo "$ac_header_preproc" >&6; }
6638 # So? What about this header?
6639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6641 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6642 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6643 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
6644 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
6645 ac_header_preproc=yes
6648 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
6649 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
6650 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
6651 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
6652 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
6653 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
6654 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
6655 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6656 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
6657 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
6658 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
6659 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
6663 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6664 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6665 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6666 $as_echo_n "(cached) " >&6
6668 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
6670 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6671 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6674 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
6678 LIBS="$LIBS -framework AppKit"
6679 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"
6681 cat >>confdefs.h <<\_ACEOF
6682 #define HAVE_COCOA 1
6686 cat >>confdefs.h <<\_ACEOF
6687 #define APPLE_BUILD 1
6695 if test "x$with_gtk" = "xx11"; then
6701 $as_echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 CPPFLAGS="$lxdream_save_cppflags"
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
6721 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6728 $as_echo_n "(cached) " >&6
6732 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6754 if test -n "$PKG_CONFIG"; then
6755 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6756 $as_echo "$PKG_CONFIG" >&6; }
6758 { $as_echo "$as_me:$LINENO: result: no" >&5
6759 $as_echo "no" >&6; }
6764 if test -z "$ac_cv_path_PKG_CONFIG"; then
6765 ac_pt_PKG_CONFIG=$PKG_CONFIG
6766 # Extract the first word of "pkg-config", so it can be a program name with args.
6767 set dummy pkg-config; ac_word=$2
6768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6771 $as_echo_n "(cached) " >&6
6773 case $ac_pt_PKG_CONFIG in
6775 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR