Fix ffi check

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17523 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2003-08-24 02:46:30 +00:00
parent 952b269d93
commit e73bb9ffcc
3 changed files with 28 additions and 26 deletions

View file

@ -1,5 +1,7 @@
2003-08-23 Adam Fedor <fedor@gnu.org>
* configure.ac: Fix mistake in checking for ffi.
* Tools/AGSIndex.m: Add NSString compatibility interface
when compiling on apple-apple-apple.
* Tools/AGSHtml.m: idem.

50
configure vendored
View file

@ -12208,30 +12208,6 @@ fi
have_forward_hook=yes
echo "$as_me:$LINENO: checking \"for forwarding callback in runtime\"" >&5
echo $ECHO_N "checking \"for forwarding callback in runtime\"... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <objc/objc-api.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "__objc_msg_forward" >/dev/null 2>&1; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; have_forward_hook=no
fi
rm -f conftest*
for ac_header in callback.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
@ -12370,11 +12346,35 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then
_ACEOF
else
have_forward_hook=no
enable_ffcall=no
fi
done
have_forward_hook=yes
echo "$as_me:$LINENO: checking \"for forwarding callback in runtime\"" >&5
echo $ECHO_N "checking \"for forwarding callback in runtime\"... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <objc/objc-api.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "__objc_msg_forward" >/dev/null 2>&1; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; have_forward_hook=no
fi
rm -f conftest*
if test $have_forward_hook = no; then
enable_libffi=no
enable_ffcall=no

View file

@ -888,12 +888,12 @@ if test ${ffcall_libdir} != "no"; then
fi
AC_CHECK_HEADER(ffi.h, , enable_libffi=no)
AC_CHECK_HEADERS(callback.h, , enable_ffcall=no)
have_forward_hook=yes
AC_MSG_CHECKING("for forwarding callback in runtime")
AC_EGREP_HEADER(__objc_msg_forward, objc/objc-api.h, AC_MSG_RESULT(yes),
AC_MSG_RESULT(no); have_forward_hook=no)
AC_CHECK_HEADERS(callback.h, , have_forward_hook=no)
if test $have_forward_hook = no; then
enable_libffi=no
enable_ffcall=no