From: Mat Hostetter Date: Fri, 16 Jul 93 06:07:48 -0600 To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: How do I use emu387 only when necessary? I'm trying to cook up a program that uses some floating point code that I can distribute to people who have machines with and without 80387's. I would like my program to use emu387 when no 80387 is present, otherwise just use the 80387. It seems that setting the "emu" field in the go32 environment variable automatically disables the 80387 and uses the emulator instead. Without it, I expect that the program will crash on a non-387 equipped machine. How can I make go32 use emu387 only when necessary? One suggestion: right now if you rename go32.exe "foo.exe", it tries to run a program "foo" under go32. This is very handy. Perhaps it could look for "foo.emu" or "foo.387" and use it as a 387 emulator if no 80387 is detected, and no environment variables override? This would make the distribution of software to people unfamiliar with go32 much easier (unless I there is already an easy way I am overlooking). Thanks! -Mat mjhostet AT mit DOT edu