give up AX_ macros as they don't work on older autoconf, use
a more conservative method instead