[chronojump] [autotools] Add checks for Mono assemblies
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [chronojump] [autotools] Add checks for Mono assemblies
- Date: Wed, 26 Aug 2009 19:18:12 +0000 (UTC)
commit 0bc7f5d0633b9bc27fc0447dc036d91c4309844a
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Aug 26 21:18:01 2009 +0200
[autotools] Add checks for Mono assemblies
configure.ac | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7cde4f7..d5d6bac 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,7 +8,7 @@ AC_CONFIG_MACRO_DIR([m4])
AM_PROG_LIBTOOL
-dnl pkg-config
+dnl Check for pkg-config
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
@@ -16,6 +16,7 @@ fi
AC_PROG_INSTALL
+dnl Check for C# compiler
AC_PATH_PROG(MCS, gmcs, no)
if test "x$MCS" = "xno"; then
AC_PATH_PROG(MCS2, gmcs2,no)
@@ -29,6 +30,7 @@ else
AC_SUBST(GMCS,[gmcs])
fi
+dnl Check for gettext utils
AC_PATH_PROG(MSGFMT, msgfmt, no)
if test "x$MSGFMT" = "xno"; then
AC_MSG_ERROR([gettext not found])
@@ -36,6 +38,7 @@ else
AC_SUBST(MSGFMT,[msgfmt])
fi
+
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],
[Use 'DEBUG' Configuration [default=NO]]),
@@ -63,6 +66,17 @@ PKG_CHECK_MODULES([GLIB_SHARP_20], [glib-sharp-2.0])
PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0])
PKG_CHECK_MODULES([GLADE_SHARP_20], [glade-sharp-2.0])
+dnl Check for Mono assemblies that we need
+needed_dlls="Mono.Data.Sqlite Mono.Posix"
+for i in $needed_dlls; do
+ AC_MSG_CHECKING([for $i.dll])
+ if test ! \( -e `$PKG_CONFIG --variable=prefix mono`/lib/mono/2.0/$i.dll -o -e `$PKG_CONFIG --variable=prefix mono`/lib64/mono/2.0//$i.dll \); then
+ AC_MSG_ERROR([missing required mono 2.0 DLL: $i.dll])
+ else
+ AC_MSG_RESULT([found])
+ fi
+done
+
AC_CONFIG_FILES([
Makefile
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]