Skip to content
Snippets Groups Projects
Commit 6c59e1ad authored by Sven Willner's avatar Sven Willner
Browse files

Add -lrt dependency

parent af5ea3a6
No related branches found
No related tags found
No related merge requests found
......@@ -316,10 +316,12 @@ AC_ARG_WITH([borges],
[yes],[AC_CHECK_HEADERS([borges/borges.h],,
[AC_MSG_ERROR([Could not find borges/borges.h])],
[AC_INCLUDES_DEFAULT])
AC_CHECK_LIB([rt], [shm_open])
AC_SEARCH_LIBS([borg_context_init],
[borges],
[AC_DEFINE([HAVE_BORGES],[1],[BORGES library is present if defined to 1])],
[AC_MSG_ERROR([Could not link to borges library])])],
[AC_MSG_ERROR([Could not link to borges library])],
[-lrt])],
[*],[BORGES_ROOT=$with_borges
AS_IF([test -d "$BORGES_ROOT"],
[LDFLAGS="-L$BORGES_ROOT/lib $LDFLAGS"
......@@ -327,11 +329,13 @@ AC_ARG_WITH([borges],
AC_CHECK_HEADERS([borges/borges.h],,
[AC_MSG_ERROR([Could not find borges/borges.h])],
[AC_INCLUDES_DEFAULT])
AC_CHECK_LIB([rt], [shm_open])
AC_SEARCH_LIBS([borg_context_init],
[borges],
[AC_DEFINE([HAVE_BORGES],[1],[BORGES library is present if defined to 1])],
[AC_MSG_ERROR([Could not link to borges library])])
BORGES_LIBS=" -L$BORGES_ROOT/lib -lborges"
[AC_MSG_ERROR([Could not link to borges library])],
[-lrt])
BORGES_LIBS=" -L$BORGES_ROOT/lib"
BORGES_INCLUDE=" -I$BORGES_ROOT/include"],
[AC_MSG_ERROR([$BORGES_ROOT is not a directory! BORGES suppressed])])])])
AC_SUBST([BORGES_INCLUDE])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment