aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinícius dos Santos Oliveira <vini.ipsmaker@expertisesolutions.com.br>2015-06-02 17:18:03 -0300
committerVinícius dos Santos Oliveira <vini.ipsmaker@expertisesolutions.com.br>2015-06-02 17:30:59 -0300
commit052d691232b638201b5ffc57f948d62555875a40 (patch)
tree24c6232d7b967e2c5e55837c0243df6c9e54fcf2
parentInitial bindings for Ecore_Idle (diff)
downloadefl-052d691232b638201b5ffc57f948d62555875a40.tar.gz
fix compilation under Ubuntu-like systems
-rw-r--r--configure.ac32
1 files changed, 30 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 8cc04e1044..49f4d54b6d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1078,8 +1078,36 @@ case "$want_js" in
)
])
],
- [AC_MSG_ERROR([Could not find include headers from nodejs.])]
- )
+ [
+ AC_CHECK_HEADER([nodejs/deps/v8/include/v8.h],
+ [
+ AC_DEFINE_UNQUOTED([V8_INCLUDE_HEADER], [nodejs/deps/v8/include/v8.h], [Include header for libv8])
+ AC_DEFINE_UNQUOTED([NODE_INCLUDE_HEADER], [nodejs/src/node.h], [Include header for nodejs])
+ V8_INCLUDE_HEADER=nodejs/deps/v8/include/v8.h
+ NODE_INCLUDE_HEADER=nodejs/src/node.h
+ AC_SUBST([V8_INCLUDE_HEADER])
+ AC_SUBST([NODE_INCLUDE_HEADER])
+
+ AC_CHECK_HEADER([nodejs/deps/uv/include/uv.h],
+ [
+ AC_DEFINE_UNQUOTED([UV_INCLUDE_HEADER], [nodejs/deps/uv/include/uv.h], [Include header for libuv])
+ UV_INCLUDE_HEADER=node/deps/uv/include/uv.h
+ AC_SUBST([UV_INCLUDE_HEADER])
+ ],
+ [
+ AC_CHECK_HEADER([uv.h],
+ [
+ AC_DEFINE_UNQUOTED([UV_INCLUDE_HEADER], [uv.h], [Include header for libuv])
+ UV_INCLUDE_HEADER=uv.h
+ AC_SUBST([UV_INCLUDE_HEADER])
+ ],
+ [AC_MSG_ERROR([Could not find include headers from nodejs.])]
+ )
+ ])
+ ],
+ [AC_MSG_ERROR([Could not find include headers from nodejs.])]
+ )
+ ])
])
;;
libv8)