openbsd-ports/devel/libusb1/patches/patch-configure_ac
mpi ca07d5e3c4 Import libusb1 1.0.8
libusb is a library for USB device access from userland.

Note that the OpenBSD backend based on ugen(4) does not provide 
asynchronous I/O.

with tests, tweaks and ok ajacoutot@
2011-11-02 14:31:56 +00:00

24 lines
668 B
Plaintext

--- configure.ac.orig Wed May 5 00:01:36 2010
+++ configure.ac Sat Sep 24 19:48:36 2011
@@ -30,12 +30,20 @@
backend="darwin"
AM_LDFLAGS="-Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind -no-undefined"
;;
+*-openbsd*)
+ AC_DEFINE(OS_OPENBSD, [], [OpenBSD backend])
+ AC_SUBST(OS_OPENBSD)
+ AC_MSG_RESULT([OpenBSD])
+ backend="openbsd"
+ AM_LDFLAGS=""
+ ;;
*)
AC_MSG_ERROR([unsupported operating system])
esac
AM_CONDITIONAL([OS_LINUX], [test "x$backend" == "xlinux"])
AM_CONDITIONAL([OS_DARWIN], [test "x$backend" == "xdarwin"])
+AM_CONDITIONAL([OS_OPENBSD], [test "x$backend" == "xopenbsd"])
# Library versioning
lt_major="0"