From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 764E2BBAF for ; Tue, 1 Aug 2006 13:27:22 +0200 (CEST) Received: from pandora.cs.kun.nl (pandora.cs.kun.nl [131.174.33.4]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k71BRLPx028847 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 1 Aug 2006 13:27:22 +0200 Received: from tandem.cs.ru.nl [131.174.33.50] (helo=tandem) by pandora.cs.kun.nl (8.13.7/5.9) with ESMTP id k71BRGru019128 for ; Tue, 1 Aug 2006 13:27:16 +0200 (MEST) Received: from tews by tandem with local (Exim 4.50) id 1G7sP6-0008KT-1w for caml-list@yquem.inria.fr; Tue, 01 Aug 2006 13:27:16 +0200 Sender: H.Tews@cs.ru.nl To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] ocaml support in autotools References: <44CE2C74.4070607@inria.fr> From: Hendrik Tews Date: 01 Aug 2006 13:27:16 +0200 In-Reply-To: <44CE2C74.4070607@inria.fr> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.56 on 131.174.33.4 X-Miltered: at nez-perce with ID 44CF3A99.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 hendrik:01 tews:01 tews:01 guillaume:01 guillaume:01 ocaml:01 autoconf:01 activedvi:01 autoconf:01 compiler:01 viewcvs:01 reuse:01 lri:01 filliatr:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 Guillaume Rousse writes: I'd like to have ocaml support in autotools (autoconf + automake), to avoid heavy code duplication between several projects (at least ocmalimages and activedvi). I would very much like to see this. Please go ahead. I did some autoconf hacking for the CCSL compiler, see the files aclocal.ml and configure.ac in http://wwwtcs.inf.tu-dresden.de/~tews/ccsl/viewcvs.cgi/Ccslc/ Feel free to reuse that code. The main problem with autoconf from my point of view (at least in 2.57, the latest version I looked at) is that it provides a lot of stuff, which is only relevant for C/C++ projects and which you cannot easily disable. For instance the configure options --includedir. Further, there is no way to add an additional configure option. I have therefore overridden the internal macros _AC_INIT_PARSE_ARGS and _AC_INIT_HELP in a private aclocal.m4. However, now I have to adopt my changes to every new autoconf version. Idially, there should be a simple way to disable each of the standard configure options and to add new ones. http://www.lri.fr/~filliatr/ftp/ocaml/misc/configure.in This version searches in the PATH, but sometimes the right ocaml version is not in the path. Bye, Hendrik Tews