use autoconf to test for optreset