[go: up one dir, main page]

Menu

[d8726a]: / config / librt.m4  Maximize  Restore  History

Download this file

25 lines (21 with data), 437 Bytes

dnl
dnl Real-Time library (librt)
dnl

AC_DEFUN([AC_CHECK_LIBRT],
[
   AC_MSG_CHECKING([for librt])

   rt_found="no"
   for dir in /lib /usr/lib /usr/local/lib; do
      if test -f "$dir/librt.so.1"; then
        rt_found="yes"
        break;
      fi
   done
   if test x_$rt_found = x_yes; then
        AC_SUBST(RT_LIBS,"-lrt")
	AC_MSG_RESULT([-lrt])
   else
        AC_SUBST(RT_LIBS,"")
        AC_MSG_RESULT([not needed])
   fi
])