mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix the broken test whether libffi works. The test program always
failed, but this failure was masked by an incorrect use of AC_TRY_RUN. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33376 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dbd9d19e8f
commit
5269ba015b
4 changed files with 2915 additions and 16991 deletions
|
@ -1,3 +1,12 @@
|
|||
2011-06-26 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* configure.ac:
|
||||
* config/config.ffi.c (cls_struct_combined_fn): Fix the broken
|
||||
test whether libffi works. The test program always failed, but
|
||||
this failure was masked by an incorrect use of AC_TRY_RUN.
|
||||
|
||||
* configure: Regenerated.
|
||||
|
||||
2011-06-23 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Headers/Foundation/NSBundle.h,
|
||||
|
|
|
@ -18,7 +18,7 @@ void cls_struct_combined_fn(struct cls_struct_combined arg)
|
|||
arg.c, arg.d);
|
||||
fflush(stdout);
|
||||
*/
|
||||
if (arg.a != 4 || arg.b != 5 || arg.c != 6 || arg.d != 8) abort();
|
||||
if (arg.a != 4 || arg.b != 5 || arg.c != 1 || arg.d != 8) abort();
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -2524,7 +2524,8 @@ if test $enable_libffi = yes; then
|
|||
[Define if using the libffi library for invocations])
|
||||
WITH_FFI=libffi
|
||||
LIBS="-lffi $LIBS"
|
||||
AC_TRY_RUN([#include "$srcdir/config/config.ffi.c"],,ffi_ok="yes",ffi_ok="no")
|
||||
AC_TRY_RUN([#include "$srcdir/config/config.ffi.c"],
|
||||
ffi_ok="yes",ffi_ok="no",ffi_ok="yes")
|
||||
if test $ffi_ok = yes; then
|
||||
AC_MSG_RESULT(libffi)
|
||||
if test $do_broken_libffi = yes; then
|
||||
|
|
Loading…
Reference in a new issue