From: Matt Turner Date: Sat, 12 May 2012 01:49:42 +0000 (-0400) Subject: configure.ac: Fix loongson-mmi out-of-tree builds X-Git-Tag: pixman-0.25.6~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0a40cb822bec52494c64e6750be50b734dc29df;p=platform%2Fupstream%2Fpixman.git configure.ac: Fix loongson-mmi out-of-tree builds When building out-of-tree, gcc wasn't able to find loongson-mmintrin.h to compile the test program. Add -I$srcdir to CFLAGS to point gcc to it. --- diff --git a/configure.ac b/configure.ac index 345bc33..57fd060 100644 --- a/configure.ac +++ b/configure.ac @@ -281,7 +281,7 @@ have_loongson_mmi=no AC_MSG_CHECKING(whether to use Loongson MMI) xserver_save_CFLAGS=$CFLAGS -CFLAGS=" $LS_CFLAGS $CFLAGS" +CFLAGS=" $LS_CFLAGS $CFLAGS -I$srcdir" AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ #ifndef __mips_loongson_vector_rev #error "Loongson Multimedia Instructions are only available on Loongson"