don't move eio to IN-EFL right now SVN revision: 80180devs/devilhorns/wayland_egl
parent
633e29c5a5
commit
81c86b19f6
37 changed files with 332 additions and 92 deletions
@ -0,0 +1,56 @@ |
||||
dnl use: EIO_CHECK_INOTIFY([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
||||
AC_DEFUN([EIO_CHECK_INOTIFY], |
||||
[ |
||||
_eio_have_inotify="no" |
||||
|
||||
dnl We need to check if the right inotify version is accessible |
||||
|
||||
dnl It is hard to find a good test on how to check the correct |
||||
dnl inotify version. They changed the headers a lot. |
||||
dnl in kernel 2.6.13 __NR_inotify_init was added to the defined syscalls |
||||
dnl in asm/unistd.h and IN_MOVE_SELF was added to linux/inotify.h |
||||
dnl so with this check you need a very new kernel and kernel-headers! |
||||
|
||||
if ! test "x${have_windows}" = "xyes" ; then |
||||
|
||||
AC_CHECK_LIB([c], [inotify_init], |
||||
[ |
||||
AC_DEFINE([HAVE_INOTIFY], [1], [ File monitoring with Inotify ]) |
||||
AC_DEFINE([HAVE_SYS_INOTIFY], [1], [ File monitoring with Inotify - sys/inotify.h ]) |
||||
_eio_have_inotify="yes" |
||||
], |
||||
[ |
||||
AC_TRY_COMPILE( |
||||
[ |
||||
#include <asm/unistd.h> |
||||
#include <linux/inotify.h> |
||||
], |
||||
[ |
||||
int a = __NR_inotify_init; int b = IN_MOVE_SELF; |
||||
], |
||||
[ |
||||
AC_DEFINE([HAVE_INOTIFY], [1], [ File monitoring with Inotify ]) |
||||
_eio_have_inotify="yes" |
||||
], |
||||
[_eio_have_inotify="no"]) |
||||
]) |
||||
fi |
||||
|
||||
AC_MSG_CHECKING([whether inotify is to be used for filemonitoring]) |
||||
AC_MSG_RESULT([${_eio_have_inotify}]) |
||||
|
||||
AS_IF([test "x${_eio_have_inotify}" = "xyes"], [$1], [$2]) |
||||
]) |
||||
|
||||
dnl use: EIO_CHECK_NOTIFY_WIN32([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
||||
AC_DEFUN([EIO_CHECK_NOTIFY_WIN32], |
||||
[ |
||||
if test "x${have_win32}" = "xyes" ; then |
||||
AC_DEFINE([HAVE_NOTIFY_WIN32], [1], [ File monitoring with Windows notification ]) |
||||
fi |
||||
|
||||
AC_MSG_CHECKING([whether Windows notification is to be used for filemonitoring]) |
||||
AC_MSG_RESULT([${have_win32}]) |
||||
|
||||
AS_IF([test "x${have_win32}" = "xyes"], [$1], [$2]) |
||||
]) |
@ -0,0 +1,50 @@ |
||||
|
||||
### Library |
||||
|
||||
lib_LTLIBRARIES += lib/eio/libeio.la |
||||
|
||||
installed_eiomainheadersdir = $(includedir)/eio-@VMAJ@ |
||||
dist_installed_eiomainheaders_DATA = lib/eio/Eio.h lib/eio/eio_inline_helper.x |
||||
|
||||
lib_eio_libeio_la_SOURCES = \ |
||||
lib/eio/eio_dir.c \ |
||||
lib/eio/eio_eet.c \ |
||||
lib/eio/eio_file.c \ |
||||
lib/eio/eio_main.c \ |
||||
lib/eio/eio_map.c \ |
||||
lib/eio/eio_monitor.c \ |
||||
lib/eio/eio_monitor_poll.c \ |
||||
lib/eio/eio_single.c \ |
||||
lib/eio/eio_xattr.c \ |
||||
lib/eio/eio_private.h |
||||
|
||||
if EIO_HAVE_INOTIFY |
||||
lib_eio_libeio_la_SOURCES += lib/eio/eio_monitor_inotify.c |
||||
else |
||||
if EIO_HAVE_WINCHANGE |
||||
lib_eio_libeio_la_SOURCES += lib/eio/eio_monitor_win32.c |
||||
endif |
||||
endif |
||||
|
||||
lib_eio_libeio_la_CPPFLAGS = \ |
||||
-I$(top_srcdir)/src/lib/eina \ |
||||
-I$(top_srcdir)/src/lib/eo \ |
||||
-I$(top_srcdir)/src/lib/eet \ |
||||
-I$(top_srcdir)/src/lib/ecore \ |
||||
-I$(top_srcdir)/src/lib/eio \ |
||||
-I$(top_builddir)/src/lib/eina \ |
||||
-I$(top_builddir)/src/lib/eo \ |
||||
-I$(top_builddir)/src/lib/eet \ |
||||
-I$(top_builddir)/src/lib/ecore \ |
||||
-I$(top_builddir)/src/lib/eio \ |
||||
-DEFL_EIO_BUILD \ |
||||
@EFL_CFLAGS@ |
||||
|
||||
lib_eio_libeio_la_LIBADD = \ |
||||
lib/eina/libeina.la \ |
||||
lib/eo/libeo.la \ |
||||
lib/eet/libeet.la \ |
||||
lib/ecore/libecore.la \ |
||||
-lm |
||||
|
||||
lib_eio_libeio_la_LDFLAGS = -no-undefined -version-info @version_info@ @release_info@ |
Loading…
Reference in new issue