configure.ac: quoting; use AS_IF

Strictly speaking, one more level of quoting is needed to guarantee
literal strings are not expanded as macros. But well...