epiphany r8625 - trunk



Author: diegoe
Date: Sat Nov 29 20:04:31 2008
New Revision: 8625
URL: http://svn.gnome.org/viewvc/epiphany?rev=8625&view=rev

Log:
Add --enable-tests to configure

tests/ will be build by default.

Modified:
   trunk/Makefile.am
   trunk/configure.ac

Modified: trunk/Makefile.am
==============================================================================
--- trunk/Makefile.am	(original)
+++ trunk/Makefile.am	Sat Nov 29 20:04:31 2008
@@ -1,4 +1,8 @@
-SUBDIRS = lib embed src data po help doc tests
+SUBDIRS = lib embed src data po help doc
+
+if ENABLE_TESTS
+SUBDIRS += tests
+endif
 
 ACLOCAL_AMFLAGS = -I m4
 

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Sat Nov 29 20:04:31 2008
@@ -102,7 +102,7 @@
 fi
 
 GLIB_REQUIRED=2.16.0
-GTK_REQUIRED=2.13.5
+GTK_REQUIRED=2.14.0
 LIBXML_REQUIRED=2.6.12
 LIBXSLT_REQUIRED=1.1.7
 LIBGLADE_REQUIRED=2.3.1
@@ -121,6 +121,16 @@
   AC_DEFINE([HAVE_LIBNOTIFY],[1],[Define if libnotify is available])
 fi
 
+# Tests
+
+AC_MSG_CHECKING([whether to build tests])
+AC_ARG_ENABLE([tests],
+	AS_HELP_STRING([--enable-tests],[Wheter to build tests (default: yes)]),
+	[], [enable_tests=yes])
+AC_MSG_RESULT([$enable_tests])
+
+AM_CONDITIONAL([ENABLE_TESTS],[test "$enable_tests" = "yes"])
+
 PKG_CHECK_MODULES([DEPENDENCIES], [
 		  glib-2.0 >= $GLIB_REQUIRED
 		  gmodule-2.0
@@ -554,4 +564,5 @@
  	Zeroconf bookmarks support : $enable_zeroconf
  	NetworkManager support     : $enable_network_manager
  	Python support             : $enable_python
+ 	Build tests                : $enable_tests
 "



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]