------- Comment #2 from acahalan at gmail dot com 2006-09-27 04:03 ------- (In reply to comment #1) > Use autoconf like the GNU coding style recommends.
That is exactly the the main "gross hack" I refer to. Hacks like autoconf should not be necessary. People also hack around the problem with cmake, with testing semi-related things like __FreeBSD__ or __i386__, and with custom Makefile hacks. Eeeeeeew. The preprocessor itself should allow safe use of header files which might not exist. Here is a third method: Idea #3 #if caninclude(<foo.h>) #include <foo.h> #endif -- acahalan at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29245