AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(mono, 0.12)
+AM_INIT_AUTOMAKE(mono, 0.14)
AM_MAINTAINER_MODE
dnl ****************************************
platform_win32=yes
AC_DEFINE(PLATFORM_WIN32)
CC="gcc -mno-cygwin"
+ libdl=
;;
*)
platform_win32=no
+ libdl="-ldl"
;;
esac
AC_MSG_RESULT($platform_win32)
AM_PROG_CC_STDC
AC_PROG_INSTALL
+AC_CHECK_PROG(BISON, bison, ,no)
+if test "x$BISON" = "xno";
+then
+ AC_MSG_ERROR([You need to install bison])
+fi
+
dnl may require a specific autoconf version
dnl AC_PROG_CC_FOR_BUILD
dnl CC_FOR_BUILD not automatically detected
AC_SUBST(GMODULE_CFLAGS)
AC_SUBST(GMODULE_LIBS)
-AC_CHECK_LIB(gc, GC_malloc, found_boehm="yes")
+AC_CHECK_LIB(gc, GC_malloc, found_boehm="yes",,$libdl)
gc=auto
AC_ARG_WITH(gc, [ --with-gc=boehm,none],[gc=$with_gc])
AC_DEFINE(HAVE_BOEHM_GC)
AC_SUBST(HAVE_BOEHM_GC)
- LIBS="$LIBS -lgc"
+ LIBS="$LIBS -lgc $libdl"
;;
xnone)
AC_MSG_WARN("Compiling mono without GC.")
else
AC_DEFINE(HAVE_BOEHM_GC)
AC_SUBST(HAVE_BOEHM_GC)
- LIBS="$LIBS -lgc"
+ LIBS="$LIBS -lgc $libdl"
gc="boehm"
fi
dnl AC_MSG_WARN("Compiling mono without GC.")
dnl *****************************
dnl *** Checks for libpthread ***
dnl *****************************
- AC_SEARCH_LIBS(pthread_create, pthread c_r, [
+ AC_SEARCH_LIBS(pthread_create, pthread, [
AM_CONDITIONAL(THREADS_PTHREAD, true)
AC_DEFINE(HAVE_PTHREAD)
esac
if test ${TARGET} = unknown; then
- CFLAGS="$CFLAGS -DNO_PORT"
+ CPPFLAGS="$CPPFLAGS -DNO_PORT"
AC_MSG_WARN("mono has not been ported to $host: some things may not work.")
fi
AC_SUBST(arch_target)
AC_SUBST(CFLAGS)
+AC_SUBST(CPPFLAGS)
AC_OUTPUT([
Makefile
+mono.pc
mono/Makefile
mono/utils/Makefile
mono/metadata/Makefile