summaryrefslogtreecommitdiff
path: root/m4/gst-plugindir.m4
blob: c9e1301b0e13501cfff1194dfc57b043c9a68e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
dnl AG_GST_SET_PLUGINDIR

dnl AC_DEFINE PLUGINDIR to the full location where plug-ins will be installed
dnl AC_SUBST plugindir, to be used in Makefile.am's

AC_DEFUN([AG_GST_SET_PLUGINDIR],
[
  dnl define location of plugin directory
  AS_AC_EXPAND(PLUGINDIR, ${libdir}/gstreamer-$GST_API_VERSION)
  AC_DEFINE_UNQUOTED(PLUGINDIR, "$PLUGINDIR",
    [directory where plugins are located])
  AC_MSG_NOTICE([Using $PLUGINDIR as the plugin install location])

  dnl plugin directory configure-time variable for use in Makefile.am
  plugindir="\$(libdir)/gstreamer-$GST_API_VERSION"
  AC_SUBST(plugindir)
])