Add a flag to build utop-camlp4 conditionally.

This commit is contained in:
Peter Zotov 2014-10-18 18:16:43 +04:00
parent 8e061eced3
commit 7c8a68eea6
2 changed files with 7 additions and 1 deletions

6
_oasis
View File

@ -27,6 +27,10 @@ Description:
# | The toplevel |
# +-------------------------------------------------------------------+
Flag camlp4
Description: camlp4 support
Default: true
Library "optcomp"
Install: false
Path: syntax
@ -51,6 +55,8 @@ Library utop
XMETARequires: findlib, lambda-term
Library "utop-camlp4"
Build$: flag(camlp4)
Install$: flag(camlp4)
FindlibName: camlp4
FindlibParent: utop
Path: src/camlp4

2
opam
View File

@ -4,7 +4,7 @@ authors: ["Jérémie Dimino"]
homepage: "https://github.com/diml/utop"
license: "BSD3"
build: [
["./configure" "--prefix" prefix]
["./configure" "--prefix" prefix "--%{camlp4:enable}%-camlp4"]
[make]
[make "install"]
]