The test script for 0.19.1 does not run on Solaris 8. Sorry I do not know shell programming enough to help debug this. I did narrow down the "! not found" error is on line 39.
make: Entering directory `/disk0/PROJECTS/Arabic/fribidi-0.19.1/test'
./run.tests: !: not found
./run.tests: bad substitution