aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-03-10 17:57:23 +0100
committerCedric BAIL <cedric.bail@samsung.com>2013-03-11 10:34:47 +0900
commit3fe8098e9c5b5bc2eea171bd5ee2c6de3f0bc5f4 (patch)
treee4dd43851ed89695243691285cb32ae3f33afa17 /m4
parentAdd F_GETFL support (which does actually nothing (diff)
downloadefl-3fe8098e9c5b5bc2eea171bd5ee2c6de3f0bc5f4.tar.gz
include some header files conditionally add specific test for fcntl
Diffstat (limited to 'm4')
-rw-r--r--m4/efl_check_funcs.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/m4/efl_check_funcs.m4 b/m4/efl_check_funcs.m4
index 59a38f7894..b976caa0e8 100644
--- a/m4/efl_check_funcs.m4
+++ b/m4/efl_check_funcs.m4
@@ -6,6 +6,7 @@ dnl Macros that check functions availability for the EFL:
dnl dirfd
dnl dladdr
dnl dlopen
+dnl fcntl
dnl fnmatch
dnl gettimeofday
dnl iconv
@@ -114,6 +115,22 @@ case "$host_os" in
esac
])
+dnl _EFL_CHECK_FUNC_FCNTL is for internal use
+dnl _EFL_CHECK_FUNC_FCNTL(EFL, VARIABLE)
+AC_DEFUN([_EFL_CHECK_FUNC_FCNTL],
+[
+case "$host_os" in
+ mingw*)
+ $2="yes"
+ ;;
+ *)
+ EFL_FIND_LIB_FOR_CODE([$1], [], [$2], [[
+#include <fcntl.h>
+]], [[int g = fcntl(0, 0);]])
+ ;;
+esac
+])
+
dnl _EFL_CHECK_FUNC_FNMATCH is for internal use
dnl _EFL_CHECK_FUNC_FNMATCH(EFL, VARIABLE)
AC_DEFUN([_EFL_CHECK_FUNC_FNMATCH],