Conditional Dijkstra compilation.