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
|
$NetBSD: patch-an,v 1.3 2002/10/13 16:43:22 taca Exp $
--- configure.in.orig Wed Sep 25 05:00:03 2002
+++ configure.in
@@ -497,7 +497,7 @@ AC_ARG_ENABLE(snmp,
[ if test "$enableval" = "yes" ; then
echo "SNMP monitoring enabled"
AC_DEFINE(SQUID_SNMP)
- SNMPLIB='-L../snmplib -lsnmp'
+ SNMPLIB='../snmplib/libsnmp.a'
AM_CONDITIONAL(USE_SNMP, true)
SNMP_MAKEFILE=./snmplib/Makefile
makesnmplib=snmplib
@@ -1153,6 +1153,7 @@ AC_CHECK_HEADERS( \
libc.h \
limits.h \
linux/netfilter_ipv4.h \
+ machine/byte_swap.h \
malloc.h \
math.h \
memory.h \
@@ -1203,6 +1204,7 @@ AC_CHECK_HEADERS( \
syslog.h \
time.h \
unistd.h \
+ util.h \
utime.h \
varargs.h \
byteswap.h \
@@ -1378,8 +1380,17 @@ AC_CHECK_TYPE(pid_t, int)
AC_CHECK_TYPE(size_t, unsigned int)
AC_CHECK_TYPE(ssize_t, int)
AC_CHECK_TYPE(off_t, int)
-AC_CHECK_TYPE(mode_t, u_short)
-AC_CHECK_TYPE(fd_mask, int)
+AC_CHECK_TYPE(mode_t, unsigned short)
+
+dnl Check for type fd_mask
+AC_CACHE_CHECK(for fd_set,ac_cv_have_fd_mask, [
+ AC_TRY_COMPILE([#include <sys/types.h>
+#include <sys/time.h>
+#include <sys/unistd.h>],
+ [fd_mask fds;],
+ ac_cv_have_fd_mask="yes",
+ ac_cv_have_fd_mask="no")
+])
AC_CHECK_SIZEOF_SYSTYPE(off_t, 4)
AC_CHECK_SIZEOF_SYSTYPE(size_t, 4)
@@ -1560,8 +1571,8 @@ if test "$GCC" = "yes"; then
GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'`
case "$GCCVER" in
[2.95.[123]])
- echo "Removing -O for gcc on $host with GCC $GCCVER"
- CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*//'`"
+ echo "Making -O\[[2-9\]] to -O for gcc on $host with GCC $GCCVER"
+ CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*/-O/'`"
;;
esac
fi
@@ -1654,6 +1665,7 @@ AC_CHECK_FUNCS(\
setrlimit \
getrlimit \
setsid \
+ setproctitle \
sigaction \
snprintf \
srand48 \
|