export BDB_VERSION=$1
export CFLAGS="-O0"
cd build_unix
rm config.status
make clean
../dist/configure \
  --prefix=/opt/bdb-${BDB_VERSION} \
  --with-uniquenames \
  --enable-diagnostic \
  --enable-shared \
  --enable-static \
  --enable-rpc \
  --disable-java \
  --enable-posixmutexes \
  --enable-largefile \
  --enable-cxx \
  --disable-compat185 \
  i686-suse-linux
make
