-
Notifications
You must be signed in to change notification settings - Fork 163
/
configure
executable file
·110 lines (82 loc) · 2.02 KB
/
configure
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
104
105
106
107
108
109
110
#!/bin/sh
LC_ALL=C
export LC_ALL
. auto/options
. auto/init
. auto/sources
test -d $TC_OBJS || mkdir $TC_OBJS
echo > $TC_AUTO_HEADERS_H
echo > $TC_AUTOCONF_ERR
echo "#define TC_CONFIGURE \"$TC_CONFIGURE\"" > $TC_AUTO_CONFIG_H
if test -z "$TC_PLATFORM"; then
echo "checking for OS"
TC_SYSTEM=`uname -s 2>/dev/null`
TC_RELEASE=`uname -r 2>/dev/null`
TC_MACHINE=`uname -m 2>/dev/null`
echo " + $TC_SYSTEM $TC_RELEASE $TC_MACHINE"
TC_PLATFORM="$TC_SYSTEM:$TC_RELEASE:$TC_MACHINE";
else
echo "building for $TC_PLATFORM"
TC_SYSTEM=$TC_PLATFORM
fi
case "$TC_PLATFORM" in
Linux:*)
. auto/os/linux
;;
*)
echo "error: Linux only!"
exit 1
esac
if [ $TC_DEBUG = YES ]; then
have=TC_DEBUG . auto/have
have=TC_DETECT_MEMORY . auto/have
have=TC_HIGH_PRESSURE_CHECK . auto/have
else
if [ $TC_DETECT_MEMORY = YES ]; then
have=TC_DETECT_MEMORY . auto/have
fi
if [ $TC_HIGH_PRESSURE_CHECK = YES ]; then
have=TC_HIGH_PRESSURE_CHECK . auto/have
fi
fi
if [ $TC_COMET = YES ]; then
have=TC_COMET . auto/have
fi
if [ $TC_SINGLE = YES ]; then
have=TC_SINGLE . auto/have
fi
if [ $TC_TOPO = YES ]; then
have=TC_TOPO . auto/have
fi
if [ $TC_PCAP_SEND = YES ]; then
have=TC_PCAP_SEND . auto/have
fi
if [ $TC_COMBINED = YES ]; then
have=TC_COMBINED . auto/have
fi
. auto/cc/conf
. auto/headers
. auto/os/conf
. auto/linux
case ".$TC_PREFIX" in
.)
TC_PREFIX=${TC_PREFIX:-/usr/local/tcpburn}
have=TC_PREFIX value="\"$TC_PREFIX/\"" . auto/define
;;
.!)
TC_PREFIX=
;;
*)
have=TC_PREFIX value="\"$TC_PREFIX/\"" . auto/define
;;
esac
if [ ".$TC_CONF_PREFIX" != "." ]; then
have=TC_CONF_PREFIX value="\"$TC_CONF_PREFIX/\"" . auto/define
fi
have=TC_SBIN_PATH value="\"$TC_SBIN_PATH\"" . auto/define
have=TC_PID_PATH value="\"$TC_PID_PATH\"" . auto/define
have=TC_ERROR_LOG_PATH value="\"$TC_ERROR_LOG_PATH\"" . auto/define
CORE_LIBS="$CORE_LIBS -lpcap"
. auto/make
. auto/install
. auto/summary