caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: Basile STARYNKEVITCH <basile@starynkevitch.net>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] question: "autoconfiguration" of Ocaml code (checking for libraries)
Date: 29 Jan 2003 22:43:38 +0100	[thread overview]
Message-ID: <1043876618.997.20.camel@ice> (raw)
In-Reply-To: <15928.12917.484208.539720@hector.lesours>

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


      parent reply	other threads:[~2003-01-29 21:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-29 19:58 Basile STARYNKEVITCH
2003-01-29 20:04 ` Will Benton
2003-01-29 20:15   ` Basile STARYNKEVITCH
2003-01-29 20:22     ` Will Benton
2003-01-29 21:54     ` Maxence Guesdon
2003-01-30 10:45       ` Jean-Christophe Filliatre
2003-01-30 13:59       ` Damien Doligez
2003-01-29 21:43 ` Gerd Stolpmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1043876618.997.20.camel@ice \
    --to=info@gerd-stolpmann.de \
    --cc=basile@starynkevitch.net \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).