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.7)
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(poll.h)
254 AC_CHECK_HEADERS(sys/poll.h)
255 AC_CHECK_HEADERS(sys/wait.h)
256 AC_CHECK_HEADERS(grp.h)
257 AC_CHECK_HEADERS(syslog.h)
260 AC_CHECK_HEADERS(wchar.h)
261 AC_CHECK_HEADERS(ieeefp.h)
262 AC_MSG_CHECKING(for isinf)
263 AC_TRY_LINK([#include <math.h>], [
267 AC_DEFINE(HAVE_ISINF, 1, [isinf available])
269 # We'll have to use signals
274 # not 64 bit clean in cross-compile
275 AC_CHECK_SIZEOF(void *, 4)
278 if test x"$GCC" = xyes; then
279 WARN='-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings'
280 # The runtime code does not respect ANSI C strict aliasing rules
281 CFLAGS="$CFLAGS -fno-strict-aliasing"
284 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
285 AC_MSG_CHECKING(for -Wdeclaration-after-statement option to gcc)
295 # The Sun Forte compiler complains about inline functions that access static variables
296 # so disable all inlining.
299 CFLAGS="$CFLAGS -Dinline="
303 CFLAGS="$CFLAGS -g $WARN"
305 # Where's the 'mcs' source tree?
306 if test -d $srcdir/mcs; then
312 mcs_topdir='$(top_srcdir)/'$mcsdir
313 mcs_topdir_from_srcdir='$(top_builddir)/'$mcsdir
315 AC_SUBST([mcs_topdir])
316 AC_SUBST([mcs_topdir_from_srcdir])
318 AC_ARG_WITH([libgdiplus],
319 [ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to NO)],
320 [], [with_libgdiplus=installed])
322 case $with_libgdiplus in
323 no|installed) libgdiplus_loc= ;;
324 yes|sibling) libgdiplus_loc=`cd ../libgdiplus && pwd`/src/libgdiplus.la ;;
325 /*) libgdiplus_loc=$with_libgdiplus ;;
326 *) libgdiplus_loc=`pwd`/$with_libgdiplus ;;
328 AC_SUBST([libgdiplus_loc])
330 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
331 if test "x$PKG_CONFIG" = "xno"; then
332 AC_MSG_ERROR([You need to install pkg-config])
335 dnl for use on the build system
336 dnl pkg-config is stupid
337 BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
338 BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
339 AC_SUBST(BUILD_GLIB_CFLAGS)
340 AC_SUBST(BUILD_GLIB_LIBS)
343 AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir],
344 if test x$with_crosspkgdir = "x"; then
345 if test -s $PKG_CONFIG_PATH; then
346 pkg_config_path=$PKG_CONFIG_PATH
349 pkg_config_path=$with_crosspkgdir
350 PKG_CONFIG_PATH=$pkg_config_path
351 export PKG_CONFIG_PATH
355 ## Versions of dependencies
356 GLIB_REQUIRED_VERSION=1.3.11
358 PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >= $GLIB_REQUIRED_VERSION)
360 GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
361 GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
362 GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
363 GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
365 AC_SUBST(GLIB_CFLAGS)
367 AC_SUBST(GMODULE_CFLAGS)
368 AC_SUBST(GMODULE_LIBS)
370 if test x$platform_win32 = xyes; then
371 AC_MSG_CHECKING(for cygwin glib2-dev package)
372 if [ cygcheck --f /usr/lib/libglib-2.0.dll.a | grep -q glib2-devel ]; then
374 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.])
376 AC_MSG_RESULT(not found, ok)
379 AC_MSG_CHECKING(for broken gwin32.h)
380 glib_include=`$PKG_CONFIG --cflags-only-I glib-2.0 | sed -e 's/ -I.*//g' | sed -e 's/-I//g'`
381 if test -f $glib_include/glib/gwin32.h; then
382 if [ grep ftruncate $glib_include/glib/gwin32.h | grep -q define ]; then
383 AC_MSG_RESULT(failed)
385 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.])
391 AC_ARG_WITH(gc, [ --with-gc=boehm,included,none],[gc=$with_gc],[gc=$gc_default])
393 # Enable support for fast thread-local storage
394 # Some systems have broken support, so we allow to disable it.
395 AC_ARG_WITH(tls, [ --with-tls=__thread,pthread select Thread Local Storage implementation],[],[with_tls=__thread])
397 # Kept for compatibility
398 AC_ARG_WITH(nptl, [ --with-nptl=yes,no deprecated, use --with-tls instead],[],[with_nptl=default])
400 if test "x$with_nptl" != "xdefault"; then
401 if test "x$with_nptl" = "xyes"; then
402 AC_MSG_WARN([--with-nptl=yes is deprecated, use --with-tls=__thread option instead.])
405 if test "x$with_nptl" = "xno"; then
406 AC_MSG_WARN([--with-nptl=no is deprecated, use --with-tls=pthread option instead.])
411 # Enable support for using sigaltstack for SIGSEGV and stack overflow handling
412 # This does not work on some platforms (bug #55253)
413 AC_ARG_WITH(sigaltstack, [ --with-sigaltstack=yes,no enable/disable support for sigaltstack],[],[with_sigaltstack=no])
415 AC_ARG_WITH(static_mono, [ --with-static_mono=yes,no link mono statically to libmono (faster)],[],[with_static_mono=yes])
417 if test "x$enable_static" = "xno"; then
421 AM_CONDITIONAL(STATIC_MONO, test x$with_static_mono != xno)
423 AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsystems.
424 LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug, reflection_emit.],
426 for feature in `echo "$enable_minimal" | sed -e "s/,/ /g"`; do
427 eval "mono_feature_disable_$feature='yes'"
428 AC_MSG_NOTICE([Disabled support for feature: $feature])
430 disabled="Disabled: $enable_minimal"
433 if test "x$mono_feature_disable_aot" = "xyes"; then
434 AC_DEFINE(DISABLE_AOT, 1, [Disable AOT support])
437 if test "x$mono_feature_disable_profiler" = "xyes"; then
438 AC_DEFINE(DISABLE_PROFILER, 1, [Disable default profiler support])
441 if test "x$mono_feature_disable_decimal" = "xyes"; then
442 AC_DEFINE(DISABLE_DECIMAL, 1, [Disable System.Decimal support])
445 if test "x$mono_feature_disable_pinvoke" = "xyes"; then
446 AC_DEFINE(DISABLE_PINVOKE, 1, [Disable P/Invoke support])
449 if test "x$mono_feature_disable_debug" = "xyes"; then
450 AC_DEFINE(DISABLE_DEBUG, 1, [Disable runtime debugging support])
453 if test "x$mono_feature_disable_reflection_emit" = "xyes"; then
454 AC_DEFINE(DISABLE_REFLECTION_EMIT, 1, [Disable reflection emit support])
463 AC_CHECK_HEADERS(gc.h gc/gc.h, gc_headers=yes)
464 AC_CHECK_LIB(gc, GC_malloc, found_boehm="yes",,$libdl)
466 if test "x$found_boehm" != "xyes"; then
467 AC_MSG_ERROR("GC requested but libgc not found! Install libgc or run configure with --with-gc=none.")
469 if test "x$gc_headers" != "xyes"; then
470 AC_MSG_ERROR("GC requested but header files not found! You may need to install them by hand.")
473 AC_DEFINE(HAVE_BOEHM_GC)
474 AC_SUBST(HAVE_BOEHM_GC)
475 LIBGC_LIBS="-lgc $libdl"
476 LIBGC_STATIC_LIBS="$LIBGC_LIBS"
478 # AC_CHECK_FUNCS does not work for some reason...
479 AC_CHECK_LIB(gc, GC_gcj_malloc, found_gcj_malloc="yes",,$libdl)
480 if test "x$found_gcj_malloc" = "xyes"; then
481 AC_DEFINE(HAVE_GC_GCJ_MALLOC)
483 AC_CHECK_LIB(gc, GC_enable, found_gc_enable="yes",,$libdl)
484 if test "x$found_gc_enable" = "xyes"; then
485 AC_DEFINE(HAVE_GC_ENABLE)
490 AC_CONFIG_SUBDIRS(libgc)
497 LIBGC_CFLAGS='-I$(top_srcdir)/libgc/include'
498 LIBGC_LIBS='$(top_builddir)/libgc/libmonogc.la'
499 LIBGC_STATIC_LIBS='$(top_builddir)/libgc/libmonogc-static.la'
501 AC_DEFINE(HAVE_BOEHM_GC)
502 AC_SUBST(HAVE_BOEHM_GC)
505 AC_DEFINE(USE_INCLUDED_LIBGC)
507 # The included libgc contains GCJ support
508 AC_DEFINE(HAVE_GC_GCJ_MALLOC)
509 AC_DEFINE(HAVE_GC_ENABLE)
513 AC_MSG_WARN("Compiling mono without GC.")
516 AC_MSG_ERROR([Invalid argument to --with-gc.])
521 # tell libgc/configure about what we want
522 ac_configure_args="$ac_configure_args --disable-embed-check --with-libgc-threads=$libgc_threads"
524 AM_CONDITIONAL(INCLUDED_LIBGC, test x$use_included_gc = xyes)
525 AC_SUBST(LIBGC_CFLAGS)
527 AC_SUBST(LIBGC_STATIC_LIBS)
531 dnl End of libgc checks
534 if test x$platform_win32 = xno; then
536 dnl ******************************************************************
537 dnl *** Checks for the IKVM JNI interface library ***
538 dnl ******************************************************************
539 AC_ARG_WITH(ikvm-native, [ --with-ikvm-native=yes,no build the IKVM JNI interface library],[with_ikvm_native=$withval],[with_ikvm_native=yes])
542 if test x$with_ikvm_native = xyes; then
543 ikvm_native_dir=ikvm-native
544 jdk_headers_found="IKVM Native"
547 AC_SUBST(ikvm_native_dir)
549 AC_CHECK_FUNCS(getgrgid_r)
550 AC_CHECK_FUNCS(getgrnam_r)
551 AC_CHECK_FUNCS(getpwnam_r)
552 AC_CHECK_FUNCS(getpwuid_r)
553 AC_CHECK_FUNCS(getresuid)
554 AC_CHECK_FUNCS(setresuid)
555 AC_CHECK_FUNCS(kqueue)
556 AC_CHECK_FUNCS(backtrace_symbols)
558 dnl ******************************************************************
559 dnl *** Check for large file support ***
560 dnl *** (If we were using autoconf 2.50 we'd use AC_SYS_LARGEFILE) ***
561 dnl ******************************************************************
563 # Check that off_t can represent 2**63 - 1 correctly, working around
564 # potential compiler bugs. Defines LARGE_FILE_SUPPORT, adds $1 to
565 # CPPFLAGS and sets $large_offt to yes if the test succeeds
567 AC_DEFUN(LARGE_FILES, [
568 large_CPPFLAGS=$CPPFLAGS
569 CPPFLAGS="$CPPFLAGS $1"
571 #include <sys/types.h>
573 #define BIG_OFF_T (((off_t)1<<62)-1+((off_t)1<<62))
576 int big_off_t=((BIG_OFF_T%2147483629==721) &&
577 (BIG_OFF_T%2147483647==1));
586 AC_DEFINE(HAVE_LARGE_FILE_SUPPORT)
587 large_CPPFLAGS="$large_CPPFLAGS $1"
592 CPPFLAGS=$large_CPPFLAGS
595 AC_MSG_CHECKING(if off_t is 64 bits wide)
597 if test $large_offt = no; then
598 AC_MSG_CHECKING(if _FILE_OFFSET_BITS=64 gives 64 bit off_t)
599 LARGE_FILES("-D_FILE_OFFSET_BITS=64")
601 if test $large_offt = no; then
602 AC_MSG_WARN([No 64 bit file size support available])
605 dnl *****************************
606 dnl *** Checks for libsocket ***
607 dnl *****************************
608 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
610 dnl *******************************
611 dnl *** Checks for MSG_NOSIGNAL ***
612 dnl *******************************
613 AC_MSG_CHECKING(for MSG_NOSIGNAL)
614 AC_TRY_COMPILE([#include <sys/socket.h>], [
615 int f = MSG_NOSIGNAL;
619 AC_DEFINE(HAVE_MSG_NOSIGNAL)
621 # We'll have to use signals
625 dnl *****************************
626 dnl *** Checks for SOL_IP ***
627 dnl *****************************
628 AC_MSG_CHECKING(for SOL_IP)
629 AC_TRY_COMPILE([#include <netdb.h>], [
634 AC_DEFINE(HAVE_SOL_IP)
636 # We'll have to use getprotobyname
640 dnl *****************************
641 dnl *** Checks for SOL_IPV6 ***
642 dnl *****************************
643 AC_MSG_CHECKING(for SOL_IPV6)
644 AC_TRY_COMPILE([#include <netdb.h>], [
645 int level = SOL_IPV6;
649 AC_DEFINE(HAVE_SOL_IPV6)
651 # We'll have to use getprotobyname
655 dnl *****************************
656 dnl *** Checks for SOL_TCP ***
657 dnl *****************************
658 AC_MSG_CHECKING(for SOL_TCP)
659 AC_TRY_COMPILE([#include <netdb.h>], [
664 AC_DEFINE(HAVE_SOL_TCP)
666 # We'll have to use getprotobyname
670 dnl *****************************
671 dnl *** Checks for IP_PKTINFO ***
672 dnl *****************************
673 AC_MSG_CHECKING(for IP_PKTINFO)
674 AC_TRY_COMPILE([#include <netdb.h>], [
675 int level = IP_PKTINFO;
679 AC_DEFINE(HAVE_IP_PKTINFO)
684 dnl *********************************
685 dnl *** Check for struct ip_mreqn ***
686 dnl *********************************
687 AC_MSG_CHECKING(for struct ip_mreqn)
688 AC_TRY_COMPILE([#include <netinet/in.h>], [
689 struct ip_mreqn mreq;
690 mreq.imr_address.s_addr = 0;
694 AC_DEFINE(HAVE_STRUCT_IP_MREQN)
696 # We'll just have to try and use struct ip_mreq
698 AC_MSG_CHECKING(for struct ip_mreq)
699 AC_TRY_COMPILE([#include <netinet/in.h>], [
701 mreq.imr_interface.s_addr = 0;
705 AC_DEFINE(HAVE_STRUCT_IP_MREQ)
707 # No multicast support
712 dnl **********************************
713 dnl *** Check for gethostbyname2_r ***
714 dnl **********************************
715 AC_MSG_CHECKING(for gethostbyname2_r)
716 AC_TRY_LINK([#include <netdb.h>], [
717 gethostbyname2_r(NULL,0,NULL,NULL,0,NULL,NULL);
721 AC_DEFINE(HAVE_GETHOSTBYNAME2_R)
726 dnl *****************************
727 dnl *** Checks for libnsl ***
728 dnl *****************************
729 AC_CHECK_LIB(nsl, gethostbyaddr, LIBS="$LIBS -lnsl")
731 AC_CHECK_FUNCS(inet_pton inet_aton)
733 dnl ***********************************************
734 dnl *** Checks for size of sockaddr_un.sun_path ***
735 dnl ***********************************************
736 # AC_CHECK_SIZEOF can't cope with struct members :-(
737 AC_MSG_CHECKING(size of sockaddr_un.sun_path)
738 AC_CACHE_VAL(cv_mono_sizeof_sunpath,
740 #include <sys/types.h>
745 struct sockaddr_un sock_un;
746 FILE *f=fopen("conftestval", "w");
748 fprintf(f, "%d\n", sizeof(sock_un.sun_path));
751 ], cv_mono_sizeof_sunpath=`cat conftestval`,
752 cv_mono_sizeof_sunpath=0,
753 cv_mono_sizeof_sunpath=0)])dnl
754 AC_MSG_RESULT($cv_mono_sizeof_sunpath)
755 AC_DEFINE_UNQUOTED(MONO_SIZEOF_SUNPATH, $cv_mono_sizeof_sunpath)
757 dnl *************************************
758 dnl *** Checks for zero length arrays ***
759 dnl *************************************
760 AC_MSG_CHECKING(whether $CC supports zero length arrays)
768 AC_DEFINE_UNQUOTED(MONO_ZERO_ARRAY_LENGTH, 0)
771 AC_DEFINE_UNQUOTED(MONO_ZERO_ARRAY_LENGTH, 1)
774 dnl *****************************
775 dnl *** Checks for libxnet ***
776 dnl *****************************
779 AC_MSG_CHECKING(for Solaris XPG4 support)
780 if test -f /usr/lib/libxnet.so; then
781 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
782 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
783 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED=1"
790 if test "$GCC" = "yes"; then
791 CFLAGS="$CFLAGS -Wno-char-subscripts"
796 dnl *****************************
797 dnl *** Checks for libpthread ***
798 dnl *****************************
799 # on FreeBSD -STABLE, the pthreads functions all reside in libc_r
800 # and libpthread does not exist
804 AC_CHECK_LIB(pthread, main, LIBS="$LIBS -pthread")
807 AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
810 AC_CHECK_HEADERS(pthread.h)
811 AC_CHECK_FUNCS(pthread_mutex_timedlock)
812 AC_CHECK_FUNCS(pthread_getattr_np pthread_attr_get_np)
813 AC_MSG_CHECKING(for PTHREAD_MUTEX_RECURSIVE)
814 AC_TRY_COMPILE([ #include <pthread.h>], [
815 pthread_mutexattr_t attr;
816 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
821 AC_MSG_WARN(Using mono_mutex_t for recursive mutexes)
822 AC_DEFINE(USE_MONO_MUTEX)
824 AC_CHECK_FUNCS(pthread_attr_setstacksize)
826 dnl ***********************************
827 dnl *** Checks for working __thread ***
828 dnl ***********************************
829 AC_MSG_CHECKING(for working __thread)
830 if test "x$with_tls" != "x__thread"; then
831 AC_MSG_RESULT(disabled)
837 static int res1, res2;
839 void thread_main (void *arg)
854 pthread_create (&t1, NULL, thread_main, 1);
855 pthread_create (&t2, NULL, thread_main, 2);
857 pthread_join (t1, NULL);
858 pthread_join (t2, NULL);
860 return !(res1 + res2 == 2);
870 dnl **************************************
871 dnl *** Checks for working sigaltstack ***
872 dnl **************************************
873 AC_MSG_CHECKING(for working sigaltstack)
874 if test "x$with_sigaltstack" != "xyes"; then
875 AC_MSG_RESULT(disabled)
883 #include <sys/wait.h>
886 sigsegv_signal_handler (int _dummy, siginfo_t *info, void *context)
904 struct sigaltstack sas;
908 sa.sa_sigaction = sigsegv_signal_handler;
909 sigemptyset (&sa.sa_mask);
910 sa.sa_flags = SA_SIGINFO | SA_ONSTACK;
911 if (sigaction (SIGSEGV, &sa, NULL) == -1) {
912 perror ("sigaction");
916 sas.ss_sp = malloc (SIGSTKSZ);
917 sas.ss_size = SIGSTKSZ;
919 if (sigaltstack (&sas, NULL) == -1) {
920 perror ("sigaltstack");
924 pthread_attr_init (&attr);
925 if (pthread_create(&id, &attr, loop, &attr) != 0) {
926 printf ("pthread_create\n");
950 for (i = 0; i < 3; ++i) {
952 waitpid (son, &status, WNOHANG);
953 if (WIFEXITED (status) && WEXITSTATUS (status) == 0)
963 AC_DEFINE(HAVE_WORKING_SIGALTSTACK)
970 dnl ********************************
971 dnl *** Checks for semaphore lib ***
972 dnl ********************************
973 # 'Real Time' functions on Solaris
974 # posix4 on Solaris 2.6
975 # pthread (first!) on Linux
976 AC_SEARCH_LIBS(sem_init, pthread rt posix4)
978 dnl ********************************
979 dnl *** Checks for timezone stuff **
980 dnl ********************************
981 AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
987 ], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))
988 if test $ac_cv_struct_tm_gmtoff = yes; then
989 AC_DEFINE(HAVE_TM_GMTOFF)
991 AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone,
996 ], ac_cv_var_timezone=yes, ac_cv_var_timezone=no))
997 if test $ac_cv_var_timezone = yes; then
998 AC_DEFINE(HAVE_TIMEZONE)
1000 AC_ERROR(unable to find a way to determine timezone)
1004 dnl *********************************
1005 dnl *** Checks for math functions ***
1006 dnl *********************************
1008 AC_CHECK_FUNCS(finite, , AC_MSG_CHECKING(for finite in math.h)
1009 AC_TRY_LINK([#include <math.h>],
1011 AC_DEFINE(HAVE_FINITE) AC_MSG_RESULT(yes),
1013 AC_CHECK_FUNCS(isfinite, , AC_MSG_CHECKING(for isfinite in math.h)
1014 AC_TRY_LINK([#include <math.h>],
1016 AC_DEFINE(HAVE_ISFINITE) AC_MSG_RESULT(yes),
1019 dnl ****************************************************************
1020 dnl *** Checks for working poll() (macosx defines it but doesn't ***
1021 dnl *** have it in the library (duh)) ***
1022 dnl ****************************************************************
1023 AC_CHECK_FUNCS(poll)
1025 dnl *************************
1026 dnl *** Check for signbit ***
1027 dnl *************************
1028 AC_MSG_CHECKING(for signbit)
1029 AC_TRY_LINK([#include <math.h>], [
1030 int s = signbit(1.0);
1033 AC_DEFINE(HAVE_SIGNBIT)
1038 dnl **********************************
1039 dnl *** Checks for MonoPosixHelper ***
1040 dnl **********************************
1041 AC_CHECK_HEADERS(checklist.h)
1042 AC_CHECK_HEADERS(fstab.h)
1043 AC_CHECK_HEADERS(sys/sendfile.h)
1044 AC_CHECK_HEADERS(sys/statvfs.h)
1045 AC_CHECK_HEADERS(sys/vfstab.h)
1046 AC_CHECK_FUNCS(getdomainname)
1047 AC_CHECK_FUNCS(setdomainname)
1048 AC_CHECK_FUNCS(fgetgrent)
1049 AC_CHECK_FUNCS(fgetpwent)
1050 AC_CHECK_FUNCS(fgetpwent)
1051 AC_CHECK_FUNCS(getfsstat)
1052 AC_CHECK_FUNCS(posix_fadvise)
1053 AC_CHECK_FUNCS(posix_fallocate)
1054 AC_CHECK_FUNCS(posix_madvise)
1055 AC_CHECK_FUNCS(vsnprintf)
1056 AC_CHECK_FUNCS(sendfile)
1057 AC_CHECK_FUNCS(sethostid)
1058 AC_CHECK_FUNCS(statfs)
1059 AC_CHECK_FUNCS(fstatfs)
1060 AC_CHECK_FUNCS(statvfs)
1061 AC_CHECK_FUNCS(fstatvfs)
1062 AC_CHECK_FUNCS(stime)
1063 AC_CHECK_FUNCS(strerror_r)
1064 AC_CHECK_FUNCS(ttyname_r)
1065 AC_CHECK_SIZEOF(size_t)
1067 [struct dirent.d_off, struct dirent.d_reclen, struct dirent.d_type],,,
1068 [#include <sys/types.h>
1069 #include <dirent.h>])
1071 dnl *********************************
1072 dnl *** Check for Console 2.0 I/O ***
1073 dnl *********************************
1074 AC_CHECK_HEADERS([curses.h])
1075 AC_CHECK_HEADERS([term.h], [], [],
1080 AC_CHECK_HEADERS([termios.h])
1082 jdk_headers_found=no
1083 AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32", AC_ERROR(bad mingw install?))
1084 AC_CHECK_LIB(psapi, main, LIBS="$LIBS -lpsapi", AC_ERROR(bad mingw install?))
1085 AC_CHECK_LIB(ole32, main, LIBS="$LIBS -lole32", AC_ERROR(bad mingw install?))
1087 dnl *********************************
1088 dnl *** Check for struct ip_mreqn ***
1089 dnl *********************************
1090 AC_MSG_CHECKING(for struct ip_mreqn)
1091 AC_TRY_COMPILE([#include <ws2tcpip.h>], [
1092 struct ip_mreqn mreq;
1093 mreq.imr_address.s_addr = 0;
1095 # Yes, we have it...
1097 AC_DEFINE(HAVE_STRUCT_IP_MREQN)
1099 # We'll just have to try and use struct ip_mreq
1101 AC_MSG_CHECKING(for struct ip_mreq)
1102 AC_TRY_COMPILE([#include <ws2tcpip.h>], [
1103 struct ip_mreq mreq;
1104 mreq.imr_interface.s_addr = 0;
1106 # Yes, we have it...
1108 AC_DEFINE(HAVE_STRUCT_IP_MREQ)
1110 # No multicast support
1117 AC_MSG_CHECKING(for socklen_t)
1119 #include <sys/types.h>
1120 #include <sys/socket.h>
1124 ac_cv_c_socklen_t=yes
1125 AC_DEFINE(HAVE_SOCKLEN_T)
1131 AC_MSG_CHECKING(for array element initalizer support)
1132 AC_TRY_COMPILE([#include <sys/socket.h>], [
1133 const int array[] = {[1] = 2,};
1135 # Yes, we have it...
1137 AC_DEFINE(HAVE_ARRAY_ELEM_INIT,1,[Supports C99 array initialization])
1139 # We'll have to use signals
1143 AC_CHECK_FUNCS(trunc, , AC_MSG_CHECKING(for trunc in math.h)
1144 # Simply calling trunc (0.0) is no good since gcc will optimize the call away
1145 AC_TRY_LINK([#include <math.h>],
1146 [ static void *p = &trunc; ],
1148 AC_DEFINE(HAVE_TRUNC)
1154 if test "x$ac_cv_truncl" != "xyes"; then
1155 AC_CHECK_LIB(sunmath, aintl, [ AC_DEFINE(HAVE_AINTL) LIBS="$LIBS -lsunmath"])
1158 dnl ****************************
1159 dnl *** Look for /dev/random ***
1160 dnl ****************************
1162 AC_MSG_CHECKING([if usage of random device is requested])
1163 AC_ARG_ENABLE(dev-random,
1164 [ --disable-dev-random disable the use of the random device],
1165 try_dev_random=$enableval, try_dev_random=yes)
1166 AC_MSG_RESULT($try_dev_random)
1170 NAME_DEV_RANDOM="/dev/srandom"
1173 dnl Win32 does not have /dev/random, they have their own method...
1175 *-*-mingw*|*-*-cygwin*)
1176 ac_cv_have_dev_random=no
1179 dnl Everywhere else, it's /dev/random
1182 NAME_DEV_RANDOM="/dev/random"
1186 AC_DEFINE_UNQUOTED(NAME_DEV_RANDOM, "$NAME_DEV_RANDOM")
1188 dnl Now check if the device actually exists
1190 if test "x$try_dev_random" = "xyes"; then
1191 AC_CACHE_CHECK(for random device, ac_cv_have_dev_random,
1192 [if test -r "$NAME_DEV_RANDOM" ; then
1193 ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi])
1194 if test "x$ac_cv_have_dev_random" = "xyes"; then
1195 AC_DEFINE(HAVE_CRYPT_RNG)
1198 AC_MSG_CHECKING(for random device)
1199 ac_cv_have_dev_random=no
1200 AC_MSG_RESULT(has been disabled)
1203 if test "x$platform_win32" = "xyes"; then
1204 AC_DEFINE(HAVE_CRYPT_RNG)
1207 if test "x$ac_cv_have_dev_random" = "xno" \
1208 && test "x$platform_win32" = "xno"; then
1211 *** A system-provided entropy source was not found on this system.
1212 *** Because of this, the System.Security.Cryptography random number generator
1213 *** will throw a NotImplemented exception.
1215 *** If you are seeing this message, and you know your system DOES have an
1216 *** entropy collection in place, please contact <crichton@gimp.org> and
1217 *** provide information about the system and how to access the random device.
1219 *** Otherwise you can install either egd or prngd and set the environment
1220 *** variable MONO_EGD_SOCKET to point to the daemon's socket to use that.
1224 AC_MSG_CHECKING([if inter-process shared handles are requested])
1225 AC_ARG_ENABLE(shared-handles, [ --disable-shared-handles disable inter-process shared handles], try_shared_handles=$enableval, try_shared_handles=yes)
1226 AC_MSG_RESULT($try_shared_handles)
1227 if test "x$try_shared_handles" != "xyes"; then
1228 AC_DEFINE(DISABLE_SHARED_HANDLES)
1229 AC_SUBST(DISABLE_SHARED_HANDLES)
1237 enable_glob="normal; default"
1240 AC_ARG_WITH(icu, [ --with-icu=yes/no],
1241 if test x$with_icu = xno; then
1243 AC_MSG_RESULT(Will not probe for ICU)
1245 if test x$with_icu = xyes; then
1251 AC_PATH_PROG(ICU_CONFIG, icu-config, no)
1252 if test "x$ICU_CONFIG" = "xno" -o ! -x "$ICU_CONFIG"; then
1253 enable_glob="ICU not found, using non-ICU globalization code."
1255 enable_glob="ICU, unsupported. Version: `$ICU_CONFIG --version`"
1257 ICU_CFLAGS=`$ICU_CONFIG --cppflags`
1258 ICU_LIBS=`$ICU_CONFIG --ldflags`
1261 AC_SUBST(ICU_CFLAGS)
1264 AC_ARG_ENABLE(nunit-tests, [ --enable-nunit-tests Run the nunit tests of the class library on 'make check'])
1265 AM_CONDITIONAL(ENABLE_NUNIT_TESTS, [test x$enable_nunit_tests = xyes])
1268 ACCESS_UNALIGNED="yes"
1278 # mips-sgi-irix5.* | mips-sgi-irix6.*)
1280 # ACCESS_UNALIGNED="no"
1288 x86_64-*-* | amd64-*-*)
1295 if test "x$ac_cv_sizeof_void_p" = "x8"; then
1302 ACCESS_UNALIGNED="no"
1306 if test x"$GCC" = xyes; then
1307 CFLAGS="$CFLAGS -Wno-cast-align"
1310 alpha*-*-linux* | alpha*-*-osf*)
1312 ACCESS_UNALIGNED="no"
1314 INTERP_SUPPORTED=yes
1318 *-*-mingw*|*-*-cygwin*)
1321 # ia64-*-linux* | ia64-*-hpux*)
1325 # ACCESS_UNALIGNED="no";
1326 # case "$host_os" in
1327 # linux*) LIBC="libc.so.6.1";;
1328 # hpux*) LIBC="libc.so.1";;
1334 hppa2.0w-hp-hpux11.00 | hppa64-hp-hpux11.00)
1338 ACCESS_UNALIGNED="no"
1339 INTERP_SUPPORTED=yes
1345 ACCESS_UNALIGNED="no"
1346 INTERP_SUPPORTED=yes
1349 macppc-*-openbsd* | powerpc-*-linux* | powerpc-*-openbsd* | \
1350 powerpc-*-sysv* | powerpc-*-darwin*)
1352 AC_DEFINE(MONO_ARCH_REGPARMS,1,[Architecture uses registers for Parameters])
1357 arm-*-linux-* | armv4l-*-linux-*)
1360 ACCESS_UNALIGNED="no"
1361 INTERP_SUPPORTED=yes
1366 AC_DEFINE(MONO_ARCH_REGPARMS,1,[Architecture uses registers for Parameters])
1368 ACCESS_UNALIGNED="no"
1373 AC_DEFINE(MONO_ARCH_REGPARMS,1,[Architecture uses registers for Parameters])
1375 ACCESS_UNALIGNED="no"
1380 AC_ARG_WITH(jit, [ --with-jit=yes,no If you want to build scripts that default to the JIT],[
1381 if test x$withval = xyes; then
1388 AC_ARG_WITH(interp, [ --with-interp=yes,no If you want to build scripts that default to the interpreter],[
1389 if test x$withval = xyes; then
1397 if test x$JIT_SUPPORTED = xyes; then
1398 if $jit_wanted; then
1400 jit_status="Building and using the JIT"
1402 if $interp_wanted; then
1403 jit_status="Building the JIT, defaulting to the interpreter"
1405 AC_ERROR(No JIT or interpreter support available or selected.)
1409 if $interp_wanted; then
1410 jit_status="interpreter"
1412 AC_ERROR(No JIT or interpreter support available or selected.)
1416 AM_CONDITIONAL(USE_JIT, test x$USEJIT = xtrue)
1424 INTL="libintl.dylib"
1441 if test "x$TARGET" != "xAMD64"; then
1442 # valgrind headers don't compile under x86-64
1443 AC_CHECK_HEADERS(valgrind/memcheck.h)
1446 if test "x$TARGET" = "xAMD64" -o "x$TARGET" = "xX86"; then
1447 if test "x$with_tls" = "x__thread"; then
1449 # On some linux distributions, TLS works in executables, but linking
1450 # against a shared library containing TLS fails with:
1451 # undefined reference to `__tls_get_addr'
1453 rm -f conftest.c conftest.so conftest
1454 echo "static __thread int foo; void main () { foo = 5; }" > conftest.c
1455 gcc -fPIC --shared -o conftest.so conftest.c > /dev/null 2>&1
1456 gcc -o conftest conftest.so > /dev/null 2>&1
1457 if test ! -f conftest; then
1458 AC_MSG_WARN([Disabling usage of __thread.]);
1461 rm -f conftest.c conftest.so conftest
1465 if test "x$with_tls" = "x__thread"; then
1466 AC_DEFINE(HAVE_KW_THREAD)
1467 # Pass the information to libgc
1468 CPPFLAGS="$CPPFLAGS -DUSE_COMPILER_TLS"
1470 AC_MSG_CHECKING(if the tls_model attribute is supported)
1471 AC_TRY_COMPILE([static __thread int foo __attribute__((tls_model("initial-exec")));], [
1474 AC_DEFINE(HAVE_TLS_MODEL_ATTR, 1, [tld_model available])
1480 if test ${TARGET} = ARM; then
1481 dnl ******************************************
1482 dnl *** Check to see what FPU is available ***
1483 dnl ******************************************
1484 AC_MSG_CHECKING(which FPU to use)
1486 AC_TRY_COMPILE([], [
1487 __asm__ ("ldfd f0, [r0]");
1489 AC_TRY_COMPILE([], [
1490 __asm__ ("fldd d0, [r0]");
1491 ], fpu=VFP, fpu=NONE)
1495 CPPFLAGS="$CPPFLAGS -DARM_FPU_$fpu"
1499 if test ${TARGET} = unknown; then
1500 CPPFLAGS="$CPPFLAGS -DNO_PORT"
1501 AC_MSG_WARN("mono has not been ported to $host: some things may not work.")
1504 if test ${ACCESS_UNALIGNED} = no; then
1505 CPPFLAGS="$CPPFLAGS -DNO_UNALIGNED_ACCESS"
1509 AC_ARG_WITH(preview, [ --with-preview=yes,no If you want to install the 2.0 FX preview],[
1510 if test x$with_preview = xyes; then
1515 AM_CONDITIONAL(INSTALL_2_0, test x$PREVIEW = xyes)
1517 AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
1518 AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
1519 AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)
1520 AM_CONDITIONAL(SPARC64, test x$TARGET = xSPARC64)
1521 AM_CONDITIONAL(X86, test x$TARGET = xX86)
1522 AM_CONDITIONAL(AMD64, test x$TARGET = xAMD64)
1523 AM_CONDITIONAL(ALPHA, test x$TARGET = xALPHA)
1524 AM_CONDITIONAL(IA64, test x$TARGET = xIA64)
1525 AM_CONDITIONAL(M68K, test x$TARGET = xM68K)
1526 AM_CONDITIONAL(POWERPC, test x$TARGET = xPOWERPC)
1527 AM_CONDITIONAL(ARM, test x$TARGET = xARM)
1528 AM_CONDITIONAL(S390, test x$TARGET = xS390)
1529 AM_CONDITIONAL(S390x, test x$TARGET = xS390x)
1530 AM_CONDITIONAL(HPPA, test x$TARGET = xHPPA)
1532 AM_CONDITIONAL(JIT_SUPPORTED, test x$JIT_SUPPORTED = xyes)
1533 AM_CONDITIONAL(INTERP_SUPPORTED, test x$interp_wanted = xtrue)
1534 AM_CONDITIONAL(INCLUDED_LIBGC, test x$gc = xincluded)
1539 AC_SUBST(arch_target)
1544 mono_build_root=`pwd`
1545 AC_SUBST(mono_build_root)
1547 if test x$USEJIT = xtrue; then
1548 mono_runtime=mono/mini/mono
1550 mono_runtime=mono/interpreter/mint
1552 AC_SUBST(mono_runtime)
1554 mono_cfg_root=$mono_build_root/runtime
1555 if test x$platform_win32 = xyes; then
1556 mono_cfg_dir=`cygpath -w -a $mono_cfg_root`\\etc
1558 mono_cfg_dir=$mono_cfg_root/etc
1560 AC_SUBST(mono_cfg_dir)
1562 AC_CONFIG_FILES([runtime/mono-wrapper],[chmod +x runtime/mono-wrapper])
1564 AC_CONFIG_COMMANDS([runtime/etc/mono/1.0/machine.config],
1567 [\\/$]* | ?:[\\/]* ) reldir=$srcdir ;;
1569 *) reldir=$depth/$srcdir ;;
1571 $ac_aux_dir/install-sh -d runtime/etc/mono/1.0
1572 cd runtime/etc/mono/1.0
1573 rm -f machine.config
1574 $LN_S $reldir/data/net_1_1/machine.config machine.config
1578 AC_CONFIG_COMMANDS([runtime/etc/mono/2.0/machine.config],
1581 [\\/$]* | ?:[\\/]* ) reldir=$srcdir ;;
1583 *) reldir=$depth/$srcdir ;;
1585 $ac_aux_dir/install-sh -d runtime/etc/mono/2.0
1586 cd runtime/etc/mono/2.0
1587 rm -f machine.config
1588 $LN_S $reldir/data/net_2_0/machine.config machine.config
1596 scripts/mono-nunit.pc
1599 mono/metadata/Makefile
1604 mono/os/win32/Makefile
1605 mono/os/unix/Makefile
1606 mono/arch/x86/Makefile
1607 mono/arch/amd64/Makefile
1608 mono/arch/hppa/Makefile
1609 mono/arch/ppc/Makefile
1610 mono/arch/sparc/Makefile
1611 mono/arch/s390/Makefile
1612 mono/arch/s390x/Makefile
1613 mono/arch/arm/Makefile
1614 mono/arch/alpha/Makefile
1615 mono/interpreter/Makefile
1617 mono/tests/tests-config
1618 mono/benchmark/Makefile
1619 mono/monoburg/Makefile
1620 mono/monograph/Makefile
1621 mono/io-layer/Makefile
1622 mono/handles/Makefile
1624 mono/profiler/Makefile
1625 ikvm-native/Makefile
1631 data/net_1_1/Makefile
1632 data/net_2_0/Makefile
1638 tools/locale-builder/Makefile
1644 NONE) prefix=/usr/local ;;
1646 case $exec_prefix in
1647 NONE | '${prefix}') exec_prefix=$prefix ;;
1650 echo "prefix=$prefix" > $srcdir/$mcsdir/build/config.make
1651 echo "exec_prefix=$exec_prefix" >> $srcdir/$mcsdir/build/config.make
1652 echo "mono_libdir=$exec_prefix/lib" >> $srcdir/$mcsdir/build/config.make
1653 echo 'MCS_FLAGS = $(PLATFORM_DEBUG_FLAGS)' >> $srcdir/$mcsdir/build/config.make
1656 libgdiplus_msg=${libgdiplus_loc:-assumed to be installed}
1659 mcs source: $mcs_topdir
1661 Globalization: $enable_glob
1663 SIGALTSTACK: $with_sigaltstack
1666 JNI support: $jdk_headers_found
1667 libgdiplus: $libgdiplus_msg