2004-08-17 Joe Shaw <joeshaw@novell.com>
authorJoe Shaw <joeshaw@novell.com>
Tue, 17 Aug 2004 17:08:32 +0000 (17:08 +0000)
committerJoe Shaw <joeshaw@novell.com>
Tue, 17 Aug 2004 17:08:32 +0000 (17:08 +0000)
* configure.in: If --enable-mono is passed in, if we can't find
mono error out.

* mono/Makefile.am: Use /gacutil to install assemblies into the
GAC and not /root.

ChangeLog
configure.in
mono/Makefile.am

index 513b1df..7b0279c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-08-17  Joe Shaw  <joeshaw@novell.com>
+
+       * configure.in: If --enable-mono is passed in, if we can't find
+       mono error out.
+
+       * mono/Makefile.am: Use /gacutil to install assemblies into the
+       GAC and not /root.
+
 2004-08-12  Havoc Pennington  <hp@redhat.com>
 
        * NEWS: update for 0.22
index 36494e4..34d69e8 100644 (file)
@@ -189,23 +189,29 @@ MONO_REQUIRED_VERSION=0.95
 AC_SUBST(MONO_REQUIRED_VERSION)
 PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, have_mono=true, have_mono=false)
 
-if test "x$have_mono" = "xtrue"; then
-if test `uname -s` = "Darwin"; then
-       AC_PATH_PROG(RUNTIME, mint, no)
-       AC_PATH_PROG(CSC, mcs, no)
-       LIB_PREFIX=
-    LIB_SUFFIX=.dylib
-else
-       AC_PATH_PROG(RUNTIME, mono, no)
-       AC_PATH_PROG(CSC, mcs, no)
-       LIB_PREFIX=.so
-    LIB_SUFFIX=
+if test "x$enable_mono" = "xyes"; then
+       if test "x$have_mono" = "xfalse"; then
+               AC_MSG_ERROR([Mono was not found])
+       fi
 fi
+
+if test "x$have_mono" = "xtrue"; then
+       if test `uname -s` = "Darwin"; then
+               AC_PATH_PROG(RUNTIME, mint, no)
+               AC_PATH_PROG(CSC, mcs, no)
+               LIB_PREFIX=
+               LIB_SUFFIX=.dylib
+       else
+               AC_PATH_PROG(RUNTIME, mono, no)
+               AC_PATH_PROG(CSC, mcs, no)
+               LIB_PREFIX=.so
+               LIB_SUFFIX=
+       fi
 else
-AC_PATH_PROG(CSC, csc.exe, no)
-RUNTIME=
-LIB_PREFIX=
-LIB_SUFFIX=.dylib
+       AC_PATH_PROG(CSC, csc.exe, no)
+       RUNTIME=
+       LIB_PREFIX=
+       LIB_SUFFIX=.dylib
 fi
 
 if test x$enable_mono = xyes; then
index 2c62368..8bb25f5 100644 (file)
@@ -61,14 +61,14 @@ clean:
 
 install-data-local:
        @if test -n '$(TARGET)'; then                       \
-         echo "$(GACUTIL) /i $(ASSEMBLY) /f /package dbus-sharp /root $(DESTDIR)$(libdir)";    \
-         $(GACUTIL) /i $(ASSEMBLY) /f /package dbus-sharp /root $(DESTDIR)$(libdir) || exit 1; \
+         echo "$(GACUTIL) /i $(ASSEMBLY) /f /package dbus-sharp /gacdir $(DESTDIR)$(libdir)";    \
+         $(GACUTIL) /i $(ASSEMBLY) /f /package dbus-sharp /gacdir $(DESTDIR)$(libdir) || exit 1; \
        fi
 
 uninstall-local:
        @if test -n '$(TARGET)'; then                       \
-         echo "$(GACUTIL) /u $(ASSEMBLY_NAME) /package dbus-sharp /root $(DESTDIR)$(libdir)";  \
-         $(GACUTIL) /u $(ASSEMBLY_NAME) /package dbus-sharp /root $(DESTDIR)$(libdir) || exit 1;   \
+         echo "$(GACUTIL) /u $(ASSEMBLY_NAME) /package dbus-sharp /gacdir $(DESTDIR)$(libdir)";  \
+         $(GACUTIL) /u $(ASSEMBLY_NAME) /package dbus-sharp /gacdir $(DESTDIR)$(libdir) || exit 1;   \
        fi
 
 EXTRA_DIST=                    \