adding a check in configure as I'd like to because it does not have any AC_CHECK_FUNCS call that I could easily use to do this (the diff could be quite big).