summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README2
-rw-r--r--configure.ac3
-rw-r--r--src/Makefile.am2
3 files changed, 5 insertions, 2 deletions
diff --git a/README b/README
index 267bb67..196b896 100644
--- a/README
+++ b/README
@@ -37,6 +37,8 @@ If you want pcap support you will need the WinPcap library as well.
WinPcap is available here:
<http://www.winpcap.org/install/bin/WpdPack_4_0_2.zip>
+REMEMBER: ptunnel-ng might not work on Windows without WinPcap!
+
Running
-------
diff --git a/configure.ac b/configure.ac
index 4533baf..54285fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -131,7 +131,8 @@ case ${selinux_enabled} in
esac
dnl Check libcap headers/functions.
-if test x"${pcap_enabled}" != x; then
+if test x"${pcap_enabled}" != x -a \
+ x"${use_msw}" != xyes; then
AC_CHECK_HEADERS([pcap.h],,
[pcap_enabled=])
AC_SEARCH_LIBS([pcap_lookupnet], [pcap],,
diff --git a/src/Makefile.am b/src/Makefile.am
index 6ded388..6d37a49 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -26,7 +26,7 @@ ptunnel_ng_SOURCES = \
if IS_WINDOWS
wpcap_DEF = $(abs_srcdir)/win32/WPCAP.DEF
wpcap_IMP = $(abs_srcdir)/win32/libwpcap_implib.a
-ptunnel_ng_CFLAGS += -I$(abs_srcdir)/win32/includes -DHAVE_PCAP=1
+ptunnel_ng_CFLAGS += -I$(abs_srcdir)/win32/includes
ptunnel_ng_LDADD += $(wpcap_IMP)
ptunnel_ng_SOURCES += $(wpcap_DEF)