Re: 'gcc -whatever' unrecognized option returns 0

2005-11-15 Thread Andrew Pinski
> > Hello! > > libgomp's configure checks -pthread option using following commands: First this whole "gcc -unknown" is PR 15303. Second I still think it is hard to get this correct as on darwin with some versions (really Apple's) of GCC accepted -no-cpp-precomp but newer ones (from both the FSF

'gcc -whatever' unrecognized option returns 0

2005-11-15 Thread Uros Bizjak
Hello! libgomp's configure checks -pthread option using following commands: --cut here-- # Check to see if -pthread or -lpthread is needed. Prefer the former. XPCFLAGS="" CFLAGS="$CFLAGS -pthread" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [#include void *g(void *d) { return NULL; }], [pthread_t