#!/bin/sh set -e set -x INSTDIR=$(mktemp -d -t ncurses-XXXXXX) mkdir -p build-normal build-wide cd build-wide ../configure --with-shared --without-normal --without-debug --without-progs \ --without-tests --with-termlib=tinfo --enable-widec --prefix=$INSTDIR make -C ncurses -j2 cd ../build-normal ../configure --with-shared --without-normal --without-debug --without-progs \ --without-tests --with-termlib=tinfo --prefix=$INSTDIR make -C ncurses -j2 cd .. make -C build-normal/ncurses install.tinfo make -C build-wide/ncurses install.tinfo if cmp build-normal/lib/libtinfo.so.6.1 $INSTDIR/lib/libtinfo.so.6.1 then echo "Wide tinfo library has not been installed over non-wide one!" >&2 exit 1 fi