Author: lluis
Date: 2007-03-23 14:47:24 -0500 (Fri, 23 Mar 2007)
New Revision: 74914
Added:
trunk/mono-addins/ChangeLog
Modified:
trunk/mono-addins/configure.ac
Log:
* configure.ac: Make compilation of tests and gui libs optional.
Added: trunk/mono-addins/ChangeLog
===================================================================
--- trunk/mono-addins/ChangeLog 2007-03-23 19:46:13 UTC (rev 74913)
+++ trunk/mono-addins/ChangeLog 2007-03-23 19:47:24 UTC (rev 74914)
@@ -0,0 +1,4 @@
+2007-03-23 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * configure.ac: Make compilation of tests and gui libs optional.
+
Modified: trunk/mono-addins/configure.ac
===================================================================
--- trunk/mono-addins/configure.ac 2007-03-23 19:46:13 UTC (rev 74913)
+++ trunk/mono-addins/configure.ac 2007-03-23 19:47:24 UTC (rev 74914)
@@ -17,9 +17,31 @@
AC_MSG_ERROR([mcs Not found])
fi
-PKG_CHECK_MODULES([GNOME_SHARP_20], [gnome-sharp-2.0])
-PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0])
+AC_ARG_ENABLE(gui,
+ AC_HELP_STRING([--enable-gui],
+ [enable support for GTK dependent libraries [default=yes]]),
+ enable_gui=${enableval}, enable_gui=yes)
+AM_CONDITIONAL(ENABLE_GUI, test x$enable_gui = xyes)
+
+AC_ARG_ENABLE(tests,
+ AC_HELP_STRING([--enable-tests],
+ [build unit tests [default=yes]]),
+ enable_tests=${enableval}, enable_tests=yes)
+
+AM_CONDITIONAL(ENABLE_TESTS, test x$enable_tests = xyes)
+
+if test "x$enable_gui" = "xyes"; then
+ PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0])
+fi
+
+if test "x$enable_tests" = "xyes"; then
+ PKG_CHECK_MODULES([MONO_NUNIT], [mono-nunit])
+fi
+
+
+AC_SUBST(MONO_NUNIT_LIBS)
+
MONO_ADDINS_DEFAULT_LIB='Mono.Addins.dll'
MONO_ADDINS_SETUP_DEFAULT_LIB='Mono.Addins.Setup.dll'
MONO_ADDINS_GUI_DEFAULT_LIB='Mono.Addins.Gui.dll'
@@ -36,7 +58,33 @@
./Mono.Addins/Makefile
./mautil/Makefile
./mautil/mautil
+./Test/HelloWorldExtension/Makefile
+./Test/FileContentExtension/Makefile
+./Test/UnitTests/Makefile
+./Test/CommandExtension/Makefile
+./Test/SystemInfoExtension/Makefile
+./Test/FileExtender/Makefile
+./Test/Makefile
+./Samples/TextEditor.Xml/Makefile
+./Samples/TextEditor/Makefile
+./Samples/TextEditor.CompilerService/Makefile
+./Samples/WriterServiceHost/Makefile
+./Samples/TextEditor.CompilerService.CSharp/Makefile
+./Samples/WriterService.SampleExtender/Makefile
+./Samples/Makefile
+./Samples/TextEditorLib/Makefile
+./Samples/WriterService/Makefile
])
AC_OUTPUT
+
+echo ""
+echo "Configuration summary"
+echo ""
+echo " * Installation prefix = $prefix"
+echo " * gui support: $enable_gui"
+echo " * unit tests: $enable_tests"
+echo ""
+
+
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches