I am send attach diff to allow ./configure to work under both cygwin and Mingw32/Msys. Together with my first patch to fix problems with leading underscores on the win32 environment, it is possible to ./configure ; make The configure file distributed with jpeg-mmx would appear to be a work in progress because it does not appear to use many of the switches which are in it's own help. I have used config.guess to get sytem id and added a make substitution for ASMFLAGS. I don't think this should create any problems for other systems, but have currently no facility to test this. It would seem worth incorporating because it is then easy for any cygwin or mingw32 uses to build mjpegtools with jpeg-mmx support.
[EMAIL PROTECTED] Peter King
diff -urN jpeg-mmx/configure jpeg-mmx-new/configure --- jpeg-mmx/configure 2005-05-16 16:25:48.953125000 +1000 +++ jpeg-mmx-new/configure 2005-05-17 22:58:36.343750000 +1000 @@ -1690,6 +1690,20 @@ trap '' 1 2 15 +if test "x$host" = xNONE ; then + host=`./config.guess` + echo "checking host system = $host" +fi + +case $host in + *-*-cygwin* | *-*-mingw32*) + asmflags="-f win32" + ;; + *) + asmflags="-f elf" + ;; +esac + trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 test "x$prefix" = xNONE && prefix=$ac_default_prefix @@ -1792,6 +1806,7 @@ [EMAIL PROTECTED]@%$COM_LT%g [EMAIL PROTECTED]@%$FORCE_INSTALL_LIB%g [EMAIL PROTECTED]@%$INCLUDEFLAGS%g [EMAIL PROTECTED]@%$asmflags%g CEOF EOF diff -urN jpeg-mmx/makefile.cfg jpeg-mmx-new/makefile.cfg --- jpeg-mmx/makefile.cfg 2005-05-16 16:26:13.015625000 +1000 +++ jpeg-mmx-new/makefile.cfg 2005-05-16 20:52:55.390625000 +1000 @@ -23,7 +23,7 @@ CC= @CC@ AS= nasm -ASFLAGS = -f elf +ASFLAGS = @asmflags@ # You may need to adjust these cc options: CFLAGS= @CFLAGS@ @CPPFLAGS@ @INCLUDEFLAGS@ # Generally, we recommend defining any configuration symbols in jconfig.h,