summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-02-24 11:17:26 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-02-24 11:17:26 +0000
commit786c0117a22c5506475154ec55a0b552bc58df44 (patch)
tree7508282e2a9bf7faa149ea0a1b7ec437e26975f9
parentb2a7c961da6a38d553d42e62f93556955b75ad27 (diff)
downloadeet-786c0117a22c5506475154ec55a0b552bc58df44.tar.gz
eet: add Exotic support
SVN revision: 68400
-rw-r--r--configure.ac13
-rw-r--r--m4/efl_fnmatch.m412
-rw-r--r--src/bin/Makefile.am2
3 files changed, 26 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 30e2d38..70c8dbc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -234,6 +234,19 @@ AC_SUBST(EET_LIBS)
PKG_CHECK_MODULES(EINA, [eina >= 1.1.0])
requirement_eet="eina >= 1.1.0 ${requirement_eet}"
+### Checks for portability layer
+
+PKG_CHECK_MODULES([EXOTIC],
+ [exotic],
+ [enable_exotic="yes"],
+ [enable_exotic="no"])
+
+if test "x${enable_exotic}" = "xyes"; then
+ requirement_eet="exotic ${requirement_eet}"
+
+ AC_DEFINE([HAVE_EXOTIC_H], [1], [Define to 1 if you have Exotic.])
+fi
+
# Gnutls support
AC_ARG_ENABLE([gnutls],
diff --git a/m4/efl_fnmatch.m4 b/m4/efl_fnmatch.m4
index a92ac6b..b5555ee 100644
--- a/m4/efl_fnmatch.m4
+++ b/m4/efl_fnmatch.m4
@@ -24,6 +24,18 @@ if (! test "x${ac_cv_search_fnmatch}" = "xnone required") && (! test "x${ac_cv_s
EFL_FNMATCH_LIBS=${ac_cv_search_fnmatch}
fi
+if test "x${_efl_have_fnmatch}" != "xyes" -a "x${enable_exotic}" = "xyes"; then
+ LDFLAGS_SAVE="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $EXOTIC_LIBS"
+ AC_CHECK_LIB([exotic], [fnmatch],
+ [_efl_have_fnmatch="yes"],
+ [_efl_have_fnmatch="no"])
+
+ if test "x${_efl_have_fnmatch}" = "xyes"; then
+ EFL_FNMATCH_LIBS="exotic"
+ fi
+fi
+
AC_SUBST(EFL_FNMATCH_LIBS)
AS_IF([test "x$_efl_have_fnmatch" = "xyes"], [$1], [$2])
diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am
index ba7d67e..89c68f1 100644
--- a/src/bin/Makefile.am
+++ b/src/bin/Makefile.am
@@ -17,5 +17,5 @@ EXTRA_PROGRAMS = eet
eet_SOURCES = eet_main.c
eet_CFLAGS = @EET_CFLAGS@
-eet_LDADD = $(top_builddir)/src/lib/libeet.la @EINA_LIBS@ @EVIL_LIBS@
+eet_LDADD = $(top_builddir)/src/lib/libeet.la @EINA_LIBS@ @EVIL_LIBS@ @EXOTIC_LIBS@
eet_LDFLAGS = @lt_enable_auto_import@