Search
lxdream.org :: lxdream :: r1200:3b2097efa97d
lxdream 0.9.1
released Jun 29
Download Now
changeset1200:3b2097efa97d
parent1199:62d0a21fac1c
child1201:5502572ce192
authornkeynes
dateWed Dec 21 17:13:08 2011 +1000 (7 years ago)
Setup configure to detect/manage CC_FOR_BUILD
Makefile.in
acinclude.m4
configure
configure.in
src/Makefile.in
1.1 --- a/Makefile.in Wed Dec 21 12:15:06 2011 +1000
1.2 +++ b/Makefile.in Wed Dec 21 17:13:08 2011 +1000
1.3 @@ -113,6 +113,8 @@
1.4 AWK = @AWK@
1.5 BUILD_ARMTEST_FALSE = @BUILD_ARMTEST_FALSE@
1.6 BUILD_ARMTEST_TRUE = @BUILD_ARMTEST_TRUE@
1.7 +BUILD_EXEEXT = @BUILD_EXEEXT@
1.8 +BUILD_OBJEXT = @BUILD_OBJEXT@
1.9 BUILD_SH4X86_FALSE = @BUILD_SH4X86_FALSE@
1.10 BUILD_SH4X86_TRUE = @BUILD_SH4X86_TRUE@
1.11 BUILD_SHARED_FALSE = @BUILD_SHARED_FALSE@
1.12 @@ -125,6 +127,8 @@
1.13 CCAS = @CCAS@
1.14 CCASFLAGS = @CCASFLAGS@
1.15 CCDEPMODE = @CCDEPMODE@
1.16 +CC_FOR_BUILD = @CC_FOR_BUILD@
1.17 +CC_FOR_BUILDDEPMODE = @CC_FOR_BUILDDEPMODE@
1.18 CDROM_LINUX_FALSE = @CDROM_LINUX_FALSE@
1.19 CDROM_LINUX_TRUE = @CDROM_LINUX_TRUE@
1.20 CDROM_NONE_FALSE = @CDROM_NONE_FALSE@
1.21 @@ -132,8 +136,11 @@
1.22 CDROM_OSX_FALSE = @CDROM_OSX_FALSE@
1.23 CDROM_OSX_TRUE = @CDROM_OSX_TRUE@
1.24 CFLAGS = @CFLAGS@
1.25 +CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
1.26 CPP = @CPP@
1.27 CPPFLAGS = @CPPFLAGS@
1.28 +CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
1.29 +CPP_FOR_BUILD = @CPP_FOR_BUILD@
1.30 CYGPATH_W = @CYGPATH_W@
1.31 DATADIRNAME = @DATADIRNAME@
1.32 DEFS = @DEFS@
1.33 @@ -196,7 +203,6 @@
1.34 PACKAGE_NAME = @PACKAGE_NAME@
1.35 PACKAGE_STRING = @PACKAGE_STRING@
1.36 PACKAGE_TARNAME = @PACKAGE_TARNAME@
1.37 -PACKAGE_URL = @PACKAGE_URL@
1.38 PACKAGE_VERSION = @PACKAGE_VERSION@
1.39 PATH_SEPARATOR = @PATH_SEPARATOR@
1.40 PKG_CONFIG = @PKG_CONFIG@
1.41 @@ -230,8 +236,11 @@
1.42 VIDEO_OSMESA_TRUE = @VIDEO_OSMESA_TRUE@
1.43 XGETTEXT = @XGETTEXT@
1.44 ac_ct_CC = @ac_ct_CC@
1.45 +ac_ct_CC_FOR_BUILD = @ac_ct_CC_FOR_BUILD@
1.46 ac_ct_OBJC = @ac_ct_OBJC@
1.47 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
1.48 +am__fastdepCC_FOR_BUILD_FALSE = @am__fastdepCC_FOR_BUILD_FALSE@
1.49 +am__fastdepCC_FOR_BUILD_TRUE = @am__fastdepCC_FOR_BUILD_TRUE@
1.50 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
1.51 am__fastdepOBJC_FALSE = @am__fastdepOBJC_FALSE@
1.52 am__fastdepOBJC_TRUE = @am__fastdepOBJC_TRUE@
2.1 --- a/acinclude.m4 Wed Dec 21 12:15:06 2011 +1000
2.2 +++ b/acinclude.m4 Wed Dec 21 17:13:08 2011 +1000
2.3 @@ -162,3 +162,94 @@
2.4 $2 ]);
2.5 AC_LANG_POP([Objective C])
2.6 ]);
2.7 +
2.8 +
2.9 +
2.10 +AC_DEFUN([AC_PROG_CC_FOR_BUILD], [dnl
2.11 +AC_REQUIRE([AC_PROG_CC])dnl
2.12 +AC_REQUIRE([AC_PROG_CPP])dnl
2.13 +AC_REQUIRE([AC_EXEEXT])dnl
2.14 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
2.15 +dnl
2.16 +ac_main_cc="$CC"
2.17 +test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
2.18 +
2.19 +pushdef([cross_compiling], [#])dnl
2.20 +dnl If main compiler works and CC_FOR_BUILD is unset, use the main compiler
2.21 +if test -z "$CC_FOR_BUILD"; then
2.22 + AC_RUN_IFELSE([int main(){return 0;}], [CC_FOR_BUILD="$CC"], [],[])
2.23 +fi
2.24 +dnl Use the standard macros, but make them use other variable names
2.25 +dnl
2.26 +pushdef([ac_cv_prog_CPP], ac_cv_build_prog_CPP)dnl
2.27 +pushdef([ac_cv_prog_gcc], ac_cv_build_prog_gcc)dnl
2.28 +pushdef([ac_cv_prog_cc_works], ac_cv_build_prog_cc_works)dnl
2.29 +pushdef([ac_cv_prog_cc_cross], ac_cv_build_prog_cc_cross)dnl
2.30 +pushdef([ac_cv_prog_cc_g], ac_cv_build_prog_cc_g)dnl
2.31 +pushdef([ac_cv_exeext], ac_cv_build_exeext)dnl
2.32 +pushdef([ac_cv_objext], ac_cv_build_objext)dnl
2.33 +pushdef([ac_exeext], ac_build_exeext)dnl
2.34 +pushdef([ac_objext], ac_build_objext)dnl
2.35 +pushdef([CC], CC_FOR_BUILD)dnl
2.36 +pushdef([CPP], CPP_FOR_BUILD)dnl
2.37 +pushdef([CFLAGS], CFLAGS_FOR_BUILD)dnl
2.38 +pushdef([CPPFLAGS], CPPFLAGS_FOR_BUILD)dnl
2.39 +pushdef([host], build)dnl
2.40 +pushdef([host_alias], build_alias)dnl
2.41 +pushdef([host_cpu], build_cpu)dnl
2.42 +pushdef([host_vendor], build_vendor)dnl
2.43 +pushdef([host_os], build_os)dnl
2.44 +pushdef([ac_tool_prefix], ac_build_tool_prefix)dnl
2.45 +pushdef([ac_cv_host], ac_cv_build)dnl
2.46 +pushdef([ac_cv_host_alias], ac_cv_build_alias)dnl
2.47 +pushdef([ac_cv_host_cpu], ac_cv_build_cpu)dnl
2.48 +pushdef([ac_cv_host_vendor], ac_cv_build_vendor)dnl
2.49 +pushdef([ac_cv_host_os], ac_cv_build_os)dnl
2.50 +pushdef([ac_cpp], ac_build_cpp)dnl
2.51 +pushdef([ac_compile], ac_build_compile)dnl
2.52 +pushdef([ac_link], ac_build_link)dnl
2.53 +
2.54 +AC_PROG_CC
2.55 +AC_PROG_CPP
2.56 +AC_EXEEXT
2.57 +
2.58 +dnl Restore the old definitions
2.59 +dnl
2.60 +popdef([ac_link])dnl
2.61 +popdef([ac_compile])dnl
2.62 +popdef([ac_cpp])dnl
2.63 +popdef([ac_cv_host_os])dnl
2.64 +popdef([ac_cv_host_vendor])dnl
2.65 +popdef([ac_cv_host_cpu])dnl
2.66 +popdef([ac_cv_host_alias])dnl
2.67 +popdef([ac_cv_host])dnl
2.68 +popdef([ac_tool_prefix])dnl
2.69 +popdef([host_os])dnl
2.70 +popdef([host_vendor])dnl
2.71 +popdef([host_cpu])dnl
2.72 +popdef([host_alias])dnl
2.73 +popdef([host])dnl
2.74 +popdef([CPPFLAGS])dnl
2.75 +popdef([CFLAGS])dnl
2.76 +popdef([CPP])dnl
2.77 +popdef([CC])dnl
2.78 +popdef([ac_objext])dnl
2.79 +popdef([ac_exeext])dnl
2.80 +popdef([ac_cv_objext])dnl
2.81 +popdef([ac_cv_exeext])dnl
2.82 +popdef([ac_cv_prog_cc_g])dnl
2.83 +popdef([ac_cv_prog_cc_works])dnl
2.84 +popdef([ac_cv_prog_cc_cross])dnl
2.85 +popdef([ac_cv_prog_gcc])dnl
2.86 +popdef([ac_cv_prog_CPP])dnl
2.87 +popdef([cross_compiling])dnl
2.88 +
2.89 +dnl Finally, set Makefile variables
2.90 +dnl
2.91 +BUILD_EXEEXT=$ac_build_exeext
2.92 +BUILD_OBJEXT=$ac_build_objext
2.93 +AC_SUBST(BUILD_EXEEXT)dnl
2.94 +AC_SUBST(BUILD_OBJEXT)dnl
2.95 +AC_SUBST([CFLAGS_FOR_BUILD])dnl
2.96 +AC_SUBST([CPPFLAGS_FOR_BUILD])dnl
2.97 +])
3.1 --- a/configure Wed Dec 21 12:15:06 2011 +1000
3.2 +++ b/configure Wed Dec 21 17:13:08 2011 +1000
3.3 @@ -690,15 +690,7 @@
3.4 CCDEPMODE
3.5 am__fastdepCC_TRUE
3.6 am__fastdepCC_FALSE
3.7 -OBJC
3.8 -OBJCFLAGS
3.9 -ac_ct_OBJC
3.10 -SED
3.11 -CCAS
3.12 -CCASFLAGS
3.13 CPP
3.14 -GREP
3.15 -EGREP
3.16 build
3.17 build_cpu
3.18 build_vendor
3.19 @@ -707,6 +699,29 @@
3.20 host_cpu
3.21 host_vendor
3.22 host_os
3.23 +CC
3.24 +CFLAGS
3.25 +CPPFLAGS
3.26 +CC_FOR_BUILD
3.27 +ac_ct_CC_FOR_BUILD
3.28 +CC_FOR_BUILDDEPMODE
3.29 +am__fastdepCC_FOR_BUILD_TRUE
3.30 +am__fastdepCC_FOR_BUILD_FALSE
3.31 +CPP
3.32 +CPPFLAGS
3.33 +CPP_FOR_BUILD
3.34 +BUILD_EXEEXT
3.35 +BUILD_OBJEXT
3.36 +CFLAGS_FOR_BUILD
3.37 +CPPFLAGS_FOR_BUILD
3.38 +OBJC
3.39 +OBJCFLAGS
3.40 +ac_ct_OBJC
3.41 +SED
3.42 +CCAS
3.43 +CCASFLAGS
3.44 +GREP
3.45 +EGREP
3.46 OBJCDEPMODE
3.47 am__fastdepOBJC_TRUE
3.48 am__fastdepOBJC_FALSE
3.49 @@ -809,11 +824,16 @@
3.50 LDFLAGS
3.51 LIBS
3.52 CPPFLAGS
3.53 +CPP
3.54 +CC
3.55 +CFLAGS
3.56 +CPPFLAGS
3.57 +CPP
3.58 +CPPFLAGS
3.59 OBJC
3.60 OBJCFLAGS
3.61 CCAS
3.62 CCASFLAGS
3.63 -CPP
3.64 PKG_CONFIG
3.65 LIBPNG_CFLAGS
3.66 LIBPNG_LIBS
3.67 @@ -1445,11 +1465,11 @@
3.68 LIBS libraries to pass to the linker, e.g. -l<library>
3.69 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
3.70 you have headers in a nonstandard directory <include dir>
3.71 + CPP C preprocessor
3.72 OBJC Objective C compiler command
3.73 OBJCFLAGS Objective C compiler flags
3.74 CCAS assembler compiler command (defaults to CC)
3.75 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
3.76 - CPP C preprocessor
3.77 PKG_CONFIG path to pkg-config utility
3.78 LIBPNG_CFLAGS
3.79 C compiler flags for LIBPNG, overriding pkg-config
3.80 @@ -4340,6 +4360,1388 @@
3.81 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3.82 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3.83 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3.84 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3.85 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3.86 +# On Suns, sometimes $CPP names a directory.
3.87 +if test -n "$CPP" && test -d "$CPP"; then
3.88 + CPP=
3.89 +fi
3.90 +if test -z "$CPP"; then
3.91 + if test "${ac_cv_prog_CPP+set}" = set; then
3.92 + echo $ECHO_N "(cached) $ECHO_C" >&6
3.93 +else
3.94 + # Double quotes because CPP needs to be expanded
3.95 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3.96 + do
3.97 + ac_preproc_ok=false
3.98 +for ac_c_preproc_warn_flag in '' yes
3.99 +do
3.100 + # Use a header file that comes with gcc, so configuring glibc
3.101 + # with a fresh cross-compiler works.
3.102 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3.103 + # <limits.h> exists even on freestanding compilers.
3.104 + # On the NeXT, cc -E runs the code through the compiler's parser,
3.105 + # not just through cpp. "Syntax error" is here to catch this case.
3.106 + cat >conftest.$ac_ext <<_ACEOF
3.107 +/* confdefs.h. */
3.108 +_ACEOF
3.109 +cat confdefs.h >>conftest.$ac_ext
3.110 +cat >>conftest.$ac_ext <<_ACEOF
3.111 +/* end confdefs.h. */
3.112 +#ifdef __STDC__
3.113 +# include <limits.h>
3.114 +#else
3.115 +# include <assert.h>
3.116 +#endif
3.117 + Syntax error
3.118 +_ACEOF
3.119 +if { (ac_try="$ac_cpp conftest.$ac_ext"
3.120 +case "(($ac_try" in
3.121 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.122 + *) ac_try_echo=$ac_try;;
3.123 +esac
3.124 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.125 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3.126 + ac_status=$?
3.127 + grep -v '^ *+' conftest.er1 >conftest.err
3.128 + rm -f conftest.er1
3.129 + cat conftest.err >&5
3.130 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.131 + (exit $ac_status); } >/dev/null && {
3.132 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3.133 + test ! -s conftest.err
3.134 + }; then
3.135 + :
3.136 +else
3.137 + echo "$as_me: failed program was:" >&5
3.138 +sed 's/^/| /' conftest.$ac_ext >&5
3.139 +
3.140 + # Broken: fails on valid input.
3.141 +continue
3.142 +fi
3.143 +
3.144 +rm -f conftest.err conftest.$ac_ext
3.145 +
3.146 + # OK, works on sane cases. Now check whether nonexistent headers
3.147 + # can be detected and how.
3.148 + cat >conftest.$ac_ext <<_ACEOF
3.149 +/* confdefs.h. */
3.150 +_ACEOF
3.151 +cat confdefs.h >>conftest.$ac_ext
3.152 +cat >>conftest.$ac_ext <<_ACEOF
3.153 +/* end confdefs.h. */
3.154 +#include <ac_nonexistent.h>
3.155 +_ACEOF
3.156 +if { (ac_try="$ac_cpp conftest.$ac_ext"
3.157 +case "(($ac_try" in
3.158 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.159 + *) ac_try_echo=$ac_try;;
3.160 +esac
3.161 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.162 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3.163 + ac_status=$?
3.164 + grep -v '^ *+' conftest.er1 >conftest.err
3.165 + rm -f conftest.er1
3.166 + cat conftest.err >&5
3.167 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.168 + (exit $ac_status); } >/dev/null && {
3.169 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3.170 + test ! -s conftest.err
3.171 + }; then
3.172 + # Broken: success on invalid input.
3.173 +continue
3.174 +else
3.175 + echo "$as_me: failed program was:" >&5
3.176 +sed 's/^/| /' conftest.$ac_ext >&5
3.177 +
3.178 + # Passes both tests.
3.179 +ac_preproc_ok=:
3.180 +break
3.181 +fi
3.182 +
3.183 +rm -f conftest.err conftest.$ac_ext
3.184 +
3.185 +done
3.186 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3.187 +rm -f conftest.err conftest.$ac_ext
3.188 +if $ac_preproc_ok; then
3.189 + break
3.190 +fi
3.191 +
3.192 + done
3.193 + ac_cv_prog_CPP=$CPP
3.194 +
3.195 +fi
3.196 + CPP=$ac_cv_prog_CPP
3.197 +else
3.198 + ac_cv_prog_CPP=$CPP
3.199 +fi
3.200 +{ echo "$as_me:$LINENO: result: $CPP" >&5
3.201 +echo "${ECHO_T}$CPP" >&6; }
3.202 +ac_preproc_ok=false
3.203 +for ac_c_preproc_warn_flag in '' yes
3.204 +do
3.205 + # Use a header file that comes with gcc, so configuring glibc
3.206 + # with a fresh cross-compiler works.
3.207 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3.208 + # <limits.h> exists even on freestanding compilers.
3.209 + # On the NeXT, cc -E runs the code through the compiler's parser,
3.210 + # not just through cpp. "Syntax error" is here to catch this case.
3.211 + cat >conftest.$ac_ext <<_ACEOF
3.212 +/* confdefs.h. */
3.213 +_ACEOF
3.214 +cat confdefs.h >>conftest.$ac_ext
3.215 +cat >>conftest.$ac_ext <<_ACEOF
3.216 +/* end confdefs.h. */
3.217 +#ifdef __STDC__
3.218 +# include <limits.h>
3.219 +#else
3.220 +# include <assert.h>
3.221 +#endif
3.222 + Syntax error
3.223 +_ACEOF
3.224 +if { (ac_try="$ac_cpp conftest.$ac_ext"
3.225 +case "(($ac_try" in
3.226 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.227 + *) ac_try_echo=$ac_try;;
3.228 +esac
3.229 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.230 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3.231 + ac_status=$?
3.232 + grep -v '^ *+' conftest.er1 >conftest.err
3.233 + rm -f conftest.er1
3.234 + cat conftest.err >&5
3.235 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.236 + (exit $ac_status); } >/dev/null && {
3.237 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3.238 + test ! -s conftest.err
3.239 + }; then
3.240 + :
3.241 +else
3.242 + echo "$as_me: failed program was:" >&5
3.243 +sed 's/^/| /' conftest.$ac_ext >&5
3.244 +
3.245 + # Broken: fails on valid input.
3.246 +continue
3.247 +fi
3.248 +
3.249 +rm -f conftest.err conftest.$ac_ext
3.250 +
3.251 + # OK, works on sane cases. Now check whether nonexistent headers
3.252 + # can be detected and how.
3.253 + cat >conftest.$ac_ext <<_ACEOF
3.254 +/* confdefs.h. */
3.255 +_ACEOF
3.256 +cat confdefs.h >>conftest.$ac_ext
3.257 +cat >>conftest.$ac_ext <<_ACEOF
3.258 +/* end confdefs.h. */
3.259 +#include <ac_nonexistent.h>
3.260 +_ACEOF
3.261 +if { (ac_try="$ac_cpp conftest.$ac_ext"
3.262 +case "(($ac_try" in
3.263 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.264 + *) ac_try_echo=$ac_try;;
3.265 +esac
3.266 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.267 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3.268 + ac_status=$?
3.269 + grep -v '^ *+' conftest.er1 >conftest.err
3.270 + rm -f conftest.er1
3.271 + cat conftest.err >&5
3.272 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.273 + (exit $ac_status); } >/dev/null && {
3.274 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3.275 + test ! -s conftest.err
3.276 + }; then
3.277 + # Broken: success on invalid input.
3.278 +continue
3.279 +else
3.280 + echo "$as_me: failed program was:" >&5
3.281 +sed 's/^/| /' conftest.$ac_ext >&5
3.282 +
3.283 + # Passes both tests.
3.284 +ac_preproc_ok=:
3.285 +break
3.286 +fi
3.287 +
3.288 +rm -f conftest.err conftest.$ac_ext
3.289 +
3.290 +done
3.291 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3.292 +rm -f conftest.err conftest.$ac_ext
3.293 +if $ac_preproc_ok; then
3.294 + :
3.295 +else
3.296 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3.297 +See \`config.log' for more details." >&5
3.298 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3.299 +See \`config.log' for more details." >&2;}
3.300 + { (exit 1); exit 1; }; }
3.301 +fi
3.302 +
3.303 +ac_ext=c
3.304 +ac_cpp='$CPP $CPPFLAGS'
3.305 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3.306 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3.307 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3.308 +
3.309 +
3.310 +# Make sure we can run config.sub.
3.311 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3.312 + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3.313 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3.314 + { (exit 1); exit 1; }; }
3.315 +
3.316 +{ echo "$as_me:$LINENO: checking build system type" >&5
3.317 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3.318 +if test "${ac_cv_build+set}" = set; then
3.319 + echo $ECHO_N "(cached) $ECHO_C" >&6
3.320 +else
3.321 + ac_build_alias=$build_alias
3.322 +test "x$ac_build_alias" = x &&
3.323 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3.324 +test "x$ac_build_alias" = x &&
3.325 + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3.326 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3.327 + { (exit 1); exit 1; }; }
3.328 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3.329 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3.330 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3.331 + { (exit 1); exit 1; }; }
3.332 +
3.333 +fi
3.334 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3.335 +echo "${ECHO_T}$ac_cv_build" >&6; }
3.336 +case $ac_cv_build in
3.337 +*-*-*) ;;
3.338 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3.339 +echo "$as_me: error: invalid value of canonical build" >&2;}
3.340 + { (exit 1); exit 1; }; };;
3.341 +esac
3.342 +build=$ac_cv_build
3.343 +ac_save_IFS=$IFS; IFS='-'
3.344 +set x $ac_cv_build
3.345 +shift
3.346 +build_cpu=$1
3.347 +build_vendor=$2
3.348 +shift; shift
3.349 +# Remember, the first character of IFS is used to create $*,
3.350 +# except with old shells:
3.351 +build_os=$*
3.352 +IFS=$ac_save_IFS
3.353 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3.354 +
3.355 +
3.356 +{ echo "$as_me:$LINENO: checking host system type" >&5
3.357 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3.358 +if test "${ac_cv_host+set}" = set; then
3.359 + echo $ECHO_N "(cached) $ECHO_C" >&6
3.360 +else
3.361 + if test "x$host_alias" = x; then
3.362 + ac_cv_host=$ac_cv_build
3.363 +else
3.364 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3.365 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3.366 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3.367 + { (exit 1); exit 1; }; }
3.368 +fi
3.369 +
3.370 +fi
3.371 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3.372 +echo "${ECHO_T}$ac_cv_host" >&6; }
3.373 +case $ac_cv_host in
3.374 +*-*-*) ;;
3.375 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3.376 +echo "$as_me: error: invalid value of canonical host" >&2;}
3.377 + { (exit 1); exit 1; }; };;
3.378 +esac
3.379 +host=$ac_cv_host
3.380 +ac_save_IFS=$IFS; IFS='-'
3.381 +set x $ac_cv_host
3.382 +shift
3.383 +host_cpu=$1
3.384 +host_vendor=$2
3.385 +shift; shift
3.386 +# Remember, the first character of IFS is used to create $*,
3.387 +# except with old shells:
3.388 +host_os=$*
3.389 +IFS=$ac_save_IFS
3.390 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3.391 +
3.392 +
3.393 +ac_main_cc="$CC"
3.394 +test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
3.395 +
3.396 +if test -z "$CC_FOR_BUILD"; then
3.397 + if test "$#" = yes; then
3.398 + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3.399 +See \`config.log' for more details." >&5
3.400 +echo "$as_me: error: cannot run test program while cross compiling
3.401 +See \`config.log' for more details." >&2;}
3.402 + { (exit 1); exit 1; }; }
3.403 +else
3.404 + cat >conftest.$ac_ext <<_ACEOF
3.405 +int main(){return 0;}
3.406 +_ACEOF
3.407 +rm -f conftest$ac_exeext
3.408 +if { (ac_try="$ac_link"
3.409 +case "(($ac_try" in
3.410 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.411 + *) ac_try_echo=$ac_try;;
3.412 +esac
3.413 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.414 + (eval "$ac_link") 2>&5
3.415 + ac_status=$?
3.416 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.417 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3.418 + { (case "(($ac_try" in
3.419 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.420 + *) ac_try_echo=$ac_try;;
3.421 +esac
3.422 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.423 + (eval "$ac_try") 2>&5
3.424 + ac_status=$?
3.425 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.426 + (exit $ac_status); }; }; then
3.427 + CC_FOR_BUILD="$CC"
3.428 +else
3.429 + echo "$as_me: program exited with status $ac_status" >&5
3.430 +echo "$as_me: failed program was:" >&5
3.431 +sed 's/^/| /' conftest.$ac_ext >&5
3.432 +
3.433 +fi
3.434 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3.435 +fi
3.436 +
3.437 +
3.438 +fi
3.439 +
3.440 +ac_ext=c
3.441 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
3.442 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
3.443 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
3.444 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3.445 +if test -n "$ac_build_tool_prefix"; then
3.446 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3.447 +set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
3.448 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3.449 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3.450 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
3.451 + echo $ECHO_N "(cached) $ECHO_C" >&6
3.452 +else
3.453 + if test -n "$CC_FOR_BUILD"; then
3.454 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
3.455 +else
3.456 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3.457 +for as_dir in $PATH
3.458 +do
3.459 + IFS=$as_save_IFS
3.460 + test -z "$as_dir" && as_dir=.
3.461 + for ac_exec_ext in '' $ac_executable_extensions; do
3.462 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3.463 + ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
3.464 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3.465 + break 2
3.466 + fi
3.467 +done
3.468 +done
3.469 +IFS=$as_save_IFS
3.470 +
3.471 +fi
3.472 +fi
3.473 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
3.474 +if test -n "$CC_FOR_BUILD"; then
3.475 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
3.476 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
3.477 +else
3.478 + { echo "$as_me:$LINENO: result: no" >&5
3.479 +echo "${ECHO_T}no" >&6; }
3.480 +fi
3.481 +
3.482 +
3.483 +fi
3.484 +if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
3.485 + ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
3.486 + # Extract the first word of "gcc", so it can be a program name with args.
3.487 +set dummy gcc; ac_word=$2
3.488 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3.489 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3.490 +if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
3.491 + echo $ECHO_N "(cached) $ECHO_C" >&6
3.492 +else
3.493 + if test -n "$ac_ct_CC_FOR_BUILD"; then
3.494 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
3.495 +else
3.496 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3.497 +for as_dir in $PATH
3.498 +do
3.499 + IFS=$as_save_IFS
3.500 + test -z "$as_dir" && as_dir=.
3.501 + for ac_exec_ext in '' $ac_executable_extensions; do
3.502 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3.503 + ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
3.504 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3.505 + break 2
3.506 + fi
3.507 +done
3.508 +done
3.509 +IFS=$as_save_IFS
3.510 +
3.511 +fi
3.512 +fi
3.513 +ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
3.514 +if test -n "$ac_ct_CC_FOR_BUILD"; then
3.515 + { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
3.516 +echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
3.517 +else
3.518 + { echo "$as_me:$LINENO: result: no" >&5
3.519 +echo "${ECHO_T}no" >&6; }
3.520 +fi
3.521 +
3.522 + if test "x$ac_ct_CC_FOR_BUILD" = x; then
3.523 + CC_FOR_BUILD=""
3.524 + else
3.525 + case $#:$ac_tool_warned in
3.526 +yes:)
3.527 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3.528 +whose name does not start with the build triplet. If you think this
3.529 +configuration is useful to you, please write to autoconf@gnu.org." >&5
3.530 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3.531 +whose name does not start with the build triplet. If you think this
3.532 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3.533 +ac_tool_warned=yes ;;
3.534 +esac
3.535 + CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
3.536 + fi
3.537 +else
3.538 + CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
3.539 +fi
3.540 +
3.541 +if test -z "$CC_FOR_BUILD"; then
3.542 + if test -n "$ac_build_tool_prefix"; then
3.543 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3.544 +set dummy ${ac_build_tool_prefix}cc; ac_word=$2
3.545 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3.546 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3.547 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
3.548 + echo $ECHO_N "(cached) $ECHO_C" >&6
3.549 +else
3.550 + if test -n "$CC_FOR_BUILD"; then
3.551 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
3.552 +else
3.553 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3.554 +for as_dir in $PATH
3.555 +do
3.556 + IFS=$as_save_IFS
3.557 + test -z "$as_dir" && as_dir=.
3.558 + for ac_exec_ext in '' $ac_executable_extensions; do
3.559 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3.560 + ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
3.561 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3.562 + break 2
3.563 + fi
3.564 +done
3.565 +done
3.566 +IFS=$as_save_IFS
3.567 +
3.568 +fi
3.569 +fi
3.570 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
3.571 +if test -n "$CC_FOR_BUILD"; then
3.572 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
3.573 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
3.574 +else
3.575 + { echo "$as_me:$LINENO: result: no" >&5
3.576 +echo "${ECHO_T}no" >&6; }
3.577 +fi
3.578 +
3.579 +
3.580 + fi
3.581 +fi
3.582 +if test -z "$CC_FOR_BUILD"; then
3.583 + # Extract the first word of "cc", so it can be a program name with args.
3.584 +set dummy cc; ac_word=$2
3.585 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3.586 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3.587 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
3.588 + echo $ECHO_N "(cached) $ECHO_C" >&6
3.589 +else
3.590 + if test -n "$CC_FOR_BUILD"; then
3.591 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
3.592 +else
3.593 + ac_prog_rejected=no
3.594 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3.595 +for as_dir in $PATH
3.596 +do
3.597 + IFS=$as_save_IFS
3.598 + test -z "$as_dir" && as_dir=.
3.599 + for ac_exec_ext in '' $ac_executable_extensions; do
3.600 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3.601 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3.602 + ac_prog_rejected=yes
3.603 + continue
3.604 + fi
3.605 + ac_cv_prog_CC_FOR_BUILD="cc"
3.606 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3.607 + break 2
3.608 + fi
3.609 +done
3.610 +done
3.611 +IFS=$as_save_IFS
3.612 +
3.613 +if test $ac_prog_rejected = yes; then
3.614 + # We found a bogon in the path, so make sure we never use it.
3.615 + set dummy $ac_cv_prog_CC_FOR_BUILD
3.616 + shift
3.617 + if test $# != 0; then
3.618 + # We chose a different compiler from the bogus one.
3.619 + # However, it has the same basename, so the bogon will be chosen
3.620 + # first if we set CC_FOR_BUILD to just the basename; use the full file name.
3.621 + shift
3.622 + ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
3.623 + fi
3.624 +fi
3.625 +fi
3.626 +fi
3.627 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
3.628 +if test -n "$CC_FOR_BUILD"; then
3.629 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
3.630 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
3.631 +else
3.632 + { echo "$as_me:$LINENO: result: no" >&5
3.633 +echo "${ECHO_T}no" >&6; }
3.634 +fi
3.635 +
3.636 +
3.637 +fi
3.638 +if test -z "$CC_FOR_BUILD"; then
3.639 + if test -n "$ac_build_tool_prefix"; then
3.640 + for ac_prog in cl.exe
3.641 + do
3.642 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3.643 +set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
3.644 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3.645 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3.646 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
3.647 + echo $ECHO_N "(cached) $ECHO_C" >&6
3.648 +else
3.649 + if test -n "$CC_FOR_BUILD"; then
3.650 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
3.651 +else
3.652 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3.653 +for as_dir in $PATH
3.654 +do
3.655 + IFS=$as_save_IFS
3.656 + test -z "$as_dir" && as_dir=.
3.657 + for ac_exec_ext in '' $ac_executable_extensions; do
3.658 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3.659 + ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
3.660 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3.661 + break 2
3.662 + fi
3.663 +done
3.664 +done
3.665 +IFS=$as_save_IFS
3.666 +
3.667 +fi
3.668 +fi
3.669 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
3.670 +if test -n "$CC_FOR_BUILD"; then
3.671 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
3.672 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
3.673 +else
3.674 + { echo "$as_me:$LINENO: result: no" >&5
3.675 +echo "${ECHO_T}no" >&6; }
3.676 +fi
3.677 +
3.678 +
3.679 + test -n "$CC_FOR_BUILD" && break
3.680 + done
3.681 +fi
3.682 +if test -z "$CC_FOR_BUILD"; then
3.683 + ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
3.684 + for ac_prog in cl.exe
3.685 +do
3.686 + # Extract the first word of "$ac_prog", so it can be a program name with args.
3.687 +set dummy $ac_prog; ac_word=$2
3.688 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3.689 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3.690 +if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
3.691 + echo $ECHO_N "(cached) $ECHO_C" >&6
3.692 +else
3.693 + if test -n "$ac_ct_CC_FOR_BUILD"; then
3.694 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
3.695 +else
3.696 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3.697 +for as_dir in $PATH
3.698 +do
3.699 + IFS=$as_save_IFS
3.700 + test -z "$as_dir" && as_dir=.
3.701 + for ac_exec_ext in '' $ac_executable_extensions; do
3.702 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3.703 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
3.704 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3.705 + break 2
3.706 + fi
3.707 +done
3.708 +done
3.709 +IFS=$as_save_IFS
3.710 +
3.711 +fi
3.712 +fi
3.713 +ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
3.714 +if test -n "$ac_ct_CC_FOR_BUILD"; then
3.715 + { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
3.716 +echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
3.717 +else
3.718 + { echo "$as_me:$LINENO: result: no" >&5
3.719 +echo "${ECHO_T}no" >&6; }
3.720 +fi
3.721 +
3.722 +
3.723 + test -n "$ac_ct_CC_FOR_BUILD" && break
3.724 +done
3.725 +
3.726 + if test "x$ac_ct_CC_FOR_BUILD" = x; then
3.727 + CC_FOR_BUILD=""
3.728 + else
3.729 + case $#:$ac_tool_warned in
3.730 +yes:)
3.731 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3.732 +whose name does not start with the build triplet. If you think this
3.733 +configuration is useful to you, please write to autoconf@gnu.org." >&5
3.734 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3.735 +whose name does not start with the build triplet. If you think this
3.736 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3.737 +ac_tool_warned=yes ;;
3.738 +esac
3.739 + CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
3.740 + fi
3.741 +fi
3.742 +
3.743 +fi
3.744 +
3.745 +
3.746 +test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3.747 +See \`config.log' for more details." >&5
3.748 +echo "$as_me: error: no acceptable C compiler found in \$PATH
3.749 +See \`config.log' for more details." >&2;}
3.750 + { (exit 1); exit 1; }; }
3.751 +
3.752 +# Provide some information about the compiler.
3.753 +echo "$as_me:$LINENO: checking for C compiler version" >&5
3.754 +ac_compiler=`set X $ac_build_compile; echo $2`
3.755 +{ (ac_try="$ac_compiler --version >&5"
3.756 +case "(($ac_try" in
3.757 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.758 + *) ac_try_echo=$ac_try;;
3.759 +esac
3.760 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.761 + (eval "$ac_compiler --version >&5") 2>&5
3.762 + ac_status=$?
3.763 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.764 + (exit $ac_status); }
3.765 +{ (ac_try="$ac_compiler -v >&5"
3.766 +case "(($ac_try" in
3.767 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.768 + *) ac_try_echo=$ac_try;;
3.769 +esac
3.770 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.771 + (eval "$ac_compiler -v >&5") 2>&5
3.772 + ac_status=$?
3.773 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.774 + (exit $ac_status); }
3.775 +{ (ac_try="$ac_compiler -V >&5"
3.776 +case "(($ac_try" in
3.777 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.778 + *) ac_try_echo=$ac_try;;
3.779 +esac
3.780 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.781 + (eval "$ac_compiler -V >&5") 2>&5
3.782 + ac_status=$?
3.783 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.784 + (exit $ac_status); }
3.785 +
3.786 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3.787 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3.788 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
3.789 + echo $ECHO_N "(cached) $ECHO_C" >&6
3.790 +else
3.791 + cat >conftest.$ac_ext <<_ACEOF
3.792 +/* confdefs.h. */
3.793 +_ACEOF
3.794 +cat confdefs.h >>conftest.$ac_ext
3.795 +cat >>conftest.$ac_ext <<_ACEOF
3.796 +/* end confdefs.h. */
3.797 +
3.798 +int
3.799 +main ()
3.800 +{
3.801 +#ifndef __GNUC__
3.802 + choke me
3.803 +#endif
3.804 +
3.805 + ;
3.806 + return 0;
3.807 +}
3.808 +_ACEOF
3.809 +rm -f conftest.$ac_build_objext
3.810 +if { (ac_try="$ac_build_compile"
3.811 +case "(($ac_try" in
3.812 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.813 + *) ac_try_echo=$ac_try;;
3.814 +esac
3.815 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.816 + (eval "$ac_build_compile") 2>conftest.er1
3.817 + ac_status=$?
3.818 + grep -v '^ *+' conftest.er1 >conftest.err
3.819 + rm -f conftest.er1
3.820 + cat conftest.err >&5
3.821 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.822 + (exit $ac_status); } && {
3.823 + test -z "$ac_c_werror_flag" ||
3.824 + test ! -s conftest.err
3.825 + } && test -s conftest.$ac_build_objext; then
3.826 + ac_compiler_gnu=yes
3.827 +else
3.828 + echo "$as_me: failed program was:" >&5
3.829 +sed 's/^/| /' conftest.$ac_ext >&5
3.830 +
3.831 + ac_compiler_gnu=no
3.832 +fi
3.833 +
3.834 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
3.835 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
3.836 +
3.837 +fi
3.838 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3.839 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3.840 +GCC=`test $ac_compiler_gnu = yes && echo yes`
3.841 +ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
3.842 +ac_save_CFLAGS=$CFLAGS_FOR_BUILD
3.843 +{ echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
3.844 +echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
3.845 +if test "${ac_cv_build_prog_cc_g+set}" = set; then
3.846 + echo $ECHO_N "(cached) $ECHO_C" >&6
3.847 +else
3.848 + ac_save_c_werror_flag=$ac_c_werror_flag
3.849 + ac_c_werror_flag=yes
3.850 + ac_cv_build_prog_cc_g=no
3.851 + CFLAGS_FOR_BUILD="-g"
3.852 + cat >conftest.$ac_ext <<_ACEOF
3.853 +/* confdefs.h. */
3.854 +_ACEOF
3.855 +cat confdefs.h >>conftest.$ac_ext
3.856 +cat >>conftest.$ac_ext <<_ACEOF
3.857 +/* end confdefs.h. */
3.858 +
3.859 +int
3.860 +main ()
3.861 +{
3.862 +
3.863 + ;
3.864 + return 0;
3.865 +}
3.866 +_ACEOF
3.867 +rm -f conftest.$ac_build_objext
3.868 +if { (ac_try="$ac_build_compile"
3.869 +case "(($ac_try" in
3.870 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.871 + *) ac_try_echo=$ac_try;;
3.872 +esac
3.873 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.874 + (eval "$ac_build_compile") 2>conftest.er1
3.875 + ac_status=$?
3.876 + grep -v '^ *+' conftest.er1 >conftest.err
3.877 + rm -f conftest.er1
3.878 + cat conftest.err >&5
3.879 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.880 + (exit $ac_status); } && {
3.881 + test -z "$ac_c_werror_flag" ||
3.882 + test ! -s conftest.err
3.883 + } && test -s conftest.$ac_build_objext; then
3.884 + ac_cv_build_prog_cc_g=yes
3.885 +else
3.886 + echo "$as_me: failed program was:" >&5
3.887 +sed 's/^/| /' conftest.$ac_ext >&5
3.888 +
3.889 + CFLAGS_FOR_BUILD=""
3.890 + cat >conftest.$ac_ext <<_ACEOF
3.891 +/* confdefs.h. */
3.892 +_ACEOF
3.893 +cat confdefs.h >>conftest.$ac_ext
3.894 +cat >>conftest.$ac_ext <<_ACEOF
3.895 +/* end confdefs.h. */
3.896 +
3.897 +int
3.898 +main ()
3.899 +{
3.900 +
3.901 + ;
3.902 + return 0;
3.903 +}
3.904 +_ACEOF
3.905 +rm -f conftest.$ac_build_objext
3.906 +if { (ac_try="$ac_build_compile"
3.907 +case "(($ac_try" in
3.908 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.909 + *) ac_try_echo=$ac_try;;
3.910 +esac
3.911 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.912 + (eval "$ac_build_compile") 2>conftest.er1
3.913 + ac_status=$?
3.914 + grep -v '^ *+' conftest.er1 >conftest.err
3.915 + rm -f conftest.er1
3.916 + cat conftest.err >&5
3.917 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.918 + (exit $ac_status); } && {
3.919 + test -z "$ac_c_werror_flag" ||
3.920 + test ! -s conftest.err
3.921 + } && test -s conftest.$ac_build_objext; then
3.922 + :
3.923 +else
3.924 + echo "$as_me: failed program was:" >&5
3.925 +sed 's/^/| /' conftest.$ac_ext >&5
3.926 +
3.927 + ac_c_werror_flag=$ac_save_c_werror_flag
3.928 + CFLAGS_FOR_BUILD="-g"
3.929 + cat >conftest.$ac_ext <<_ACEOF
3.930 +/* confdefs.h. */
3.931 +_ACEOF
3.932 +cat confdefs.h >>conftest.$ac_ext
3.933 +cat >>conftest.$ac_ext <<_ACEOF
3.934 +/* end confdefs.h. */
3.935 +
3.936 +int
3.937 +main ()
3.938 +{
3.939 +
3.940 + ;
3.941 + return 0;
3.942 +}
3.943 +_ACEOF
3.944 +rm -f conftest.$ac_build_objext
3.945 +if { (ac_try="$ac_build_compile"
3.946 +case "(($ac_try" in
3.947 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.948 + *) ac_try_echo=$ac_try;;
3.949 +esac
3.950 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.951 + (eval "$ac_build_compile") 2>conftest.er1
3.952 + ac_status=$?
3.953 + grep -v '^ *+' conftest.er1 >conftest.err
3.954 + rm -f conftest.er1
3.955 + cat conftest.err >&5
3.956 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.957 + (exit $ac_status); } && {
3.958 + test -z "$ac_c_werror_flag" ||
3.959 + test ! -s conftest.err
3.960 + } && test -s conftest.$ac_build_objext; then
3.961 + ac_cv_build_prog_cc_g=yes
3.962 +else
3.963 + echo "$as_me: failed program was:" >&5
3.964 +sed 's/^/| /' conftest.$ac_ext >&5
3.965 +
3.966 +
3.967 +fi
3.968 +
3.969 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
3.970 +fi
3.971 +
3.972 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
3.973 +fi
3.974 +
3.975 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
3.976 + ac_c_werror_flag=$ac_save_c_werror_flag
3.977 +fi
3.978 +{ echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
3.979 +echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
3.980 +if test "$ac_test_CFLAGS" = set; then
3.981 + CFLAGS_FOR_BUILD=$ac_save_CFLAGS
3.982 +elif test $ac_cv_build_prog_cc_g = yes; then
3.983 + if test "$GCC" = yes; then
3.984 + CFLAGS_FOR_BUILD="-g -O2"
3.985 + else
3.986 + CFLAGS_FOR_BUILD="-g"
3.987 + fi
3.988 +else
3.989 + if test "$GCC" = yes; then
3.990 + CFLAGS_FOR_BUILD="-O2"
3.991 + else
3.992 + CFLAGS_FOR_BUILD=
3.993 + fi
3.994 +fi
3.995 +{ echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
3.996 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
3.997 +if test "${ac_cv_prog_cc_c89+set}" = set; then
3.998 + echo $ECHO_N "(cached) $ECHO_C" >&6
3.999 +else
3.1000 + ac_cv_prog_cc_c89=no
3.1001 +ac_save_CC=$CC_FOR_BUILD
3.1002 +cat >conftest.$ac_ext <<_ACEOF
3.1003 +/* confdefs.h. */
3.1004 +_ACEOF
3.1005 +cat confdefs.h >>conftest.$ac_ext
3.1006 +cat >>conftest.$ac_ext <<_ACEOF
3.1007 +/* end confdefs.h. */
3.1008 +#include <stdarg.h>
3.1009 +#include <stdio.h>
3.1010 +#include <sys/types.h>
3.1011 +#include <sys/stat.h>
3.1012 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3.1013 +struct buf { int x; };
3.1014 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
3.1015 +static char *e (p, i)
3.1016 + char **p;
3.1017 + int i;
3.1018 +{
3.1019 + return p[i];
3.1020 +}
3.1021 +static char *f (char * (*g) (char **, int), char **p, ...)
3.1022 +{
3.1023 + char *s;
3.1024 + va_list v;
3.1025 + va_start (v,p);
3.1026 + s = g (p, va_arg (v,int));
3.1027 + va_end (v);
3.1028 + return s;
3.1029 +}
3.1030 +
3.1031 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3.1032 + function prototypes and stuff, but not '\xHH' hex character constants.
3.1033 + These don't provoke an error unfortunately, instead are silently treated
3.1034 + as 'x'. The following induces an error, until -std is added to get
3.1035 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3.1036 + array size at least. It's necessary to write '\x00'==0 to get something
3.1037 + that's true only with -std. */
3.1038 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3.1039 +
3.1040 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3.1041 + inside strings and character constants. */
3.1042 +#define FOO(x) 'x'
3.1043 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3.1044 +
3.1045 +int test (int i, double x);
3.1046 +struct s1 {int (*f) (int a);};
3.1047 +struct s2 {int (*f) (double a);};
3.1048 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3.1049 +int argc;
3.1050 +char **argv;
3.1051 +int
3.1052 +main ()
3.1053 +{
3.1054 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3.1055 + ;
3.1056 + return 0;
3.1057 +}
3.1058 +_ACEOF
3.1059 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3.1060 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3.1061 +do
3.1062 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
3.1063 + rm -f conftest.$ac_build_objext
3.1064 +if { (ac_try="$ac_build_compile"
3.1065 +case "(($ac_try" in
3.1066 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.1067 + *) ac_try_echo=$ac_try;;
3.1068 +esac
3.1069 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.1070 + (eval "$ac_build_compile") 2>conftest.er1
3.1071 + ac_status=$?
3.1072 + grep -v '^ *+' conftest.er1 >conftest.err
3.1073 + rm -f conftest.er1
3.1074 + cat conftest.err >&5
3.1075 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.1076 + (exit $ac_status); } && {
3.1077 + test -z "$ac_c_werror_flag" ||
3.1078 + test ! -s conftest.err
3.1079 + } && test -s conftest.$ac_build_objext; then
3.1080 + ac_cv_prog_cc_c89=$ac_arg
3.1081 +else
3.1082 + echo "$as_me: failed program was:" >&5
3.1083 +sed 's/^/| /' conftest.$ac_ext >&5
3.1084 +
3.1085 +
3.1086 +fi
3.1087 +
3.1088 +rm -f core conftest.err conftest.$ac_build_objext
3.1089 + test "x$ac_cv_prog_cc_c89" != "xno" && break
3.1090 +done
3.1091 +rm -f conftest.$ac_ext
3.1092 +CC_FOR_BUILD=$ac_save_CC
3.1093 +
3.1094 +fi
3.1095 +# AC_CACHE_VAL
3.1096 +case "x$ac_cv_prog_cc_c89" in
3.1097 + x)
3.1098 + { echo "$as_me:$LINENO: result: none needed" >&5
3.1099 +echo "${ECHO_T}none needed" >&6; } ;;
3.1100 + xno)
3.1101 + { echo "$as_me:$LINENO: result: unsupported" >&5
3.1102 +echo "${ECHO_T}unsupported" >&6; } ;;
3.1103 + *)
3.1104 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
3.1105 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3.1106 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3.1107 +esac
3.1108 +
3.1109 +
3.1110 +ac_ext=c
3.1111 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
3.1112 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
3.1113 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
3.1114 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3.1115 +
3.1116 +depcc="$CC_FOR_BUILD" am_compiler_list=
3.1117 +
3.1118 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3.1119 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3.1120 +if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
3.1121 + echo $ECHO_N "(cached) $ECHO_C" >&6
3.1122 +else
3.1123 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3.1124 + # We make a subdir and do the tests there. Otherwise we can end up
3.1125 + # making bogus files that we don't know about and never remove. For
3.1126 + # instance it was reported that on HP-UX the gcc test will end up
3.1127 + # making a dummy file named `D' -- because `-MD' means `put the output
3.1128 + # in D'.
3.1129 + mkdir conftest.dir
3.1130 + # Copy depcomp to subdir because otherwise we won't find it if we're
3.1131 + # using a relative directory.
3.1132 + cp "$am_depcomp" conftest.dir
3.1133 + cd conftest.dir
3.1134 + # We will build objects and dependencies in a subdirectory because
3.1135 + # it helps to detect inapplicable dependency modes. For instance
3.1136 + # both Tru64's cc and ICC support -MD to output dependencies as a
3.1137 + # side effect of compilation, but ICC will put the dependencies in
3.1138 + # the current directory while Tru64 will put them in the object
3.1139 + # directory.
3.1140 + mkdir sub
3.1141 +
3.1142 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
3.1143 + if test "$am_compiler_list" = ""; then
3.1144 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3.1145 + fi
3.1146 + for depmode in $am_compiler_list; do
3.1147 + # Setup a source with many dependencies, because some compilers
3.1148 + # like to wrap large dependency lists on column 80 (with \), and
3.1149 + # we should not choose a depcomp mode which is confused by this.
3.1150 + #
3.1151 + # We need to recreate these files for each test, as the compiler may
3.1152 + # overwrite some of them when testing with obscure command lines.
3.1153 + # This happens at least with the AIX C compiler.
3.1154 + : > sub/conftest.c
3.1155 + for i in 1 2 3 4 5 6; do
3.1156 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
3.1157 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3.1158 + # Solaris 8's {/usr,}/bin/sh.
3.1159 + touch sub/conftst$i.h
3.1160 + done
3.1161 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3.1162 +
3.1163 + case $depmode in
3.1164 + nosideeffect)
3.1165 + # after this tag, mechanisms are not by side-effect, so they'll
3.1166 + # only be used when explicitly requested
3.1167 + if test "x$enable_dependency_tracking" = xyes; then
3.1168 + continue
3.1169 + else
3.1170 + break
3.1171 + fi
3.1172 + ;;
3.1173 + none) break ;;
3.1174 + esac
3.1175 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
3.1176 + # mode. It turns out that the SunPro C++ compiler does not properly
3.1177 + # handle `-M -o', and we need to detect this.
3.1178 + if depmode=$depmode \
3.1179 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3.1180 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3.1181 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3.1182 + >/dev/null 2>conftest.err &&
3.1183 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3.1184 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3.1185 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3.1186 + # icc doesn't choke on unknown options, it will just issue warnings
3.1187 + # or remarks (even with -Werror). So we grep stderr for any message
3.1188 + # that says an option was ignored or not supported.
3.1189 + # When given -MP, icc 7.0 and 7.1 complain thusly:
3.1190 + # icc: Command line warning: ignoring option '-M'; no argument required
3.1191 + # The diagnosis changed in icc 8.0:
3.1192 + # icc: Command line remark: option '-MP' not supported
3.1193 + if (grep 'ignoring option' conftest.err ||
3.1194 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3.1195 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
3.1196 + break
3.1197 + fi
3.1198 + fi
3.1199 + done
3.1200 +
3.1201 + cd ..
3.1202 + rm -rf conftest.dir
3.1203 +else
3.1204 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
3.1205 +fi
3.1206 +
3.1207 +fi
3.1208 +{ echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
3.1209 +echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
3.1210 +CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
3.1211 +
3.1212 +
3.1213 +
3.1214 +if
3.1215 + test "x$enable_dependency_tracking" != xno \
3.1216 + && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
3.1217 + am__fastdepCC_FOR_BUILD_TRUE=
3.1218 + am__fastdepCC_FOR_BUILD_FALSE='#'
3.1219 +else
3.1220 + am__fastdepCC_FOR_BUILD_TRUE='#'
3.1221 + am__fastdepCC_FOR_BUILD_FALSE=
3.1222 +fi
3.1223 +
3.1224 +
3.1225 +ac_ext=c
3.1226 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
3.1227 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
3.1228 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
3.1229 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3.1230 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3.1231 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3.1232 +# On Suns, sometimes $CPP names a directory.
3.1233 +if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
3.1234 + CPP_FOR_BUILD=
3.1235 +fi
3.1236 +if test -z "$CPP_FOR_BUILD"; then
3.1237 + if test "${ac_cv_build_prog_CPP+set}" = set; then
3.1238 + echo $ECHO_N "(cached) $ECHO_C" >&6
3.1239 +else
3.1240 + # Double quotes because CPP needs to be expanded
3.1241 + for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
3.1242 + do
3.1243 + ac_preproc_ok=false
3.1244 +for ac_c_preproc_warn_flag in '' yes
3.1245 +do
3.1246 + # Use a header file that comes with gcc, so configuring glibc
3.1247 + # with a fresh cross-compiler works.
3.1248 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3.1249 + # <limits.h> exists even on freestanding compilers.
3.1250 + # On the NeXT, cc -E runs the code through the compiler's parser,
3.1251 + # not just through cpp. "Syntax error" is here to catch this case.
3.1252 + cat >conftest.$ac_ext <<_ACEOF
3.1253 +/* confdefs.h. */
3.1254 +_ACEOF
3.1255 +cat confdefs.h >>conftest.$ac_ext
3.1256 +cat >>conftest.$ac_ext <<_ACEOF
3.1257 +/* end confdefs.h. */
3.1258 +#ifdef __STDC__
3.1259 +# include <limits.h>
3.1260 +#else
3.1261 +# include <assert.h>
3.1262 +#endif
3.1263 + Syntax error
3.1264 +_ACEOF
3.1265 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
3.1266 +case "(($ac_try" in
3.1267 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.1268 + *) ac_try_echo=$ac_try;;
3.1269 +esac
3.1270 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.1271 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
3.1272 + ac_status=$?
3.1273 + grep -v '^ *+' conftest.er1 >conftest.err
3.1274 + rm -f conftest.er1
3.1275 + cat conftest.err >&5
3.1276 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.1277 + (exit $ac_status); } >/dev/null && {
3.1278 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3.1279 + test ! -s conftest.err
3.1280 + }; then
3.1281 + :
3.1282 +else
3.1283 + echo "$as_me: failed program was:" >&5
3.1284 +sed 's/^/| /' conftest.$ac_ext >&5
3.1285 +
3.1286 + # Broken: fails on valid input.
3.1287 +continue
3.1288 +fi
3.1289 +
3.1290 +rm -f conftest.err conftest.$ac_ext
3.1291 +
3.1292 + # OK, works on sane cases. Now check whether nonexistent headers
3.1293 + # can be detected and how.
3.1294 + cat >conftest.$ac_ext <<_ACEOF
3.1295 +/* confdefs.h. */
3.1296 +_ACEOF
3.1297 +cat confdefs.h >>conftest.$ac_ext
3.1298 +cat >>conftest.$ac_ext <<_ACEOF
3.1299 +/* end confdefs.h. */
3.1300 +#include <ac_nonexistent.h>
3.1301 +_ACEOF
3.1302 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
3.1303 +case "(($ac_try" in
3.1304 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.1305 + *) ac_try_echo=$ac_try;;
3.1306 +esac
3.1307 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.1308 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
3.1309 + ac_status=$?
3.1310 + grep -v '^ *+' conftest.er1 >conftest.err
3.1311 + rm -f conftest.er1
3.1312 + cat conftest.err >&5
3.1313 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.1314 + (exit $ac_status); } >/dev/null && {
3.1315 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3.1316 + test ! -s conftest.err
3.1317 + }; then
3.1318 + # Broken: success on invalid input.
3.1319 +continue
3.1320 +else
3.1321 + echo "$as_me: failed program was:" >&5
3.1322 +sed 's/^/| /' conftest.$ac_ext >&5
3.1323 +
3.1324 + # Passes both tests.
3.1325 +ac_preproc_ok=:
3.1326 +break
3.1327 +fi
3.1328 +
3.1329 +rm -f conftest.err conftest.$ac_ext
3.1330 +
3.1331 +done
3.1332 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3.1333 +rm -f conftest.err conftest.$ac_ext
3.1334 +if $ac_preproc_ok; then
3.1335 + break
3.1336 +fi
3.1337 +
3.1338 + done
3.1339 + ac_cv_build_prog_CPP=$CPP_FOR_BUILD
3.1340 +
3.1341 +fi
3.1342 + CPP_FOR_BUILD=$ac_cv_build_prog_CPP
3.1343 +else
3.1344 + ac_cv_build_prog_CPP=$CPP_FOR_BUILD
3.1345 +fi
3.1346 +{ echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
3.1347 +echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
3.1348 +ac_preproc_ok=false
3.1349 +for ac_c_preproc_warn_flag in '' yes
3.1350 +do
3.1351 + # Use a header file that comes with gcc, so configuring glibc
3.1352 + # with a fresh cross-compiler works.
3.1353 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3.1354 + # <limits.h> exists even on freestanding compilers.
3.1355 + # On the NeXT, cc -E runs the code through the compiler's parser,
3.1356 + # not just through cpp. "Syntax error" is here to catch this case.
3.1357 + cat >conftest.$ac_ext <<_ACEOF
3.1358 +/* confdefs.h. */
3.1359 +_ACEOF
3.1360 +cat confdefs.h >>conftest.$ac_ext
3.1361 +cat >>conftest.$ac_ext <<_ACEOF
3.1362 +/* end confdefs.h. */
3.1363 +#ifdef __STDC__
3.1364 +# include <limits.h>
3.1365 +#else
3.1366 +# include <assert.h>
3.1367 +#endif
3.1368 + Syntax error
3.1369 +_ACEOF
3.1370 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
3.1371 +case "(($ac_try" in
3.1372 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.1373 + *) ac_try_echo=$ac_try;;
3.1374 +esac
3.1375 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.1376 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
3.1377 + ac_status=$?
3.1378 + grep -v '^ *+' conftest.er1 >conftest.err
3.1379 + rm -f conftest.er1
3.1380 + cat conftest.err >&5
3.1381 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.1382 + (exit $ac_status); } >/dev/null && {
3.1383 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3.1384 + test ! -s conftest.err
3.1385 + }; then
3.1386 + :
3.1387 +else
3.1388 + echo "$as_me: failed program was:" >&5
3.1389 +sed 's/^/| /' conftest.$ac_ext >&5
3.1390 +
3.1391 + # Broken: fails on valid input.
3.1392 +continue
3.1393 +fi
3.1394 +
3.1395 +rm -f conftest.err conftest.$ac_ext
3.1396 +
3.1397 + # OK, works on sane cases. Now check whether nonexistent headers
3.1398 + # can be detected and how.
3.1399 + cat >conftest.$ac_ext <<_ACEOF
3.1400 +/* confdefs.h. */
3.1401 +_ACEOF
3.1402 +cat confdefs.h >>conftest.$ac_ext
3.1403 +cat >>conftest.$ac_ext <<_ACEOF
3.1404 +/* end confdefs.h. */
3.1405 +#include <ac_nonexistent.h>
3.1406 +_ACEOF
3.1407 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
3.1408 +case "(($ac_try" in
3.1409 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.1410 + *) ac_try_echo=$ac_try;;
3.1411 +esac
3.1412 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.1413 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
3.1414 + ac_status=$?
3.1415 + grep -v '^ *+' conftest.er1 >conftest.err
3.1416 + rm -f conftest.er1
3.1417 + cat conftest.err >&5
3.1418 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.1419 + (exit $ac_status); } >/dev/null && {
3.1420 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3.1421 + test ! -s conftest.err
3.1422 + }; then
3.1423 + # Broken: success on invalid input.
3.1424 +continue
3.1425 +else
3.1426 + echo "$as_me: failed program was:" >&5
3.1427 +sed 's/^/| /' conftest.$ac_ext >&5
3.1428 +
3.1429 + # Passes both tests.
3.1430 +ac_preproc_ok=:
3.1431 +break
3.1432 +fi
3.1433 +
3.1434 +rm -f conftest.err conftest.$ac_ext
3.1435 +
3.1436 +done
3.1437 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3.1438 +rm -f conftest.err conftest.$ac_ext
3.1439 +if $ac_preproc_ok; then
3.1440 + :
3.1441 +else
3.1442 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
3.1443 +See \`config.log' for more details." >&5
3.1444 +echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
3.1445 +See \`config.log' for more details." >&2;}
3.1446 + { (exit 1); exit 1; }; }
3.1447 +fi
3.1448 +
3.1449 +ac_ext=c
3.1450 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
3.1451 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
3.1452 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
3.1453 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3.1454 +
3.1455 +
3.1456 +
3.1457 +
3.1458 +BUILD_EXEEXT=$ac_build_exeext
3.1459 +BUILD_OBJEXT=$ac_build_objext
3.1460 +
3.1461 +ac_ext=c
3.1462 +ac_cpp='$CPP $CPPFLAGS'
3.1463 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3.1464 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3.1465 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3.1466 if test -n "$ac_tool_prefix"; then
3.1467 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3.1468 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3.1469 @@ -5572,236 +6974,6 @@
3.1470
3.1471
3.1472
3.1473 -ac_ext=c
3.1474 -ac_cpp='$CPP $CPPFLAGS'
3.1475 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3.1476 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3.1477 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
3.1478 -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3.1479 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3.1480 -# On Suns, sometimes $CPP names a directory.
3.1481 -if test -n "$CPP" && test -d "$CPP"; then
3.1482 - CPP=
3.1483 -fi
3.1484 -if test -z "$CPP"; then
3.1485 - if test "${ac_cv_prog_CPP+set}" = set; then
3.1486 - echo $ECHO_N "(cached) $ECHO_C" >&6
3.1487 -else
3.1488 - # Double quotes because CPP needs to be expanded
3.1489 - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3.1490 - do
3.1491 - ac_preproc_ok=false
3.1492 -for ac_c_preproc_warn_flag in '' yes
3.1493 -do
3.1494 - # Use a header file that comes with gcc, so configuring glibc
3.1495 - # with a fresh cross-compiler works.
3.1496 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3.1497 - # <limits.h> exists even on freestanding compilers.
3.1498 - # On the NeXT, cc -E runs the code through the compiler's parser,
3.1499 - # not just through cpp. "Syntax error" is here to catch this case.
3.1500 - cat >conftest.$ac_ext <<_ACEOF
3.1501 -/* confdefs.h. */
3.1502 -_ACEOF
3.1503 -cat confdefs.h >>conftest.$ac_ext
3.1504 -cat >>conftest.$ac_ext <<_ACEOF
3.1505 -/* end confdefs.h. */
3.1506 -#ifdef __STDC__
3.1507 -# include <limits.h>
3.1508 -#else
3.1509 -# include <assert.h>
3.1510 -#endif
3.1511 - Syntax error
3.1512 -_ACEOF
3.1513 -if { (ac_try="$ac_cpp conftest.$ac_ext"
3.1514 -case "(($ac_try" in
3.1515 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.1516 - *) ac_try_echo=$ac_try;;
3.1517 -esac
3.1518 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.1519 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3.1520 - ac_status=$?
3.1521 - grep -v '^ *+' conftest.er1 >conftest.err
3.1522 - rm -f conftest.er1
3.1523 - cat conftest.err >&5
3.1524 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.1525 - (exit $ac_status); } >/dev/null && {
3.1526 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3.1527 - test ! -s conftest.err
3.1528 - }; then
3.1529 - :
3.1530 -else
3.1531 - echo "$as_me: failed program was:" >&5
3.1532 -sed 's/^/| /' conftest.$ac_ext >&5
3.1533 -
3.1534 - # Broken: fails on valid input.
3.1535 -continue
3.1536 -fi
3.1537 -
3.1538 -rm -f conftest.err conftest.$ac_ext
3.1539 -
3.1540 - # OK, works on sane cases. Now check whether nonexistent headers
3.1541 - # can be detected and how.
3.1542 - cat >conftest.$ac_ext <<_ACEOF
3.1543 -/* confdefs.h. */
3.1544 -_ACEOF
3.1545 -cat confdefs.h >>conftest.$ac_ext
3.1546 -cat >>conftest.$ac_ext <<_ACEOF
3.1547 -/* end confdefs.h. */
3.1548 -#include <ac_nonexistent.h>
3.1549 -_ACEOF
3.1550 -if { (ac_try="$ac_cpp conftest.$ac_ext"
3.1551 -case "(($ac_try" in
3.1552 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.1553 - *) ac_try_echo=$ac_try;;
3.1554 -esac
3.1555 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.1556 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3.1557 - ac_status=$?
3.1558 - grep -v '^ *+' conftest.er1 >conftest.err
3.1559 - rm -f conftest.er1
3.1560 - cat conftest.err >&5
3.1561 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.1562 - (exit $ac_status); } >/dev/null && {
3.1563 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3.1564 - test ! -s conftest.err
3.1565 - }; then
3.1566 - # Broken: success on invalid input.
3.1567 -continue
3.1568 -else
3.1569 - echo "$as_me: failed program was:" >&5
3.1570 -sed 's/^/| /' conftest.$ac_ext >&5
3.1571 -
3.1572 - # Passes both tests.
3.1573 -ac_preproc_ok=:
3.1574 -break
3.1575 -fi
3.1576 -
3.1577 -rm -f conftest.err conftest.$ac_ext
3.1578 -
3.1579 -done
3.1580 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3.1581 -rm -f conftest.err conftest.$ac_ext
3.1582 -if $ac_preproc_ok; then
3.1583 - break
3.1584 -fi
3.1585 -
3.1586 - done
3.1587 - ac_cv_prog_CPP=$CPP
3.1588 -
3.1589 -fi
3.1590 - CPP=$ac_cv_prog_CPP
3.1591 -else
3.1592 - ac_cv_prog_CPP=$CPP
3.1593 -fi
3.1594 -{ echo "$as_me:$LINENO: result: $CPP" >&5
3.1595 -echo "${ECHO_T}$CPP" >&6; }
3.1596 -ac_preproc_ok=false
3.1597 -for ac_c_preproc_warn_flag in '' yes
3.1598 -do
3.1599 - # Use a header file that comes with gcc, so configuring glibc
3.1600 - # with a fresh cross-compiler works.
3.1601 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3.1602 - # <limits.h> exists even on freestanding compilers.
3.1603 - # On the NeXT, cc -E runs the code through the compiler's parser,
3.1604 - # not just through cpp. "Syntax error" is here to catch this case.
3.1605 - cat >conftest.$ac_ext <<_ACEOF
3.1606 -/* confdefs.h. */
3.1607 -_ACEOF
3.1608 -cat confdefs.h >>conftest.$ac_ext
3.1609 -cat >>conftest.$ac_ext <<_ACEOF
3.1610 -/* end confdefs.h. */
3.1611 -#ifdef __STDC__
3.1612 -# include <limits.h>
3.1613 -#else
3.1614 -# include <assert.h>
3.1615 -#endif
3.1616 - Syntax error
3.1617 -_ACEOF
3.1618 -if { (ac_try="$ac_cpp conftest.$ac_ext"
3.1619 -case "(($ac_try" in
3.1620 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.1621 - *) ac_try_echo=$ac_try;;
3.1622 -esac
3.1623 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.1624 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3.1625 - ac_status=$?
3.1626 - grep -v '^ *+' conftest.er1 >conftest.err
3.1627 - rm -f conftest.er1
3.1628 - cat conftest.err >&5
3.1629 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.1630 - (exit $ac_status); } >/dev/null && {
3.1631 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3.1632 - test ! -s conftest.err
3.1633 - }; then
3.1634 - :
3.1635 -else
3.1636 - echo "$as_me: failed program was:" >&5
3.1637 -sed 's/^/| /' conftest.$ac_ext >&5
3.1638 -
3.1639 - # Broken: fails on valid input.
3.1640 -continue
3.1641 -fi
3.1642 -
3.1643 -rm -f conftest.err conftest.$ac_ext
3.1644 -
3.1645 - # OK, works on sane cases. Now check whether nonexistent headers
3.1646 - # can be detected and how.
3.1647 - cat >conftest.$ac_ext <<_ACEOF
3.1648 -/* confdefs.h. */
3.1649 -_ACEOF
3.1650 -cat confdefs.h >>conftest.$ac_ext
3.1651 -cat >>conftest.$ac_ext <<_ACEOF
3.1652 -/* end confdefs.h. */
3.1653 -#include <ac_nonexistent.h>
3.1654 -_ACEOF
3.1655 -if { (ac_try="$ac_cpp conftest.$ac_ext"
3.1656 -case "(($ac_try" in
3.1657 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3.1658 - *) ac_try_echo=$ac_try;;
3.1659 -esac
3.1660 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3.1661 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3.1662 - ac_status=$?
3.1663 - grep -v '^ *+' conftest.er1 >conftest.err
3.1664 - rm -f conftest.er1
3.1665 - cat conftest.err >&5
3.1666 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3.1667 - (exit $ac_status); } >/dev/null && {
3.1668 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3.1669 - test ! -s conftest.err
3.1670 - }; then
3.1671 - # Broken: success on invalid input.
3.1672 -continue
3.1673 -else
3.1674 - echo "$as_me: failed program was:" >&5
3.1675 -sed 's/^/| /' conftest.$ac_ext >&5
3.1676 -
3.1677 - # Passes both tests.
3.1678 -ac_preproc_ok=:
3.1679 -break
3.1680 -fi
3.1681 -
3.1682 -rm -f conftest.err conftest.$ac_ext
3.1683 -
3.1684 -done
3.1685 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3.1686 -rm -f conftest.err conftest.$ac_ext
3.1687 -if $ac_preproc_ok; then
3.1688 - :
3.1689 -else
3.1690 - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3.1691 -See \`config.log' for more details." >&5
3.1692 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3.1693 -See \`config.log' for more details." >&2;}
3.1694 - { (exit 1); exit 1; }; }
3.1695 -fi
3.1696 -
3.1697 -ac_ext=c
3.1698 -ac_cpp='$CPP $CPPFLAGS'
3.1699 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3.1700 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3.1701 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
3.1702 -
3.1703
3.1704 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3.1705 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3.1706 @@ -13606,6 +14778,13 @@
3.1707 Usually this means the macro was only invoked conditionally." >&2;}
3.1708 { (exit 1); exit 1; }; }
3.1709 fi
3.1710 +if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
3.1711 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
3.1712 +Usually this means the macro was only invoked conditionally." >&5
3.1713 +echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
3.1714 +Usually this means the macro was only invoked conditionally." >&2;}
3.1715 + { (exit 1); exit 1; }; }
3.1716 +fi
3.1717 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3.1718 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
3.1719 Usually this means the macro was only invoked conditionally." >&5
3.1720 @@ -14367,15 +15546,7 @@
3.1721 CCDEPMODE!$CCDEPMODE$ac_delim
3.1722 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
3.1723 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
3.1724 -OBJC!$OBJC$ac_delim
3.1725 -OBJCFLAGS!$OBJCFLAGS$ac_delim
3.1726 -ac_ct_OBJC!$ac_ct_OBJC$ac_delim
3.1727 -SED!$SED$ac_delim
3.1728 -CCAS!$CCAS$ac_delim
3.1729 -CCASFLAGS!$CCASFLAGS$ac_delim
3.1730 CPP!$CPP$ac_delim
3.1731 -GREP!$GREP$ac_delim
3.1732 -EGREP!$EGREP$ac_delim
3.1733 build!$build$ac_delim
3.1734 build_cpu!$build_cpu$ac_delim
3.1735 build_vendor!$build_vendor$ac_delim
3.1736 @@ -14384,9 +15555,17 @@
3.1737 host_cpu!$host_cpu$ac_delim
3.1738 host_vendor!$host_vendor$ac_delim
3.1739 host_os!$host_os$ac_delim
3.1740 -OBJCDEPMODE!$OBJCDEPMODE$ac_delim
3.1741 -am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
3.1742 -am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
3.1743 +CC!$CC$ac_delim
3.1744 +CFLAGS!$CFLAGS$ac_delim
3.1745 +CPPFLAGS!$CPPFLAGS$ac_delim
3.1746 +CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
3.1747 +ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
3.1748 +CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
3.1749 +am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
3.1750 +am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
3.1751 +CPP!$CPP$ac_delim
3.1752 +CPPFLAGS!$CPPFLAGS$ac_delim
3.1753 +CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
3.1754 _ACEOF
3.1755
3.1756 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
3.1757 @@ -14428,6 +15607,21 @@
3.1758 ac_delim='%!_!# '
3.1759 for ac_last_try in false false false false false :; do
3.1760 cat >conf$$subs.sed <<_ACEOF
3.1761 +BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
3.1762 +BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
3.1763 +CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
3.1764 +CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
3.1765 +OBJC!$OBJC$ac_delim
3.1766 +OBJCFLAGS!$OBJCFLAGS$ac_delim
3.1767 +ac_ct_OBJC!$ac_ct_OBJC$ac_delim
3.1768 +SED!$SED$ac_delim
3.1769 +CCAS!$CCAS$ac_delim
3.1770 +CCASFLAGS!$CCASFLAGS$ac_delim
3.1771 +GREP!$GREP$ac_delim
3.1772 +EGREP!$EGREP$ac_delim
3.1773 +OBJCDEPMODE!$OBJCDEPMODE$ac_delim
3.1774 +am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
3.1775 +am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
3.1776 POD2MAN!$POD2MAN$ac_delim
3.1777 POD2HTML!$POD2HTML$ac_delim
3.1778 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
3.1779 @@ -14510,6 +15704,47 @@
3.1780 DATADIRNAME!$DATADIRNAME$ac_delim
3.1781 GMOFILES!$GMOFILES$ac_delim
3.1782 INSTOBJEXT!$INSTOBJEXT$ac_delim
3.1783 +_ACEOF
3.1784 +
3.1785 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
3.1786 + break
3.1787 + elif $ac_last_try; then
3.1788 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3.1789 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
3.1790 + { (exit 1); exit 1; }; }
3.1791 + else
3.1792 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3.1793 + fi
3.1794 +done
3.1795 +
3.1796 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
3.1797 +if test -n "$ac_eof"; then
3.1798 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
3.1799 + ac_eof=`expr $ac_eof + 1`
3.1800 +fi
3.1801 +
3.1802 +cat >>$CONFIG_STATUS <<_ACEOF
3.1803 +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
3.1804 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3.1805 +_ACEOF
3.1806 +sed '
3.1807 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
3.1808 +s/^/s,@/; s/!/@,|#_!!_#|/
3.1809 +:n
3.1810 +t n
3.1811 +s/'"$ac_delim"'$/,g/; t
3.1812 +s/$/\\/; p
3.1813 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
3.1814 +' >>$CONFIG_STATUS <conf$$subs.sed
3.1815 +rm -f conf$$subs.sed
3.1816 +cat >>$CONFIG_STATUS <<_ACEOF
3.1817 +CEOF$ac_eof
3.1818 +_ACEOF
3.1819 +
3.1820 +
3.1821 +ac_delim='%!_!# '
3.1822 +for ac_last_try in false false false false false :; do
3.1823 + cat >conf$$subs.sed <<_ACEOF
3.1824 INTLLIBS!$INTLLIBS$ac_delim
3.1825 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
3.1826 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
3.1827 @@ -14520,7 +15755,7 @@
3.1828 LTLIBOBJS!$LTLIBOBJS$ac_delim
3.1829 _ACEOF
3.1830
3.1831 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
3.1832 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
3.1833 break
3.1834 elif $ac_last_try; then
3.1835 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3.1836 @@ -14538,7 +15773,7 @@
3.1837 fi
3.1838
3.1839 cat >>$CONFIG_STATUS <<_ACEOF
3.1840 -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
3.1841 +cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
3.1842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
3.1843 _ACEOF
3.1844 sed '
3.1845 @@ -14801,7 +16036,7 @@
3.1846 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3.1847 s&@INSTALL@&$ac_INSTALL&;t t
3.1848 $ac_datarootdir_hack
3.1849 -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
3.1850 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
3.1851
3.1852 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3.1853 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4.1 --- a/configure.in Wed Dec 21 12:15:06 2011 +1000
4.2 +++ b/configure.in Wed Dec 21 17:13:08 2011 +1000
4.3 @@ -7,6 +7,7 @@
4.4
4.5 AC_ISC_POSIX
4.6 AC_PROG_CC
4.7 +AC_PROG_CC_FOR_BUILD
4.8 AM_PROG_CC_STDC
4.9 AC_PROG_OBJC
4.10 AC_PROG_SED
5.1 --- a/src/Makefile.in Wed Dec 21 12:15:06 2011 +1000
5.2 +++ b/src/Makefile.in Wed Dec 21 17:13:08 2011 +1000
5.3 @@ -373,6 +373,8 @@
5.4 AWK = @AWK@
5.5 BUILD_ARMTEST_FALSE = @BUILD_ARMTEST_FALSE@
5.6 BUILD_ARMTEST_TRUE = @BUILD_ARMTEST_TRUE@
5.7 +BUILD_EXEEXT = @BUILD_EXEEXT@
5.8 +BUILD_OBJEXT = @BUILD_OBJEXT@
5.9 BUILD_SH4X86_FALSE = @BUILD_SH4X86_FALSE@
5.10 BUILD_SH4X86_TRUE = @BUILD_SH4X86_TRUE@
5.11 BUILD_SHARED_FALSE = @BUILD_SHARED_FALSE@
5.12 @@ -385,6 +387,8 @@
5.13 CCAS = @CCAS@
5.14 CCASFLAGS = @CCASFLAGS@
5.15 CCDEPMODE = @CCDEPMODE@
5.16 +CC_FOR_BUILD = @CC_FOR_BUILD@
5.17 +CC_FOR_BUILDDEPMODE = @CC_FOR_BUILDDEPMODE@
5.18 CDROM_LINUX_FALSE = @CDROM_LINUX_FALSE@
5.19 CDROM_LINUX_TRUE = @CDROM_LINUX_TRUE@
5.20 CDROM_NONE_FALSE = @CDROM_NONE_FALSE@
5.21 @@ -392,8 +396,11 @@
5.22 CDROM_OSX_FALSE = @CDROM_OSX_FALSE@
5.23 CDROM_OSX_TRUE = @CDROM_OSX_TRUE@
5.24 CFLAGS = @CFLAGS@
5.25 +CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
5.26 CPP = @CPP@
5.27 CPPFLAGS = @CPPFLAGS@
5.28 +CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
5.29 +CPP_FOR_BUILD = @CPP_FOR_BUILD@
5.30 CYGPATH_W = @CYGPATH_W@
5.31 DATADIRNAME = @DATADIRNAME@
5.32 DEFS = @DEFS@
5.33 @@ -489,8 +496,11 @@
5.34 VIDEO_OSMESA_TRUE = @VIDEO_OSMESA_TRUE@
5.35 XGETTEXT = @XGETTEXT@
5.36 ac_ct_CC = @ac_ct_CC@
5.37 +ac_ct_CC_FOR_BUILD = @ac_ct_CC_FOR_BUILD@
5.38 ac_ct_OBJC = @ac_ct_OBJC@
5.39 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
5.40 +am__fastdepCC_FOR_BUILD_FALSE = @am__fastdepCC_FOR_BUILD_FALSE@
5.41 +am__fastdepCC_FOR_BUILD_TRUE = @am__fastdepCC_FOR_BUILD_TRUE@
5.42 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
5.43 am__fastdepOBJC_FALSE = @am__fastdepOBJC_FALSE@
5.44 am__fastdepOBJC_TRUE = @am__fastdepOBJC_TRUE@
.