configure.ac: Consider Mac OS X target version for clock_gettime()
authorChris Dickens <christopher.a.dickens@gmail.com>
Fri, 15 Jan 2021 20:42:35 +0000 (12:42 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Fri, 15 Jan 2021 20:42:35 +0000 (12:42 -0800)
commit08e0029f105de993d798ea902827ae2efe7798a8
tree6cbbd7c47658170b347c0684a6c1f5ac1bca9742
parente78cafbaa2692f5b6e8e8f0ff306f5826c5dd94d
configure.ac: Consider Mac OS X target version for clock_gettime()

The AC_CHECK_FUNCS() macro checks whether a program compiled on the host
will link against the function, but it does not help when targeting
older systems where that function is not available. Additionally, the
way that autoconf compiles the program ignores any attributes or
preprocessor guards that installed headers might have applied to that
function.

Resolve this by verifying that the OS X target version is 10.12 or newer
before checking for clock_gettime().

Closes #836

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
configure.ac
libusb/version_nano.h