if test "x$DIS_PATH" = "xfalse"; then
AC_MSG_FAILURE([Object code disassembler (`dis') not found.])
fi
+# The illumos source is (or was) here
+# https://github.com/illumos/illumos-gate/blob/master/usr/src/lib/libscf/common/lowlevel.c#L1148
+# specifically the line
+#
+# request.rdr_version = REPOSITORY_DOOR_VERSION;
+#
+# rdr_version is a 32bit unsigned int
+# The macro REPOSITORY_DOOR_VERSION contains the ascii letters "Rep" in the top 3
+# bytes and the door version in the lowest byte. Hence we look for Rep which is 526570
+# in hex and then extrace the following byte.
AC_CHECK_LIB(scf, scf_handle_bind, [], [
AC_MSG_WARN([Function `scf_handle_bind' was not found in `libscf'.])
AC_MSG_ERROR([Cannot determine version of the repository cache protocol.])