I have tried cross-compiling GNU gettext using MinGW
and have run into a problem. The autoconf script in
gettext checks for the existence of the utime function
using a AC_CHECK_FUNCS that essentially only tests for
the existence of the symbol in the runtime libraries.
After it is satisfied that the library contains the
'utime' symbol, it defines HAVE_UTIME in its config.h
and compiles from there. In its sources, if
HAVE_UTIME is defined it #include's <utime.h> and tries
to use it.
Unfortunately, while MinGW apparently supports the
utime call, it does not have a <utime.h>. There is
instead a <sys/utime.h> in MinGW. My linux glibc
headers have a <utime.h> but no <sys/utime.h>. The
'Linux Programmer's Manual' utime man page says to
I'm not completely sure if this is a MinGW bug, but
everywhere I look it seems that the utime.h header
should not be in the sys subdirectory. Perhaps it
should be moved up in MinGW.
Log in to post a comment.