Index: configure.ac =================================================================== RCS file: /cvsroot/gnustep/gnustep/core/base/configure.ac,v retrieving revision 1.56 diff -u -r1.56 configure.ac --- configure.ac 26 Oct 2004 19:08:17 -0000 1.56 +++ configure.ac 16 Nov 2004 20:44:39 -0000 @@ -997,20 +997,31 @@ [Define if using the libffi library for invocations]) WITH_FFI=libffi LIBS="-lffi $LIBS" - AC_MSG_RESULT(libffi) + AC_TRY_LINK([#include ], ,ffi_ok="yes", ffi_ok="no") + if test $ffi_ok = yes; then + AC_MSG_RESULT(libffi) + fi elif test $enable_ffcall = yes; then AC_DEFINE(USE_FFCALL,1, [Define if using the ffcall library for invocations]) WITH_FFI=ffcall LIBS="-lcallback -lavcall $LIBS" - AC_MSG_RESULT(ffcall) + AC_TRY_LINK([#include ], , ffi_ok="yes", ffi_ok="no") + if test $ffi_ok = yes; then + AC_MSG_RESULT(ffcall) + fi else + ffi_ok=no +fi + +if test $ffi_ok = no; then AC_MSG_RESULT(none) echo if test $have_forward_hook = no; then echo "You do not have an up-to-date libobjc library installed" else - echo "You do not have either ffcall or libffi installed" + echo "You do not have either ffcall or libffi installed, or configure needs" + echo "--with-ffi-include and/or --with-ffi-library flags so GNUstep can find them" fi echo "GNUstep requires ffcall or libffi and proper libobjc hooks to do" echo "invocations and DO."