From 8b579a299e36a3c80fd421b11c3a20c4c18de3c3 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Tue, 7 Jun 2011 19:26:01 +0200 Subject: Move fdatasync autoconf checks to proper place --- erts/configure.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/erts/configure.in b/erts/configure.in index fac07f8b6a..a75cbeee7b 100644 --- a/erts/configure.in +++ b/erts/configure.in @@ -1673,6 +1673,12 @@ esac AC_C_BIGENDIAN +dnl fdatasync syscall (Unix only) +AC_CHECK_FUNCS([fdatasync]) + +dnl Find which C libraries are required to use fdatasync +AC_SEARCH_LIBS(fdatasync, [rt]) + dnl ---------------------------------------------------------------------- dnl Checks for library functions. dnl ---------------------------------------------------------------------- @@ -1860,12 +1866,6 @@ fi dnl Need by run_erl. AC_CHECK_FUNCS([openpty]) -dnl fdatasync syscall (Unix only) -AC_CHECK_FUNCS([fdatasync]) - -dnl Find which C libraries are required to use fdatasync -AC_SEARCH_LIBS(fdatasync, [rt]) - AC_CHECK_HEADERS(net/if_dl.h ifaddrs.h netpacket/packet.h) AC_CHECK_FUNCS([getifaddrs]) -- cgit v1.2.3 From 8f0f462f80891ca333fdcefd540bc0a43364de30 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Mon, 13 Jun 2011 15:17:19 +0200 Subject: Document fdatasync -lrt requirement (SunOS <= 5.10) --- erts/configure.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erts/configure.in b/erts/configure.in index a75cbeee7b..d4298caf11 100644 --- a/erts/configure.in +++ b/erts/configure.in @@ -1677,6 +1677,9 @@ dnl fdatasync syscall (Unix only) AC_CHECK_FUNCS([fdatasync]) dnl Find which C libraries are required to use fdatasync +dnl TODO: Remove check once SunOS >= 5.11 is required by erts. +dnl fdatasync requires linking against -lrt on SunOS <= 5.10. +dnl OpenSolaris 2009.06 is SunOS 5.11 and does not require -lrt. AC_SEARCH_LIBS(fdatasync, [rt]) dnl ---------------------------------------------------------------------- -- cgit v1.2.3