summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Drake <dan@reactivated.net>2010-07-21 17:49:21 -0600
committerDaniel Drake <dan@reactivated.net>2010-07-22 18:33:37 -0600
commita516fcb99376686d2d0028e5ac69950c57a55b9e (patch)
tree56ff2f820c13e5ce019aa6292fd34776a4ff29f2 /examples
parenta1d831ef82e1700f4ebb9df6ca5cef74be757c08 (diff)
downloadlibusb-a516fcb99376686d2d0028e5ac69950c57a55b9e.tar.gz
Only compile dpfp examples when sigaction is available
It's not available on MinGW.
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index bed1837..9535ea7 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -1,16 +1,21 @@
INCLUDES = -I$(top_srcdir)
-noinst_PROGRAMS = lsusb dpfp
+noinst_PROGRAMS = lsusb
lsusb_SOURCES = lsusb.c
lsusb_LDADD = ../libusb/libusb-1.0.la -lusb-1.0
+if HAVE_SIGACTION
dpfp_SOURCES = dpfp.c
dpfp_LDADD = ../libusb/libusb-1.0.la -lusb-1.0
+noinst_PROGRAMS += dpfp
+endif
if THREADS_POSIX
+if HAVE_SIGACTION
dpfp_threaded_SOURCES = dpfp_threaded.c
dpfp_threaded_CFLAGS = $(THREAD_CFLAGS) $(AM_CFLAGS)
dpfp_threaded_LDADD = ../libusb/libusb-1.0.la -lusb-1.0
noinst_PROGRAMS += dpfp_threaded
endif
+endif