anchor.diff:      file://0003-Exclude-backtrace-API-for-non-glibc-libraries.patch \
   "
   
  -PACKAGECONFIG ??= "gstreamer qtlocation qtmultimedia qtsensors qtwebchannel"
  +PACKAGECONFIG ??= "gstreamer qtlocation qtmultimedia qtsensors qtwebchannel \
  +    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxcomposite libxrender', '', d)} \
  +    fontconfig \
  +"
   PACKAGECONFIG[gstreamer] = "OE_GSTREAMER_ENABLED,,gstreamer1.0 gstreamer1.0-plugins-base"
   PACKAGECONFIG[gstreamer010] = "OE_GSTREAMER010_ENABLED,,gstreamer gst-plugins-base"
   PACKAGECONFIG[qtlocation] = "OE_QTLOCATION_ENABLED,,qtlocation"
  
positive.code: PACKAGECONFIG[qtsensors] = "OE_QTSENSORS_ENABLED,,qtsensors"
  PACKAGECONFIG[qtwebchannel] = "OE_QTWEBCHANNEL_ENABLED,,qtwebchannel"
  PACKAGECONFIG[libwebp] = "OE_LIBWEBP_ENABLED,,libwebp"
  
  do_configure_prepend() {
      export QMAKE_CACHE_EVAL="CONFIG+=${PACKAGECONFIG_CONFARGS}"
  
negative.code:     sed -e 's/\s\(qtHaveModule(webchannel)\)/ OE_QTWEBCHANNEL_ENABLED:\1/' -i ${S}/Source/WebKit2/WebKit2.pri
      # disable libwebp test if it isn't enabled by PACKAGECONFIG
      sed -e 's/\s\(config_libwebp: \)/ OE_LIBWEBP_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf
      # disable libxcomposite test if it isn't enabled by PACKAGECONFIG
      sed -e 's/\s\(config_libXcomposite: \)/ OE_LIBXCOMPOSITE_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf
      # disable libxrender test if it isn't enabled by PACKAGECONFIG
      sed -e 's/\s\(config_libXrender: \)/ OE_LIBXRENDER_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf
      # disable fontconfig test if it isn't enabled by PACKAGECONFIG
      sed -e 's/\s\(config_fontconfig: \)/ OE_FONTCONFIG_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf
  }
  
  # qtwebkit gets terribly big when linking with all debug info, disable by default
  