Merge from vendor branch TNF:
[pkgsrc.git] / net / ucd-snmp / patches / patch-aa
1 $NetBSD: patch-aa,v 1.9 2000/01/23 10:41:10 itojun Exp $
2 --- configure.in.orig   Fri Jan 21 07:52:17 2000
3 +++ configure.in        Fri Jan 21 08:04:52 2000
4 @@ -407,7 +407,8 @@
5      else
6        SHLIB_CFLAGS="-Kpic"
7      fi
8 -    SHLIB_EXTENSION="so"
9 +#   SHLIB_EXTENSION="so"
10 +    SHLIB_EXTENSION="la"
11         SHLIB_VERSION=
12      SHLIB_LD_CMD="ld -r -o"
13      SHLIB_LDCONFIG_CMD=
14 @@ -712,7 +713,7 @@
15  done
16  module_list_o=`echo "$module_list_code " | sed 's/\([^ ]\) /\1.o /g'`
17  module_list_c=`echo "$module_list_code " | sed 's/\([^ ]\) /\1.c /g'`
18 -mibgroup_list_o=`echo " $module_list_o " | sed 's@ \([^ ]*\)\.o@ mibgroup/\1.o @g'`
19 +mibgroup_list_o=`echo " $module_list_o " | sed -e 's@ \([^ ]*\)\.o@ mibgroup/\1.o @g' -e 's@ mibgroup/[^ ]*/\([^ /]*\).o@ mibgroup/\1.o@g'`
20  changequote([, ])
21  AC_SUBST(module_list_c)
22  AC_SUBST(module_list_h)
23 @@ -1034,11 +1035,7 @@
24  
25  AC_CHECK_STRUCT_FOR([
26  #include <sys/types.h>
27 -#define KERNEL
28 -#define _KERNEL
29  #include <sys/socket.h>
30 -#undef KERNEL
31 -#undef _KERNEL
32  #include <net/route.h>
33  ], rtentry, rt_dst, no)
34  
35 @@ -1049,11 +1046,7 @@
36  dnl 4.4 compat
37  AC_TRY_COMPILE([
38  #include <sys/types.h>
39 -#define KERNEL
40 -#define _KERNEL
41  #include <sys/socket.h>
42 -#undef KERNEL
43 -#undef _KERNEL
44  #include <net/route.h>
45  ],[
46  
47 @@ -1070,11 +1063,7 @@
48  if test "x$ac_cv_RTENTRY_TYPE" = "x"; then
49  AC_TRY_COMPILE([
50  #include <sys/types.h>
51 -#define KERNEL
52 -#define _KERNEL
53  #include <sys/socket.h>
54 -#undef KERNEL
55 -#undef _KERNEL
56  #include <net/route.h>
57  ],[
58  struct rtentry rt; 
59 @@ -1124,11 +1113,7 @@
60  [
61  AC_TRY_COMPILE([
62  #include <sys/types.h>
63 -#define KERNEL
64 -#define _KERNEL
65  #include <sys/socket.h>
66 -#undef KERNEL
67 -#undef _KERNEL
68  #include <net/route.h>
69  ],[
70  struct rtentry rt; 
71 @@ -1145,41 +1130,25 @@
72  dnl Check struct rtentry for various things.
73  AC_CHECK_STRUCT_FOR([
74  #include <sys/types.h>
75 -#define KERNEL
76 -#define _KERNEL
77  #include <sys/socket.h>
78 -#undef KERNEL
79 -#undef _KERNEL
80  #include <net/route.h>
81  ], rtentry, rt_unit)
82  
83  AC_CHECK_STRUCT_FOR([
84  #include <sys/types.h>
85 -#define KERNEL
86 -#define _KERNEL
87  #include <sys/socket.h>
88 -#undef KERNEL
89 -#undef _KERNEL
90  #include <net/route.h>
91  ], rtentry, rt_refcnt)
92  
93  AC_CHECK_STRUCT_FOR([
94  #include <sys/types.h>
95 -#define KERNEL
96 -#define _KERNEL
97  #include <sys/socket.h>
98 -#undef KERNEL
99 -#undef _KERNEL
100  #include <net/route.h>
101  ], rtentry, rt_hash)
102  
103  AC_CHECK_STRUCT_FOR([
104  #include <sys/types.h>
105 -#define KERNEL
106 -#define _KERNEL
107  #include <sys/socket.h>
108 -#undef KERNEL
109 -#undef _KERNEL
110  #include <net/route.h>
111  ], rtentry, rt_use)
112