blob: 305d45d68514cfcc3ef606b7542773a26e6716f5 (
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
|
$NetBSD: patch-ag,v 1.22 2005/10/09 14:47:56 taca Exp $
--- configure.orig 2005-10-02 15:31:21.000000000 +0900
+++ configure
@@ -2247,7 +2247,7 @@ if test "${enable_snmp+set}" = set; then
#define SQUID_SNMP 1
EOF
- SNMPLIB='-L../snmplib -lsnmp'
+ SNMPLIB='../snmplib/libsnmp.a'
if true; then
@@ -4068,6 +4068,7 @@ for ac_hdr in \
libc.h \
limits.h \
linux/netfilter_ipv4.h \
+ machine/byte_swap.h \
malloc.h \
math.h \
memory.h \
@@ -6315,43 +6316,38 @@ fi
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
if test $ac_cv_type_mode_t = no; then
cat >> confdefs.h <<\EOF
-#define mode_t u_short
+#define mode_t unsigned short
EOF
fi
-echo $ac_n "checking for fd_mask""... $ac_c" 1>&6
-echo "configure:6325: checking for fd_mask" >&5
-if eval "test \"`echo '$''{'ac_cv_type_fd_mask'+set}'`\" = set"; then
+ echo $ac_n "checking for fd_set""... $ac_c" 1>&6
+ echo "configure:6031: checking for fd_set" >&5
+ if eval "test \"`echo '$''{'ac_cv_have_fd_mask'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 6330 "configure"
#include "confdefs.h"
#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
+#include <sys/time.h>
+#include <sys/unistd.h>
+int main() {
+fd_mask fds;
+; return 0; }
EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])fd_mask[^a-zA-Z_0-9]" >/dev/null 2>&1; then
+if { (eval echo configure:5983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- ac_cv_type_fd_mask=yes
+ ac_cv_have_fd_mask=yes
else
+ echo "configure: failed program was:" >&5
rm -rf conftest*
- ac_cv_type_fd_mask=no
+ ac_cv_have_fd_mask=no
fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_type_fd_mask" 1>&6
-if test $ac_cv_type_fd_mask = no; then
- cat >> confdefs.h <<\EOF
-#define fd_mask int
-EOF
-
-fi
+echo "$ac_t""$ac_cv_have_fd_mask" 1>&6
echo $ac_n "checking size of off_t""... $ac_c" 1>&6
@@ -7667,8 +7663,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
|