Browse thread
ocaml support in autotools
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2006-08-04 (08:42) |
From: | Anil Madhavapeddy <anil@r...> |
Subject: | Re: [Caml-list] Re: ocaml support in autotools |
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