delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/29/12:00:19

From: "John M. Aldrich" <fighteer AT cs DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Testing DJGPP Installation
Date: Sat, 29 Aug 1998 11:41:49 -0400
Organization: Two pounds of chaos and a pinch of salt.
Lines: 59
Message-ID: <35E8213D.38DC4751@cs.net>
References: <Pine DOT SOL DOT 3 DOT 91 DOT 980827121442 DOT 26553B-100000 AT mercury> <3 DOT 0 DOT 1 DOT 16 DOT 19980829111129 DOT 226750d4 AT shadow DOT net>
NNTP-Posting-Host: ppp133.cs.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ralph Proctor wrote:
> 
> At 07:06 PM 8/28/98 -0400, you wrote:
> 
> >> How do I detect whether DJGPP is installed in a user's computer
> >> *reliably*?
> >
> >There is no 100% reliable way to do so.........................
> 
> John:
> 
> Unless you are being extremely literal with the "100%" what's wrong with
> these tests????:
> 
> 1. Run go32-v2
> 2. Run DJVERIFY
> and after those tests turn out right you want to push up toward the "100%"
> sureness level---
> 3. Make Allegro
> 
> Of course as far as I am concerned, DJVERIFY alone is enough (although I'm
> not sure what you mean by "100%" -- Are you referring to Pascal, FORTRAN,
> C++ et al.?)
> 
> I'm not picking nits here--I'm just trying to find out why you said "There
> is no 100% reliable way [to detect whether DJGPP is installed in a user's
> computer reliably]"

If djgpp is installed and working, detecting it is easy.  It's the case
where djgpp is installed incorrectly that things become difficult. 
Examples:

 - djgpp is unzipped in c:\windows\temp, without preserving the
directory structure.
 - Neither PATH nor DJGPP are set in the environment.
 - Another GNU-workalike compiler is installed and it comes with
'gcc.exe' and/or other key files.
 - DJGPP is installed on a network drive, or removable media such as a
ZIP drive.

In such a situation, finding djgpp would require searching the entire
hard drive (or all drives on a system), and possibly distinguishing
between the non-djgpp GNU compiler and djgpp.  I thought of this kind of
thing when writing DJVERIFY and decided that the best solution is to not
even try, and let the user tell me where djgpp is installed if my
program can't find it.

By all means, though, I welcome any solution you might come up with for
such a problem!  :-)

-- 
John M. Aldrich, aka Fighteer I <fighteer AT cs DOT net>  UIN# 7406319

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:- a-->? C++>$ U@>++$ p>+ L>++ E>++ W++ N++ o+>++ K? w(---)
O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+(++) tv+() b+++ DI++ D++ G>++
e(*)>++++ h!() !r !y+()
------END GEEK CODE BLOCK------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019