$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking build system type... i686-pc-cygwin checking host system type... i686-pc-cygwin checking for windows... checking for gcc... gcc checking for C compiler default output file name... a.exe checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... .exe checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for inline... inline checking whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for gawk... (cached) gawk checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for flex... /usr/bin/flex checking for bison... bison -y checking for bison... /usr/bin/bison checking for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib checking for tgif... notfound checking for xpmtoppm... /usr/bin/xpmtoppm checking for ppmtowinicon... /usr/bin/ppmtowinicon checking for convert... /usr/bin/convert checking if the documentation should be built... yes checking If the compiler accepts -rdynamic... yes checking ./src/hid/batch/hid.conf checking ./src/hid/bom/hid.conf checking ./src/hid/gerber/hid.conf checking ./src/hid/gtk/hid.conf checking ./src/hid/lesstif/hid.conf checking ./src/hid/lpr/hid.conf checking ./src/hid/nelma/hid.conf checking ./src/hid/png/hid.conf checking ./src/hid/ps/hid.conf checking for which gui to use... gtk checking for whether to use DBUS... no checking for which printer to use... lpr checking for which exporters to use... bom gerber nelma png ps checking for gm4... no checking for m4... /usr/bin/m4 checking if /usr/bin/m4 has the division involving negative numbers bug... yes configure: error: It appears that /usr/bin/m4 has a bug involving division with negative numbers. In particular it just returned the result that -2/2 = 2147483647 instead of -1. This is a known bug in GNU m4-1.4.9. Please install a non-broken m4.