I'm looking at:
dnl Our own version of AC_CHECK_SIZEOF(int); fixes a bug when sizeof() can't
dnl be printed with "%d", and avoids a warning for cross-compiling.
AC_MSG_CHECKING(size of int)
AC_CACHE_VAL(ac_cv_sizeof_int,
[AC_TRY_RUN([
#include<stdio.h>
#if STDC_HEADERS
# include<stdlib.h>
# include<stddef.h>
#endif
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", (int)sizeof(int));
exit(0);
}],
ac_cv_sizeof_int=`cat conftestval`,
ac_cv_sizeof_int=0,
AC_MSG_ERROR(failed to compile test program))])
AC_MSG_RESULT($ac_cv_sizeof_int)
AC_DEFINE_UNQUOTED(SIZEOF_INT, $ac_cv_sizeof_int)
in configure.in, and this is broken for cross-compilation. I have to pass in
ac_cv_sizeof_int=4 by hand.
This is far from optimal, because we're trying to bring up support for x86_64
and ppc64 platforms.
AC_TRY_RUN() is extremely cross-compile unfriendly.
Can we do away with these please?
Thanks,
-Philip
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php