[Spice-devel] [usbredir PATCH 1/6] configure: Windows: ignore usbredirserver and usbredirtestclient subdirs

Christophe Fergeau cfergeau at redhat.com
Thu May 3 08:48:53 PDT 2012


What's wrong with the test client on Windows? The socket code?

ACK (another extra whitespace change though)

Christophe

On Thu, May 03, 2012 at 06:04:34PM +0300, Uri Lublin wrote:
> ---
>  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
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120503/8992d86c/attachment.pgp>


More information about the Spice-devel mailing list