Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Molaro <lupus@oddwiz.org>2001-10-08 18:33:48 +0400
committerPaolo Molaro <lupus@oddwiz.org>2001-10-08 18:33:48 +0400
commit5e565c23f3512e269fff5c024c24a22dfc652a17 (patch)
treee01ff000ab007bfed0574059f90de3ae2eb5e486 /configure.in
parentbc9bc0d0834d152001f0c607770d3ad9aba97603 (diff)
Mon Oct 8 20:27:50 CEST 2001 Paolo Molaro <lupus@ximian.com>
* configure.in: define NO_UNALIGNED_ACCESS for platforms that can't read on unaligned boundaries Mon Oct 8 16:12:38 CEST 2001 Paolo Molaro <lupus@ximian.com> * metadata.c, metadata.h: use MonoArrayType to describe the shape of an array. Guard against calling bsearch with a NULL pointer (pointed out by Laurent Rioux, smoux). * image.c: endian fixes by Laurent Rioux. * object.h, object.c: rename MonoStringObject to MonoString and MonoArrayObject to MonoArray. Change some function names to conform to the style mono_<object>_<action>. mono_string_new_utf16 () takes a guint16* as first argument, so don't use char*. Provide macros to do the interesting things on arrays in a portable way. * threads-pthread.c: updates for the API changes and #include <sched.h> (required for sched_yield()). * icall.c: updates for the API changes above. * Makefile.am, mono-endian.c. mono-endian.h: include unaligned read routines for platforms that need them. Mon Oct 8 16:13:55 CEST 2001 Paolo Molaro <lupus@ximian.com> * get.c, get.h: MonoArray changed in MonoArrayType. * main.c: guard against calling bsearch with a NULL pointer (pointed out by Laurent Rioux, smoux). Mon Oct 8 16:13:07 CEST 2001 Paolo Molaro <lupus@ximian.com> * x86/tramp.c: remove mono_get_ansi_string () and use mono_string_to_utf8 () instead. Mon Oct 8 16:14:40 CEST 2001 Paolo Molaro <lupus@ximian.com> * interp.c: use the accessors provided in object.h to deal with MonoArrays. Updates for API renames in metadata. Throw exception in ldelema if index is out of bounds. svn path=/trunk/mono/; revision=1122
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in17
1 files changed, 10 insertions, 7 deletions
diff --git a/configure.in b/configure.in
index 666589b9a71..a50c9ffaba5 100644
--- a/configure.in
+++ b/configure.in
@@ -91,17 +91,16 @@ AC_CHECK_LIB(pthread, pthread_create, [
AC_SUBST(THREAD_LIBS)
TARGET="unknown"
+ACCESS_UNALIGNED="yes"
case "$host" in
-#mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS;;
+#mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; ACCESS_UNALIGNED="no";;
i*86-*-*) TARGET=X86; arch_target=x86;;
-#sparc-sun-4*) TARGET=SPARC;;
-#sparc-sun-*) TARGET=SPARC;;
-#sparc*-*-linux*) TARGET=SPARC;;
-#alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA;;
+sparc*-*-*) TARGET=SPARC; ACCESS_UNALIGNED="no";;
+#alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA; ACCESS_UNALIGNED="no";;
#m68k-*-linux*) TARGET=M68K;;
-#powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC;;
-#arm-*-linux-*) TARGET=ARM;;
+#powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; ACCESS_UNALIGNED="no";;
+#arm-*-linux-*) TARGET=ARM; ACCESS_UNALIGNED="no";;
esac
if test ${TARGET} = unknown; then
@@ -109,6 +108,10 @@ if test ${TARGET} = unknown; then
AC_MSG_WARN("mono has not been ported to $host: some things may not work.")
fi
+if test ${ACCESS_UNALIGNED} = no; then
+ CPPFLAGS="$CPPFLAGS -DNO_UNALIGNED_ACCESS"
+fi
+
AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)