Index: scconfig/hooks.c =================================================================== --- scconfig/hooks.c (revision 1041) +++ scconfig/hooks.c (revision 1042) @@ -41,6 +41,10 @@ {"plugin-gpmi", "/local/pcb/gpmi/buildin", arg_false, "$the gpmi plugin is dynamic loadable"}, {"disable-toporouter","/local/pcb/toporouter/enable", arg_false, "$do not compile the toporouter"}, + {"disable-autorouter", "/local/pcb/autorouter/enable", arg_false, "$do not compile the autorouter"}, + {"buildin-autorouter", "/local/pcb/autorouter/buildin", arg_true, "$static link the autorouter plugin into the executable"}, + {"plugin-autorouter", "/local/pcb/autorouter/buildin", arg_false, "$the autorouter plugin is dynamic loadable"}, + {NULL, NULL, NULL, NULL} }; @@ -94,13 +98,19 @@ { db_mkdir("/local"); db_mkdir("/local/pcb"); - db_mkdir("/local/pcb/gpmi"); - db_mkdir("/local/pcb/toporouter"); /* DEFAULTS */ + db_mkdir("/local/pcb/gpmi"); put("/local/pcb/gpmi/buildin", strue); put("/local/prefix", "/usr/local"); + + db_mkdir("/local/pcb/toporouter"); put("/local/pcb/toporouter/enable", strue); + + db_mkdir("/local/pcb/autorouter"); + put("/local/pcb/autorouter/enable", strue); + put("/local/pcb/autorouter/buildin", strue); + return 0; } @@ -287,6 +297,7 @@ else printf("disabled\n"); +/* special case because the "presents" node */ printf("Scripting via GPMI: "); if (node_istrue("libs/script/gpmi/presents")) { printf("yes "); @@ -298,7 +309,18 @@ else printf("no\n"); + printf("Autorouter: "); + if (node_istrue("/local/pcb/autorouter/enable")) { + printf("yes "); + if (node_istrue("/local/pcb/autorouter/buildin")) + printf("(buildin)\n"); + else + printf("(plugin)\n"); + } + else + printf("no\n"); + if (manual_config) printf("\n\n * NOTE: you may want to edit config.manual.h (user preferences) *\n"); } Index: src_plugins/autoroute/Makefile.mod =================================================================== --- src_plugins/autoroute/Makefile.mod (revision 1041) +++ src_plugins/autoroute/Makefile.mod (revision 1042) @@ -1,7 +1,7 @@ -append /local/pcb/autorouter/enabled {} +append /local/pcb/autorouter/enable {} append /local/pcb/autorouter/buildin {} -if /local/pcb/autorouter/enabled then +if /local/pcb/autorouter/enable then if /local/pcb/autorouter/buildin then append /local/pcb/OBJS [@ ${PLUGDIR}/autoroute/autoroute.o ${PLUGDIR}/autoroute/action.o @] append /local/pcb/ACTION_REG_SRC [@ ${PLUGDIR}/autoroute/action.c @]