#!/bin/sh

set -e

uname -a
${CC} --version
python --version
pip --version
sudo iptables -L OUTPUT
sudo iptables -L INPUT
echo -n "/proc/sys/kernel/core_pattern: "
cat /proc/sys/kernel/core_pattern
./configure
make
make clean
#sudo pip install -r requirements.txt
#sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install libgsm1-dev libsndfile1-dev tcpdump curl
tcpdump --version || true
mkdir deps
cd deps
wget http://download-mirror.savannah.gnu.org/releases/linphone/plugins/sources/bcg729-1.0.0.tar.gz
tar xfz bcg729-1.0.0.tar.gz
cd bcg729-1.0.0
perl -pi -e 's|BASICOPERATIONSMACROS__H|BASICOPERATIONSMACROS_H|g' include/basicOperationsMacros.h
./configure
make
sudo make install
cd ..
git clone git://github.com/sippy/libg722 libg722
cd libg722
make
sudo make install
cd ../..
sudo ldconfig
autoreconf --force --install --verbose
./configure
make
TEST_WITNESS_ENABLE=yes make check || (cat tests/test-suite.log; exit 1)

#!/bin/sh

set -e

uname -a
which ${CC}
${CC} --version
python --version
pip --version
sudo iptables -L OUTPUT
sudo iptables -L INPUT
echo -n "/proc/sys/kernel/core_pattern: "
cat /proc/sys/kernel/core_pattern
./configure
make
make clean
#sudo pip install -r requirements.txt
#sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install libgsm1-dev libsndfile1-dev tcpdump curl
tcpdump --version || true
mkdir deps
cd deps
wget http://download-mirror.savannah.gnu.org/releases/linphone/plugins/sources/bcg729-1.0.0.tar.gz
tar xfz bcg729-1.0.0.tar.gz
cd bcg729-1.0.0
perl -pi -e 's|BASICOPERATIONSMACROS__H|BASICOPERATIONSMACROS_H|g' include/basicOperationsMacros.h
./configure
make
sudo make install
cd ..
git clone git://github.com/sippy/libg722 libg722
cd libg722
make
sudo make install
cd ../..
sudo ldconfig
autoreconf --force --install --verbose
./configure
make
TEST_WITNESS_ENABLE=yes make check || (cat tests/test-suite.log; exit 1)

Add which ${CC} at the beginning so that we see the path to clang.
Add which ${CC} at the beginning so that we see the path to clang.
