]>
Commit | Line | Data |
---|---|---|
449bf1f3 SH |
1 | #! /bin/bash |
2 | # This is not an autconf generated configure | |
3 | # | |
4b1bbd9c | 4 | INCLUDE=${1:-"$PWD/include"} |
449bf1f3 SH |
5 | |
6 | echo "# Generated config based on" $INCLUDE >Config | |
7 | ||
b9cb1c9a | 8 | echo "TC schedulers" |
449bf1f3 | 9 | |
b9cb1c9a | 10 | echo -n " ATM " |
c830d77b SH |
11 | cat >/tmp/atmtest.c <<EOF |
12 | #include <atm.h> | |
13 | int main(int argc, char **argv) { | |
14 | struct atm_qos qos; | |
15 | (void) text2qos("aal5,ubr:sdu=9180,rx:none",&qos,0); | |
16 | return 0; | |
17 | } | |
18 | EOF | |
2979d52f | 19 | gcc -I$INCLUDE -o /tmp/atmtest /tmp/atmtest.c -latm >/dev/null 2>&1 |
c830d77b | 20 | if [ $? -eq 0 ] |
449bf1f3 | 21 | then |
c830d77b | 22 | echo "TC_CONFIG_ATM:=y" >>Config |
b9cb1c9a | 23 | echo yes |
449bf1f3 | 24 | else |
b9cb1c9a | 25 | echo no |
449bf1f3 | 26 | fi |
2979d52f | 27 | rm -f /tmp/atmtest.c /tmp/atmtest |
449bf1f3 | 28 |