common/autoconf/lib-ffi.m4
changeset 33393 0f584e7d6ab6
parent 32921 8e0250dfa145
child 42425 57cde06ae8d6
--- a/common/autoconf/lib-ffi.m4	Wed Jul 05 20:56:54 2017 +0200
+++ b/common/autoconf/lib-ffi.m4	Thu Oct 29 15:24:36 2015 +0100
@@ -37,8 +37,10 @@
       [specify directory for the libffi library])])
 
   if test "x$NEEDS_LIB_FFI" = xfalse; then
-    if test "x${with_libffi}" != x || test "x${with_libffi_include}" != x || test "x${with_libffi_lib}" != x; then
-      AC_MSG_WARN([libffi not used, so --with-libffi is ignored])
+    if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \
+        (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \
+        (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then
+      AC_MSG_WARN([[libffi not used, so --with-libffi[-*] is ignored]])
     fi
     LIBFFI_CFLAGS=
     LIBFFI_LIBS=