#!/bin/bash -x

# Install dependencies
aptitude install -y autoconf automake libtool pkg-config build-essential \
  git-core libhx-dev libpcre3-dev libxml2-dev libssl-dev \
  apache2-dev libpam-dev gdb

# Install the link to the configuration
/home/aaa/installvm.sh conflink

# Build circum
rm -rf /root/circum
rm -rf /root/circum-rt
cd /root
git clone file:///home/aaa/src/circum
mkdir circum-rt
cd circum
./autogen.sh
./configure --prefix=/root/circum-rt CFLAGS="-O0 -ggdb3" CXXFLAGS="-O0 -ggdb3"
make && make install


