#!/bin/sh export MAKE=make if [ "$(uname -s)" = SunOS ] then export PATH=/usr/xpg4/bin:$PATH export MAKE=$(which gmake) export AR=$(which gar) if [ "$(uname -r)" = 5.10 ] then #export M4=$(which gm4) export CONFIG_SHELL=/bin/bash fi fi gs=absent urw=absent urw_dir=/usr/share/fonts/type1/urw-base35 test -f /usr/bin/gs && gs=present # fontconfig might litter this directory with a .uuid file >:-( if [ -d $urw_dir ] then count=$(find $urw_dir -type f | wc -l) test $count -gt 1 && urw=present fi echo SCENARIO: urw $urw, gs $gs ./configure --prefix=$HOME gl_cv_func_signbit=no \ && $MAKE if [ $? = 0 ] then # Expect test failures on Solaris 10. if [ "$(uname -s)" = SunOS ] && [ "$(uname -r)" = 5.10 ] then echo Fixing up the test scripts to use a POSIX shell. >&2 gsed -i -e '1s@#!/bin/sh@#!/usr/xpg4/bin/sh@' \ `find . -name '*.sh' | egrep '/(examples|tests)/'` gsed -i -e '1s@#!/bin/sh@#!/usr/xpg4/bin/sh@' \ `find . -name '*.sh.in' | egrep '/(examples|tests)/'` $MAKE check $MAKE install install-doc \ && : #&& $MAKE uninstall \ #&& $MAKE distclean else echo GBR: PATH=$PATH $MAKE check \ && $MAKE install install-doc \ && : #&& $MAKE uninstall \ #&& $MAKE distclean fi fi list=$(find $HOME/bin $HOME/lib $HOME/share -type f) if [ -n "$list" ] then echo '*** installation directories are NOT clean (.../info/dir is OK)' else echo '$HOME/{bin,lib,share}' directories are clean fi