On Thu, 2010-11-25 at 15:16 +0900, Daniel Stonier wrote:
> ac_cv_sizeof_off_t=4^M
> ac_cv_sizeof_pid_t=4^M 

Are you saying that these are \r (ASCII 13) characters? This could be
related to fprintf() from the test printing out \r\n instead of just \n
on your platform. Maybe the file should be opened with "wb" or
something.

This is what I'm referring to (you can find this in configure script):
--------------------------------
/* end confdefs.h.  */
#include <stdio.h>
#include <sys/types.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(pid_t));
  exit(0);
}
--------------------------------
/* end confdefs.h.  */
#include <stdio.h>
#include <sys/types.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(off_t));
  exit(0);
}
--------------------------------

Hmm, not sure what's going on there. Don't usually run APR on mingw.

-- 
Bojan

Reply via email to