[librep] fixed libffi detection



commit dfa027075b00f5b6731cdd7deac01806ff7c61ed
Author: Christopher Roy Bratusek <zanghar freenet de>
Date:   Sun Sep 26 22:04:22 2010 +0200

    fixed libffi detection

 ChangeLog    |    3 +++
 configure.in |    6 +++++-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5c8b74d..7dfbb8e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2010-09-26  Christopher Bratusek <zanghar freenet de>
+	* configure.in: fixed libffi detection [Sergey Bolshakov]
+
 2010-09-25  Christopher Bratusek <zanghar freenet de>
 	* lisp/Makefile.in
 	* lisp/rep/ffi/util.jl: added ffi utils. [Sergey Bolshakov]
diff --git a/configure.in b/configure.in
index d0ad1b8..fba491f 100644
--- a/configure.in
+++ b/configure.in
@@ -214,7 +214,11 @@ AC_ARG_WITH(ffi,
 
 if test "$with_ffi" != "no"; then
   PKG_CHECK_MODULES(LIBFFI, libffi >= $FFI_MIN_VER
-  ,[found_ffi=yes]
+  ,[
+    AC_DEFINE(HAVE_FFI_H, 1, [Have ffi.h])
+    AC_DEFINE(HAVE_LIBFFI, 1, [Have libffi])
+    found_ffi=yes
+   ]
   ,[
      AC_CHECK_HEADER([ffi.h],[LIBFFI_CFLAGS=],[LIBFFI_FOUND=no])
      AC_SEARCH_LIBS([ffi_call], [ffi],[LIBFFI_LIBS=-lffi],[LIBFFI_FOUND=no])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]