OCAML and ocamldoc requirements on building and installing LLVM

Jon,

LLVM seems to be now dependant by default on OCAML and ocamldoc. Can you please change this so OCAML is only built and enabled when an ‘–enable-ocaml’ flag is set on ‘configure’. As I cannot do ‘make install’ on Cygwin as ocamldoc is not availiable on Cygwin. Also really 95% of LLVM users are not either going to have ocaml installed or are going to be using it.

Could you please atand to this within a week or so as I have to do Cygwin testing for the 2.6 release.

Many thanks in advance,

Aaron

Hi Aaron,

Would you be able to come up with a patch that does this? This would
help matters, because you run Cygwin, and would be the best person to
know if the patch works or not.

Thanks!
-bw

Bill,

Really its not only a Cygwin patch, its a patch for anyone who does not want to have to install OCAML and its documentation tool in order to use LLVM. Its really just a matter of adding a switch to configure and conditionally building ocaml stuff based on its setting. I really hate the bash configure script and really dont want to do it. Really it should be on the OCAML writers list of finishing things to do out of courtesy for other users.

Aaron

Well, perhaps in a perfect world. :slight_smile: But this is an open source
project, so it's at the mercy of people's spare time.

With that in mind, I don't have ocaml or ocamldoc on my system, and I
compile and install just fine. It never tries to build the OCaml
bindings. Of course, I'm not on Cygwin. Are you using CMake or the
Makefiles?

-bw

Aaron, I don't have ocaml installed and llvm builds fine for me.

-Chris

Jon,

LLVM seems to be now dependant by default on OCAML and ocamldoc.
Can you
please change this so OCAML is only built and enabled when an
'--enable-ocaml' flag is set on 'configure'. As I cannot do 'make
install'
on Cygwin as ocamldoc is not availiable on Cygwin. Also really 95%
of
LLVM
users are not either going to have ocaml installed or are going to
be
using
it.

Could you please atand to this within a week or so as I have to do
Cygwin
testing for the 2.6 release.

Hi Aaron,

Would you be able to come up with a patch that does this? This would
help matters, because you run Cygwin, and would be the best person to
know if the patch works or not.

Bill,

Really its not only a Cygwin patch, its a patch for anyone who does
not want
to have to install OCAML and its documentation tool in order to use
LLVM.
Its really just a matter of adding a switch to configure and
conditionally
building ocaml stuff based on its setting. I really hate the bash
configure
script and really dont want to do it. Really it should be on the OCAML
writers list of finishing things to do out of courtesy for other
users.

Aaron, I don't have ocaml installed and llvm builds fine for me.

Hi Chris,

Okay, its another possible Cygwin anomoly, maybe I'll try uninstalling OCaml and that might do it ?

I'll report back when I have had a chance to test it.

Thanks,

Aaron

Aaron, I don't have ocaml installed and llvm builds fine for me.

Yeah, its only a problem if you have OCaML installed but not ocamldoc.

Sorry for the noise,

Aaron

Note that you can use the --disable-bindings option to configure to
get around this.

- Daniel