Received: from mailgate007.isp.belgacom.be (mailgate007.isp.belgacom.be [195.238.5.213])
	by maildelivery004.isp.belgacom.be (Postfix) with ESMTP id 3485A63C003
	for <joris.at.lebbeke@skynet.be>; Tue, 23 Oct 2007 18:02:45 +0200 (CEST)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 23 Oct 2007 18:02:44 +0200
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l9NFpuwE025176;
	Tue, 23 Oct 2007 11:52:06 -0400
Received: from cgp.spb.edu (vlan3.cgp.spb.edu [195.70.196.207])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l9NFpiv1025170
	for <tiff@lists.maptools.org>; Tue, 23 Oct 2007 11:51:45 -0400
Received: from wg.pu.ru ([193.124.85.219] verified)
	by cgp.spb.edu (CommuniGate Pro SMTP 5.0.13)
	with ESMTP id 6738506 for tiff@lists.maptools.org;
	Tue, 23 Oct 2007 19:50:12 +0400
Received: (from uucp@localhost)
	by wg.pu.ru (8.9.1a/8.9.1) with UUCP id PAA29644
	for tiff@lists.maptools.org; Tue, 23 Oct 2007 15:51:43 GMT
Received: from ak4719.spb.edu (localhost.localdomain [127.0.0.1])
	by ak4719.spb.edu (8.13.8/8.13.8/Debian-3) with ESMTP id l9NFo4Af022239
	for <tiff@lists.maptools.org>; Tue, 23 Oct 2007 19:50:04 +0400
Received: (from dron@localhost)
	by ak4719.spb.edu (8.13.8/8.13.8/Submit) id l9NFo4xg022238
	for tiff@lists.maptools.org; Tue, 23 Oct 2007 19:50:04 +0400
From: Andrey Kiselev <dron@ak4719.spb.edu>
Date: Tue, 23 Oct 2007 19:50:04 +0400
To: tiff@lists.maptools.org
Subject: Re: [Tiff] universal build patch
Message-ID: <20071023155004.GA22207@ak4719.spb.edu>
Mail-Followup-To: tiff@lists.maptools.org
References: <Pine.LNX.4.61.0710231032460.7209@sirius.rasena>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.LNX.4.61.0710231032460.7209@sirius.rasena>
X-GnuPG-Key: http://www.srces.spb.org/dron/export.home.key
X-Face: "t+se9s~+y~[XUH]L|pmeO3Pt/Q@DNv**S, d@_1-C=}/,
	c%<3Qp]eu!ok<"2lYJm$!9qVcg F?7o*L; |$`6|Q|>Rt-cU%2_y@6tQ|`!Li}TsvZvEKx;
	>fuY=fc(=sX^`7Wmw8%SsR`AvM$a; 0U/eN\ P?B\FTyqD, 0np$U2!*'z_4D,
	VPlFf?bN0&zYf"zF0s!7Tl7?$we)xD0@lL>[h|8bhys0i.g|zLnu@C
	Ti@d]i=[!:j1CB\5/TF[m]`lfHfaqSN[0qn@T3zeosV/[LAss{@p_?],x*j8P_9t[}uHD^X-;
	j~\M! gyTly;fj`}&Y~i{<#bN.#QmkE}#T`dxP.I1\.)_MEN{@#W
User-Agent: Mutt/1.5.13 (2006-08-11)
X-Null-Tag: 8e294ccce85a297fe7f26d0f5734c4e8
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00002881
X-MSP-STORE: Tue, 23 Oct 2007 18:02:45 +0200
Status:   

Apple recommends the following approach:

"If you are compiling a project that uses GNU Autoconf and trying to
build it for both PowerPC-based and Intel-based Macintosh computers, you
need to make sure that when the project configures itself, it doesn't
use Autoconf macros to determine the endian type of the runtime system.
For example, if your project uses the Autoconf AC_C_BIGENDIAN macro, the
program won't work correctly when it is run on the opposite architecture
from the one you are targeting when you configure the project. To
correctly build for both PowerPC-based and Intel-based Macintosh
computers, use the compiler-defined __BIG_ENDIAN__ and __LITTLE_ENDIAN__
macros in your code."

Quoted from this source:

 http://devworld.apple.com/documentation//MacOSX/Conceptual/universal_binary/index.html?http://devworld.apple.com/documentation//MacOSX/Conceptual/universal_binary/universal_binary_diffs/chapter_3_section_2.html

We can easily switch to this method instead of autoconf macro. I am only
concerning about portability of this approach.

Best regards,
Andrey

-- 
Andrey V. Kiselev
ICQ# 26871517
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
