the mkdir -p macro arbitrarily restricts itself to GNU mkdir by passing it a --version.
This is a bit offensive. On OpenBSD, this particular issue does not exist. It was fixed 8 years ago, published as OpenBSD 2.4, and all newer versions are not affected. Could we get an OS test and use mkdir on OpenBSD >= 2.4, please ?