> IIRC, it is not part of Mingw. > > I just used a copy of getopt.[ch] from the Cygwin sources for my stand > alone rebase. > That curious: getopt is compiled into /usr/lib/mingw/libliberty.a; only the header is missing. I've copied the header from /usr/include/getopt.h to /usr/include/mingw and it works.
Now it seme to works. I have checked in the recent version in the cvs. Ralf