configure: special case flag test for clang (while still abusing the gcc targets) Change-Id: I40f33f619ed1ee760caf23f5598587b30cf8a9ed