Index: libs/graph/test/Jamfile
===================================================================
RCS file: /cvsroot/boost/boost/libs/graph/test/Jamfile,v
retrieving revision 1.7
diff -u -3 -p -r1.7 Jamfile
--- libs/graph/test/Jamfile	8 Sep 2003 17:38:48 -0000	1.7
+++ libs/graph/test/Jamfile	17 Nov 2003 08:45:41 -0000
@@ -31,13 +31,8 @@ unit-test graph : graph.cpp : <sysinclud
 
 compile graph_concepts.cpp : <sysinclude>$(BOOST_ROOT)  ;
 
-compile leda_graph_cc.cpp : <sysinclude>$(BOOST_ROOT) : 
-  <include>$(LEDA)/incl <library-file>$(LEDA)/libG.a ;
-
 compile reverse_graph_cc.cpp : <sysinclude>$(BOOST_ROOT)  ;
 
-compile stanford_graph_cc.cpp : <sysinclude>$(BOOST_ROOT) 
-   <include>$(SGB) <library-file>$(SGB)/libgb.a  ;
 
 unit-test subgraph : subgraph.cpp <lib>../../test/build/boost_test_exec_monitor : <sysinclude>$(BOOST_ROOT)  ;
 
@@ -47,3 +42,24 @@ compile vector_graph_cc.cpp : <sysinclud
 
 compile copy.cpp : <sysinclude>$(BOOST_ROOT) ;
 
+# Run SDB tests only when -sSDB= is set.
+if $(SDB) != ""
+{
+    local SDB_DEPENDCIES =
+        <include>$(SGB) <library-file>$(SGB)/libgb.a  ;
+
+    compile stanford_graph_cc.cpp : <sysinclude>$(BOOST_ROOT) 
+        $(SDB_DEPENDCIES)  ;
+}
+
+# Run LEDA tests only when -sLEDA= is set.
+if $(LEDA) != ""
+{
+     local LEDA_DEPENDENCIES = 
+        <include>$(LEDA)/incl 
+        <library-file>$(LEDA)/libG.a
+        ;
+
+    compile leda_graph_cc.cpp : <sysinclude>$(BOOST_ROOT)  
+       $(LEDA_DEPENDENCIES) ;
+}

