From 3c37d03f4b46049c8296a41e93aaefc62126ace5 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Fri, 8 Jan 2016 23:17:56 +0100 Subject: [PATCH] Win32: do not compile nfs-cp in utils It depends on stat features that are not available --- configure.ac | 4 ++++ utils/Makefile.am | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f7eb9bf..1ce7e52 100644 --- a/configure.ac +++ b/configure.ac @@ -91,6 +91,8 @@ fi AC_SUBST(WARN_CFLAGS) LIBSOCKET= +SYS= + case $host in *solaris*) AC_CHECK_HEADERS([sys/filio.h]) @@ -100,10 +102,12 @@ case $host in ;; *mingw32* | *cygwin* | *wince* | *mingwce*) LIBSOCKET='-lws2_32' + SYS=mingw32 ;; *) ;; esac +AM_CONDITIONAL(HAVE_WIN32, test "${SYS}" = "mingw32") AC_SUBST([LIBSOCKET]) # check for poll.h diff --git a/utils/Makefile.am b/utils/Makefile.am index ddd0473..0926023 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -1,4 +1,8 @@ -bin_PROGRAMS = nfs-cat nfs-cp nfs-ls +bin_PROGRAMS = nfs-cat nfs-ls + +if !HAVE_WIN32 +bin_PROGRAMS += nfs-cp +endif AM_CPPFLAGS = \ -I$(abs_top_srcdir)/include \