summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-06-13 14:13:42 +0200
committerVolker Lendecke <vl@samba.org>2010-06-13 15:23:23 +0200
commitf0afda14ba95bc16ec8ca2377640f4ee13825af9 (patch)
tree6549bacb6a8370cf681cc2d1cac939c5e2d2992e
parentc7f44801e3e55a37cfc467de8d9ac127cd89327e (diff)
downloadsamba-f0afda14ba95bc16ec8ca2377640f4ee13825af9.tar.gz
samba-f0afda14ba95bc16ec8ca2377640f4ee13825af9.tar.bz2
samba-f0afda14ba95bc16ec8ca2377640f4ee13825af9.zip
Fix aio_read detection for -lrt
-rw-r--r--source3/configure.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in
index c3b594d55d..761768c45a 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -5497,7 +5497,9 @@ AC_ARG_WITH(aio-support,
case "$host_os" in
*)
AIO_LIBS=$LIBS
+ no_rt_LIBS=$LIBS
AC_CHECK_LIB(rt,aio_read,[AIO_LIBS="$LIBS -lrt"])
+ LIBS=$no_rt_LIBS
AC_CHECK_LIB(aio,aio_read,[AIO_LIBS="$LIBS -laio"])
AC_CACHE_CHECK([for asynchronous io support],samba_cv_HAVE_AIO,[
aio_LIBS=$LIBS