Date: Thu, 27 Aug 1998 14:51:03 +0300 (IDT) From: Eli Zaretskii To: Goh Yong Kwang cc: djgpp AT delorie DOT com Subject: Re: How to locate djgpp.env? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Thu, 27 Aug 1998, Goh Yong Kwang wrote: > I'm planning to write a utility that can help people to modify the > djgpp.env file. Why should people modify that file? It is in general a bad idea, since DJGPP.ENV pulls a lot of subtle tricks that together make DJGPP work smoothly. Changing that file without knowing all those subtleties might break things. > How do I detect whether DJGPP is installed in a user's computer > *reliably*? Try to run some program from djdev distribution, like go32-v2.exe, and see if that succeeds. > Also, how do I locate the djgpp.env file if the user has not set the DJGPP > environment variable to indicate djgpp.env's location? If the DJGPP environment variable isn't set, then the contents of DJGPP.ENV are not important, since it is not used by the DJGPP programs. So I think you should print an eror message in that case and exit. But please reconsider whether a program to modify DJGPP.ENV is at all a good idea.