Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 112 lines (83 sloc) 3.164 kb
9e99a78 First commit, import SVN branch DM81XX_0.3_DEV at gstreamer.ti.com, revi...
Diego Dompe authored
1 AC_PREREQ([2.52])
2
3 dnl AC_INIT([gst-openmax], m4_esyscmd([build-aux/git-version-gen]),
3ed31b0 Removing header files not include in Makefile.am and minor changes
bperez authored
4 AC_INIT([gst-openmax], [0.3], [https://gstreamer.ti.com/gf/project/gstreamer_ti/forum/])
9e99a78 First commit, import SVN branch DM81XX_0.3_DEV at gstreamer.ti.com, revi...
Diego Dompe authored
5
6 AC_CONFIG_AUX_DIR([build-aux])
7 AM_INIT_AUTOMAKE([-Wall -Wno-portability])
8 AC_CONFIG_HEADERS([config.h])
9
10 dnl versions of GStreamer
11 GST_MAJORMINOR=0.10
12 GST_REQUIRED=0.10.0
13
14 dnl AM_MAINTAINER_MODE provides the option to enable maintainer mode
15 AM_MAINTAINER_MODE
16
17 dnl check for tools
18 AC_PROG_CC
19 AM_PROG_CC_C_O
20 AC_PROG_INSTALL
21 AC_PROG_LIBTOOL
22
23 PKG_CHECK_MODULES([CHECK], [check], HAVE_CHECK=yes, HAVE_CHECK=no)
24
25 dnl Keep correct libtool macros in-tree.
26 AC_CONFIG_MACRO_DIR([m4])
27
28 dnl initialize GStreamer macros
29 AG_GST_INIT
30
31 dnl define an ERROR_CFLAGS Makefile variable
32 dnl AG_GST_SET_ERROR_CFLAGS($GST_CVS)
33
34 dnl add GStreamer arguments
35 AG_GST_ARG_DEBUG
36 AG_GST_ARG_PROFILING
37 AG_GST_ARG_VALGRIND
38 AG_GST_ARG_GCOV
39
40 AG_GST_ARG_WITH_PKG_CONFIG_PATH
41 AG_GST_ARG_WITH_PACKAGE_NAME
42 AG_GST_ARG_WITH_PACKAGE_ORIGIN
43
44 dnl ** checks **
45
46 dnl Check for GLib
47 PKG_CHECK_MODULES([GTHREAD], [gthread-2.0])
48
9aba9a0 Modifying build system, new build system is based in the use of a shared...
bperez authored
49 dnl Check for libOMX_Core
50 PKG_CHECK_MODULES([OMXCORE], [libOMX_Core])
51
9e99a78 First commit, import SVN branch DM81XX_0.3_DEV at gstreamer.ti.com, revi...
Diego Dompe authored
52 dnl Check for GStreamer
53 AG_GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQUIRED])
54 AG_GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQUIRED])
55 AG_GST_CHECK_GST_CHECK($GST_MAJORMINOR, [$GST_REQUIRED], [no])
56
57 dnl ** finalize ***
58
59 dnl set license and copyright notice
60 GST_LICENSE="LGPL"
61 AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license])
62 AC_SUBST(GST_LICENSE)
63
64 dnl set GStreamer plug-in dir
65 AG_GST_SET_PLUGINDIR
66
67 dnl GST_OPTION_CFLAGS
68 if test "x$USE_DEBUG" = xyes; then
69 PROFILE_CFLAGS="-g"
70 fi
71 AC_SUBST(PROFILE_CFLAGS)
72
73 dnl XXX temporarily disabled deprecated checks because gst_element_class_set_details()
74 dnl was deprecated.. this is only a temporary solution
75 dnl DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
76 dnl AC_SUBST(DEPRECATED_CFLAGS)
77
78 dnl every flag in GST_OPTION_CFLAGS can be overridden at make time
79 GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
80 AC_SUBST(GST_OPTION_CFLAGS)
81
82 dnl our libraries need to be versioned correctly
83 AC_SUBST(GST_LT_LDFLAGS)
84
85 dnl FIXME: do we want to rename to GST_ALL_* ?
86 dnl prefer internal headers to already installed ones
87 dnl also add builddir include for enumtypes and marshal
88 dnl add GST_OPTION_CFLAGS, but overridable
89 GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
90 AC_SUBST(GST_CFLAGS)
91 AC_SUBST(GST_LIBS)
92
93 dnl LDFLAGS really should only contain flags, not libs - they get added before
94 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
95 GST_ALL_LDFLAGS="-no-undefined"
96 AC_SUBST(GST_ALL_LDFLAGS)
97
98 dnl this really should only contain flags, not libs - they get added before
99 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
100 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
101 AC_SUBST(GST_PLUGIN_LDFLAGS)
102
103 SHAVE_INIT
104 AC_CONFIG_FILES([shave shave-libtool])
105
106 AC_CONFIG_FILES([Makefile \
107 omx/Makefile \
108 util/Makefile \
109 m4/Makefile])
110
111 AC_OUTPUT
Something went wrong with that request. Please try again.