From owner-freebsd-current Tue Sep 1 18:29:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA07650 for freebsd-current-outgoing; Tue, 1 Sep 1998 18:29:15 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp02.primenet.com (smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA07633 for ; Tue, 1 Sep 1998 18:29:13 -0700 (PDT) (envelope-from tlambert@usr01.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.8.8/8.8.8) id SAA01403; Tue, 1 Sep 1998 18:28:09 -0700 (MST) Received: from usr01.primenet.com(206.165.6.201) via SMTP by smtp02.primenet.com, id smtpd001320; Tue Sep 1 18:28:00 1998 Received: (from tlambert@localhost) by usr01.primenet.com (8.8.5/8.8.5) id SAA12927; Tue, 1 Sep 1998 18:27:54 -0700 (MST) From: Terry Lambert Message-Id: <199809020127.SAA12927@usr01.primenet.com> Subject: Re: XFree86 and ELF To: joki@kuebart.stuttgart.netsurf.de (Joachim Kuebart) Date: Wed, 2 Sep 1998 01:27:54 +0000 (GMT) Cc: joki@shire.domestic.de, galatalt@stuy.edu, dfr@nlsystems.com, freebsd-current@FreeBSD.ORG In-Reply-To: <199809011809.UAA16527@yacht.domestic.de> from "Joachim Kuebart" at Sep 1, 98 08:09:40 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > This is due to the fact that I am unaware of a portable way to check > if we're on an ELF system. Bear in mind it might be a prehistoric > -stable version, so it isn't just a question of `objformat`. #!/bin/sh echo "Is it ELF yet?" file `which ld` | grep ELF >/dev/null 2>&1 if test "$?" = "0" then echo "It's ELF, yet!" else echo "No, not yet..." fi Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message