I often face syntax errors on expr when running configure scripts. I wrote a set of tests on Linux to try to identify the cause. I found one : normally "expr 2 \* 6" should work and give "12" but a syntax error happens.
I can provide the sh script that contains all the cases I grouped in, with the expected values (using Linux as reference).