configure.ac: fix detection of clock_gettime library
authorBaruch Siach <baruch@tkos.co.il>
Tue, 5 Jun 2018 11:22:21 +0000 (14:22 +0300)
committerNathan Hjelm <hjelmn@lanl.gov>
Mon, 22 Oct 2018 19:56:15 +0000 (13:56 -0600)
commit552a4a49afa5613c81880f842658d4fecd199b64
tree26877af667d0af40f134760a7d0974acf6aabd0c
parent044a7eeb7566dacade75b31476b46dcc6bfe7efc
configure.ac: fix detection of clock_gettime library

glibc before 2.17 requires link with librt for clock_gettime(). The
AC_SEARCH_LIBS check in configure.ac should detect this dependency.
Unfortunately commit cb77a25e51 (configure.ac: Remove obsolete AC_ERROR
and make formatting consistent) inadvertently renamed to clock_gettime2,
thus breaking librt detection.

Restore the correct clock_gettime() name.

Closes #439

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
configure.ac
libusb/version_nano.h