diff options
author | Kay Sievers <kay@vrfy.org> | 2013-07-30 03:38:55 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-07-30 03:46:14 +0200 |
commit | 7959ff9914a6f3a59dbff95c199bcc540b70ac94 (patch) | |
tree | 3d15d16b74d91e4cbf0eb4caf3896c9c49793a98 /configure.ac | |
parent | 743e89454093361653b85ff394d0434c0714a92d (diff) |
build-sys: support old glibc versions without clock_gettime()
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 76aa2a920a..f71e15c456 100644 --- a/configure.ac +++ b/configure.ac @@ -191,17 +191,22 @@ AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"]) # ------------------------------------------------------------------------------ AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])]) +AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])]) + +# unconditionally pull-in librt with old glibc versions +AC_SEARCH_LIBS([clock_gettime], [rt], [], []) save_LIBS="$LIBS" LIBS= AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])]) -AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])]) CAP_LIBS="$LIBS" +AC_SUBST(CAP_LIBS) + +LIBS= AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])]) RT_LIBS="$LIBS" AC_SUBST(RT_LIBS) LIBS="$save_LIBS" -AC_SUBST(CAP_LIBS) AC_CHECK_FUNCS([fanotify_init fanotify_mark]) AC_CHECK_FUNCS([__secure_getenv secure_getenv]) |