The test does not speak for itself since MacOSX (using the exact same function name) can only set the name of the current thread, so it only requires one parameter. Probably the version check is obsolete now, but since I cannot check and have no information about MacOSX interfaces, I prefer not to break what worked.

Maybe you can do more advanced checks in configure, I am happy to pass that to someone else...