diff --git a/configure.ac b/configure.ac
index d9ce3bf06e26d369a520c7c38de4aa111fed4741..11f6c277116a16562ca1cd74a50003aa2e821fa3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,12 +47,12 @@ AC_ARG_ENABLE(site-packages,
 instead of DATADIR/gajim/src.])]
 ,
 AC_SUBST([gajim_srcdir], [\${pkgpythondir}])
-AC_SUBST([gajim_pluginsdir], [\${pkgpythondir}])
 ,
 AC_SUBST([gajim_srcdir], [\${datadir}/\${PACKAGE}/src])
-AC_SUBST([gajim_pluginsdir], [\${datadir}/\${PACKAGE}/plugins])
 )
 
+AC_SUBST([gajim_pluginsdir], [\${datadir}/\${PACKAGE}/plugins])
+
 AS_AC_EXPAND(GAJIM_SRCDIR, "${gajim_srcdir}")
 AS_AC_EXPAND(PKGDATADIR, "${datadir}/${PACKAGE}")
 AS_AC_EXPAND(DOCDIR, "${docdir}")