Olly> What exactly do you have in mind here?  Are you thinking of a macro to
Olly> specify a level or perhaps better a list of requirements, maybe along
Olly> the lines of:

Olly> AC_SET_CXX_REQUIREMENTS(templates libstdc++)
Olly> AC_PROG_CXX

Olly> Or something where the user actually passes in a test program:

Olly> AC_SET_CXX_TEST([int main() {return 0;}])
Olly> AC_PROG_CXX

You can do both, by providing macros to build up a test based on
requirements:

AC_CXX_SET_TEST(AC_CXX_TEST_REQUIREMENTS(templates libstdc++))

You want to have generality because some people might need to test for
something not covered by a standard test.  (Of course another way to
do this is to make the requirements mechanism extensible, which is
probably also a good idea.)

Tom

Reply via email to