]> git.proxmox.com Git - mirror_iproute2.git/blob - configure
Add new rate and duplicate arguments.
[mirror_iproute2.git] / configure
1 #! /bin/bash
2 # This is not an autconf generated configure
3 #
4 INCLUDE=${1:-"/usr/include"}
5
6 echo "# Generated config based on" $INCLUDE >Config
7
8 echo "TC"
9 PKT_SCHED=$INCLUDE/linux/pkt_sched.h
10 if [ ! -r $PKT_SCHED ];
11 then
12 echo " can't find file" $PKT_SCHED
13 exit 1
14 fi
15
16 echo -n " netsim scheduler... "
17 if grep -q 'tc_netsim_qopt' $PKT_SCHED
18 then
19 echo "TC_CONFIG_NETSIM = y" >>Config
20 echo y
21 else
22 echo n
23 fi
24
25 echo -n " ATM... "
26 if [ -r $INCLUDE/linux/atm.h ]
27 then
28 echo "TC_CONFIG_ATM = y" >>Config
29 echo y
30 else
31 echo n
32 fi
33
34 # See if we know about TCP Vegas
35 echo "SS"
36 echo -n " TCP Vegas... "
37 if grep -q TCPDIAG_VEGASINFO $INCLUDE/linux/tcp_diag.h
38 then
39 echo "SS_CONFIG_VEGAS = y" >>Config
40 echo y
41 else
42 echo n
43 fi
44
45 echo -n " TCP DRS... "
46 if grep -q tcpi_rcv_space $INCLUDE/linux/tcp.h
47 then
48 echo "SS_CONFIG_DRS = y" >>Config
49 echo y
50 else
51 echo n
52 fi
53
54