<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/01/bf3bb736a13f371e560716e2a45cbd65"
  from="Jean-Christophe Filliatre &lt;Jean-Christophe.Filliatre@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2003-01-30T10:52:19"
  subject="Re: [Caml-list] question: &quot;autoconfiguration&quot; of Ocaml code (checking for libraries)"
  prev="2003/01/0f1781e12509a25a4d0920a81f3b180d"
  next="2003/01/2da5b3338c69f028d2af213b0041adaf"
  prev-in-thread="2003/01/d02a5fa1397339cee9920edfaaf9696a"
  next-in-thread="2003/01/2269392930c425e8e14e4ee177c59cdd"
  prev-thread="2003/01/92e294ab72bc62127ee9455ff8c411e8"
  next-thread="2003/01/2da5b3338c69f028d2af213b0041adaf"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] question: &quot;autoconfiguration&quot; of Ocaml code (checking for libraries)">
<msg 
  url="2003/01/80a5f82f911a3343ba7a52b93ec46ffb"
  from="Basile STARYNKEVITCH &lt;basile@s...&gt;"
  author="Basile STARYNKEVITCH"
  date="2003-01-29T19:58:48"
  subject="[Caml-list] question: &quot;autoconfiguration&quot; of Ocaml code (checking for libraries)">
<msg 
  url="2003/01/f4cefd16c76cf6030861a8e6d9d9fa53"
  from="Will Benton &lt;willb@c...&gt;"
  author="Will Benton"
  date="2003-01-29T20:04:39"
  subject="Re: [Caml-list] question: &quot;autoconfiguration&quot; of Ocaml code (checking for libraries)">
<msg 
  url="2003/01/83479c864bf77b612ff07b73eddb3333"
  from="Basile STARYNKEVITCH &lt;basile@s...&gt;"
  author="Basile STARYNKEVITCH"
  date="2003-01-29T20:15:50"
  subject="Re: [Caml-list] question: &quot;autoconfiguration&quot; of Ocaml code (checking for libraries)">
<msg 
  url="2003/01/f0eba1bf4bfab7f8b233593010ff768d"
  from="Will Benton &lt;willb@c...&gt;"
  author="Will Benton"
  date="2003-01-29T20:22:57"
  subject="Re: [Caml-list] question: &quot;autoconfiguration&quot; of Ocaml code (checking for libraries)">
</msg>
<msg 
  url="2003/01/d02a5fa1397339cee9920edfaaf9696a"
  from="Maxence Guesdon &lt;maxence.guesdon@i...&gt;"
  author="Maxence Guesdon"
  date="2003-01-29T21:58:49"
  subject="Re: [Caml-list] question: &quot;autoconfiguration&quot; of Ocaml code (checking for libraries)">
<msg 
  url="2003/01/bf3bb736a13f371e560716e2a45cbd65"
  from="Jean-Christophe Filliatre &lt;Jean-Christophe.Filliatre@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2003-01-30T10:52:19"
  subject="Re: [Caml-list] question: &quot;autoconfiguration&quot; of Ocaml code (checking for libraries)">
</msg>
<msg 
  url="2003/01/2269392930c425e8e14e4ee177c59cdd"
  from="Damien Doligez &lt;damien.doligez@i...&gt;"
  author="Damien Doligez"
  date="2003-01-30T13:59:15"
  subject="Re: [Caml-list] question: &quot;autoconfiguration&quot; of Ocaml code (checking for libraries)">
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2003/01/34950deeb6716e3189ad7b7d3f262b3b"
  from="Gerd Stolpmann &lt;info@g...&gt;"
  author="Gerd Stolpmann"
  date="2003-01-29T21:43:18"
  subject="Re: [Caml-list] question: &quot;autoconfiguration&quot; of Ocaml code (checking for libraries)">
</msg>
</msg>
</thread>

<contents>

I will  not try to argue in  favor of autoconf w.r.t  to other methods
but, as far  as autoconf is concerned, I  already wrote a configure.in
for  ocaml  programs  which   sets  the  following  variables  (to  be
substituted in a Makefile or in any other file):

#   OCAMLC        "ocamlc" if present in the path, or a failure
#                 or "ocamlc.opt" if present with same version number as ocamlc
#   OCAMLOPT      "ocamlopt" (or "ocamlopt.opt" if present), or "no"
#   OCAMLBEST     either "byte" if no native compiler was found, 
#                 or "opt" otherwise
#   OCAMLDEP      "ocamldep"
#   OCAMLLEX      "ocamllex" (or "ocamllex.opt" if present)
#   OCAMLYACC     "ocamlyac"
#   OCAMLLIB      the path to the ocaml standard library
#   OCAMLVERSION  the ocaml version number
#   OCAMLWEB      "ocamlweb" (not mandatory)
#   OCAMLWIN32    "yes"/"no" depending on Sys.os_type = "Win32"
#   EXE           ".exe" if OCAMLWIN32=yes, "" otherwise

This configure.in can be fetched from 
http://www.lri.fr/~filliatr/software.en.html

As  already  mentioned  in  this  thread,  adding  checks  for  (caml)
libraries is not difficult.

Hope this helps,
-- 
Jean-Christophe Filliātre (http://www.lri.fr/~filliatr)

-------------------
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

</contents>

</message>

