blob: dc14e547ba497ef006cf0bf54ceebb8a100cfe51 [file] [log] [blame]
osdl.net!shemminger449bf1f2004-06-25 21:14:22 +00001#! /bin/bash
2# This is not an autconf generated configure
3#
osdl.net!shemminger4b1bbd92004-08-09 16:35:28 +00004INCLUDE=${1:-"$PWD/include"}
osdl.net!shemminger449bf1f2004-06-25 21:14:22 +00005
6echo "# Generated config based on" $INCLUDE >Config
7
osdl.net!shemmingerb9cb1c92004-07-30 22:27:50 +00008echo "TC schedulers"
osdl.net!shemminger449bf1f2004-06-25 21:14:22 +00009
osdl.net!shemmingerb9cb1c92004-07-30 22:27:50 +000010echo -n " ATM "
osdl.net!shemmingerc830d772004-07-02 17:47:53 +000011cat >/tmp/atmtest.c <<EOF
12#include <atm.h>
13int 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}
18EOF
osdl.net!shemminger2979d522004-07-30 20:24:59 +000019gcc -I$INCLUDE -o /tmp/atmtest /tmp/atmtest.c -latm >/dev/null 2>&1
osdl.net!shemmingerc830d772004-07-02 17:47:53 +000020if [ $? -eq 0 ]
osdl.net!shemminger449bf1f2004-06-25 21:14:22 +000021then
osdl.net!shemmingerc830d772004-07-02 17:47:53 +000022 echo "TC_CONFIG_ATM:=y" >>Config
osdl.net!shemmingerb9cb1c92004-07-30 22:27:50 +000023 echo yes
osdl.net!shemminger449bf1f2004-06-25 21:14:22 +000024else
osdl.net!shemmingerb9cb1c92004-07-30 22:27:50 +000025 echo no
osdl.net!shemminger449bf1f2004-06-25 21:14:22 +000026fi
osdl.net!shemminger2979d522004-07-30 20:24:59 +000027rm -f /tmp/atmtest.c /tmp/atmtest