From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA07348; Wed, 29 Jan 2003 22:43:18 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA07471 for ; Wed, 29 Jan 2003 22:43:17 +0100 (MET) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h0TLhGv27399 for ; Wed, 29 Jan 2003 22:43:16 +0100 (MET) Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 18dzzI-0007Ht-00; Wed, 29 Jan 2003 22:43:16 +0100 Received: from [80.129.100.63] (helo=gate.gerd-stolpmann.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 18dzzH-0000aT-00; Wed, 29 Jan 2003 22:43:15 +0100 Received: from ice.gerd-stolpmann.de (ice.gerd-stolpmann.de [192.168.0.13]) by gate.gerd-stolpmann.de (Postfix) with ESMTP id C931456C5; Wed, 29 Jan 2003 22:48:10 +0100 (CET) Received: by ice.gerd-stolpmann.de (Postfix, from userid 1000) id 79BE4B059; Wed, 29 Jan 2003 22:43:38 +0100 (CET) Subject: Re: [Caml-list] question: "autoconfiguration" of Ocaml code (checking for libraries) From: Gerd Stolpmann To: Basile STARYNKEVITCH Cc: caml-list@inria.fr In-Reply-To: <15928.12917.484208.539720@hector.lesours> References: <15928.12917.484208.539720@hector.lesours> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.5 Date: 29 Jan 2003 22:43:38 +0100 Message-Id: <1043876618.997.20.camel@ice> Mime-Version: 1.0 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Am Mit, 2003-01-29 um 20.58 schrieb Basile STARYNKEVITCH: > Dear All > > (while working on Poesia - see www.poesia-filter.org for more) > > Does anyone have some tricks or code (usable in a GPL-ed opensource > project) to facilitate configuration (more precisely checking of > installed tools & libraries) of Ocaml code. > > I need something which checks that > > Ocaml is installed, with version >= 3.06 > > ocamlfind is installed (both for bytecode & native) > > [actually my wish would be that ocamlfind is part of ocaml, like > camlp4 is] > > xstr is installed (both bytecode & native) > > netstring is installed (both bytecode & native) > > ocamlnet is installed, at least version >= 0.92 > > etc.. > > (Unfortunately, I cannot do distribution specific stuff; I want a > script usable on Linux Redhat, Mandrake, Debian, ....) I am normally using self-written shell scripts for that purpose. They are simple to write, easy to understand, and work for all Unices. As an example, here is the configure script of wdialog. You can find code snippets for all the tests you have mentioned: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wdialog/wdialog/code/configure?rev=3.6&content-type=text/vnd.viewcvs-markup Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners