aboutsummaryrefslogtreecommitdiffstats
path: root/erts/configure.in
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2011-09-01 15:00:19 +0200
committerHenrik Nord <[email protected]>2011-09-01 15:00:19 +0200
commit7ca2941ca0ab85d904de658cf495318dcfbda760 (patch)
tree8d6abc1263f8ce56d9baf17755b2523dac77a160 /erts/configure.in
parente813241e103aa74d4daf025564b259f3fb9aca5a (diff)
parentbf2d853857bb0e3a7fd5a2660b22b6e743f91f1c (diff)
downloadotp-7ca2941ca0ab85d904de658cf495318dcfbda760.tar.gz
otp-7ca2941ca0ab85d904de658cf495318dcfbda760.tar.bz2
otp-7ca2941ca0ab85d904de658cf495318dcfbda760.zip
Merge branch 'dev' into major
Diffstat (limited to 'erts/configure.in')
-rw-r--r--erts/configure.in15
1 files changed, 9 insertions, 6 deletions
diff --git a/erts/configure.in b/erts/configure.in
index 0bb5496409..3dbf98b876 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -1673,6 +1673,15 @@ esac
AC_C_BIGENDIAN
+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 ----------------------------------------------------------------------
dnl Checks for library functions.
dnl ----------------------------------------------------------------------
@@ -1860,12 +1869,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])