Include imx specific libdrm headers

Change-Id: I7bd78787391b8c903bf2bcd2f015cc113ecaba4c
diff --git a/configure.ac b/configure.ac
index 30ff9c4..a0eef5a 100755
--- a/configure.ac
+++ b/configure.ac
@@ -401,6 +401,10 @@
 AC_SUBST(GSTMXLIBS_VERSION)
 GSTMXLIBS_VERSION=0:1:0
 
+PKG_CHECK_MODULES(LIBDRM, libdrm)
+AC_SUBST(LIBDRM_LIBS)
+AC_SUBST(LIBDRM_CFLAGS)
+
 AC_OUTPUT(
 Makefile
 gstreamer-fsl.pc
diff --git a/plugins/vpu/Makefile.am b/plugins/vpu/Makefile.am
index b6ac525..c56d714 100755
--- a/plugins/vpu/Makefile.am
+++ b/plugins/vpu/Makefile.am
@@ -15,7 +15,7 @@
 	gstvpuallocator.c \
 	gstvpuenc.c
 
-libgstvpu_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
+libgstvpu_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(LIBDRM_CFLAGS)
 libgstvpu_la_CFLAGS += -I$(top_srcdir)/libs -I$(top_srcdir)/ext-includes
 libgstvpu_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) -lgstvideo-$(GST_API_VERSION) \
 	$(VPU_LIBS) $(LIBM)
diff --git a/plugins/vpu/gstvpudec.c b/plugins/vpu/gstvpudec.c
index 02f9db5..25867b2 100755
--- a/plugins/vpu/gstvpudec.c
+++ b/plugins/vpu/gstvpudec.c
@@ -44,7 +44,7 @@
 #ifdef USE_ION
 #include <gst/allocators/gstionmemory.h>
 #endif
-#include <libdrm/drm_fourcc_imx.h>
+#include <drm_fourcc_imx.h>
 #include "gstimxcommon.h"
 #include "gstvpuallocator.h"
 #include "gstvpudec.h"
diff --git a/plugins/vpu/gstvpudecobject.c b/plugins/vpu/gstvpudecobject.c
index b098fc8..62fece6 100755
--- a/plugins/vpu/gstvpudecobject.c
+++ b/plugins/vpu/gstvpudecobject.c
@@ -19,7 +19,7 @@
  */
 
 #include <string.h>
-#include <libdrm/drm_fourcc_imx.h>
+#include <drm_fourcc_imx.h>
 #include <gst/video/gstvideometa.h>
 #include <gst/video/gstvideohdr10meta.h>
 #include "gstimxcommon.h"