configure: Correctly handle all cases when using AC_ARG_WITH().