--- a/configure.in +++ b/configure.in @@ -27,13 +27,12 @@ AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(short) AC_CACHE_CHECK([for large file support],rzip_cv_HAVE_LARGE_FILES,[ -AC_TRY_RUN([ +AC_TRY_COMPILE([ #include -#include -main() { return (sizeof(off_t) == 4); }], +#include ], +[int off_t_is_large@<:@(sizeof(off_t) == 4) ? -1 : 1@:>@;], rzip_cv_HAVE_LARGE_FILES=yes, -rzip_cv_HAVE_LARGE_FILES=no, -rzip_cv_HAVE_LARGE_FILES=cross)]) +rzip_cv_HAVE_LARGE_FILES=no)]) if test x"$rzip_cv_HAVE_LARGE_FILES" = x"yes"; then AC_DEFINE(HAVE_LARGE_FILES, 1, [ ]) fi