aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Bell <csbell@myri.com>2010-01-26 12:02:38 -0800
committerGuy Harris <guy@alum.mit.edu>2010-01-26 12:02:38 -0800
commit271747b20bb1347407a58a1d0a03509cd6cbabf8 (patch)
treec1e0a303be9968df1651787614a42170e88cfd46
parente1539bdbcb636f3fc3d3982bc3ee1987d6c00643 (diff)
Fix --with-pcap={linux,bpf} when SNF API is present.
Signed-off-by: Guy Harris <guy@alum.mit.edu>
-rwxr-xr-xconfigure6
-rw-r--r--configure.in6
2 files changed, 10 insertions, 2 deletions
diff --git a/configure b/configure
index dd86732..390aba0 100755
--- a/configure
+++ b/configure
@@ -9289,7 +9289,11 @@ echo "$as_me: error: SNF API cannot correctly be linked check config.log; use --
fi
else
V_INCLS="$V_INCLS -I$snf_include_dir"
- LIBS="$LIBS -L$snf_lib_dir -lsnf"
+ LIBS="$LIBS -lsnf"
+ LDFLAGS="$LDFLAGS -L$snf_lib_dir"
+ if test "$V_PCAP" != snf ; then
+ SSRC="pcap-snf.c"
+ fi
cat >>confdefs.h <<\_ACEOF
#define HAVE_SNF_API 1
diff --git a/configure.in b/configure.in
index 4e515cf..794da27 100644
--- a/configure.in
+++ b/configure.in
@@ -1082,7 +1082,11 @@ if test "$with_snf" != no; then
fi
else
V_INCLS="$V_INCLS -I$snf_include_dir"
- LIBS="$LIBS -L$snf_lib_dir -lsnf"
+ LIBS="$LIBS -lsnf"
+ LDFLAGS="$LDFLAGS -L$snf_lib_dir"
+ if test "$V_PCAP" != snf ; then
+ SSRC="pcap-snf.c"
+ fi
AC_DEFINE(HAVE_SNF_API, 1, [define if you have Myricom SNF API])
fi
fi