$NetBSD: patch-aa,v 1.6 2015/09/24 23:50:44 ryoon Exp $ Add backends for NetBSD, Dragonfly, and OpenBSD. --- configure.ac.orig 2013-07-19 04:24:09.000000000 +0000 +++ configure.ac @@ -158,6 +158,21 @@ case "$host" in *-*-gnu*) CK_BACKEND="gnu" ;; + *-*-netbsd*) + CK_BACKEND="netbsd" + ;; + *-*-dragonfly*) + CK_BACKEND="freebsd" + KVM_LIBS="-lkvm" + ;; + *-*-openbsd*) + CK_BACKEND="openbsd" + AC_CHECK_LIB(kvm, kvm_openfiles, have_kvm=yes, + AC_MSG_ERROR([Unable to find libkvm which is needed on OpenBSD])) + if test "x$have_kvm" = "xyes"; then + KVM_LIBS="-lkvm" + fi + ;; *) AC_MSG_ERROR([No sysdeps back-end implemented for host $host]) ;; @@ -167,7 +182,9 @@ AC_SUBST(KVM_LIBS) AM_CONDITIONAL(CK_COMPILE_LINUX, test x$CK_BACKEND = xlinux, [Compiling for Linux]) AM_CONDITIONAL(CK_COMPILE_FREEBSD, test x$CK_BACKEND = xfreebsd, [Compiling for FreeBSD]) +AM_CONDITIONAL(CK_COMPILE_NETBSD, test x$CK_BACKEND = xnetbsd, [Compiling for NetBSD]) AM_CONDITIONAL(CK_COMPILE_SOLARIS, test x$CK_BACKEND = xsolaris, [Compiling for Solaris]) +AM_CONDITIONAL(CK_COMPILE_OPENBSD, test x$CK_BACKEND = xopenbsd, [Compiling for OpenBSD]) AM_CONDITIONAL(CK_COMPILE_GNU, test x$CK_BACKEND = xgnu, [Compiling for GNU]) AC_SUBST(CK_BACKEND)