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 NAA08908; Thu, 5 Sep 2002 13:58:02 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA08874 for ; Thu, 5 Sep 2002 13:58:01 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g85BvL126994; Thu, 5 Sep 2002 13:57:21 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA08966; Thu, 5 Sep 2002 13:57:20 +0200 (MET DST) Date: Thu, 5 Sep 2002 13:57:20 +0200 From: Xavier Leroy To: Kenneth Oksanen Cc: caml-list@inria.fr Subject: Re: [Caml-list] autoconf and caml Message-ID: <20020905135720.D5343@pauillac.inria.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from cessu@hutcs.cs.hut.fi on Wed, Sep 04, 2002 at 06:20:54PM +0300 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I'm writing a piece of software using O'Caml and GNU autoconf (among > others). In C the results of running `./configure' are conveniently > accessed with `#include "config.h"'. My current solution is to > preprocess also the O'Caml code, but this requires some clumsy hacks > in Makefiles etc. Is there a better way? If not, then I'ld suggest > some flag in O'Caml which would run the source files through cpp. The -pp flag to ocamlc and ocamlopt lets you do this easily: ocamlc -pp /lib/cpp ... - Xavier Leroy ------------------- 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