--- vala-0.27.1/vapigen/vapigen.m4.orig	2015-01-14 14:51:42.117600000 +0300
+++ vala-0.27.1/vapigen/vapigen.m4	2015-01-14 14:52:07.297000000 +0300
@@ -85,9 +85,9 @@
       VAPIGEN=`$PKG_CONFIG --variable=vapigen $vapigen_pkg_name`
       VAPIGEN_MAKEFILE=`$PKG_CONFIG --variable=datadir $vapigen_pkg_name`/vala/Makefile.vapigen
       AS_IF([test "x$2" = "x"], [
-          VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir $vapigen_pkg_name`
+          VAPIGEN_VAPIDIR=`$PKG_CONFIG --dont-define-prefix --variable=vapidir $vapigen_pkg_name`
         ], [
-          VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir_versioned $vapigen_pkg_name`
+          VAPIGEN_VAPIDIR=`$PKG_CONFIG --dont-define-prefix --variable=vapidir_versioned $vapigen_pkg_name`
         ])
     ])
 
