Skip to content

Commit

Permalink
Remove support for building with system glib.
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz committed Aug 17, 2010
1 parent 58a94f2 commit a64b222
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 41 deletions.
6 changes: 3 additions & 3 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .

MOONLIGHT_SUBDIRS = $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data
MOONLIGHT_SUBDIRS = $(libgc_dir) eglib mono $(ikvm_native_dir) data

if CROSS_COMPILING
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data runtime scripts man samples web msvc $(docs_dir)
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) data runtime scripts man samples web msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = po libgc eglib mono ikvm-native data runtime scripts man samples web tools msvc docs
else
if ONLY_MOONLIGHT
SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
else
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = po libgc eglib mono ikvm-native support data runtime scripts man samples web tools msvc docs
Expand Down
31 changes: 1 addition & 30 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,6 @@ AC_ARG_WITH([glib],
[ --with-glib=embedded|system Choose glib API: system or embedded (default to embedded)],
[], [with_glib=embedded])

eglib_dir=

ac_configure_args="$ac_configure_args \"CPPFLAGS_FOR_EGLIB=$EGLIB_CPPFLAGS\" \"CFLAGS_FOR_EGLIB=$CFLAGS_FOR_EGLIB\""
AC_CONFIG_SUBDIRS(eglib)

Expand All @@ -578,47 +576,20 @@ embedded)
BUILD_GLIB_LIBS="$GLIB_LIBS"
GMODULE_CFLAGS="$GLIB_CFLAGS"
GMODULE_LIBS="$GLIB_LIBS"
eglib_dir=eglib
;;
system)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
echo "cross_compiling=$cross_compiling"
BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`

## Versions of dependencies
GLIB_REQUIRED_VERSION=2.4.0

dnl
dnl No, you will not replace this check with a pkg.m4 check
dnl
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
else
AC_MSG_ERROR([You need at least glib-2.0 $GLIB_REQUIRED_VERSION])
fi
AC_MSG_ERROR([--with-glib=system is no longer supported as of Mono 2.8])
;;
*)
AC_MSG_ERROR([Invalid argument to --with-glib.])
esac
AM_CONDITIONAL(EGLIB_BUILD, test x$with_glib = xembedded)

AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
AC_SUBST(GMODULE_CFLAGS)
AC_SUBST(GMODULE_LIBS)
AC_SUBST(BUILD_GLIB_CFLAGS)
AC_SUBST(BUILD_GLIB_LIBS)
AC_SUBST(eglib_dir)

if test x$cross_compiling$host_win32 = xnoyes; then
AC_MSG_CHECKING(for cygwin glib2-dev package)
Expand Down
9 changes: 1 addition & 8 deletions mono/tests/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
SUBDIRS = cas assemblyresolve

# avoid including eglib twice since GLIB_LIBS == GMODULE_LIBS for eglib builds
if EGLIB_BUILD
glib_libs = $(GLIB_LIBS)
else
glib_libs = $(GLIB_LIBS) $(GMODULE_LIBS)
endif

check-local: test

aotcheck: testaot gshared-aot
Expand Down Expand Up @@ -892,6 +885,6 @@ else
libtest_la_LDFLAGS = -rpath `pwd`
endif
libtest_la_SOURCES = libtest.c
libtest_la_LIBADD = $(glib_libs)
libtest_la_LIBADD = $(GLIB_LIBS)

CLEANFILES = $(TESTSI_CS) $(TESTSI_IL) $(STRESS_TESTS) *.dll *.stdout *.aotlog *.exe stest.dat

0 comments on commit a64b222

Please sign in to comment.