Skip to content

Commit

Permalink
Add search for librt to configure.ac
Browse files Browse the repository at this point in the history
  • Loading branch information
StefansM committed Feb 28, 2018
1 parent a52f360 commit 10f7fe5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ WARN_CFLAGS=$(AS_ECHO(["$WARN_CFLAGS"]) | dnl
$SED 's/-W\(error=\)\?declaration-after-statement *//g')
AC_SUBST([WARN_CFLAGS])

# OSX requires linking against libiconv
AC_SEARCH_LIBS([iconv], [iconv], [],
[AC_MSG_ERROR(["iconv is required for locale conversion"])])
# Some systems require librt for clock_gettime
AC_SEARCH_LIBS([clock_gettime], [rt], [],
[AC_MSG_ERROR(["clock_gettime is required for timing"])])

# Use noreturn attribute if available
AC_CHECK_HEADERS_ONCE([stdnoreturn.h])
Expand Down

0 comments on commit 10f7fe5

Please sign in to comment.