PAC_C_CHECK_COMPILER_OPTION

Check that a compiler option is accepted without warning messages

Synopsis

PAC_C_CHECK_COMPILER_OPTION(optionname,action-if-ok,action-if-fail)

Output Effects

If no actions are specified, a working value is added to COPTIONS

Notes

This is now careful to check that the output is different, since some compilers are noisy.

We are extra careful to prototype the functions in case compiler options that complain about poor code are in effect.

Because this is a long script, we have ensured that you can pass a variable containing the option name as the first argument.