if [ -d "nghttp2" ]; then echo "nghttp2 does exists already" exit 0 fi set -ex mkdir -p sdk/include LIB=nghttp2 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" mkdir nghttp2 pushd nghttp2 wget "https://github.com/nghttp2/nghttp2/releases/download/v1.68.0/nghttp2-1.68.0.tar.gz" tar xf nghttp2-1.68.0.tar.gz ln -s nghttp2-1.68.0 $LIB pushd $LIB INSTALL_PREFIX=`pwd`/nghttp2-install #autoreconf -fi ./configure --enable-lib-only --prefix=$PWD/nghttp2-install popd cp -av $DIR/Makefile.* $LIB/ $DIR/../../prepare-template-just-makefile $LIB $DIR pushd $LIB make popd popd pushd sdk/include rm -f nghttp2 ln -s ../../nghttp2/$LIB/lib/includes/nghttp2 popd