Cosmetic fix.
[mono.git] / configure.in
index 051546e7583fa20461a5df9f440b7b9aafbd421a..e9a7b12541516380081fe615d0a49fa34ce68d7d 100644 (file)
@@ -228,6 +228,14 @@ AC_ARG_WITH(gc, [  --with-gc=boehm,included,none],[gc=$with_gc],[gc=$gc_default]
 # so this option will stay until nptl becomes more widespread
 AC_ARG_WITH(nptl, [  --with-nptl=yes,no      enable/disable support for NPTL],[],[with_nptl=yes])
 
+# Enable support for using sigaltstack for SIGSEGV and stack overflow handling
+# This does not work on some platforms (bug #55253)
+AC_ARG_WITH(sigaltstack, [  --with-sigaltstack=yes,no      enable/disable support for sigaltstack],[],[with_sigaltstack=yes])
+
+if test x$with_sigaltstack = "xyes"; then
+       AC_DEFINE(HAVE_WORKING_SIGALTSTACK)
+fi
+
 # assembly bundle support, see metadata/make-bundle.pl for more info
 AC_ARG_WITH(bundle, [  --with-bundle=bundle_template],[
        BUNDLE_FILE=$with_bundle
@@ -260,6 +268,10 @@ case "x$gc" in
                if test "x$found_gcj_malloc" = "xyes"; then
                        AC_DEFINE(HAVE_GC_GCJ_MALLOC)
                fi
+               AC_CHECK_LIB(gc, GC_enable, found_gc_enable="yes",,$libdl)
+               if test "x$found_gc_enable" = "xyes"; then
+                       AC_DEFINE(HAVE_GC_ENABLE)
+               fi
                ;;
 
        xincluded)
@@ -281,6 +293,7 @@ case "x$gc" in
 
                # The included libgc contains GCJ support
                AC_DEFINE(HAVE_GC_GCJ_MALLOC)
+               AC_DEFINE(HAVE_GC_ENABLE)
                ;;
 
        xnone)
@@ -696,9 +709,17 @@ ac_cv_c_socklen_t=yes
 AC_CHECK_FUNCS(truncl, , AC_MSG_CHECKING(for truncl in math.h)
        AC_TRY_LINK([#include <math.h>], 
        [ truncl(0.0); ], 
-       AC_DEFINE(HAVE_TRUNCL) AC_MSG_RESULT(yes),
+       [
+               AC_DEFINE(HAVE_TRUNCL) 
+               AC_MSG_RESULT(yes)
+               ac_cv_truncl=yes
+       ],
        AC_MSG_RESULT(no)))
 
+if test "x$ac_cv_truncl" != "xyes"; then
+   AC_CHECK_LIB(sunmath, aintl, [ AC_DEFINE(HAVE_AINTL) LIBS="$LIBS -lsunmath"])
+fi
+
 dnl ****************************
 dnl *** Look for /dev/random ***
 dnl ****************************
@@ -812,6 +833,7 @@ case "$host" in
        sparc*-*-*)
                TARGET=SPARC;
                arch_target=sparc;
+               #JIT_SUPPORTED=yes
                ACCESS_UNALIGNED="no"
                ;;
 #       alpha*-*-linux* | alpha*-*-osf*)
@@ -927,7 +949,6 @@ mono/os/Makefile
 mono/os/win32/Makefile
 mono/os/unix/Makefile
 mono/arch/x86/Makefile
-mono/arch/amd64/Makefile
 mono/arch/hppa/Makefile
 mono/arch/ppc/Makefile
 mono/arch/sparc/Makefile
@@ -947,7 +968,7 @@ mono/profiler/Makefile
 runtime/Makefile
 scripts/Makefile
 man/Makefile
-doc/Makefile
+web/Makefile
 docs/Makefile
 data/Makefile
 samples/Makefile
@@ -960,4 +981,5 @@ echo "
        GC:     $gc
        ICU:    $enable_icu
        NPTL:   $with_nptl
+       SIGALTSTACK: $with_sigaltstack
 "