On Wed, Jun 25, 2014 at 5:38 AM, Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com> wrote: > Added '--enable-pixman' (default=no) parameter for autogen > and corresponding behaviour to include paths and Pixman > library for Mesa if Pixman found. > > Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com> > --- > configure.ac | 32 ++++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/configure.ac b/configure.ac > index e4cfb07..fc090c9 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -45,6 +45,7 @@ XCBDRI2_REQUIRED=1.8 > XCBGLX_REQUIRED=1.8.1 > XSHMFENCE_REQUIRED=1.1 > XVMC_REQUIRED=1.0.6 > +LIBPIXMAN_REQUIRED=0.16.6
This is an ancient version. Have we actually tested that it works, and why not just pick some newer baseline (like what Debian stable or RHEL 6 ships)? > > dnl Check for progs > AC_PROG_CPP > @@ -713,6 +714,12 @@ AC_ARG_ENABLE([gallium-tests], > [enable_gallium_tests="$enableval"], > [enable_gallium_tests=no]) > > +AC_ARG_ENABLE([pixman], > + [AS_HELP_STRING([--enable-pixman], > + [Enable Pixman) @<:@default=disable@:>@])], > + [enable_pixman="$enableval"], > + [enable_pixman=no]) > + > # Option for Gallium drivers > > # Keep this in sync with the --with-gallium-drivers help string default value > @@ -984,6 +991,25 @@ if test "$have_sysfs" = yes; then > have_pci_id=yes > fi > > +#Pixman Trivial, but I'm making other comments about this patch, so might as well.. Space after #? > +if test "x$enable_pixman" = xyes; then > + PKG_CHECK_MODULES([PIXMAN], [pixman-1], [have_libpixman=yes], > + [have_libpixman=no]) > + > + CFLAGS="$CFLAGS $PIXMAN_CFLAGS" > + LIBS="$LIBS $PIXMAN_LIBS" > + > + if test "x$have_libpixman" = "xyes"; then > + DEFINES="$DEFINES -DHAVE_PIXMAN" > + fi > + > + AC_CHECK_HEADERS([pixman.h], > + [found_pixman_header=yes; break;]) > + > + AS_IF([test "x$found_pixman_header" != "xyes"], > + [AC_MSG_ERROR([Unable to find pixman.h])]) I don't think you need to check for pixman headers if you've already checked for pixman via pkg-config. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev