configure.ac: Fix loongson-mmi out-of-tree builds