#!/bin/bash
set -e
-echo "NYI"
+# this stuff is necessary here: doing it in the prebuild
+# is useless: There is an sync step directly before the build
+# and recreated .ac files are overwtritten
+
+build_base=$(pwd)
+
+cd Downloads/Open-COBOL-ESQL
+autoreconf
+aclocal
+libtoolize
+
+#pushd dblib >/dev/null
+# libtoolize
+#popd >/dev/null
+
+./configure --prefix $build_base/debian/tmp/usr
+
+make