]> git.pld-linux.org Git - packages/tcpdump.git/blob - tcpdump-no-libsmi.patch
- release 2,
[packages/tcpdump.git] / tcpdump-no-libsmi.patch
1 --- tcpdump-cvs20001217/configure.in~   Wed Dec 27 17:56:21 2000
2 +++ tcpdump-cvs20001217/configure.in    Wed Dec 27 17:56:47 2000
3 @@ -44,38 +44,6 @@
4         ;;
5  esac
6  
7 -
8 -AC_CHECK_HEADERS(smi.h)
9 -AC_CHECK_LIB(smi, smiInit)
10 -AC_MSG_CHECKING([whether to enable libsmi])
11 -        AC_TRY_RUN([ /* libsmi available check */
12 -#include <smi.h>
13 -main()
14 -{
15 -  int current, revision, age, n;
16 -  const int required = 2;
17 -  if (smiInit("")) 
18 -    exit(1);
19 -  if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
20 -    exit(2);
21 -  n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
22 -  if (n != 3)
23 -    exit(3);
24 -  if (required < current - age || required > current)
25 -    exit(4);
26 -  exit(0);
27 -}
28 -],
29 -[ AC_MSG_RESULT(yes)
30 -  AC_DEFINE(LIBSMI)
31 -  libsmi=yes],
32 -[ AC_MSG_RESULT(no)
33 -  libsmi=no],
34 -[ AC_MSG_RESULT(not when cross-compiling)
35 -  libsmi=no]
36 -)
37 -
38 -
39  CFLAGS="$CFLAGS -Dss_family=__ss_family -Dss_len=__ss_len"
40  AC_MSG_CHECKING([whether to enable ipv6])
41  AC_ARG_ENABLE(ipv6,
This page took 0.078364 seconds and 3 git commands to generate.