X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=configure.in;h=eb01bc535207cda301e8c7fce4db840351aa2d63;hb=cb80d02d1b066e14ca3ffe6f86083eadf62faa10;hp=43a6da9e10aef9fc3f5441475c4a2e210a6762bd;hpb=b631884cb5a7ca836b7e84fab88471504461a824;p=mono.git diff --git a/configure.in b/configure.in index 43a6da9e10a..eb01bc53520 100644 --- a/configure.in +++ b/configure.in @@ -70,7 +70,8 @@ case "$host" in export CC fi HOST_CC="gcc" - CPPFLAGS="$CPPFLAGS -DWIN32_THREADS -DFD_SETSIZE=1024 -DUNICODE -D_UNICODE" + # Windows 2000 is required that includes Internet Explorer 5.01 + CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DWIN32_THREADS -DFD_SETSIZE=1024" libmono_cflags="-mno-cygwin" libmono_ldflags="-mno-cygwin" libdl= @@ -232,6 +233,9 @@ case "$host" in no_version_script=yes libdl= libgc_threads=pthreads + if test "x$cross_compiling" = "xyes"; then + has_broken_apple_cpp=yes + fi ;; *) AC_MSG_WARN([*** Please add $host to configure.in checks!]) @@ -246,6 +250,7 @@ if test x$need_link_unlink = xyes; then fi AM_CONDITIONAL(PLATFORM_WIN32, test x$platform_win32 = xyes) +AM_CONDITIONAL(PLATFORM_LINUX, test x$target_os = xlinux-gnu) AC_CHECK_TOOL(CC, gcc, gcc) AC_PROG_CC @@ -660,13 +665,6 @@ case "x$gc" in ;; xincluded) - AC_CONFIG_SUBDIRS(libgc) - - # Pass CPPFLAGS to libgc configure - # Maybe we should use a separate variable for this to avoid passing useless and - # potentially problematic defines to libgc (like -D_FILE_OFFSET_BITS=64) - export CPPFLAGS - found_boehm=yes gc_headers=yes use_included_gc=yes @@ -714,9 +712,6 @@ if test "x$large_heap" = "xyes"; then CPPFLAGS="$CPPFLAGS -DLARGE_CONFIG" fi -# tell libgc/configure about what we want -ac_configure_args="$ac_configure_args --disable-embed-check --with-libgc-threads=$libgc_threads $libgc_configure_args" - AM_CONDITIONAL(INCLUDED_LIBGC, test x$use_included_gc = xyes) AC_SUBST(LIBGC_CFLAGS) AC_SUBST(LIBGC_LIBS) @@ -1300,11 +1295,13 @@ if test x$platform_win32 = xno; then dnl *** Checks for math functions *** dnl ********************************* LIBS="$LIBS -lm"; - AC_CHECK_FUNCS(finite, , AC_MSG_CHECKING(for finite in math.h) - AC_TRY_LINK([#include ], - [ finite(0.0); ], - AC_DEFINE(HAVE_FINITE) AC_MSG_RESULT(yes), - AC_MSG_RESULT(no))) + if test "x$has_broken_apple_cpp" != "xyes"; then + AC_CHECK_FUNCS(finite, , AC_MSG_CHECKING(for finite in math.h) + AC_TRY_LINK([#include ], + [ finite(0.0); ], + AC_DEFINE(HAVE_FINITE) AC_MSG_RESULT(yes), + AC_MSG_RESULT(no))) + fi AC_CHECK_FUNCS(isfinite, , AC_MSG_CHECKING(for isfinite in math.h) AC_TRY_LINK([#include ], [ isfinite(0.0); ], @@ -1779,6 +1776,14 @@ case "$host" in JIT_SUPPORTED=yes jit_wanted=true ;; + arm*-darwin*) + TARGET=ARM; + arch_target=arm; + ACCESS_UNALIGNED="no" + JIT_SUPPORTED=yes + CPPFLAGS="$CPPFLAGS -DARM_FPU_NONE=1" + jit_wanted=true + ;; arm*-linux*) TARGET=ARM; arch_target=arm; @@ -1949,7 +1954,7 @@ if test "x$with_tls" = "x__thread"; then ]) fi -if test ${TARGET} = ARM; then +if test ${TARGET} = ARM && test x$cross_compiling = xno && test x$enable_mcs_build != xno; then dnl ****************************************** dnl *** Check to see what FPU is available *** dnl ****************************************** @@ -1973,6 +1978,17 @@ if test ${ACCESS_UNALIGNED} = no; then CPPFLAGS="$CPPFLAGS -DNO_UNALIGNED_ACCESS" fi +case "x$gc" in + xincluded) + # Pass CPPFLAGS to libgc configure + # We should use a separate variable for this to avoid passing useless and + # potentially problematic defines to libgc (like -D_FILE_OFFSET_BITS=64) + # This should be executed late so we pick up the final version of CPPFLAGS + ac_configure_args="$ac_configure_args --disable-embed-check --with-libgc-threads=$libgc_threads $libgc_configure_args \"CPPFLAGS=$CPPFLAGS\"" + AC_CONFIG_SUBDIRS(libgc) + ;; +esac + PREVIEW=yes AC_ARG_WITH(preview, [ --with-preview=yes,no If you want to install the 2.0 FX preview],[ if test x$with_preview = xno; then @@ -2209,7 +2225,6 @@ fi echo 'IL_FLAGS = /debug' >> $srcdir/$mcsdir/build/config.make echo "RUNTIME = $mono_build_root/runtime/mono-wrapper" >> $srcdir/$mcsdir/build/config.make echo "ILDISASM = $mono_build_root/runtime/monodis-wrapper" >> $srcdir/$mcsdir/build/config.make - case $INSTALL in [[\\/$]]* | ?:[[\\/]]* ) mcs_INSTALL=$INSTALL ;; *) mcs_INSTALL=$mono_build_root/$INSTALL ;;