initial checkin
[platform/upstream/gstreamer.git] / configure.in
1 AC_INIT(gst/gstobject.h)
2
3 AM_CONFIG_HEADER(config.h)
4
5 STREAMER_MAJOR_VERSION=0
6 STREAMER_MINOR_VERSION=0
7 STREAMER_MICRO_VERSION=9.2
8 STREAMER_VERSION=$STREAMER_MAJOR_VERSION.$STREAMER_MINOR_VERSION.$STREAMER_MICRO_VERSION
9
10 dnl libtool
11 STREAMER_CURRENT=0
12 STREAMER_REVISION=0
13 STREAMER_AGE=0
14
15 AM_INIT_AUTOMAKE(gstreamer, $STREAMER_VERSION)
16
17 AC_SUBST(STREAMER_MAJOR_VERSION)
18 AC_SUBST(STREAMER_MINOR_VERSION)
19 AC_SUBST(STREAMER_MICRO_VERSION)
20 AC_SUBST(STREAMER_VERSION)
21
22 AC_SUBST(STREAMER_CURRENT)
23 AC_SUBST(STREAMER_REVISION)
24 AC_SUBST(STREAMER_AGE)
25
26
27 AM_MAINTAINER_MODE
28
29 AC_ISC_POSIX
30 AC_PROG_CC
31 AC_STDC_HEADERS
32 AC_ARG_PROGRAM
33
34 AM_DISABLE_STATIC
35 AC_LIBTOOL_DLOPEN
36 AM_PROG_LIBTOOL
37
38 AM_PATH_GLIB(1.2.0,
39             [LIBS="$LIBS $GLIB_LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS"],
40             AC_MSG_ERROR(Cannot find glib: Is glib-config in path?),
41             glib gmodule gthread)
42 AM_PATH_GTK(1.2.0)
43
44 dnl Check for libghttp
45 AC_CHECK_LIB(ghttp,ghttp_request_new,
46              [LIBS="$LIBS -lghttp" HAVE_LIBGHTTP="yes"],
47              AC_MSG_WARN(Cannot find libghttp: can't build gsthttpsrc),
48              $LIBS)
49 AC_DEFINE(HAVE_LIBGHTTP)
50 AM_CONDITIONAL(HAVE_LIBGHTTP, test "x$HAVE_LIBGHTTP" = "xyes")
51
52
53 AC_CHECK_HEADERS(asm/atomic.h, AC_DEFINE(HAVE_ATOMIC_H))
54
55
56 AC_PATH_PROG(XML_CONFIG,xml-config,no)
57 if test x$XML_CONFIG = xno;then
58   AC_MSG_ERROR(Couldn't find xml-config)
59 fi
60 XML_LIBS=`xml-config --libs`
61 XML_CFLAGS=`xml-config --cflags`
62 AC_SUBST(XML_LIBS)
63 AC_SUBST(XML_CFLAGS)
64 AC_DEFINE(HAVE_LIBXML)
65 AM_CONDITIONAL(HAVE_LIBXML, test "x$HAVE_LIBXML" = "xyes")
66
67
68 AC_CHECK_HEADER(mmx.h,[HAVE_LIBMMX=yes],)
69 AC_DEFINE(HAVE_LIBMMX)
70 AM_CONDITIONAL(HAVE_LIBMMX, test "x$HAVE_LIBMMX" = "xyes")
71
72
73 PLUGINS_DIR=${libdir}/plugins
74 AC_DEFINE_UNQUOTED(PLUGINS_DIR,"$PLUGINS_DIR")
75 AC_SUBST(PLUGINS_DIR)
76
77 PLUGINS_SRCDIR=`pwd`/$srcdir
78 AC_DEFINE_UNQUOTED(PLUGINS_SRCDIR,"$PLUGINS_SRCDIR")
79 AC_SUBST(PLUGINS_SRCDIR)
80
81 AC_ARG_ENABLE(plugin-srcdir,
82 [  --enable-plugin-srcdir       allow tests/demos to use non-installed plugins ],
83 [AC_DEFINE(PLUGINS_USE_SRCDIR)])
84
85 AC_DEFINE(PLUGINS_USE_SRCDIR)
86
87 AC_ARG_ENABLE(debug,
88 [  --enable-debug               spews lots of useless info at runtime],
89 [AC_DEFINE(DEBUG_ENABLED)])
90
91 AC_ARG_ENABLE(profiling,
92 [  --enable-profiling           adds -pg to compiler commandline, for profiling],
93 [CFLAGS="$CFLAGS -pg"])
94
95
96 AC_SUBST(CFLAGS)
97 AC_SUBST(CPPFLAGS)
98 AC_SUBST(LDFLAGS)
99
100 AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
101 AM_CONDITIONAL(HAVE_GTK_DOC, $GTKDOC)
102
103
104 AC_CONFIG_SUBDIRS(gist)
105 AC_CONFIG_SUBDIRS(plugins/mp3decode/xing/libxing)
106
107 AC_OUTPUT([Makefile
108 gst/Makefile
109 gst/types/Makefile
110 gst/meta/Makefile
111 gst/elements/Makefile
112 gst/xml/Makefile
113 plugins/Makefile
114 plugins/au/Makefile
115 plugins/wav/Makefile
116 plugins/mp3decode/Makefile
117 plugins/mp3decode/xa/Makefile
118 plugins/mp3decode/xing/Makefile
119 plugins/mp3decode/mpg123/Makefile
120 plugins/mp3decode/parse/Makefile
121 plugins/mpeg2/Makefile
122 plugins/mpeg2/parse/Makefile
123 plugins/mpeg2/ac3parse/Makefile
124 plugins/mpeg2/ac3dec/Makefile
125 plugins/mpeg1/Makefile
126 plugins/mpeg1/parse/Makefile
127 plugins/effects/Makefile
128 plugins/effects/stereo/Makefile
129 plugins/effects/volume/Makefile
130 plugins/visualization/Makefile
131 plugins/visualization/spectrum/Makefile
132 plugins/visualization/vumeter/Makefile
133 plugins/visualization/synaesthesia/Makefile
134 plugins/visualization/smoothwave/Makefile
135 plugins/dvdsrc/Makefile
136 plugins/vcdsrc/Makefile
137 plugins/cobin/Makefile
138 test/Makefile
139 test/xml/Makefile
140 test/bindings/Makefile
141 test/cothreads/Makefile
142 editor/Makefile
143 tools/Makefile
144 docs/Makefile
145 stamp.h])