--- Makefile.am | 5 ++++- configure.ac | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/Makefile.am b/Makefile.am index 9d392d5..6b77127 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,2 +1,5 @@ -SUBDIRS = usbredirparser usbredirhost usbredirserver usbredirtestclient +SUBDIRS = usbredirparser usbredirhost +if ! OS_WIN32 +SUBDIRS += usbredirserver usbredirtestclient +endif EXTRA_DIST = README.multi-thread usb-redirection-protocol.txt \ No newline at end of file diff --git a/configure.ac b/configure.ac index 8c72972..e561d52 100644 --- a/configure.ac +++ b/configure.ac @@ -26,6 +26,19 @@ AC_PROG_LN_S LT_INIT dnl AC_DEFINE(_GNU_SOURCE, [1], [Enable GNU extensions]) +AC_MSG_CHECKING([for native Win32]) +echo "host is $host" +case "$host" in + *mingw*|*cygwin*) + os_win32=yes + ;; + *) + os_win32=no + ;; +esac +AC_MSG_RESULT([$os_win32]) +AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"]) + # Set some sane default CFLAGS, avoid having to do another release like 0.4.1 if test "$ac_test_CFLAGS" != set; then DEFAULT_CFLAGS="-Wall -Werror -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4" @@ -44,6 +57,7 @@ fi PKG_PROG_PKG_CONFIG PKG_CHECK_MODULES(LIBUSB, [libusb-1.0 >= 1.0.9]) + AC_CONFIG_FILES([ Makefile usbredirhost/Makefile -- 1.7.7.6 _______________________________________________ Spice-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/spice-devel
