]> git.proxmox.com Git - mirror_iproute2.git/blame - configure
add if_ether.h since it not in if.h on some systems.
[mirror_iproute2.git] / configure
CommitLineData
449bf1f3
SH
1#! /bin/bash
2# This is not an autconf generated configure
3#
4INCLUDE=${1:-"/usr/include"}
5
6echo "# Generated config based on" $INCLUDE >Config
7
8echo "TC"
9PKT_SCHED=$INCLUDE/linux/pkt_sched.h
10if [ ! -r $PKT_SCHED ];
11then
12 echo " can't find file" $PKT_SCHED
13 exit 1
14fi
15
6202b4c1
SH
16echo -n " netem scheduler... "
17if grep -q 'tc_netem_qopt' $PKT_SCHED
449bf1f3 18then
c830d77b 19 echo "TC_CONFIG_NETEM:=y" >>Config
449bf1f3
SH
20 echo y
21else
22 echo n
23fi
24
25echo -n " ATM... "
c830d77b
SH
26cat >/tmp/atmtest.c <<EOF
27#include <atm.h>
28int main(int argc, char **argv) {
29 struct atm_qos qos;
30 (void) text2qos("aal5,ubr:sdu=9180,rx:none",&qos,0);
31 return 0;
32}
33EOF
34gcc -o /tmp/atmtest /tmp/atmtest.c -latm >/dev/null 2>&1
35if [ $? -eq 0 ]
449bf1f3 36then
c830d77b 37 echo "TC_CONFIG_ATM:=y" >>Config
449bf1f3
SH
38 echo y
39else
40 echo n
41fi
42
43# See if we know about TCP Vegas
44echo "SS"
45echo -n " TCP Vegas... "
46if grep -q TCPDIAG_VEGASINFO $INCLUDE/linux/tcp_diag.h
47then
c830d77b 48 echo "SS_CONFIG_VEGAS:=y" >>Config
449bf1f3
SH
49 echo y
50else
51 echo n
52fi
53
54echo -n " TCP DRS... "
55if grep -q tcpi_rcv_space $INCLUDE/linux/tcp.h
56then
c830d77b 57 echo "SS_CONFIG_DRS:=y" >>Config
449bf1f3
SH
58 echo y
59else
60 echo n
61fi
62
63