4 # Gross hack to enable 'make dist' on automake 1.9+tar 1.14.
5 # The extra brackets are to foil regex-based scans.
6 m4_ifdef([_A][M_PROG_TAR],[_A][M_SET_OPTION([tar-ustar])])
8 AM_CONFIG_HEADER(config.h)
9 AM_INIT_AUTOMAKE(mono,1.1.5)
14 # In case of cygwin, override LN_S, irrespective of what it determines.
15 # The build uses cygwin, but the actual runtime doesn't.
17 *cygwin* ) LN_S='cp -p';;
29 if test -d $srcdir/libgc ; then
36 # These are the flags that need to be stored in the mono.pc file for
37 # compiling code that will embed Mono
41 AC_SUBST(libmono_cflags)
42 AC_SUBST(libmono_ldflags)
44 dnl if linker handles the version script
47 # Set to yes if Unix sockets cannot be created in an anonymous namespace
50 # Thread configuration inspired by sleepycat's db
51 AC_MSG_CHECKING([host platform characteristics])
54 *-*-mingw*|*-*-cygwin*)
56 AC_DEFINE(PLATFORM_WIN32,1,[Platform is Win32])
57 CC="gcc -mno-cygwin -g"
59 # So libgc configure gets -mno-cygwin
61 # latest libgc already defines GC_WIN32_THREADS
62 # CPPFLAGS="$CPPFLAGS -DGC_WIN32_THREADS -DWIN32_THREADS"
63 CPPFLAGS="$CPPFLAGS -DWIN32_THREADS"
73 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
74 libmono_cflags="-D_REENTRANT"
75 LDFLAGS="$LDFLAGS -pthread"
76 libmono_ldflags="-pthread"
81 # these flags will work for all versions of -STABLE
85 if test "x$PTHREAD_CFLAGS" = "x"; then
86 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_FREEBSD_THREADS"
87 libmono_cflags="-D_THREAD_SAFE"
89 CPPFLAGS="$CPPFLAGS $PTHREAD_CFLAGS -DGC_FREEBSD_THREADS"
90 libmono_cflags="$PTHREAD_CFLAGS"
92 if test "x$PTHREAD_LIBS" = "x"; then
93 LDFLAGS="$LDFLAGS -pthread"
94 libmono_ldflags="-pthread"
96 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
97 libmono_ldflags="$PTHREAD_LIBS"
100 AC_DEFINE(PTHREAD_POINTER_ID)
102 libgc_threads=pthreads
103 # TLS isn't implemented at all on -STABLE
107 # older versions of -CURRENT will break with these flags but testing
108 # indicates these older versions won't run Mono anyway
112 if test "x$PTHREAD_CFLAGS" = "x"; then
113 CPPFLAGS="$CPPFLAGS -DGC_FREEBSD_THREADS"
116 CPPFLAGS="$CPPFLAGS $PTHREAD_CFLAGS -DGC_FREEBSD_THREADS"
117 libmono_cflags="$PTHREAD_CFLAGS"
119 if test "x$PTHREAD_LIBS" = "x"; then
120 LDFLAGS="$LDFLAGS -lpthread"
121 libmono_ldflags="-lpthread"
123 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
124 libmono_ldflags="$PTHREAD_LIBS"
127 AC_DEFINE(PTHREAD_POINTER_ID)
129 libgc_threads=pthreads
130 # TLS is only partially implemented on -CURRENT (compiler support
131 # but NOT library support)
138 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_FREEBSD_THREADS"
139 libmono_cflags="-D_THREAD_SAFE"
140 LDFLAGS="$LDFLAGS -pthread"
141 libmono_ldflags="-pthread"
143 AC_DEFINE(PTHREAD_POINTER_ID)
145 libgc_threads=pthreads
149 CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT"
150 libmono_cflags="-D_REENTRANT"
151 libmono_ldflags="-lpthread"
153 libgc_threads=pthreads
157 CPPFLAGS="$CPPFLAGS -DGC_HPUX_THREADS -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_REENTRANT"
158 CFLAGS="$CFLAGS +ESdbgasm"
159 LDFLAGS="$LDFLAGS -z"
160 libmono_cflags="-D_REENTRANT"
161 libmono_ldflags="-lpthread"
162 libgc_threads=pthreads
167 CPPFLAGS="$CPPFLAGS -DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS -D_REENTRANT"
169 libmono_cflags="-D_REENTRANT"
170 libgc_threads=pthreads
174 CPPFLAGS="$CPPFLAGS -no-cpp-precomp -D_THREAD_SAFE -DGC_MACOSX_THREADS"
175 libmono_cflags="-D_THREAD_SAFE"
176 LDFLAGS="$LDFLAGS -pthread"
177 libmono_ldflags="-pthread"
179 AC_DEFINE(PTHREAD_POINTER_ID)
180 AC_DEFINE(USE_MACH_SEMA)
181 no_version_script=yes
183 libgc_threads=pthreads
186 AC_MSG_WARN([*** Please add $host to configure.in checks!])
193 if test x$need_link_unlink = xyes; then
194 AC_DEFINE(NEED_LINK_UNLINK, 1, [Define if Unix sockets cannot be created in an anonymous namespace])
197 AM_CONDITIONAL(PLATFORM_WIN32, test x$platform_win32 = xyes)
199 AC_CHECK_TOOL(CC, gcc, gcc)
203 dnl We should use AM_PROG_AS, but it's not available on automake/aclocal 1.4
205 # Set ASFLAGS if not already set.
206 : ${CCASFLAGS='$(CFLAGS)'}
210 AC_CHECK_PROG(BISON, bison,yes,no)
211 if test "x$BISON" = "xno";
213 AC_MSG_ERROR([You need to install bison])
216 dnl may require a specific autoconf version
217 dnl AC_PROG_CC_FOR_BUILD
218 dnl CC_FOR_BUILD not automatically detected
221 if test "x$cross_compiling" = "xyes"; then
225 AC_SUBST(CC_FOR_BUILD)
227 AC_SUBST(BUILD_EXEEXT)
234 # Test whenever ld supports -version-script
237 if test "x$lt_cv_prog_gnu_ld" = "xno"; then
238 no_version_script=yes
241 AM_CONDITIONAL(NO_VERSION_SCRIPT, test x$no_version_script = xyes)
243 AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h semaphore.h sys/un.h linux/rtc.h)
245 AC_CHECK_HEADER(zlib.h, [have_zlib=yes], [have_zlib=no])
247 AM_CONDITIONAL(HAVE_ZLIB, test x$have_zlib = xyes)
249 # for mono/metadata/debug-symfile.c
250 AC_CHECK_HEADERS(elf.h)
253 AC_CHECK_HEADERS(wchar.h)
254 AC_CHECK_HEADERS(ieeefp.h)
255 AC_MSG_CHECKING(for isinf)
256 AC_TRY_COMPILE([#include <math.h>], [
260 AC_DEFINE(HAVE_ISINF, 1, [isinf available])
262 # We'll have to use signals
267 # not 64 bit clean in cross-compile
268 AC_CHECK_SIZEOF(void *, 4)
271 if test x"$GCC" = xyes; then
272 WARN='-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings'
273 # The runtime code does not respect ANSI C strict aliasing rules
274 CFLAGS="$CFLAGS -fno-strict-aliasing"
277 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
278 AC_MSG_CHECKING(for -Wdeclaration-after-statement option to gcc)
288 # The Sun Forte compiler complains about inline functions that access static variables
289 # so disable all inlining.
292 CFLAGS="$CFLAGS -Dinline="
296 CFLAGS="$CFLAGS -g $WARN"
298 # Where's the 'mcs' source tree?
299 if test -d $srcdir/mcs; then
305 mcs_topdir='$(top_srcdir)/'$mcsdir
306 mcs_topdir_from_srcdir='$(top_builddir)/'$mcsdir
308 AC_SUBST([mcs_topdir])
309 AC_SUBST([mcs_topdir_from_srcdir])
311 AC_ARG_WITH([libgdiplus],
312 [ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to NO)],
313 [], [with_libgdiplus=installed])
315 case $with_libgdiplus in
316 no|installed) libgdiplus_loc= ;;
317 yes|sibling) libgdiplus_loc=`cd ../libgdiplus && pwd`/src/libgdiplus.la ;;
318 /*) libgdiplus_loc=$with_libgdiplus ;;
319 *) libgdiplus_loc=`pwd`/$with_libgdiplus ;;
321 AC_SUBST([libgdiplus_loc])
323 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
324 if test "x$PKG_CONFIG" = "xno"; then
325 AC_MSG_ERROR([You need to install pkg-config])
328 dnl for use on the build system
329 dnl pkg-config is stupid
330 BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
331 BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
332 AC_SUBST(BUILD_GLIB_CFLAGS)
333 AC_SUBST(BUILD_GLIB_LIBS)
336 AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir],
337 if test x$with_crosspkgdir = "x"; then
338 if test -s $PKG_CONFIG_PATH; then
339 PKG_PATH=$PKG_CONFIG_PATH
342 PKG_PATH=$with_crosspkgdir
343 PKG_CONFIG_PATH=$PKG_PATH
344 export PKG_CONFIG_PATH
348 ## Versions of dependencies
349 GLIB_REQUIRED_VERSION=1.3.11
351 PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >= $GLIB_REQUIRED_VERSION)
353 GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
354 GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
355 GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
356 GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
358 AC_SUBST(GLIB_CFLAGS)
360 AC_SUBST(GMODULE_CFLAGS)
361 AC_SUBST(GMODULE_LIBS)
363 if test x$platform_win32 = xyes; then
364 AC_MSG_CHECKING(for cygwin glib2-dev package)
365 if [ cygcheck --f /usr/lib/libglib-2.0.dll.a | grep -q glib2-devel ]; then
367 AC_MSG_ERROR([Mono cannot be built with the cygwin glib2-devel package installed, because that package doesn't work with -mno-cygwin. Please uninstall it then re-run configure.])
369 AC_MSG_RESULT(not found, ok)
372 AC_MSG_CHECKING(for broken gwin32.h)
373 glib_include=`$PKG_CONFIG --cflags-only-I glib-2.0 | sed -e 's/ -I.*//g' | sed -e 's/-I//g'`
374 if test -f $glib_include/glib/gwin32.h; then
375 if [ grep ftruncate $glib_include/glib/gwin32.h | grep -q define ]; then
376 AC_MSG_RESULT(failed)
378 AC_MSG_ERROR([Your version of gwin32.h is broken and will cause compilation errors when building mono. Please fix it by deleting the line: '$hashmark define ftruncate...' from '$glib_include/glib/gwin32.h' then re-run configure.])
384 AC_ARG_WITH(gc, [ --with-gc=boehm,included,none],[gc=$with_gc],[gc=$gc_default])
386 # Enable support for fast thread-local storage
387 # Some systems have broken support, so we allow to disable it.
388 AC_ARG_WITH(tls, [ --with-tls=__thread,pthread select Thread Local Storage implementation],[],[with_tls=__thread])
390 # Kept for compatibility
391 AC_ARG_WITH(nptl, [ --with-nptl=yes,no deprecated, use --with-tls instead],[],[with_nptl=default])
393 if test "x$with_nptl" != "xdefault"; then
394 if test "x$with_nptl" = "xyes"; then
395 AC_MSG_WARN([--with-nptl=yes is deprecated, use --with-tls=__thread option instead.])
398 if test "x$with_nptl" = "xno"; then
399 AC_MSG_WARN([--with-nptl=no is deprecated, use --with-tls=pthread option instead.])
404 # Enable support for using sigaltstack for SIGSEGV and stack overflow handling
405 # This does not work on some platforms (bug #55253)
406 AC_ARG_WITH(sigaltstack, [ --with-sigaltstack=yes,no enable/disable support for sigaltstack],[],[with_sigaltstack=no])
408 AC_ARG_WITH(static_mono, [ --with-static_mono=yes,no link mono statically to libmono (faster)],[],[with_static_mono=yes])
410 if test "x$enable_static" = "xno"; then
414 AM_CONDITIONAL(STATIC_MONO, test x$with_static_mono != xno)
416 AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsystems.
417 LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug, reflection_emit.],
419 for feature in `echo "$enable_minimal" | sed -e "s/,/ /g"`; do
420 eval "mono_feature_disable_$feature='yes'"
421 AC_MSG_NOTICE([Disabled support for feature: $feature])
423 disabled="Disabled: $enable_minimal"
426 if test "x$mono_feature_disable_aot" = "xyes"; then
427 AC_DEFINE(DISABLE_AOT, 1, [Disable AOT support])
430 if test "x$mono_feature_disable_profiler" = "xyes"; then
431 AC_DEFINE(DISABLE_PROFILER, 1, [Disable default profiler support])
434 if test "x$mono_feature_disable_decimal" = "xyes"; then
435 AC_DEFINE(DISABLE_DECIMAL, 1, [Disable System.Decimal support])
438 if test "x$mono_feature_disable_pinvoke" = "xyes"; then
439 AC_DEFINE(DISABLE_PINVOKE, 1, [Disable P/Invoke support])
442 if test "x$mono_feature_disable_debug" = "xyes"; then
443 AC_DEFINE(DISABLE_DEBUG, 1, [Disable runtime debugging support])
446 if test "x$mono_feature_disable_reflection_emit" = "xyes"; then
447 AC_DEFINE(DISABLE_REFLECTION_EMIT, 1, [Disable reflection emit support])
456 AC_CHECK_HEADERS(gc.h gc/gc.h, gc_headers=yes)
457 AC_CHECK_LIB(gc, GC_malloc, found_boehm="yes",,$libdl)
459 if test "x$found_boehm" != "xyes"; then
460 AC_MSG_ERROR("GC requested but libgc not found! Install libgc or run configure with --with-gc=none.")
462 if test "x$gc_headers" != "xyes"; then
463 AC_MSG_ERROR("GC requested but header files not found! You may need to install them by hand.")
466 AC_DEFINE(HAVE_BOEHM_GC)
467 AC_SUBST(HAVE_BOEHM_GC)
468 LIBGC_LIBS="-lgc $libdl"
469 LIBGC_STATIC_LIBS="$LIBGC_LIBS"
471 # AC_CHECK_FUNCS does not work for some reason...
472 AC_CHECK_LIB(gc, GC_gcj_malloc, found_gcj_malloc="yes",,$libdl)
473 if test "x$found_gcj_malloc" = "xyes"; then
474 AC_DEFINE(HAVE_GC_GCJ_MALLOC)
476 AC_CHECK_LIB(gc, GC_enable, found_gc_enable="yes",,$libdl)
477 if test "x$found_gc_enable" = "xyes"; then
478 AC_DEFINE(HAVE_GC_ENABLE)
483 AC_CONFIG_SUBDIRS(libgc)
490 LIBGC_CFLAGS='-I$(top_srcdir)/libgc/include'
491 LIBGC_LIBS='$(top_builddir)/libgc/libmonogc.la'
492 LIBGC_STATIC_LIBS='$(top_builddir)/libgc/libmonogc-static.la'
494 AC_DEFINE(HAVE_BOEHM_GC)
495 AC_SUBST(HAVE_BOEHM_GC)
498 AC_DEFINE(USE_INCLUDED_LIBGC)
500 # The included libgc contains GCJ support
501 AC_DEFINE(HAVE_GC_GCJ_MALLOC)
502 AC_DEFINE(HAVE_GC_ENABLE)
506 AC_MSG_WARN("Compiling mono without GC.")
509 AC_MSG_ERROR([Invalid argument to --with-gc.])
514 # tell libgc/configure about what we want
515 ac_configure_args="$ac_configure_args --disable-embed-check --with-libgc-threads=$libgc_threads"
517 AM_CONDITIONAL(INCLUDED_LIBGC, test x$use_included_gc = xyes)
518 AC_SUBST(LIBGC_CFLAGS)
520 AC_SUBST(LIBGC_STATIC_LIBS)
524 dnl End of libgc checks
527 if test x$platform_win32 = xno; then
529 dnl ******************************************************************
530 dnl *** Checks for the IKVM JNI interface library ***
531 dnl ******************************************************************
532 AC_ARG_WITH(ikvm-native, [ --with-ikvm-native=yes,no build the IKVM JNI interface library],[with_ikvm_native=$withval],[with_ikvm_native=yes])
535 if test x$with_ikvm_native = xyes; then
536 ikvm_native_dir=ikvm-native
537 jdk_headers_found="IKVM Native"
540 AC_SUBST(ikvm_native_dir)
542 AC_CHECK_FUNCS(getgrgid_r)
543 AC_CHECK_FUNCS(getgrnam_r)
544 AC_CHECK_FUNCS(getpwnam_r)
545 AC_CHECK_FUNCS(getpwuid_r)
546 AC_CHECK_FUNCS(getresuid)
547 AC_CHECK_FUNCS(setresuid)
548 AC_CHECK_FUNCS(kqueue)
549 AC_CHECK_FUNCS(backtrace_symbols)
551 dnl ******************************************************************
552 dnl *** Check for large file support ***
553 dnl *** (If we were using autoconf 2.50 we'd use AC_SYS_LARGEFILE) ***
554 dnl ******************************************************************
556 # Check that off_t can represent 2**63 - 1 correctly, working around
557 # potential compiler bugs. Defines LARGE_FILE_SUPPORT, adds $1 to
558 # CPPFLAGS and sets $large_offt to yes if the test succeeds
560 AC_DEFUN(LARGE_FILES, [
561 large_CPPFLAGS=$CPPFLAGS
562 CPPFLAGS="$CPPFLAGS $1"
564 #include <sys/types.h>
566 #define BIG_OFF_T (((off_t)1<<62)-1+((off_t)1<<62))
569 int big_off_t=((BIG_OFF_T%2147483629==721) &&
570 (BIG_OFF_T%2147483647==1));
579 AC_DEFINE(HAVE_LARGE_FILE_SUPPORT)
580 large_CPPFLAGS="$large_CPPFLAGS $1"
585 CPPFLAGS=$large_CPPFLAGS
588 AC_MSG_CHECKING(if off_t is 64 bits wide)
590 if test $large_offt = no; then
591 AC_MSG_CHECKING(if _FILE_OFFSET_BITS=64 gives 64 bit off_t)
592 LARGE_FILES("-D_FILE_OFFSET_BITS=64")
594 if test $large_offt = no; then
595 AC_MSG_WARN([No 64 bit file size support available])
598 dnl *****************************
599 dnl *** Checks for libsocket ***
600 dnl *****************************
601 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
603 dnl *******************************
604 dnl *** Checks for MSG_NOSIGNAL ***
605 dnl *******************************
606 AC_MSG_CHECKING(for MSG_NOSIGNAL)
607 AC_TRY_COMPILE([#include <sys/socket.h>], [
608 int f = MSG_NOSIGNAL;
612 AC_DEFINE(HAVE_MSG_NOSIGNAL)
614 # We'll have to use signals
618 dnl *****************************
619 dnl *** Checks for SOL_IP ***
620 dnl *****************************
621 AC_MSG_CHECKING(for SOL_IP)
622 AC_TRY_COMPILE([#include <netdb.h>], [
627 AC_DEFINE(HAVE_SOL_IP)
629 # We'll have to use getprotobyname
633 dnl *****************************
634 dnl *** Checks for SOL_IPV6 ***
635 dnl *****************************
636 AC_MSG_CHECKING(for SOL_IPV6)
637 AC_TRY_COMPILE([#include <netdb.h>], [
638 int level = SOL_IPV6;
642 AC_DEFINE(HAVE_SOL_IPV6)
644 # We'll have to use getprotobyname
648 dnl *****************************
649 dnl *** Checks for SOL_TCP ***
650 dnl *****************************
651 AC_MSG_CHECKING(for SOL_TCP)
652 AC_TRY_COMPILE([#include <netdb.h>], [
657 AC_DEFINE(HAVE_SOL_TCP)
659 # We'll have to use getprotobyname
663 dnl *****************************
664 dnl *** Checks for IP_PKTINFO ***
665 dnl *****************************
666 AC_MSG_CHECKING(for IP_PKTINFO)
667 AC_TRY_COMPILE([#include <netdb.h>], [
668 int level = IP_PKTINFO;
672 AC_DEFINE(HAVE_IP_PKTINFO)
677 dnl *********************************
678 dnl *** Check for struct ip_mreqn ***
679 dnl *********************************
680 AC_MSG_CHECKING(for struct ip_mreqn)
681 AC_TRY_COMPILE([#include <netinet/in.h>], [
682 struct ip_mreqn mreq;
683 mreq.imr_address.s_addr = 0;
687 AC_DEFINE(HAVE_STRUCT_IP_MREQN)
689 # We'll just have to try and use struct ip_mreq
691 AC_MSG_CHECKING(for struct ip_mreq)
692 AC_TRY_COMPILE([#include <netinet/in.h>], [
694 mreq.imr_interface.s_addr = 0;
698 AC_DEFINE(HAVE_STRUCT_IP_MREQ)
700 # No multicast support
705 dnl **********************************
706 dnl *** Check for gethostbyname2_r ***
707 dnl **********************************
708 AC_MSG_CHECKING(for gethostbyname2_r)
709 AC_TRY_LINK([#include <netdb.h>], [
710 gethostbyname2_r(NULL,0,NULL,NULL,0,NULL,NULL);
714 AC_DEFINE(HAVE_GETHOSTBYNAME2_R)
719 dnl *****************************
720 dnl *** Checks for libnsl ***
721 dnl *****************************
722 AC_CHECK_LIB(nsl, gethostbyaddr, LIBS="$LIBS -lnsl")
724 AC_CHECK_FUNCS(inet_pton inet_aton)
726 dnl ***********************************************
727 dnl *** Checks for size of sockaddr_un.sun_path ***
728 dnl ***********************************************
729 # AC_CHECK_SIZEOF can't cope with struct members :-(
730 AC_MSG_CHECKING(size of sockaddr_un.sun_path)
731 AC_CACHE_VAL(cv_mono_sizeof_sunpath,
733 #include <sys/types.h>
738 struct sockaddr_un sock_un;
739 FILE *f=fopen("conftestval", "w");
741 fprintf(f, "%d\n", sizeof(sock_un.sun_path));
744 ], cv_mono_sizeof_sunpath=`cat conftestval`,
745 cv_mono_sizeof_sunpath=0,
746 cv_mono_sizeof_sunpath=0)])dnl
747 AC_MSG_RESULT($cv_mono_sizeof_sunpath)
748 AC_DEFINE_UNQUOTED(MONO_SIZEOF_SUNPATH, $cv_mono_sizeof_sunpath)
750 dnl *************************************
751 dnl *** Checks for zero length arrays ***
752 dnl *************************************
753 AC_MSG_CHECKING(whether $CC supports zero length arrays)
761 AC_DEFINE_UNQUOTED(MONO_ZERO_ARRAY_LENGTH, 0)
764 AC_DEFINE_UNQUOTED(MONO_ZERO_ARRAY_LENGTH, 1)
767 dnl *****************************
768 dnl *** Checks for libxnet ***
769 dnl *****************************
772 AC_MSG_CHECKING(for Solaris XPG4 support)
773 if test -f /usr/lib/libxnet.so; then
774 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
775 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
776 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED=1"
783 if test "$GCC" = "yes"; then
784 CFLAGS="$CFLAGS -Wno-char-subscripts"
789 dnl *****************************
790 dnl *** Checks for libpthread ***
791 dnl *****************************
792 # on FreeBSD -STABLE, the pthreads functions all reside in libc_r
793 # and libpthread does not exist
797 AC_CHECK_LIB(pthread, main, LIBS="$LIBS -pthread")
800 AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
803 AC_CHECK_HEADERS(pthread.h)
804 AC_CHECK_FUNCS(pthread_mutex_timedlock)
805 AC_CHECK_FUNCS(pthread_getattr_np pthread_attr_get_np)
806 AC_MSG_CHECKING(for PTHREAD_MUTEX_RECURSIVE)
807 AC_TRY_COMPILE([ #include <pthread.h>], [
808 pthread_mutexattr_t attr;
809 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
814 AC_MSG_WARN(Using mono_mutex_t for recursive mutexes)
815 AC_DEFINE(USE_MONO_MUTEX)
817 AC_CHECK_FUNCS(pthread_attr_setstacksize)
819 dnl ***********************************
820 dnl *** Checks for working __thread ***
821 dnl ***********************************
822 AC_MSG_CHECKING(for working __thread)
823 if test "x$with_tls" != "x__thread"; then
824 AC_MSG_RESULT(disabled)
830 static int res1, res2;
832 void thread_main (void *arg)
847 pthread_create (&t1, NULL, thread_main, 1);
848 pthread_create (&t2, NULL, thread_main, 2);
850 pthread_join (t1, NULL);
851 pthread_join (t2, NULL);
853 return !(res1 + res2 == 2);
863 dnl **************************************
864 dnl *** Checks for working sigaltstack ***
865 dnl **************************************
866 AC_MSG_CHECKING(for working sigaltstack)
867 if test "x$with_sigaltstack" != "xyes"; then
868 AC_MSG_RESULT(disabled)
876 #include <sys/wait.h>
879 sigsegv_signal_handler (int _dummy, siginfo_t *info, void *context)
897 struct sigaltstack sas;
901 sa.sa_sigaction = sigsegv_signal_handler;
902 sigemptyset (&sa.sa_mask);
903 sa.sa_flags = SA_SIGINFO | SA_STACK;
904 if (sigaction (SIGSEGV, &sa, NULL) == -1) {
909 sas.ss_sp = malloc (SIGSTKSZ);
910 sas.ss_size = SIGSTKSZ;
911 sas.ss_flags = SS_ONSTACK;
912 if (sigaltstack (&sas, NULL) == -1) {
917 pthread_attr_init (&attr);
918 if (pthread_create(&id, &attr, loop, &attr) != 0) {
943 for (i = 0; i < 3; ++i) {
945 waitpid (son, &status, WNOHANG);
946 if (WIFEXITED (status) && WEXITSTATUS (status) == 0)
956 AC_DEFINE(HAVE_WORKING_SIGALTSTACK)
963 dnl ********************************
964 dnl *** Checks for semaphore lib ***
965 dnl ********************************
966 # 'Real Time' functions on Solaris
967 # posix4 on Solaris 2.6
968 # pthread (first!) on Linux
969 AC_SEARCH_LIBS(sem_init, pthread rt posix4)
971 dnl ********************************
972 dnl *** Checks for timezone stuff **
973 dnl ********************************
974 AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
980 ], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))
981 if test $ac_cv_struct_tm_gmtoff = yes; then
982 AC_DEFINE(HAVE_TM_GMTOFF)
984 AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone,
989 ], ac_cv_var_timezone=yes, ac_cv_var_timezone=no))
990 if test $ac_cv_var_timezone = yes; then
991 AC_DEFINE(HAVE_TIMEZONE)
993 AC_ERROR(unable to find a way to determine timezone)
997 dnl *********************************
998 dnl *** Checks for math functions ***
999 dnl *********************************
1001 AC_CHECK_FUNCS(finite, , AC_MSG_CHECKING(for finite in math.h)
1002 AC_TRY_LINK([#include <math.h>],
1004 AC_DEFINE(HAVE_FINITE) AC_MSG_RESULT(yes),
1006 AC_CHECK_FUNCS(isfinite, , AC_MSG_CHECKING(for isfinite in math.h)
1007 AC_TRY_LINK([#include <math.h>],
1009 AC_DEFINE(HAVE_ISFINITE) AC_MSG_RESULT(yes),
1012 dnl ****************************************************************
1013 dnl *** Checks for working poll() (macosx defines it but doesn't ***
1014 dnl *** have it in the library (duh)) ***
1015 dnl ****************************************************************
1016 AC_CHECK_FUNCS(poll)
1018 dnl *************************
1019 dnl *** Check for signbit ***
1020 dnl *************************
1021 AC_MSG_CHECKING(for signbit)
1022 AC_TRY_LINK([#include <math.h>], [
1023 int s = signbit(1.0);
1026 AC_DEFINE(HAVE_SIGNBIT)
1031 dnl *********************
1032 dnl *** Check for AIO ***
1033 dnl *********************
1034 AC_MSG_CHECKING([for SIGEV_THREAD definition])
1035 dnl Some systems (FreeBSD at least) may have aio_read
1036 dnl but don't support/define SIGEV_THREAD.
1038 #include <sys/signal.h>
1040 int x = SIGEV_THREAD;
1042 ac_cv_c_sigev_thread=yes
1048 if test "$ac_cv_c_sigev_thread" = "yes" ; then
1049 AC_CHECK_HEADERS(aio.h sys/aio.h)
1050 AC_CHECK_LIB(rt, aio_read, [ LIBS="$LIBS -lrt" ],)
1051 SIGVAL_PTR="undefined"
1052 if test "$ac_cv_header_aio_h" = "yes" -o "$ac_cv_header_sys_aio_h" = "yes" ; then
1053 AC_CHECK_MEMBER(union sigval.sigval_ptr,SIGVAL_PTR="sigval_ptr",, [
1054 #include <sys/signal.h>
1056 AC_CHECK_MEMBER(union sigval.sival_ptr,SIGVAL_PTR="sival_ptr",, [
1057 #include <sys/signal.h>
1059 if test "$SIGVAL_PTR" = "undefined" ; then
1060 AC_MSG_ERROR([Unable to detect field name in 'union sigval'])
1063 AC_DEFINE_UNQUOTED(SIGVAL_PTR,$SIGVAL_PTR,[Pointer field name in 'union sigval'])
1066 dnl **********************************
1067 dnl *** Checks for MonoPosixHelper ***
1068 dnl **********************************
1069 AC_CHECK_HEADERS(checklist.h)
1070 AC_CHECK_HEADERS(fstab.h)
1071 AC_CHECK_HEADERS(sys/sendfile.h)
1072 AC_CHECK_HEADERS(sys/statvfs.h)
1073 AC_CHECK_HEADERS(sys/vfstab.h)
1074 AC_CHECK_FUNCS(getdomainname)
1075 AC_CHECK_FUNCS(setdomainname)
1076 AC_CHECK_FUNCS(fgetgrent)
1077 AC_CHECK_FUNCS(fgetpwent)
1078 AC_CHECK_FUNCS(fgetpwent)
1079 AC_CHECK_FUNCS(getfsstat)
1080 AC_CHECK_FUNCS(posix_fadvise)
1081 AC_CHECK_FUNCS(posix_fallocate)
1082 AC_CHECK_FUNCS(posix_madvise)
1083 AC_CHECK_FUNCS(vsnprintf)
1084 AC_CHECK_FUNCS(sendfile)
1085 AC_CHECK_FUNCS(sethostid)
1086 AC_CHECK_FUNCS(statfs)
1087 AC_CHECK_FUNCS(fstatfs)
1088 AC_CHECK_FUNCS(statvfs)
1089 AC_CHECK_FUNCS(fstatvfs)
1090 AC_CHECK_FUNCS(stime)
1091 AC_CHECK_FUNCS(strerror_r)
1092 AC_CHECK_FUNCS(ttyname_r)
1093 AC_CHECK_SIZEOF(size_t)
1095 [struct dirent.d_off, struct dirent.d_reclen, struct dirent.d_type],,,
1096 [#include <sys/types.h>
1097 #include <dirent.h>])
1099 dnl *********************************
1100 dnl *** Check for Console 2.0 I/O ***
1101 dnl *********************************
1102 AC_CHECK_HEADERS([curses.h])
1103 AC_CHECK_HEADERS([term.h], [], [],
1108 AC_CHECK_HEADERS([termios.h])
1110 jdk_headers_found=no
1111 AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32", AC_ERROR(bad mingw install?))
1112 AC_CHECK_LIB(psapi, main, LIBS="$LIBS -lpsapi", AC_ERROR(bad mingw install?))
1113 AC_CHECK_LIB(ole32, main, LIBS="$LIBS -lole32", AC_ERROR(bad mingw install?))
1115 dnl *********************************
1116 dnl *** Check for struct ip_mreqn ***
1117 dnl *********************************
1118 AC_MSG_CHECKING(for struct ip_mreqn)
1119 AC_TRY_COMPILE([#include <ws2tcpip.h>], [
1120 struct ip_mreqn mreq;
1121 mreq.imr_address.s_addr = 0;
1123 # Yes, we have it...
1125 AC_DEFINE(HAVE_STRUCT_IP_MREQN)
1127 # We'll just have to try and use struct ip_mreq
1129 AC_MSG_CHECKING(for struct ip_mreq)
1130 AC_TRY_COMPILE([#include <ws2tcpip.h>], [
1131 struct ip_mreq mreq;
1132 mreq.imr_interface.s_addr = 0;
1134 # Yes, we have it...
1136 AC_DEFINE(HAVE_STRUCT_IP_MREQ)
1138 # No multicast support
1145 AC_MSG_CHECKING(for socklen_t)
1147 #include <sys/types.h>
1148 #include <sys/socket.h>
1152 ac_cv_c_socklen_t=yes
1153 AC_DEFINE(HAVE_SOCKLEN_T)
1159 AC_MSG_CHECKING(for array element initalizer support)
1160 AC_TRY_COMPILE([#include <sys/socket.h>], [
1161 const int array[] = {[1] = 2,};
1163 # Yes, we have it...
1165 AC_DEFINE(HAVE_ARRAY_ELEM_INIT,1,[Supports C99 array initialization])
1167 # We'll have to use signals
1171 AC_CHECK_FUNCS(trunc, , AC_MSG_CHECKING(for trunc in math.h)
1172 # Simply calling trunc (0.0) is no good since gcc will optimize the call away
1173 AC_TRY_LINK([#include <math.h>],
1174 [ static void *p = &trunc; ],
1176 AC_DEFINE(HAVE_TRUNC)
1182 if test "x$ac_cv_truncl" != "xyes"; then
1183 AC_CHECK_LIB(sunmath, aintl, [ AC_DEFINE(HAVE_AINTL) LIBS="$LIBS -lsunmath"])
1186 dnl ****************************
1187 dnl *** Look for /dev/random ***
1188 dnl ****************************
1190 AC_MSG_CHECKING([if usage of random device is requested])
1191 AC_ARG_ENABLE(dev-random,
1192 [ --disable-dev-random disable the use of the random device],
1193 try_dev_random=$enableval, try_dev_random=yes)
1194 AC_MSG_RESULT($try_dev_random)
1198 NAME_DEV_RANDOM="/dev/srandom"
1201 dnl Win32 does not have /dev/random, they have their own method...
1203 *-*-mingw*|*-*-cygwin*)
1204 ac_cv_have_dev_random=no
1207 dnl Everywhere else, it's /dev/random
1210 NAME_DEV_RANDOM="/dev/random"
1214 AC_DEFINE_UNQUOTED(NAME_DEV_RANDOM, "$NAME_DEV_RANDOM")
1216 dnl Now check if the device actually exists
1218 if test "x$try_dev_random" = "xyes"; then
1219 AC_CACHE_CHECK(for random device, ac_cv_have_dev_random,
1220 [if test -r "$NAME_DEV_RANDOM" ; then
1221 ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi])
1222 if test "x$ac_cv_have_dev_random" = "xyes"; then
1223 AC_DEFINE(HAVE_CRYPT_RNG)
1226 AC_MSG_CHECKING(for random device)
1227 ac_cv_have_dev_random=no
1228 AC_MSG_RESULT(has been disabled)
1231 if test "x$platform_win32" = "xyes"; then
1232 AC_DEFINE(HAVE_CRYPT_RNG)
1235 if test "x$ac_cv_have_dev_random" = "xno" \
1236 && test "x$platform_win32" = "xno"; then
1239 *** A system-provided entropy source was not found on this system.
1240 *** Because of this, the System.Security.Cryptography random number generator
1241 *** will throw a NotImplemented exception.
1243 *** If you are seeing this message, and you know your system DOES have an
1244 *** entropy collection in place, please contact <crichton@gimp.org> and
1245 *** provide information about the system and how to access the random device.
1247 *** Otherwise you can install either egd or prngd and set the environment
1248 *** variable MONO_EGD_SOCKET to point to the daemon's socket to use that.
1252 AC_MSG_CHECKING([if inter-process shared handles are requested])
1253 AC_ARG_ENABLE(shared-handles, [ --disable-shared-handles disable inter-process shared handles], try_shared_handles=$enableval, try_shared_handles=yes)
1254 AC_MSG_RESULT($try_shared_handles)
1255 if test "x$try_shared_handles" != "xyes"; then
1256 AC_DEFINE(DISABLE_SHARED_HANDLES)
1257 AC_SUBST(DISABLE_SHARED_HANDLES)
1265 enable_glob="normal; default"
1268 AC_ARG_WITH(icu, [ --with-icu=yes/no],
1269 if test x$with_icu = xno; then
1271 AC_MSG_RESULT(Will not probe for ICU)
1273 if test x$with_icu = xyes; then
1279 AC_PATH_PROG(ICU_CONFIG, icu-config, no)
1280 if test "x$ICU_CONFIG" = "xno" -o ! -x "$ICU_CONFIG"; then
1281 enable_glob="ICU not found, using non-ICU globalization code."
1283 enable_glob="ICU, unsupported. Version: `$ICU_CONFIG --version`"
1285 ICU_CFLAGS=`$ICU_CONFIG --cppflags`
1286 ICU_LIBS=`$ICU_CONFIG --ldflags`
1289 AC_SUBST(ICU_CFLAGS)
1292 AC_ARG_ENABLE(nunit-tests, [ --enable-nunit-tests Run the nunit tests of the class library on 'make check'])
1293 AM_CONDITIONAL(ENABLE_NUNIT_TESTS, [test x$enable_nunit_tests = xyes])
1296 ACCESS_UNALIGNED="yes"
1306 # mips-sgi-irix5.* | mips-sgi-irix6.*)
1308 # ACCESS_UNALIGNED="no"
1316 x86_64-*-* | amd64-*-*)
1323 if test "x$ac_cv_sizeof_void_p" = "x8"; then
1330 ACCESS_UNALIGNED="no"
1334 if test x"$GCC" = xyes; then
1335 CFLAGS="$CFLAGS -Wno-cast-align"
1338 alpha*-*-linux* | alpha*-*-osf*)
1340 ACCESS_UNALIGNED="no"
1342 INTERP_SUPPORTED=yes
1346 *-*-mingw*|*-*-cygwin*)
1349 # ia64-*-linux* | ia64-*-hpux*)
1353 # ACCESS_UNALIGNED="no";
1354 # case "$host_os" in
1355 # linux*) LIBC="libc.so.6.1";;
1356 # hpux*) LIBC="libc.so.1";;
1362 hppa2.0w-hp-hpux11.00 | hppa64-hp-hpux11.00)
1366 ACCESS_UNALIGNED="no"
1367 INTERP_SUPPORTED=yes
1373 ACCESS_UNALIGNED="no"
1374 INTERP_SUPPORTED=yes
1377 macppc-*-openbsd* | powerpc-*-linux* | powerpc-*-openbsd* | \
1378 powerpc-*-sysv* | powerpc-*-darwin*)
1380 AC_DEFINE(MONO_ARCH_REGPARMS,1,[Architecture uses registers for Parameters])
1385 arm-*-linux-* | armv4l-*-linux-*)
1388 ACCESS_UNALIGNED="no"
1389 INTERP_SUPPORTED=yes
1394 AC_DEFINE(MONO_ARCH_REGPARMS,1,[Architecture uses registers for Parameters])
1396 ACCESS_UNALIGNED="no"
1401 AC_DEFINE(MONO_ARCH_REGPARMS,1,[Architecture uses registers for Parameters])
1403 ACCESS_UNALIGNED="no"
1408 AC_ARG_WITH(jit, [ --with-jit=yes,no If you want to build scripts that default to the JIT],[
1409 if test x$withval = xyes; then
1416 AC_ARG_WITH(interp, [ --with-interp=yes,no If you want to build scripts that default to the interpreter],[
1417 if test x$withval = xyes; then
1425 if test x$JIT_SUPPORTED = xyes; then
1426 if $jit_wanted; then
1428 jit_status="Building and using the JIT"
1430 if $interp_wanted; then
1431 jit_status="Building the JIT, defaulting to the interpreter"
1433 AC_ERROR(No JIT or interpreter support available or selected.)
1437 if $interp_wanted; then
1438 jit_status="interpreter"
1440 AC_ERROR(No JIT or interpreter support available or selected.)
1444 AM_CONDITIONAL(USE_JIT, test x$USEJIT = xtrue)
1452 INTL="libintl.dylib"
1469 if test "x$TARGET" != "xAMD64"; then
1470 # valgrind headers don't compile under x86-64
1471 AC_CHECK_HEADERS(valgrind/memcheck.h)
1474 if test "x$TARGET" = "xAMD64" -o "x$TARGET" = "xX86"; then
1475 if test "x$with_tls" = "x__thread"; then
1477 # On some linux distributions, TLS works in executables, but linking
1478 # against a shared library containing TLS fails with:
1479 # undefined reference to `__tls_get_addr'
1481 rm -f conftest.c conftest.so conftest
1482 echo "static __thread int foo; void main () { foo = 5; }" > conftest.c
1483 gcc -fPIC --shared -o conftest.so conftest.c > /dev/null 2>&1
1484 gcc -o conftest conftest.so > /dev/null 2>&1
1485 if test ! -f conftest; then
1486 AC_MSG_WARN([Disabling usage of __thread.]);
1489 rm -f conftest.c conftest.so conftest
1493 if test "x$with_tls" = "x__thread"; then
1494 AC_DEFINE(HAVE_KW_THREAD)
1495 # Pass the information to libgc
1496 CPPFLAGS="$CPPFLAGS -DUSE_COMPILER_TLS"
1498 AC_MSG_CHECKING(if the tls_model attribute is supported)
1499 AC_TRY_COMPILE([static __thread int foo __attribute__((tls_model("initial-exec")));], [
1502 AC_DEFINE(HAVE_TLS_MODEL_ATTR, 1, [tld_model available])
1508 if test ${TARGET} = ARM; then
1509 dnl ******************************************
1510 dnl *** Check to see what FPU is available ***
1511 dnl ******************************************
1512 AC_MSG_CHECKING(which FPU to use)
1514 AC_TRY_COMPILE([], [
1515 __asm__ ("ldfd f0, [r0]");
1517 AC_TRY_COMPILE([], [
1518 __asm__ ("fldd d0, [r0]");
1519 ], fpu=VFP, fpu=NONE)
1523 CPPFLAGS="$CPPFLAGS -DARM_FPU_$fpu"
1527 if test ${TARGET} = unknown; then
1528 CPPFLAGS="$CPPFLAGS -DNO_PORT"
1529 AC_MSG_WARN("mono has not been ported to $host: some things may not work.")
1532 if test ${ACCESS_UNALIGNED} = no; then
1533 CPPFLAGS="$CPPFLAGS -DNO_UNALIGNED_ACCESS"
1537 AC_ARG_WITH(preview, [ --with-preview=yes,no If you want to install the 2.0 FX preview],[
1538 if test x$with_preview = xyes; then
1543 AM_CONDITIONAL(INSTALL_2_0, test x$PREVIEW = xyes)
1545 AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
1546 AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
1547 AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)
1548 AM_CONDITIONAL(SPARC64, test x$TARGET = xSPARC64)
1549 AM_CONDITIONAL(X86, test x$TARGET = xX86)
1550 AM_CONDITIONAL(AMD64, test x$TARGET = xAMD64)
1551 AM_CONDITIONAL(ALPHA, test x$TARGET = xALPHA)
1552 AM_CONDITIONAL(IA64, test x$TARGET = xIA64)
1553 AM_CONDITIONAL(M68K, test x$TARGET = xM68K)
1554 AM_CONDITIONAL(POWERPC, test x$TARGET = xPOWERPC)
1555 AM_CONDITIONAL(ARM, test x$TARGET = xARM)
1556 AM_CONDITIONAL(S390, test x$TARGET = xS390)
1557 AM_CONDITIONAL(S390x, test x$TARGET = xS390x)
1558 AM_CONDITIONAL(HPPA, test x$TARGET = xHPPA)
1560 AM_CONDITIONAL(JIT_SUPPORTED, test x$JIT_SUPPORTED = xyes)
1561 AM_CONDITIONAL(INTERP_SUPPORTED, test x$interp_wanted = xtrue)
1562 AM_CONDITIONAL(INCLUDED_LIBGC, test x$gc = xincluded)
1567 AC_SUBST(arch_target)
1572 mono_build_root=`pwd`
1573 AC_SUBST(mono_build_root)
1575 if test x$USEJIT = xtrue; then
1576 mono_runtime=mono/mini/mono
1578 mono_runtime=mono/interpreter/mint
1580 AC_SUBST(mono_runtime)
1582 mono_cfg_root=$mono_build_root/runtime
1583 if test x$platform_win32 = xyes; then
1584 mono_cfg_dir=`cygpath -w -a $mono_cfg_root`\\etc
1586 mono_cfg_dir=$mono_cfg_root/etc
1588 AC_SUBST(mono_cfg_dir)
1590 AC_CONFIG_FILES([runtime/mono-wrapper],[chmod +x runtime/mono-wrapper])
1592 AC_CONFIG_COMMANDS([runtime/etc/mono/1.0/machine.config],
1595 [\\/$]* | ?:[\\/]* ) reldir=$srcdir ;;
1597 *) reldir=$depth/$srcdir ;;
1599 $ac_aux_dir/install-sh -d runtime/etc/mono/1.0
1600 cd runtime/etc/mono/1.0
1601 rm -f machine.config
1602 $LN_S $reldir/data/net_1_1/machine.config machine.config
1606 AC_CONFIG_COMMANDS([runtime/etc/mono/2.0/machine.config],
1609 [\\/$]* | ?:[\\/]* ) reldir=$srcdir ;;
1611 *) reldir=$depth/$srcdir ;;
1613 $ac_aux_dir/install-sh -d runtime/etc/mono/2.0
1614 cd runtime/etc/mono/2.0
1615 rm -f machine.config
1616 $LN_S $reldir/data/net_2_0/machine.config machine.config
1624 scripts/mono-nunit.pc
1627 mono/metadata/Makefile
1632 mono/os/win32/Makefile
1633 mono/os/unix/Makefile
1634 mono/arch/x86/Makefile
1635 mono/arch/amd64/Makefile
1636 mono/arch/hppa/Makefile
1637 mono/arch/ppc/Makefile
1638 mono/arch/sparc/Makefile
1639 mono/arch/s390/Makefile
1640 mono/arch/s390x/Makefile
1641 mono/arch/arm/Makefile
1642 mono/arch/alpha/Makefile
1643 mono/interpreter/Makefile
1645 mono/tests/tests-config
1646 mono/benchmark/Makefile
1647 mono/monoburg/Makefile
1648 mono/monograph/Makefile
1649 mono/io-layer/Makefile
1650 mono/handles/Makefile
1652 mono/profiler/Makefile
1653 ikvm-native/Makefile
1659 data/net_1_1/Makefile
1660 data/net_2_0/Makefile
1666 tools/locale-builder/Makefile
1672 NONE) prefix=/usr/local ;;
1674 case $exec_prefix in
1675 NONE | '${prefix}') exec_prefix=$prefix ;;
1678 echo "prefix=$prefix" > $srcdir/$mcsdir/build/config.make
1679 echo "exec_prefix=$exec_prefix" >> $srcdir/$mcsdir/build/config.make
1680 echo "libdir=$prefix/lib" >> $srcdir/$mcsdir/build/config.make
1681 echo 'MCS_FLAGS = $(PLATFORM_DEBUG_FLAGS)' >> $srcdir/$mcsdir/build/config.make
1684 libgdiplus_msg=${libgdiplus_loc:-assumed to be installed}
1687 mcs source: $mcs_topdir
1689 Globalization: $enable_glob
1691 SIGALTSTACK: $with_sigaltstack
1694 JNI support: $jdk_headers_found
1695 libgdiplus: $libgdiplus_msg