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-25 22:57:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!128.39.3.168!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: How to find directory where the program is? Date: Fri, 26 Apr 2002 05:57:15 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3CC6D15A.2070509@mail.com> <3cc73115.426446486@news.cis.dfn.de> <3cc866f9.71682376@news.cis.dfn.de> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1019800635 19153 129.241.83.82 (26 Apr 2002 05:57:15 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Fri, 26 Apr 2002 05:57:15 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:23135 Date: 2002-04-26T05:57:15+00:00 List-Id: On Fri, 26 Apr 2002 01:28:19 +0200, Sergey Koshcheyev wrote: > Well, everybody does it this way anyway (if I understood correctly). > Also, why mess with complicated, non-portable and non-reliable things > like determining the executable path? For example, if somebody creates > a (symbolic) link to your program from some directory, why require > them to also create links for the data? Actually I think that they have several paths hardcoded as I can see from strace output that they search in several directories for a file. But I'm a bit uncertain how you do this with autoconf/make. Anyway I would like to look into these things a bit more before I resort to hardcoding. Preben -- "Jeg tror nordmenn har glemt hvordan de tilbreder fisk. De er mest opptatt av firkantet fisk." -- Kristian Kristiansen, yrkesfisker, aftenposten.no 19/04/02