build: help autoconf find accept4 on illumos
authorAndre Lupa <andre@cogeco.ca>
Mon, 18 Sep 2017 17:42:17 +0000 (10:42 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 18 Sep 2017 18:18:43 +0000 (11:18 -0700)
Reviewers: cedric, vtorri, jpeg

Subscribers: jpeg

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D5203

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
configure.ac

index c202d0d..ff49983 100644 (file)
@@ -3166,7 +3166,9 @@ AM_CONDITIONAL([HAVE_IPV6], [test "x${have_ipv6}" = "xyes"])
 ### Checks for linker characteristics
 
 ### Checks for library functions
-AC_CHECK_FUNCS([accept4])
+AC_CHECK_FUNCS([accept4], ,
+   [AC_CHECK_LIB([socket], [accept4],
+   [AC_DEFINE([HAVE_ACCEPT4], [1])])])
 
 EFL_LIB_END([Ecore_Con])
 #### End of Ecore_Con