Some systems (e.g. glibc < 2.17) require librt to get clock_gettime
This commit is contained in:
parent
9ccfba2125
commit
2d2a664f6c
1 changed files with 4 additions and 0 deletions
|
@ -125,6 +125,10 @@ AM_CONDITIONAL(SPI_ENABLED, [test x"$spi_required" = x"yes"])
|
||||||
|
|
||||||
# Enable I2C if
|
# Enable I2C if
|
||||||
AM_CONDITIONAL(I2C_ENABLED, [test x"$i2c_required" = x"yes"])
|
AM_CONDITIONAL(I2C_ENABLED, [test x"$i2c_required" = x"yes"])
|
||||||
|
if test x"$i2c_required" = x"yes"
|
||||||
|
then
|
||||||
|
AC_SEARCH_LIBS([clock_gettime], [rt])
|
||||||
|
fi
|
||||||
|
|
||||||
# Documentation (default: no)
|
# Documentation (default: no)
|
||||||
AC_ARG_ENABLE([doc],AS_HELP_STRING([--enable-doc],[Enable documentation generation.]),[enable_doc=$enableval],[enable_doc="no"])
|
AC_ARG_ENABLE([doc],AS_HELP_STRING([--enable-doc],[Enable documentation generation.]),[enable_doc=$enableval],[enable_doc="no"])
|
||||||
|
|
Loading…
Reference in a new issue