--- configure.ac.org	2011-08-31 13:02:38.474181279 +0800
+++ configure.ac	2011-08-31 14:22:25.451677000 +0800
@@ -439,9 +439,12 @@
 
 dnl check for gstreamer core features (subsystems)
 dnl FIXME: this assumes srcdir == builddir for uninstalled setups
+m4_pattern_allow([PKG_CONFIG_SYSROOT_DIR])
 GST_CONFIGPATH=`$PKG_CONFIG --variable=includedir gstreamer-0.10`"/gst/gstconfig.h"
+GST_CONFIGPATH=$PKG_CONFIG_SYSROOT_DIR$GST_CONFIGPATH
 AG_GST_PARSE_SUBSYSTEM_DISABLES($GST_CONFIGPATH)
 AM_CONDITIONAL(USE_XML, test $GST_DISABLE_XML != "1")
+m4_pattern_forbid([PKG_CONFIG_SYSROOT_DIR])
 
 dnl disable plug-ins that require libxml2's HTML support if it is not available
 if test "x$HAVE_LIBXML_HTML" != "xyes"; then
