From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 51741BC29 for ; Fri, 4 Aug 2006 10:42:00 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k748fx0a026124 for ; Fri, 4 Aug 2006 10:41:59 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA13520 for ; Fri, 4 Aug 2006 10:41:58 +0200 (MET DST) Received: from fork.recoil.org (fork.recoil.org [194.70.3.132]) by concorde.inria.fr (8.13.6/8.13.6) with SMTP id k748fvbj026075 for ; Fri, 4 Aug 2006 10:41:58 +0200 Received: (qmail 24203 invoked by uid 10000); 4 Aug 2006 08:41:34 -0000 Date: Fri, 4 Aug 2006 09:41:34 +0100 From: Anil Madhavapeddy To: skaller Cc: Grigory Batalov , caml-list@inria.fr Subject: Re: [Caml-list] Re: ocaml support in autotools Message-ID: <20060804084134.GA19840@fork.recoil.org> References: <44CE2C74.4070607@inria.fr> <44CE6483.9070205@tepkom.ru> <44D1F265.4040401@inria.fr> <20060804044055.79801082.bga@tepkom.ru> <1154669546.5926.34.camel@rosella.wigram> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1154669546.5926.34.camel@rosella.wigram> User-Agent: Mutt/1.5.11 X-Miltered: at concorde with ID 44D30857.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 44D30855.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; anil:01 anil:01 ocaml:01 afaik:01 ocaml:01 tarball:01 lib:01 2006:98 stamps:98 wrote:01 caml-list:01 library:03 library:03 cambridge:04 sync:04 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Fri, Aug 04, 2006 at 03:32:26PM +1000, skaller wrote: > > AFAIK, you simply cannot 'autoconf' check a required library > is available: the check will not reveal the version of Ocaml > used to build that library .. and it must be built with > the version of Ocaml being used for this tarball build > or the library is useless. > > I think what you actually need to do is: > > (a) find the appropriate Ocaml program > (b) find the candidate library > (c) check the time stamps on both, and reject the library > unless its date is newer than the ocaml program. > You can simply run a test link against the OCaml library as part of the AC_OCAML_CHECK_LIB (or whatever its called), just as is done for C library testing. This will error out almost always if the versions are out of sync. -- Anil Madhavapeddy http://anil.recoil.org University of Cambridge http://www.cl.cam.ac.uk