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=
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!])
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
;;
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
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)
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 <math.h>],
- [ 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 <math.h>],
+ [ 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 <math.h>],
[ isfinite(0.0); ],
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;
])
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 ******************************************
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
cd $depth
],[LN_S='$LN_S'])
+AC_CONFIG_COMMANDS([runtime/etc/mono/2.0/Browsers/Compat.browser],
+[ depth=../../../../..
+ case $srcdir in
+ [[\\/$]]* | ?:[[\\/]]* ) reldir=$srcdir ;;
+ .) reldir=$depth ;;
+ *) reldir=$depth/$srcdir ;;
+ esac
+ $ac_aux_dir/install-sh -d runtime/etc/mono/2.0/Browsers/
+ cd runtime/etc/mono/2.0/Browsers
+ rm -f Compat.browser
+ $LN_S $reldir/data/net_2_0/Browsers/Compat.browser Compat.browser
+ cd $depth
+],[LN_S='$LN_S'])
+
AC_OUTPUT([
Makefile
mono-uninstalled.pc
data/Makefile
data/net_1_1/Makefile
data/net_2_0/Makefile
+data/net_2_0/Browsers/Makefile
data/mint.pc
data/mono.pc
data/mono-cairo.pc
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 ;;