AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(mono,1.1.2)
+AM_INIT_AUTOMAKE(mono,1.1.2.99)
AM_MAINTAINER_MODE
AC_PROG_LN_S
fi
CFLAGS="$CFLAGS -g $WARN"
+# Where's the 'mcs' source tree?
+if test -d $srcdir/mcs; then
+ mcsdir=mcs
+else
+ mcsdir=../mcs
+fi
+
+mcs_topdir='$(top_srcdir)/'$mcsdir
+mcs_topdir_from_srcdir='$(top_builddir)/'$mcsdir
+
+AC_SUBST([mcs_topdir])
+AC_SUBST([mcs_topdir_from_srcdir])
+
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
# This does not work on some platforms (bug #55253)
AC_ARG_WITH(sigaltstack, [ --with-sigaltstack=yes,no enable/disable support for sigaltstack],[],[with_sigaltstack=no])
+AC_ARG_WITH(static_mono, [ --with-static_mono=yes,no link mono statically to libmono (faster)],[],[with_static_mono=yes])
+
+if test "x$enable_static" = "xno"; then
+ with_static_mono=no
+fi
+
+AM_CONDITIONAL(STATIC_MONO, test x$with_static_mono != xno)
+
# assembly bundle support, see metadata/make-bundle.pl for more info
AC_ARG_WITH(bundle, [ --with-bundle=bundle_template],[
BUNDLE_FILE=$with_bundle
fi
AC_DEFINE_UNQUOTED(SIGVAL_PTR,$SIGVAL_PTR,[Pointer field name in 'union sigval'])
fi
+
+ dnl **********************************
+ dnl *** Checks for MonoPosixHelper ***
+ dnl **********************************
+ AC_CHECK_FUNCS(posix_fadvise)
+ AC_CHECK_FUNCS(posix_madvise)
+ AC_CHECK_FUNCS(posix_fallocate)
+ AC_CHECK_FUNCS(fgetgrent)
+ AC_CHECK_FUNCS(fgetpwent)
+ AC_CHECK_FUNCS(fgetpwent)
+ AC_CHECK_HEADERS(sys/sendfile.h)
+ AC_CHECK_FUNCS(sendfile)
+ AC_CHECK_FUNCS(sethostid)
+ AC_CHECK_FUNCS(stime)
+ AC_CHECK_FUNCS(strerror_r)
+ AC_CHECK_FUNCS(ttyname_r)
+ AC_CHECK_SIZEOF(size_t)
+ AC_CHECK_MEMBERS(
+ [struct dirent.d_off, struct dirent.d_reclen, struct dirent.d_type],,,
+ [#include <sys/types.h>
+ #include <dirent.h>])
else
jdk_headers_found=no
AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32", AC_ERROR(bad mingw install?))
esac
AC_ARG_WITH(jit, [ --with-jit=yes,no If you want to build scripts that default to the JIT],[
- jit_wanted=true
+ if test x$withval = xyes; then
+ jit_wanted=true
+ else
+ jit_wanted=false
+ fi
])
USEJIT=false
AM_CONDITIONAL(HPPA, test x$TARGET = xHPPA)
AM_CONDITIONAL(JIT_SUPPORTED, test x$JIT_SUPPORTED = xyes)
+AM_CONDITIONAL(INCLUDED_LIBGC, test x$gc = xincluded)
AC_SUBST(LIBC)
AC_SUBST(INTL)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
+mono_build_root=`pwd`
+AC_SUBST(mono_build_root)
+
+if test x$USEJIT = xtrue; then
+ mono_runtime=mono/mini/mono
+else
+ mono_runtime=mono/interpreter/mint
+fi
+AC_SUBST(mono_runtime)
+
+mono_cfg_root=$mono_build_root/runtime
+if test x$platform_win32 = xyes; then
+ mono_cfg_dir=`cygpath -w -a $mono_cfg_root`\\etc
+else
+ mono_cfg_dir=$mono_cfg_root/etc
+fi
+AC_SUBST(mono_cfg_dir)
+
+AC_CONFIG_FILES([runtime/mono-wrapper],[chmod +x runtime/mono-wrapper])
+AC_CONFIG_LINKS([runtime/etc/mono/1.0/machine.config:data/net_1_1/machine.config
+ runtime/etc/mono/2.0/machine.config:data/net_2_0/machine.config])
+
AC_OUTPUT([
Makefile
mint.pc
mono/profiler/Makefile
ikvm-jni/Makefile
runtime/Makefile
-runtime/net_1_1/Makefile
-runtime/net_2_0/Makefile
scripts/Makefile
man/Makefile
web/Makefile
])
echo "
-
+ mcs source: $mcs_topdir
GC: $gc
ICU: $enable_icu
TLS: $with_tls