wrapper for Common Tools

Hi All, I have bunch of different versions of generic tools (like gcc, gdb, ddd etc) and these tools are compiled for different platforms (linux, solaris...)
I would like to mount all these tools into some common place (like /nfs/tools/bin) and have the wrapper to pull the latest version of the tool for any specific platform. What I can use to accomplish this?
Thanks,
--nix

Create separate subdirectories for each platform. NFS mount the correct subdirectory as /nfs/tools/bin on the local box. You will also have to have the tools either compiled statically, or the runtime libraries parked in /nfs/tools/lib which is another NFS mount - along with LD_LIBRARY_PATH. LD_LIBRARY_PATH has issues - it may be called SHLIB_PATH, for example. You may want some links in /usr/lib to the NFS mount.

I understand. Is there any template or some sort of freeware (or bunch of scripts I can use) related to smart wrapper?