Is it possible to #ifdef conditionally compile based on something like
workstation name, or maybe an environment variable?

I have a problem where working development copies of software are
accidentally getting used in production. I need to arrange it so that
all copies of an application except the "gold" copy compiled on the
build machine pop up a message indicating that they should be used for
testing and debugging only.

Any ideas would be gratefully received.