eina.spec.in \
m4/common/efl_attribute.m4 \
m4/common/efl_benchmark.m4 \
+m4/common/efl_check_funcs.m4 \
m4/common/efl_compiler_flag.m4 \
m4/common/efl_coverage.m4 \
m4/common/efl_cpu.m4 \
m4/common/efl_doxygen.m4 \
-m4/common/efl_fnmatch.m4 \
-m4/common/efl_shm_open.m4 \
+m4/common/efl_examples.m4 \
+m4/common/efl_path_max.m4 \
m4/common/efl_tests.m4 \
m4/common/efl_threads.m4 \
-m4/common/efl_path_max.m4 \
+m4/common/efl_voltron.m4 \
m4/eina/eina_bench.m4 \
m4/eina/eina_check.m4
+++ /dev/null
-dnl Copyright (C) 2012 Vincent Torri <vtorri at univ-evry dot fr>
-dnl That code is public domain and can be freely used or copied.
-
-dnl Macro that check if dlopen and dladdr functions are available or not.
-
-dnl Usage: EFL_CHECK_DLOPEN([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
-dnl Call AC_SUBST(EFL_DLOPEN_LIBS)
-dnl Define HAVE_DLOPEN to 1if dlopen is available
-
-AC_DEFUN([EFL_CHECK_DLOPEN],
-[
-case "$host_os" in
- mingw*)
- _efl_have_dlopen="yes"
- EFL_DLOPEN_LIBS="-ldl"
- ;;
- *)
- _efl_have_dlopen="no"
-
-dnl Check is dlopen is in libc
-
- AC_MSG_CHECKING([for dlopen in libc])
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(
- [[
-#include <dlfcn.h>
- ]],
- [[
-void *h = dlopen(0, 0);
- ]])],
- [_efl_have_dlopen="yes"],
- [_efl_have_dlopen="no"])
-
- AC_MSG_RESULT([${_efl_have_dlopen}])
-
- if test "x${_efl_have_dlopen}" = "xno" ; then
- AC_MSG_CHECKING([for dlopen in libdl])
-
- LIBS_save="${LIBS}"
- LIBS="${LIBS} -ldl"
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(
- [[
-#include <dlfcn.h>
- ]],
- [[
-void *h = dlopen(0, 0);
- ]])],
- [
- EFL_DLOPEN_LIBS="-ldl"
- _efl_have_dlopen="yes"
- ],
- [_efl_have_dlopen="no"])
-
- LIBS="${LIBS_save}"
-
- AC_MSG_RESULT([${_efl_have_dlopen}])
- fi
- ;;
-esac
-
-AC_SUBST([EFL_DLOPEN_LIBS])
-
-if test "x${_efl_have_dlopen}" = "xyes" ; then
- AC_DEFINE([HAVE_DLOPEN], [1], [Define to 1 if you have the `dlopen' function.])
-fi
-
-AS_IF([test "x${_efl_have_dlopen}" = "xyes"], [$1], [$2])
-])
-
-dnl Usage: EFL_CHECK_DLADDR([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
-dnl Call AC_SUBST(EFL_DLADDR_LIBS)
-dnl Define HAVE_DLADDR to 1if dladdr is available
-
-AC_DEFUN([EFL_CHECK_DLADDR],
-[
-case "$host_os" in
- mingw*)
- _efl_have_dladdr="yes"
- EFL_DLADDR_LIBS="-ldl"
- ;;
- *)
- _efl_have_dladdr="no"
-
-dnl Check is dladdr is in libc
-
- AC_MSG_CHECKING([for dladdr in libc])
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(
- [[
-#define _GNU_SOURCE
-#include <dlfcn.h>
- ]],
- [[
-int res = dladdr(0, 0);
- ]])],
- [_efl_have_dladdr="yes"],
- [_efl_have_dladdr="no"])
-
- AC_MSG_RESULT([${_efl_have_dladdr}])
-
- if test "x${_efl_have_dladdr}" = "xno" ; then
- AC_MSG_CHECKING([for dladdr in libdl])
-
- LIBS_save="${LIBS}"
- LIBS="${LIBS} -ldl"
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(
- [[
-#define _GNU_SOURCE
-#include <dlfcn.h>
- ]],
- [[
-int res = dladdr(0, 0);
- ]])],
- [
- EFL_DLADDR_LIBS="-ldl"
- _efl_have_dladdr="yes"
- ],
- [_efl_have_dladdr="no"])
-
- LIBS="${LIBS_save}"
-
- AC_MSG_RESULT([${_efl_have_dladdr}])
- fi
- ;;
-esac
-
-AC_SUBST([EFL_DLADDR_LIBS])
-
-if test "x${_efl_have_dladdr}" = "xyes" ; then
- AC_DEFINE([HAVE_DLADDR], [1], [Define to 1 if you have the `dladdr' function.])
-fi
-
-AS_IF([test "x${_efl_have_dladdr}" = "xyes"], [$1], [$2])
-])
+++ /dev/null
-dnl Copyright (C) 2010 Vincent Torri <vtorri at univ-evry dot fr>
-dnl That code is public domain and can be freely used or copied.
-
-dnl Macro that check if fnmatch functions are available or not.
-
-dnl Usage: EFL_CHECK_FNMATCH([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
-dnl Call AC_SUBST(EFL_FNMATCH_LIBS)
-
-AC_DEFUN([EFL_CHECK_FNMATCH],
-[
-
-AC_CHECK_HEADER([fnmatch.h], [_efl_have_fnmatch="yes"], [_efl_have_fnmatch="no"])
-
-if test "x${_efl_have_fnmatch}" = "xyes" ; then
- AC_SEARCH_LIBS([fnmatch],
- [fnmatch evil iberty],
- [_efl_have_fnmatch="yes"],
- [_efl_have_fnmatch="no"])
-fi
-
-EFL_FNMATCH_LIBS=""
-
-if (! test "x${ac_cv_search_fnmatch}" = "xnone required") && (! test "x${ac_cv_search_fnmatch}" = "xno") && (! test "x${ac_cv_search_fnmatch}" = "x-levil") ; then
- EFL_FNMATCH_LIBS=${ac_cv_search_fnmatch}
-fi
-
-AC_SUBST(EFL_FNMATCH_LIBS)
-
-AS_IF([test "x$_efl_have_fnmatch" = "xyes"], [$1], [$2])
-
-])
+++ /dev/null
-dnl Copyright (C) 2012 Vincent Torri <vtorri at univ-evry dot fr>
-dnl That code is public domain and can be freely used or copied.
-
-dnl Macro that check if shm_open function is available or not.
-
-dnl Usage: EFL_CHECK_SHM_OPEN([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
-dnl Call AC_SUBST(EFL_SHM_OPEN_LIBS)
-dnl Define HAVE_SHM_OPEN to 1if shm_open is available
-
-AC_DEFUN([EFL_CHECK_SHM_OPEN],
-[
-_efl_have_shm_open="no"
-
-dnl Check is shm_open is in libc
-
-AC_MSG_CHECKING([for shm_open in libc])
-AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(
- [[
-#include <sys/mman.h>
-#include <sys/stat.h> /* For mode constants */
-#include <fcntl.h> /* For O_* constants */
- ]],
- [[
-int fd;
-
-fd = shm_open("/dev/null", O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO);
- ]])],
- [_efl_have_shm_open="yes"],
- [_efl_have_shm_open="no"])
-
-AC_MSG_RESULT([${_efl_have_shm_open}])
-
-if test "x${_efl_have_shm_open}" = "xno" ; then
- AC_MSG_CHECKING([for shm_open in librt])
-
- LIBS_save="${LIBS}"
- LIBS="${LIBS} -lrt"
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(
- [[
-#include <sys/mman.h>
-#include <sys/stat.h> /* For mode constants */
-#include <fcntl.h> /* For O_* constants */
- ]],
- [[
-int fd;
-
-fd = shm_open("/dev/null", O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO);
- ]])],
- [
- EFL_SHM_OPEN_LIBS="-lrt"
- _efl_have_shm_open="yes"
- ],
- [_efl_have_shm_open="no"])
-
- LIBS="${LIBS_save}"
-
- AC_MSG_RESULT([${_efl_have_shm_open}])
-fi
-
-AC_SUBST([EFL_SHM_OPEN_LIBS])
-
-if test "x${_efl_have_shm_open}" = "xyes" ; then
- AC_DEFINE([HAVE_SHM_OPEN], [1], [Define to 1 if you have the `shm_open' function.])
-fi
-
-AS_IF([test "x${_efl_have_shm_open}" = "xyes"], [$1], [$2])
-
-])