#!/bin/sh
# ViennaRNA does not support Python 3 for MacOSX.

## choose extra configure options depending on the operating system
## (mac or linux)
##
if [ `uname` == Darwin ] ; then
    extra_config_options="--disable-openmp 
                          --enable-universal-binary
                          --without-python3
                          LDFLAGS=-Wl,-headerpad_max_install_names"
else ## linux
    extra_config_options="--with-python3"
fi

./configure --prefix=$PREFIX \
            --without-perl --without-python \
            --with-kinwalker \
            --disable-lto \
            --without-doc \
            ${extra_config_options} && \
make -j${CPU_COUNT} && \
make install
