summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-10-26 09:01:52 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-10-26 09:01:52 +0000
commit5bdb5d376373dab8bf624388cac520094be95b63 (patch)
treee494c3a000eeb506e63cd55a77f310767633e0d8 /m4
parent124e0d4afdff0937d8be8014f4dea5f78aa9f76f (diff)
merge: add embryo
please check and report problems (not cosmetic ones) someone should update the efl.spec.in file, i don't know that stuff SVN revision: 78512
Diffstat (limited to 'm4')
-rw-r--r--m4/efl_check_funcs.m447
1 files changed, 47 insertions, 0 deletions
diff --git a/m4/efl_check_funcs.m4 b/m4/efl_check_funcs.m4
index 1611633..23712bc 100644
--- a/m4/efl_check_funcs.m4
+++ b/m4/efl_check_funcs.m4
@@ -7,6 +7,7 @@ dnl dirfd
7dnl dladdr 7dnl dladdr
8dnl dlopen 8dnl dlopen
9dnl fnmatch 9dnl fnmatch
10dnl gettimeofday
10dnl iconv 11dnl iconv
11dnl setxattr (an al.) 12dnl setxattr (an al.)
12dnl shm_open 13dnl shm_open
@@ -232,6 +233,52 @@ esac
232AS_IF([test "x${_efl_have_fct}" = "xyes"], [$2], [$3]) 233AS_IF([test "x${_efl_have_fct}" = "xyes"], [$2], [$3])
233]) 234])
234 235
236dnl _EFL_CHECK_FUNC_GETTIMEOFDAY is for internal use
237dnl _EFL_CHECK_FUNC_GETTIMEOFDAY(EFL, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
238
239AC_DEFUN([_EFL_CHECK_FUNC_GETTIMEOFDAY],
240[
241case "$host_os" in
242 mingw*)
243 _efl_have_fct="yes"
244 ;;
245 *)
246 AC_LINK_IFELSE(
247 [AC_LANG_PROGRAM([[
248#include <stdlib.h>
249#include <sys/time.h>
250 ]],
251 [[
252int res;
253res = gettimeofday(NULL, NULL);
254 ]])],
255 [_efl_have_fct="yes"],
256 [_efl_have_fct="no"])
257
258 if test "x${_efl_have_fct}" = "xno" && test "x${enable_exotic}" = "xyes"; then
259 SAVE_LIBS="${LIBS}"
260 SAVE_CFLAGS="${CFLAGS}"
261 LIBS="${LIBS} ${EXOTIC_LIBS}"
262 CFLAGS="${CFLAGS} ${EXOTIC_CFLAGS}"
263 AC_LINK_IFELSE(
264 [AC_LANG_PROGRAM([[
265#include <Exotic.h>
266 ]],
267 [[
268int res;
269res = gettimeofday(NULL, NULL);
270 ]])],
271 [_efl_have_fct="yes"],
272 [_efl_have_fct="no"])
273 LIBS="${SAVE_LIBS}"
274 CFLAGS="${SAVE_CFLAGS}"
275 fi
276 ;;
277esac
278
279AS_IF([test "x${_efl_have_fct}" = "xyes"], [$2], [$3])
280])
281
235dnl _EFL_CHECK_FUNC_ICONV_PRIV is for internal use 282dnl _EFL_CHECK_FUNC_ICONV_PRIV is for internal use
236dnl _EFL_CHECK_FUNC_ICONV_PRIV(EFL, LIB, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND) 283dnl _EFL_CHECK_FUNC_ICONV_PRIV(EFL, LIB, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
237 284