]> granicus.if.org Git - graphviz/commitdiff
Fix code to rely on explicit --with-sfdp in configure
authorerg <devnull@localhost>
Wed, 30 Apr 2008 03:43:33 +0000 (03:43 +0000)
committererg <devnull@localhost>
Wed, 30 Apr 2008 03:43:33 +0000 (03:43 +0000)
plugin/neato_layout/gvlayout_neato_layout.c

index e59731b0ad5699607b66404ccaee16055ab716f1..0c8c3d4ab7e627ccf238a9c43ca24ca4c8f1bf5a 100644 (file)
@@ -74,10 +74,12 @@ gvlayout_engine_t fdpgen_engine = {
     fdp_cleanup,
 };
 
+#ifdef SFDP
 gvlayout_engine_t sfdpgen_engine = {
     sfdp_layout,
     sfdp_cleanup,
 };
+#endif
 
 gvlayout_engine_t twopigen_engine = {
     twopi_layout,
@@ -106,7 +108,9 @@ gvlayout_features_t neatogen_features = {
 gvplugin_installed_t gvlayout_neato_types[] = {
     {LAYOUT_NEATO, "neato", 0, &neatogen_engine, &neatogen_features},
     {LAYOUT_FDP, "fdp", 0, &fdpgen_engine, &neatogen_features},
+#ifdef SFDP
     {LAYOUT_SFDP, "sfdp", 0, &sfdpgen_engine, &neatogen_features},
+#endif
     {LAYOUT_TWOPI, "twopi", 0, &twopigen_engine, &neatogen_features},
     {LAYOUT_CIRCO, "circo", 0, &circogen_engine, &neatogen_features},
     {LAYOUT_NOP1, "nop", 0, &nop1gen_engine, &neatogen_features},