On Mon, 22 Sep 2003, Hrvoje Niksic wrote:

> > Well, using off_t and AC_SYS_LARGEFILE seems to be the recommended
> > practice.
> 
> Recommended for POSIX systems, perhaps, but not really portable to
> older machines.  And it doesn't solve the portable printing problem
> either, so in effect it's about as portable as unconditionally using
> `long long', which is mandated by C99.

 I doubt any system that does not support off_t does support LFS.  And
even if it does, it's probably not worth the hassle.  To handle ordinary
old systems, you just call:

AC_CHECK_TYPE(off_t, long)

before calling AC_SYS_LARGEFILE.  Any real examples of systems that fail
this sequence?

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [EMAIL PROTECTED], PGP key available        +

Reply via email to