How do I get autotools (automake/autoconf/etc.) to define a macro for my program so that I can compile different code depending upon what OS I compile on?
What I want to do is load a ".so" library if on linux/unix, ".dylib" libraries on Mac OS X/darwin, or ".dll" libraries on Windows, but I don't want to force the end user to specify manually in the Makefile.
Thanks!