try to check for -fpascal-strings in configure script, and for other compiler flags

the AX_CHECK_COMPILE_FLAG autoconf macro doesn't seem to work exactly
properly for the -fpascal-strings flag though...