--- configure.orig	2009-09-23 23:31:31.000000000 +0100
+++ configure	2009-09-23 23:30:51.000000000 +0100
@@ -29130,7 +29130,16 @@
     CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_test}"
     for ac_header in dvbpsi/dr.h
 do :
-  ac_fn_c_check_header_mongrel "$LINENO" "dvbpsi/dr.h" "ac_cv_header_dvbpsi_dr_h" "$ac_includes_default"
+  ac_fn_c_check_header_compile "$LINENO" "dvbpsi/dr.h" "ac_cv_header_dvbpsi_dr_h" "#if defined( HAVE_STDINT_H )
+#   include <stdint.h>
+#elif defined( HAVE_INTTYPES_H )
+#   include <inttypes.h>
+#endif
+#include <dvbpsi/dvbpsi.h>
+#include <dvbpsi/descriptor.h>
+#include <dvbpsi/pat.h>
+#include <dvbpsi/pmt.h>
+"
 if test "x$ac_cv_header_dvbpsi_dr_h" = x""yes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_DVBPSI_DR_H 1
