diff options
author | Henrik Nord <[email protected]> | 2011-09-01 14:40:28 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2011-09-01 14:40:38 +0200 |
commit | b347af6c37b39c04823a276d0aff6a194382ec10 (patch) | |
tree | aa5a0e4894d9b005461ef9b5507a3627a30a16a0 | |
parent | afdb47aa63c5dda1939662b65ba2cdfb81229140 (diff) | |
parent | 8f0f462f80891ca333fdcefd540bc0a43364de30 (diff) | |
download | otp-b347af6c37b39c04823a276d0aff6a194382ec10.tar.gz otp-b347af6c37b39c04823a276d0aff6a194382ec10.tar.bz2 otp-b347af6c37b39c04823a276d0aff6a194382ec10.zip |
Merge branch 'ta/configure-fdatasync' into dev
* ta/configure-fdatasync:
Document fdatasync -lrt requirement (SunOS <= 5.10)
Move fdatasync autoconf checks to proper place
OTP-9512
-rw-r--r-- | erts/configure.in | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/erts/configure.in b/erts/configure.in index fac07f8b6a..d4298caf11 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]) |