English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
ocaml support in autotools
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-09-08 (14:52)
From: Guillaume Rousse <Guillaume.Rousse@i...>
Subject: Re: [Caml-list] Re: ocaml support in autotools
Anil Madhavapeddy wrote:
> 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.
I also favor this option.

Guillaume Rousse
Projet Estime, INRIA
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex - France