build: Only add 'serial-tests' for automake >= 1.12 (thanks Hilko Bengen).

Earlier versions of automake complain if they get a configuration
parameter which they don't understand.  The error is:

configure.ac:27: error: option 'serial-tests' not recognized

Use some m4 hackery to work around this.
Version 1.21.12.