From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,814d0ec938d6e4da X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-26 12:54:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: How to find directory where the program is? Date: 26 Apr 2002 12:22:13 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3CC6D15A.2070509@mail.com> <3cc73115.426446486@news.cis.dfn.de> <3cc866f9.71682376@news.cis.dfn.de> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1019838531 10672 128.183.220.71 (26 Apr 2002 16:28:50 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 26 Apr 2002 16:28:50 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:23149 Date: 2002-04-26T16:28:50+00:00 List-Id: nickroberts@ukf.net (Nick Roberts) writes: > On Thu, 25 Apr 2002 19:10:21 +0200, "Sergey Koshcheyev" > strongly typed: > > >"Preben Randhol" wrote in message > >news:slrnacfc16.145.randhol+abuse@kiuk0156.chembio.ntnu.no... > >> On Wed, 24 Apr 2002 23:08:28 GMT, Nick Roberts wrote: > >> > > >> > Furthermore, one has to ask the question "why?" (Why do you wish your > >> > >> Basicly so that the program can find out where it's other files are like > >> the help files and graphics etc... > > > >I believe most GPLed C/C++ programs for Unix have such paths hard-coded into > >them, configured at build-time, using autoconf. You might consider that > >approach too. > > Surely that's the exact opposite of what should be recommended! It is the recommended approach, _if_ you are distributing source, not binary. Which is what most "GPLed C/C++ programs for Unix" do. If you are distributing binaries, a different approach is required. -- -- Stephe