3 AM_CONFIG_HEADER(config.h)
4 AM_INIT_AUTOMAKE(mono,0.30.99)
15 if test -d $srcdir/libgc ; then
22 # These are the flags that need to be stored in the mono.pc file for
23 # compiling code that will embed Mono
27 AC_SUBST(libmono_cflags)
28 AC_SUBST(libmono_ldflags)
30 dnl if linker handles the version script
33 # Thread configuration inspired by sleepycat's db
34 AC_MSG_CHECKING([host platform characteristics])
37 *-*-mingw*|*-*-cygwin*)
39 AC_DEFINE(PLATFORM_WIN32)
42 # latest libgc already defines GC_WIN32_THREADS
43 # CPPFLAGS="$CPPFLAGS -DGC_WIN32_THREADS -DWIN32_THREADS"
44 CPPFLAGS="$CPPFLAGS -DWIN32_THREADS"
51 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
52 libmono_cflags="-D_REENTRANT"
53 LDFLAGS="$LDFLAGS -pthread"
54 libmono_ldflags="-pthread"
55 AC_DEFINE(NEED_LINK_UNLINK)
57 libgc_threads=pthreads
59 *-*-*freebsd*|*-*-*openbsd*)
61 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
62 libmono_cflags="-D_THREAD_SAFE"
63 LDFLAGS="$LDFLAGS -pthread"
64 libmono_ldflags="-pthread"
65 AC_DEFINE(NEED_LINK_UNLINK)
66 AC_DEFINE(PTHREAD_POINTER_ID)
68 libgc_threads=pthreads
72 CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -DMONO_USE_EXC_TABLES -D_GNU_SOURCE -D_REENTRANT -fexceptions"
73 libmono_cflags="-DMONO_USE_EXC_TABLES -fexceptions -D_REENTRANT"
74 libmono_ldflags="-lpthread"
76 libgc_threads=pthreads
80 CPPFLAGS="$CPPFLAGS -DGC_HPUX_THREADS -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_REENTRANT"
81 CFLAGS="$CFLAGS +ESdbgasm"
83 libmono_cflags="-D_REENTRANT"
84 libmono_ldflags="-lpthread"
85 libgc_threads=pthreads
86 AC_DEFINE(NEED_LINK_UNLINK)
90 CPPFLAGS="$CPPFLAGS -DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS -D_REENTRANT"
91 AC_DEFINE(NEED_LINK_UNLINK)
92 libmono_cflags="-D_REENTRANT"
93 libgc_threads=pthreads
97 CPPFLAGS="$CPPFLAGS -no-cpp-precomp -D_THREAD_SAFE"
98 libmono_cflags="-D_THREAD_SAFE"
99 LDFLAGS="$LDFLAGS -pthread"
100 libmono_ldflags="-pthread"
101 AC_DEFINE(NEED_LINK_UNLINK)
102 AC_DEFINE(PTHREAD_POINTER_ID)
103 AC_DEFINE(USE_MACH_SEMA)
104 no_version_script=yes
110 AC_MSG_WARN([*** Please add $host to configure.in checks!])
116 AM_CONDITIONAL(PLATFORM_WIN32, test x$platform_win32 = xyes)
117 AM_CONDITIONAL(NO_VERSION_SCRIPT, test x$no_version_script = xyes)
119 AC_CHECK_TOOL(CC, gcc, gcc)
123 dnl We should use AM_PROG_AS, but it's not available on automake/aclocal 1.4
125 # Set ASFLAGS if not already set.
126 : ${CCASFLAGS='$(CFLAGS)'}
130 AC_CHECK_PROG(BISON, bison,yes,no)
131 if test "x$BISON" = "xno";
133 AC_MSG_ERROR([You need to install bison])
136 dnl may require a specific autoconf version
137 dnl AC_PROG_CC_FOR_BUILD
138 dnl CC_FOR_BUILD not automatically detected
141 if test "x$cross_compiling" = "xyes"; then
145 AC_SUBST(CC_FOR_BUILD)
147 AC_SUBST(BUILD_EXEEXT)
154 AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h semaphore.h sys/un.h)
156 # for mono/mini/tramp-x86.c
157 AC_CHECK_HEADERS(valgrind/memcheck.h)
159 # for mono/metadata/debug-symfile.c
160 AC_CHECK_HEADERS(elf.h)
163 AC_CHECK_HEADERS(wchar.h)
165 # not 64 bit clean in cross-compile
166 AC_CHECK_SIZEOF(void *, 4)
169 if test x"$GCC" = xyes; then
170 WARN='-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings'
171 # The runtime code does not respect ANSI C strict aliasing rules
172 CFLAGS="$CFLAGS -fno-strict-aliasing"
174 # The Sun Forte compiler complains about inline functions that access static variables
175 # so disable all inlining.
178 CFLAGS="$CFLAGS -Dinline="
182 CFLAGS="$CFLAGS -g $WARN"
184 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
185 if test "x$PKG_CONFIG" = "xno"; then
186 AC_MSG_ERROR([You need to install pkg-config])
189 dnl for use on the build system
190 dnl pkg-config is stupid
191 BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
192 BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
193 AC_SUBST(BUILD_GLIB_CFLAGS)
194 AC_SUBST(BUILD_GLIB_LIBS)
197 AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir],
198 if test x$with_crosspkgdir = "x"; then
199 if test -s $PKG_CONFIG_PATH; then
200 PKG_PATH=$PKG_CONFIG_PATH
203 PKG_PATH=$with_crosspkgdir
204 PKG_CONFIG_PATH=$PKG_PATH
205 export PKG_CONFIG_PATH
209 ## Versions of dependencies
210 GLIB_REQUIRED_VERSION=1.3.11
212 PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >= $GLIB_REQUIRED_VERSION)
214 GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
215 GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
216 GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
217 GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
219 AC_SUBST(GLIB_CFLAGS)
221 AC_SUBST(GMODULE_CFLAGS)
222 AC_SUBST(GMODULE_LIBS)
224 AC_ARG_WITH(gc, [ --with-gc=boehm,included,none],[gc=$with_gc],[gc=$gc_default])
226 # Enable support for NPTL only features like fast thread-local storage
227 # We can't reliably detect nptl at compile & run time
228 # so this option will stay until nptl becomes more widespread
229 AC_ARG_WITH(nptl, [ --with-nptl Enable support for NPTL])
231 # assembly bundle support, see metadata/make-bundle.pl for more info
232 AC_ARG_WITH(bundle, [ --with-bundle=bundle_template],[
233 BUNDLE_FILE=$with_bundle
234 AC_SUBST(BUNDLE_FILE)
235 AC_DEFINE(WITH_BUNDLE)
237 AM_CONDITIONAL(WITH_BUNDLE, test x$with_bundle != xno)
244 AC_CHECK_HEADERS(gc.h gc/gc.h, gc_headers=yes)
245 AC_CHECK_LIB(gc, GC_malloc, found_boehm="yes",,$libdl)
247 if test "x$found_boehm" != "xyes"; then
248 AC_MSG_ERROR("GC requested but libgc not found! Install libgc or run configure with --with-gc=none.")
250 if test "x$gc_headers" != "xyes"; then
251 AC_MSG_ERROR("GC requested but header files not found! You may need to install them by hand.")
254 AC_DEFINE(HAVE_BOEHM_GC)
255 AC_SUBST(HAVE_BOEHM_GC)
256 LIBGC_LIBS="-lgc $libdl"
258 # AC_CHECK_FUNCS does not work for some reason...
259 AC_CHECK_LIB(gc, GC_gcj_malloc, found_gcj_malloc="yes",,$libdl)
260 if test "x$found_gcj_malloc" = "xyes"; then
261 AC_DEFINE(HAVE_GC_GCJ_MALLOC)
266 AC_CONFIG_SUBDIRS(libgc)
273 LIBGC_CFLAGS='-I$(top_srcdir)/libgc/include'
274 LIBGC_LIBS='$(top_builddir)/libgc/libmonogc.la'
276 AC_DEFINE(HAVE_BOEHM_GC)
277 AC_SUBST(HAVE_BOEHM_GC)
280 AC_DEFINE(USE_INCLUDED_LIBGC)
282 # The included libgc contains GCJ support
283 AC_DEFINE(HAVE_GC_GCJ_MALLOC)
287 AC_MSG_WARN("Compiling mono without GC.")
290 AC_MSG_ERROR([Invalid argument to --with-gc.])
294 we_are_embedded_in_mono=yes
295 export we_are_embedded_in_mono
298 AM_CONDITIONAL(INCLUDED_LIBGC, test x$use_included_gc = xyes)
299 AC_SUBST(LIBGC_CFLAGS)
304 dnl End of libgc checks
307 if test x$platform_win32 = xno; then
308 dnl ******************************************************************
309 dnl *** Check for large file support ***
310 dnl *** (If we were using autoconf 2.50 we'd use AC_SYS_LARGEFILE) ***
311 dnl ******************************************************************
313 # Check that off_t can represent 2**63 - 1 correctly, working around
314 # potential compiler bugs. Defines LARGE_FILE_SUPPORT, adds $1 to
315 # CPPFLAGS and sets $large_offt to yes if the test succeeds
317 AC_DEFUN(LARGE_FILES, [
318 large_CPPFLAGS=$CPPFLAGS
319 CPPFLAGS="$CPPFLAGS $1"
321 #include <sys/types.h>
323 #define BIG_OFF_T (((off_t)1<<62)-1+((off_t)1<<62))
326 int big_off_t=((BIG_OFF_T%2147483629==721) &&
327 (BIG_OFF_T%2147483647==1));
336 AC_DEFINE(HAVE_LARGE_FILE_SUPPORT)
337 large_CPPFLAGS="$large_CPPFLAGS $1"
342 CPPFLAGS=$large_CPPFLAGS
345 AC_MSG_CHECKING(if off_t is 64 bits wide)
347 if test $large_offt = no; then
348 AC_MSG_CHECKING(if _FILE_OFFSET_BITS=64 gives 64 bit off_t)
349 LARGE_FILES("-D_FILE_OFFSET_BITS=64")
351 if test $large_offt = no; then
352 AC_MSG_WARN([No 64 bit file size support available])
355 dnl *****************************
356 dnl *** Checks for libsocket ***
357 dnl *****************************
358 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
360 dnl *******************************
361 dnl *** Checks for MSG_NOSIGNAL ***
362 dnl *******************************
363 AC_MSG_CHECKING(for MSG_NOSIGNAL)
364 AC_TRY_COMPILE([#include <sys/socket.h>], [
365 int f = MSG_NOSIGNAL;
369 AC_DEFINE(HAVE_MSG_NOSIGNAL)
371 # We'll have to use signals
375 dnl *****************************
376 dnl *** Checks for SOL_IP ***
377 dnl *****************************
378 AC_MSG_CHECKING(for SOL_IP)
379 AC_TRY_COMPILE([#include <netdb.h>], [
384 AC_DEFINE(HAVE_SOL_IP)
386 # We'll have to use getprotobyname
390 dnl *****************************
391 dnl *** Checks for SOL_IPV6 ***
392 dnl *****************************
393 AC_MSG_CHECKING(for SOL_IPV6)
394 AC_TRY_COMPILE([#include <netdb.h>], [
395 int level = SOL_IPV6;
399 AC_DEFINE(HAVE_SOL_IPV6)
401 # We'll have to use getprotobyname
405 dnl *****************************
406 dnl *** Checks for SOL_TCP ***
407 dnl *****************************
408 AC_MSG_CHECKING(for SOL_TCP)
409 AC_TRY_COMPILE([#include <netdb.h>], [
414 AC_DEFINE(HAVE_SOL_TCP)
416 # We'll have to use getprotobyname
420 dnl *****************************
421 dnl *** Checks for IP_PKTINFO ***
422 dnl *****************************
423 AC_MSG_CHECKING(for IP_PKTINFO)
424 AC_TRY_COMPILE([#include <netdb.h>], [
425 int level = IP_PKTINFO;
429 AC_DEFINE(HAVE_IP_PKTINFO)
434 dnl *********************************
435 dnl *** Check for struct ip_mreqn ***
436 dnl *********************************
437 AC_MSG_CHECKING(for struct ip_mreqn)
438 AC_TRY_COMPILE([#include <netinet/in.h>], [
439 struct ip_mreqn mreq;
440 mreq.imr_address.s_addr = 0;
444 AC_DEFINE(HAVE_STRUCT_IP_MREQN)
446 # We'll just have to try and use struct ip_mreq
448 AC_MSG_CHECKING(for struct ip_mreq)
449 AC_TRY_COMPILE([#include <netinet/in.h>], [
451 mreq.imr_interface.s_addr = 0;
455 AC_DEFINE(HAVE_STRUCT_IP_MREQ)
457 # No multicast support
462 dnl **********************************
463 dnl *** Check for gethostbyname2_r ***
464 dnl **********************************
465 AC_MSG_CHECKING(for gethostbyname2_r)
466 AC_TRY_LINK([#include <netdb.h>], [
467 gethostbyname2_r(NULL,0,NULL,NULL,0,NULL,NULL);
471 AC_DEFINE(HAVE_GETHOSTBYNAME2_R)
476 dnl *****************************
477 dnl *** Checks for libnsl ***
478 dnl *****************************
479 AC_CHECK_LIB(nsl, gethostbyaddr, LIBS="$LIBS -lnsl")
481 AC_CHECK_FUNCS(inet_pton inet_aton)
483 dnl ***********************************************
484 dnl *** Checks for size of sockaddr_un.sun_path ***
485 dnl ***********************************************
486 # AC_CHECK_SIZEOF can't cope with struct members :-(
487 AC_MSG_CHECKING(size of sockaddr_un.sun_path)
488 AC_CACHE_VAL(cv_mono_sizeof_sunpath,
490 #include <sys/types.h>
495 struct sockaddr_un sock_un;
496 FILE *f=fopen("conftestval", "w");
498 fprintf(f, "%d\n", sizeof(sock_un.sun_path));
501 ], cv_mono_sizeof_sunpath=`cat conftestval`,
502 cv_mono_sizeof_sunpath=0,
503 cv_mono_sizeof_sunpath=0)])dnl
504 AC_MSG_RESULT($cv_mono_sizeof_sunpath)
505 AC_DEFINE_UNQUOTED(MONO_SIZEOF_SUNPATH, $cv_mono_sizeof_sunpath)
507 dnl *************************************
508 dnl *** Checks for zero length arrays ***
509 dnl *************************************
510 AC_MSG_CHECKING(whether $CC supports zero length arrays)
518 AC_DEFINE_UNQUOTED(MONO_ZERO_ARRAY_LENGTH, 0)
521 AC_DEFINE_UNQUOTED(MONO_ZERO_ARRAY_LENGTH, 1)
524 dnl *****************************
525 dnl *** Checks for libxnet ***
526 dnl *****************************
529 AC_MSG_CHECKING(for Solaris XPG4 support)
530 if test -f /usr/lib/libxnet.so; then
531 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
532 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
533 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED=1"
540 if test "$GCC" = "yes"; then
541 CFLAGS="$CFLAGS -Wno-char-subscripts"
546 dnl *****************************
547 dnl *** Checks for libpthread ***
548 dnl *****************************
549 AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
550 AC_CHECK_HEADERS(pthread.h)
551 AC_CHECK_FUNCS(pthread_mutex_timedlock)
552 AC_MSG_CHECKING(for PTHREAD_MUTEX_RECURSIVE)
553 AC_TRY_COMPILE([ #include <pthread.h>], [
554 pthread_mutexattr_t attr;
555 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
560 AC_MSG_WARN(Using mono_mutex_t for recursive mutexes)
561 AC_DEFINE(USE_MONO_MUTEX)
563 AC_CHECK_FUNCS(pthread_attr_setstacksize)
565 dnl ***********************************
566 dnl *** Checks for working __thread ***
567 dnl ***********************************
568 AC_MSG_CHECKING(for working __thread)
573 static int res1, res2;
575 void thread_main (void *arg)
590 pthread_create (&t1, NULL, thread_main, 1);
591 pthread_create (&t2, NULL, thread_main, 2);
593 pthread_join (t1, NULL);
594 pthread_join (t2, NULL);
596 return !(res1 + res2 == 2);
599 if test "x$with_nptl" = "x"; then
600 AC_MSG_RESULT(disabled)
603 AC_DEFINE(HAVE_KW_THREAD)
609 dnl ********************************
610 dnl *** Checks for semaphore lib ***
611 dnl ********************************
612 # 'Real Time' functions on Solaris
613 # posix4 on Solaris 2.6
614 # pthread (first!) on Linux
615 AC_SEARCH_LIBS(sem_init, pthread rt posix4)
617 dnl ********************************
618 dnl *** Checks for timezone stuff **
619 dnl ********************************
620 AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
626 ], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))
627 if test $ac_cv_struct_tm_gmtoff = yes; then
628 AC_DEFINE(HAVE_TM_GMTOFF)
630 AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone,
635 ], ac_cv_var_timezone=yes, ac_cv_var_timezone=no))
636 if test $ac_cv_var_timezone = yes; then
637 AC_DEFINE(HAVE_TIMEZONE)
639 AC_ERROR(unable to find a way to determine timezone)
643 dnl *********************************
644 dnl *** Checks for math functions ***
645 dnl *********************************
647 AC_CHECK_FUNCS(finite, , AC_MSG_CHECKING(for finite in math.h)
648 AC_TRY_LINK([#include <math.h>],
650 AC_DEFINE(HAVE_FINITE) AC_MSG_RESULT(yes),
652 AC_CHECK_FUNCS(isfinite, , AC_MSG_CHECKING(for isfinite in math.h)
653 AC_TRY_LINK([#include <math.h>],
655 AC_DEFINE(HAVE_ISFINITE) AC_MSG_RESULT(yes),
658 dnl ****************************************************************
659 dnl *** Checks for working poll() (macosx defines it but doesn't ***
660 dnl *** have it in the library (duh)) ***
661 dnl ****************************************************************
664 dnl *************************
665 dnl *** Check for signbit ***
666 dnl *************************
667 AC_MSG_CHECKING(for signbit)
668 AC_TRY_LINK([#include <math.h>], [
669 int s = signbit(1.0);
672 AC_DEFINE(HAVE_SIGNBIT)
677 AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32", AC_ERROR(bad mingw install?))
678 AC_CHECK_LIB(psapi, main, LIBS="$LIBS -lpsapi", AC_ERROR(bad mingw install?))
682 AC_MSG_CHECKING(for socklen_t)
684 #include <sys/types.h>
685 #include <sys/socket.h>
689 ac_cv_c_socklen_t=yes
690 AC_DEFINE(HAVE_SOCKLEN_T)
696 AC_CHECK_FUNCS(truncl, , AC_MSG_CHECKING(for truncl in math.h)
697 AC_TRY_LINK([#include <math.h>],
699 AC_DEFINE(HAVE_TRUNCL) AC_MSG_RESULT(yes),
702 dnl ****************************
703 dnl *** Look for /dev/random ***
704 dnl ****************************
706 AC_MSG_CHECKING([if usage of random device is requested])
707 AC_ARG_ENABLE(dev-random,
708 [ --disable-dev-random disable the use of the random device],
709 try_dev_random=$enableval, try_dev_random=yes)
710 AC_MSG_RESULT($try_dev_random)
714 NAME_DEV_RANDOM="/dev/srandom"
717 dnl Win32 does not have /dev/random, they have their own method...
719 *-*-mingw*|*-*-cygwin*)
720 ac_cv_have_dev_random = no
723 dnl Everywhere else, it's /dev/random
726 NAME_DEV_RANDOM="/dev/random"
730 AC_DEFINE_UNQUOTED(NAME_DEV_RANDOM, "$NAME_DEV_RANDOM")
732 dnl Now check if the device actually exists
734 if test "x$try_dev_random" = "xyes"; then
735 AC_CACHE_CHECK(for random device, ac_cv_have_dev_random,
736 [if test -r "$NAME_DEV_RANDOM" ; then
737 ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi])
738 if test "x$ac_cv_have_dev_random" = "xyes"; then
739 AC_DEFINE(HAVE_CRYPT_RNG)
742 AC_MSG_CHECKING(for random device)
743 ac_cv_have_dev_random=no
744 AC_MSG_RESULT(has been disabled)
747 if test "x$platform_win32" = "xyes"; then
748 AC_DEFINE(HAVE_CRYPT_RNG)
751 if test "x$ac_cv_have_dev_random" = "xno" \
752 && test "x$platform_win32" = "xno"; then
755 *** A system-provided entropy source was not found on this system.
756 *** Because of this, the System.Security.Cryptography random number generator
757 *** will throw a NotImplemented exception.
759 *** If you are seeing this message, and you know your system DOES have an
760 *** entropy collection in place, please contact <crichton@gimp.org> and
761 *** provide information about the system and how to access the random device.
763 *** For those systems who lack a random device, EGD support is forthcoming.
767 AC_MSG_CHECKING([if inter-process shared handles are requested])
768 AC_ARG_ENABLE(shared-handles, [ --disable-shared-handles disable inter-process shared handles], try_shared_handles=$enableval, try_shared_handles=yes)
769 AC_MSG_RESULT($try_shared_handles)
770 if test "x$try_shared_handles" != "xyes"; then
771 AC_DEFINE(DISABLE_SHARED_HANDLES)
772 AC_SUBST(DISABLE_SHARED_HANDLES)
778 AC_PATH_PROG(ICU_CONFIG, icu-config, no)
779 if test "x$ICU_CONFIG" = "xno" -o ! -x "$ICU_CONFIG"; then
780 AC_MSG_WARN([Only invariant locale available; install ICU for I18N support])
781 enable_icu="no, if you want full i18n support download it from: http://oss.software.ibm.com/icu/index.html"
783 enable_icu="yes. Version: `$ICU_CONFIG --version`"
785 ICU_CFLAGS=`$ICU_CONFIG --cppflags`
786 ICU_LIBS=`$ICU_CONFIG --ldflags`
792 ACCESS_UNALIGNED="yes"
798 # mips-sgi-irix5.* | mips-sgi-irix6.*)
800 # ACCESS_UNALIGNED="no"
810 ACCESS_UNALIGNED="no"
812 # alpha*-*-linux* | alpha*-*-osf*)
814 # ACCESS_UNALIGNED="no"
816 # ia64-*-linux* | ia64-*-hpux*)
820 # ACCESS_UNALIGNED="no";
822 # linux*) LIBC="libc.so.6.1";;
823 # hpux*) LIBC="libc.so.1";;
829 hppa2.0w-hp-hpux11.00 | hppa64-hp-hpux11.00)
832 ACCESS_UNALIGNED="no"
834 macppc-*-openbsd* | powerpc-*-linux* | powerpc-*-openbsd* | \
835 powerpc-*-sysv* | powerpc-*-darwin*)
840 arm-*-linux-* | armv4l-*-linux-*)
843 ACCESS_UNALIGNED="no"
848 ACCESS_UNALIGNED="no"
852 if test ${TARGET} = ARM; then
853 dnl ******************************************
854 dnl *** Check to see what FPU is available ***
855 dnl ******************************************
856 AC_MSG_CHECKING(which FPU to use)
859 __asm__ ("ldfd f0, [r0]");
862 __asm__ ("fldd d0, [r0]");
863 ], fpu=VFP, fpu=NONE)
867 CPPFLAGS="$CPPFLAGS -DARM_FPU_$fpu"
871 if test ${TARGET} = unknown; then
872 CPPFLAGS="$CPPFLAGS -DNO_PORT"
873 AC_MSG_WARN("mono has not been ported to $host: some things may not work.")
876 if test ${ACCESS_UNALIGNED} = no; then
877 CPPFLAGS="$CPPFLAGS -DNO_UNALIGNED_ACCESS"
880 AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
881 AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
882 AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)
883 AM_CONDITIONAL(X86, test x$TARGET = xX86)
884 AM_CONDITIONAL(ALPHA, test x$TARGET = xALPHA)
885 AM_CONDITIONAL(IA64, test x$TARGET = xIA64)
886 AM_CONDITIONAL(M68K, test x$TARGET = xM68K)
887 AM_CONDITIONAL(POWERPC, test x$TARGET = xPOWERPC)
888 AM_CONDITIONAL(ARM, test x$TARGET = xARM)
889 AM_CONDITIONAL(S390, test x$TARGET = xS390)
890 AM_CONDITIONAL(HPPA, test x$TARGET = xHPPA)
892 AM_CONDITIONAL(JIT_SUPPORTED, test x$JIT_SUPPORTED = xyes)
896 AC_SUBST(arch_target)
907 mono/metadata/Makefile
912 mono/os/win32/Makefile
913 mono/os/unix/Makefile
914 mono/arch/x86/Makefile
915 mono/arch/hppa/Makefile
916 mono/arch/ppc/Makefile
917 mono/arch/sparc/Makefile
918 mono/arch/s390/Makefile
919 mono/arch/arm/Makefile
920 mono/arch/alpha/Makefile
921 mono/interpreter/Makefile
923 mono/tests/tests-config
924 mono/benchmark/Makefile
925 mono/monoburg/Makefile
926 mono/monograph/Makefile
927 mono/io-layer/Makefile
928 mono/handles/Makefile
930 mono/profiler/Makefile