Check for caml_alloc_initialized_string existence even if --disable-ocaml
authorHilko Bengen <bengen@debian.org>
Tue, 10 Mar 2020 16:23:15 +0000 (17:23 +0100)
committerHilko Bengen <bengen@debian.org>
Sat, 30 May 2020 21:42:24 +0000 (22:42 +0100)
Gbp-Pq: Name 0016-Check-for-caml_alloc_initialized_string-existence-ev.patch

m4/guestfs-ocaml.m4

index 18f95c22b10b4c84566dcc8c58c4600b5f04e9c0..bf07799a24fd5ecd6fe449577a32ad48d73aa0d1 100644 (file)
@@ -214,8 +214,7 @@ AM_CONDITIONAL([HAVE_BYTES_COMPAT_ML],
               [test "x$have_Bytes_module" = "xno"])
 
 dnl Check if OCaml has caml_alloc_initialized_string (added 2017).
-AS_IF([test "x$OCAMLC" != "xno" && test "x$OCAMLFIND" != "xno" && \
-       test "x$enable_ocaml" = "xyes"],[
+AS_IF([test "x$OCAMLC" != "xno" && test "x$OCAMLFIND" != "xno"],[
     AC_MSG_CHECKING([for caml_alloc_initialized_string])
     cat >conftest.c <<'EOF'
 #include <caml/alloc.h>