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-Thread: 103376,4f4c469cec8ba9e8,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!207.69.154.102.MISMATCH!elnk-atl-nf2!newsfeed.earthlink.net!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!56fb6cac!not-for-mail From: "Marc A. Criley" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Detecting version of installed GNAT Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sat, 12 Nov 2005 13:21:14 GMT NNTP-Posting-Host: 199.174.148.41 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1131801674 199.174.148.41 (Sat, 12 Nov 2005 05:21:14 PST) NNTP-Posting-Date: Sat, 12 Nov 2005 05:21:14 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news1.google.com comp.lang.ada:6348 Date: 2005-11-12T13:21:14+00:00 List-Id: I'm looking for suggestions for programatically determining what version of GNAT is installed on a system. I'd hoped there was something like "gnatmake -v" that would just display a version string, but gnatmake doesn't have that feature. I could use "gcc -v" and then deduce from its version what version of GNAT was installed, but I'd prefer something more closely tied to GNAT itself. And since some distributions of gnat use "gnatcc" instead of "gcc", I'd have to account for that as well. It looks like I could compile a small file and then look at its .ali file, since that contains a compiler version string, but I'd still like to see something a little more direct. Thanks for any suggestions. -- Marc A. Criley -- McKae Technologies -- www.mckae.com -- DTraq - XPath In Ada - XML EZ Out