In Mac Os X pthread_setname_np has the form:

        int pthread_setname_np(const char*);

We need to check pthread_setname_np with 2 args.
I do not know if this can be done with AC_CHECK_FUNCS.