Fix linking for recent sd-daemon.c update

The recent update of sd-daemon.c introduced the usage of mq_getattr(), which is
shipped in -lrt (but clock_gettime isn't any more in glibc 2.17).

Also check for mq_getattr() in the rt library to fix linking with glibc 2.17.

http://bugzilla.adiscon.com/show_bug.cgi?id=428
This commit is contained in:
Martin Pitt 2013-03-22 06:46:32 +01:00 committed by Rainer Gerhards
parent d6b86f8b9f
commit 7da35cf0e2

View File

@ -65,6 +65,8 @@ save_LIBS=$LIBS
LIBS=
AC_SEARCH_LIBS(clock_gettime, rt)
RT_LIBS=$LIBS
AC_SEARCH_LIBS(mq_getattr, rt)
RT_LIBS="$RT_LIBS $LIBS"
LIBS=
AC_SEARCH_LIBS(dlopen, dl)
DL_LIBS=$LIBS