summaryrefslogtreecommitdiff
blob: d9fba417790af503ecfe9d6a19952b2b59b08542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
diff -urN keepalived-1.1.16.orig/configure.in keepalived-1.1.16/configure.in
--- keepalived-1.1.16.orig/configure.in	2009-02-15 21:12:21.000000000 +0100
+++ keepalived-1.1.16/configure.in	2009-02-16 15:07:20.023468087 +0100
@@ -48,95 +48,20 @@
 AC_CHECK_LIB(popt, poptGetContext,,AC_MSG_ERROR([Popt libraries is required]))
 
 dnl ----[ Kernel version check ]----
-CPPFLAGS="$CPPFLAGS -I$kernelinc"
-AC_MSG_CHECKING([for kernel version])
-AC_TRY_RUN([
-    #include <stdlib.h>
-    #include <stdio.h>
-    #include <linux/version.h>
-    #if !defined(UTS_RELEASE)
-    #include <linux/utsrelease.h>
-    #endif
-    int main (void) {
-      FILE *fp = fopen ("linuxinfo", "w");
-      if (!fp) return 1;
-      fprintf (fp, "%s\n", UTS_RELEASE);
-      fclose (fp); 
-      return 0;
-    } 
-  ], [
-    LINUX_MAJOR=`cat linuxinfo | cut -d'.' -f1`
-    LINUX_MINOR=`cat linuxinfo | cut -d'.' -f2`
-    LINUX_PATCH=`cat linuxinfo | cut -d'.' -f3`
-  ], [
-    LINUX_MAJOR="0"
-    LINUX_MINOR="0"
-    LINUX_PATCH="0"
-  ], [
-    LINUX_MAJOR="0"
-    LINUX_MINOR="0"
-    LINUX_PATCH="0"
-  ])
-  rm -f linuxinfo
-  AC_MSG_RESULT([$LINUX_MAJOR.$LINUX_MINOR.$LINUX_PATCH])
-  if test "$LINUX_MINOR" = "6"; then
-    KERN="_KRNL_2_6_"
-  elif test "$LINUX_MINOR" = "4"; then
-    KERN="_KRNL_2_4_"
-  else
-    KERN="_KRNL_2_2_"
-  fi
-  if test "$LINUX_MAJOR" = "0" -a "$LINUX_MINOR" = "0" -a "$LINUX_PATCH" = "0"; then
-    AC_MSG_WARN([Cannot determine Linux Kernel version.])
-  fi
-
-AC_CHECK_FILE($kernelpath/net/core/link_watch.c, [
-                LINKWATCH_SUPPORT="_WITH_LINKWATCH_"
-              ], [
-                LINKWATCH_SUPPORT="_WITHOUT_LINKWATCH_"
-              ])
-
+KERN="_KRNL_2_6_"
+LINKWATCH_SUPPORT="_WITH_LINKWATCH_"
 AC_SUBST(LINKWATCH_SUPPORT)
 AC_SUBST(KERN)
 
 dnl ----[ Checks for LVS and VRRP support ]----
-IPVS_SUPPORT="_WITHOUT_LVS_"
-if test "$enable_lvs" != "no"; then
-  AC_CHECK_HEADER([net/ip_vs.h],
-    [IPVS_SUPPORT="_WITH_LVS_"],
-    [
-      IPVS_SUPPORT="_WITHOUT_LVS_"
-      AC_MSG_WARN([keepalived will be built without LVS support.])
-    ])
-fi  
+IPVS_SUPPORT="_WITH_LVS_"
 
 if test "$IPVS_SUPPORT" = "_WITHOUT_LVS_" -a "$enable_vrrp" = "no"; then
   AC_MSG_ERROR([keepalived MUST be compiled at least with LVS or VRRP framework])
 fi
 
 dnl ----[ IPVS syncd support probe ]---
-IPVS_SYNCD="_WITHOUT_IPVS_SYNCD_"
-if test "$IPVS_SUPPORT" = "_WITH_LVS_"; then
-  AC_MSG_CHECKING([for IPVS syncd support])
-  if test "$KERN" = "_KRNL_2_6_"; then
-    IPVS_SYNCD="_HAVE_IPVS_SYNCD_"
-  elif test "_KRNL_2_4_"; then
-    IPVS_SYNCD="_HAVE_IPVS_SYNCD_"
-  else
-    IPVS_SYNCD="_WITHOUT_IPVS_SYNCD_"
-  fi
-
-  if test "${IPVS_SUPPORT}" = "_WITHOUT_LVS_" -o "$enable_lvs_syncd" = "no"; then
-    IPVS_SYNCD="_WITHOUT_IPVS_SYNCD_"
-  fi
-
-  if test "$IPVS_SYNCD" = "_HAVE_IPVS_SYNCD_"; then
-    AC_MSG_RESULT([yes])
-  else
-    AC_MSG_RESULT([no])
-  fi
-fi
-
+IPVS_SYNCD="_HAVE_IPVS_SYNCD_"
 AC_SUBST(IPVS_SYNCD)
 
 dnl ----[ Checks for kernel netlink support ]----