use gstreamer, if available
[enigma2.git] / configure.ac
1 AC_INIT(tuxbox-enigma,0.0.1)
2 AM_INIT_AUTOMAKE(tuxbox-enigma,0.0.1)
3
4 TUXBOX_APPS
5 TUXBOX_APPS_DIRECTORY
6
7 AC_PROG_CC
8 AC_PROG_CXX
9 AC_PROG_RANLIB
10
11 AC_ARG_WITH(libsdl,
12         AC_HELP_STRING([--with-libsdl], [use sdl, yes or no]),
13         [[withsdl=$withval]],
14         [[withsdl=yes]]
15 )
16
17 AM_PATH_PYTHON(2.3)
18 AC_PYTHON_DEVEL
19
20 TUXBOX_APPS_DVB
21
22 TUXBOX_APPS_LIB_CONFIG(FREETYPE,freetype-config)
23 TUXBOX_APPS_LIB_PKGCONFIG(FRIBIDI,fribidi)
24 TUXBOX_APPS_LIB_PKGCONFIG(ID3TAG,id3tag)
25 TUXBOX_APPS_LIB_PKGCONFIG(MAD,mad)
26 #TUXBOX_APPS_LIB_PKGCONFIG(PLUGINS,tuxbox-plugins)
27 TUXBOX_APPS_LIB_PKGCONFIG(PNG,libpng)
28 TUXBOX_APPS_LIB_PKGCONFIG(SIGC,sigc++-1.2)
29 TUXBOX_APPS_LIB_PKGCONFIG(DVBSI,libdvbsi++)
30 _TUXBOX_APPS_LIB_PKGCONFIG(GSTREAMER,gstreamer)
31
32 if test -z "$GSTREAMER_CFLAGS" ; then
33   AC_MSG_WARN([could not find package GSTREAMER]);
34 else
35         AC_DEFINE_UNQUOTED([HAVE_GSTREAMER],1,[Define to 1 if you have gstreamer])
36 fi
37
38 if test "$withsdl" = "yes" ; then
39         TUXBOX_APPS_LIB_CONFIG(SDL,sdl-config)
40         AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
41 fi
42
43 CPPFLAGS="$CPPFLAGS "'-I$(top_srcdir)'
44 CPPFLAGS="$CPPFLAGS -D_REENTRANT $PYTHON_CPPFLAGS $MD5SUM_CFLAGS $FREETYPE_CFLAGS $FRIBIDI_CFLAGS $ID3TAG_CFLAGS $MAD_CFLAGS $PLUGINS_CFLAGS $PNG_CFLAGS $SDL_CFLAGS $SIGC_CFLAGS $XMLTREE_CFLAGS $DVBSI_CFLAGS $GSTREAMER_CFLAGS"
45 CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions -Wall"
46 LDFLAGS="$LDFLAGS -pthread $PYTHON_LDFLAGS $SDL_LDFLAGS $GSTREAMER_LDFLAGS"
47
48 TUXBOX_APPS_GETTEXT
49
50 AC_OUTPUT([
51 Makefile
52 data/Makefile
53 data/fonts/Makefile
54 data/countries/Makefile
55 data/defaults/Makefile
56 data/extensions/Makefile
57 lib/Makefile
58 lib/actions/Makefile
59 lib/base/Makefile
60 lib/driver/Makefile
61 lib/dvb/Makefile
62 lib/dvb_ci/Makefile
63 lib/gdi/Makefile
64 lib/gui/Makefile
65 lib/nav/Makefile
66 lib/python/Makefile
67 lib/python/Components/Makefile
68 lib/python/Screens/Makefile
69 lib/python/Plugins/Makefile
70 lib/python/Plugins/SystemPlugins/Makefile
71 lib/python/Plugins/SystemPlugins/SoftwareUpdate/Makefile
72 lib/python/Plugins/SystemPlugins/OldSoftwareUpdate/Makefile
73 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/Makefile
74 lib/python/Plugins/SystemPlugins/PositionerSetup/Makefile
75 lib/python/Plugins/SystemPlugins/ConfigurationBackup/Makefile
76 lib/python/Plugins/DemoPlugins/Makefile
77 lib/python/Plugins/DemoPlugins/TestPlugin/Makefile
78 lib/python/Plugins/Extensions/Makefile
79 lib/python/Plugins/Extensions/TuxboxPlugins/Makefile
80 lib/python/Plugins/Extensions/WebInterface/Makefile
81 lib/python/Plugins/Extensions/FileManager/Makefile
82 lib/python/Plugins/Extensions/CutListEditor/Makefile
83 lib/python/Plugins/Extensions/ZappingAlternatives/Makefile
84 lib/python/Tools/Makefile
85 lib/service/Makefile
86 lib/components/Makefile
87 po/Makefile
88 main/Makefile
89 ])
90 #lib/python/Plugins/Extensions/SimpleRSS/Makefile