
On Fri, Jan 28, 2005 at 06:43:21PM -0400, bulia byak wrote:
On Fri, 28 Jan 2005 13:55:45 -0500, mental@...3... <mental@...3...> wrote:
Mental, can you please make 6.4 required, so that it won't compile with 6.3?
I'm not sure how. As far as I know there's no (portable) way to discriminate between 6.3 and 6.4 for the purposes of a ./configure test.
There must be a way. Can you ask on the GC list?
I added a libgc version test to configure.ac. There aren't very well documented methods to access the version info, but my test seems to do the trick:
+ AC_MSG_CHECKING([libgc version 6.4+]) + AC_RUN_IFELSE( + [AC_LANG_SOURCE([[ + #ifdef HAVE_GC_GC_H + # include <gc/gc.h> + #else + # include <gc.h> + #endif + extern unsigned GC_version; + int main(void){ + unsigned min = ((6 << 16) | (4 << 8) | 0); + if (GC_version>=min) return 0; + return 1; + }]])], + [gc_ok=yes], + [gc_ok=no] + ) + AC_MSG_RESULT([$gc_ok])