Initial release including wifi display based on gst-rtsp-server-1.4.1
[platform/upstream/gstreamer.git] / common / m4 / gst.m4
1 dnl AG_GST_INIT
2 dnl sets up use of GStreamer configure.ac macros
3 dnl all GStreamer autoconf macros are prefixed
4 dnl with AG_GST_ for public macros
5 dnl with _AG_GST_ for private macros
6 dnl
7 dnl We call AC_CANONICAL_TARGET and AC_CANONICAL_HOST so that
8 dnl it is valid before AC_ARG_PROGRAM is called
9
10 AC_DEFUN([AG_GST_INIT],
11 [
12   m4_pattern_forbid(^_?AG_GST_)
13   AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use host_ variables
14   AC_REQUIRE([AC_CANONICAL_TARGET]) dnl we use target_ variables
15 ])
16
17 dnl AG_GST_PKG_CONFIG_PATH
18 dnl
19 dnl sets up a GST_PKG_CONFIG_PATH variable for use in Makefile.am
20 dnl which contains the path of the in-tree pkgconfig directory first
21 dnl and then any paths specified in PKG_CONFIG_PATH.
22 dnl
23 dnl We do this mostly so we don't have to use unportable shell constructs
24 dnl such as ${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH} in Makefile.am to handle
25 dnl the case where the environment variable is not set, but also in order
26 dnl to avoid a trailing ':' in the PKG_CONFIG_PATH which apparently causes
27 dnl problems with pkg-config on windows with msys/mingw.
28 AC_DEFUN([AG_GST_PKG_CONFIG_PATH],
29 [
30   GST_PKG_CONFIG_PATH="\$(top_builddir)/pkgconfig"
31   if test "x$PKG_CONFIG_PATH" != "x"; then
32     GST_PKG_CONFIG_PATH="$GST_PKG_CONFIG_PATH:$PKG_CONFIG_PATH"
33   fi
34   AC_SUBST([GST_PKG_CONFIG_PATH])
35   AC_MSG_NOTICE([Using GST_PKG_CONFIG_PATH = $GST_PKG_CONFIG_PATH])
36 ])