summaryrefslogtreecommitdiff
path: root/source3/configure.in
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-08-19 18:39:45 +0200
committerBjörn Jacke <bj@sernet.de>2010-08-31 09:07:13 +0200
commit4e104f185e1aa12c0923e82d3991a658eb2b9474 (patch)
tree283b8f209c73d1253d9a4ce7adb0ff11162163ff /source3/configure.in
parente8662248c8bf7dfc830ce34f301f30f59e600cd8 (diff)
downloadsamba-4e104f185e1aa12c0923e82d3991a658eb2b9474.tar.gz
samba-4e104f185e1aa12c0923e82d3991a658eb2b9474.tar.bz2
samba-4e104f185e1aa12c0923e82d3991a658eb2b9474.zip
libreplace: move detection of clock_gettime to libreplace
Diffstat (limited to 'source3/configure.in')
-rw-r--r--source3/configure.in19
1 files changed, 2 insertions, 17 deletions
diff --git a/source3/configure.in b/source3/configure.in
index e0dedb3d07..1f4da24027 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -2368,23 +2368,8 @@ if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
AC_DEFINE(HAVE_FUNCTION_MACRO,1,[Whether there is a __FUNCTION__ macro])
fi
-
-if test x"$samba_cv_WITH_PROFILE" = x"yes"; then
-
- # On some systems (eg. Linux) librt can pull in libpthread. We
- # don't want this to happen because libpthreads changes signal delivery
- # semantics in ways we are not prepared for. This breaks Linux oplocks
- # which rely on signals.
-
- AC_LIBTESTFUNC(rt, clock_gettime,
- [
- AC_DEFINE(HAVE_CLOCK_GETTIME, 1,
- [Whether clock_gettime is available])
- SMB_CHECK_CLOCK_ID(CLOCK_MONOTONIC)
- SMB_CHECK_CLOCK_ID(CLOCK_PROCESS_CPUTIME_ID)
- SMB_CHECK_CLOCK_ID(CLOCK_REALTIME)
- ])
-
+if test x"$libreplace_cv_HAVE_CLOCK_GETTIME_IN_LIBRT" = xyes ; then
+ LIBS="$LIBS -lrt"
fi
AC_CACHE_CHECK([for broken readdir name],samba_cv_HAVE_BROKEN_READDIR_NAME,[