Compile-time option to use A* for distribution