середа 20 вересень 2006 21:24, Eric Blake написав: > Yes. This program demonstrates why the m4 testsuite fails when compiled > with a BSD-flavored getopt_long:
You mean, `gmake check'? That did not fail here, when I built it with the BSD's getopt_long... > #include <stdio.h> > #include "getopt.h" > > int main(int argc, char **argv) { > > int c = 3; > char *v[3] = {"test", "-r", "foo"}; > getopt(c, v, "r::"); [...] This program is calling getopt(), not the getopt_long(), that gm4 uses. Is there a similar difference between GNU and BSD getopt_long() implementations? -mi