use HAVE_STR*DUP config to check function definitions