From df329ef40549e040d3638e18232ef41f89d47764 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Thu, 14 Jan 2010 00:30:20 +0000 Subject: mirror libusb-winusb git branch from 2009.12.03 part 2 - core files --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 8aedfba..088c9ac 100644 --- a/configure.ac +++ b/configure.ac @@ -30,12 +30,22 @@ case $host in backend="darwin" AM_LDFLAGS="-Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind -no-undefined" ;; +*-mingw*) + AC_DEFINE(OS_WINDOWS, [], [Windows backend]) + AC_SUBST(OS_WINDOWS) + AC_DEFINE(USBI_OS_HANDLES_TIMEOUT, [], [Backend handles timeout]) + AC_MSG_RESULT([Windows]) + backend="windows" + LIBS="-lpthread -lsetupapi -lws2_32" + 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_WINDOWS], [test "x$backend" == "xwindows"]) # Library versioning lt_major="0" -- cgit v1.2.1