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>
Thu, 7 Jul 2022 11:21:30 +0000 (12:21 +0100)
Gbp-Pq: Name Check-for-caml_alloc_initialized_string-existence-even-if.patch

m4/guestfs-ocaml.m4

index 1023baebcca8280bcd4e73545c742469a5d9cf68..60990691264054887554e35cdebb5c93217a4a5e 100644 (file)
@@ -161,8 +161,7 @@ AM_CONDITIONAL([HAVE_OCAML_GETTEXT],
                [test "x$OCAML_PKG_gettext" != "xno" && test "x$OCAML_GETTEXT" != "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>