move SYNC_PAINT define to right place
[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_OPTIONAL(GSTREAMER,gstreamer,HAVE_GSTREAMER)
31
32 if test "$withsdl" = "yes" ; then
33         TUXBOX_APPS_LIB_CONFIG(SDL,sdl-config)
34         AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
35 fi
36
37 CPPFLAGS="$CPPFLAGS "'-I$(top_srcdir)'
38 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"
39 CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions -Wall"
40 LDFLAGS="$LDFLAGS -pthread $PYTHON_LDFLAGS $SDL_LDFLAGS $GSTREAMER_LDFLAGS"
41
42 TUXBOX_APPS_GETTEXT
43
44 AC_OUTPUT([
45 Makefile
46 data/Makefile
47 data/fonts/Makefile
48 data/countries/Makefile
49 data/defaults/Makefile
50 data/extensions/Makefile
51 lib/Makefile
52 lib/actions/Makefile
53 lib/base/Makefile
54 lib/driver/Makefile
55 lib/dvb/Makefile
56 lib/dvb_ci/Makefile
57 lib/gdi/Makefile
58 lib/gui/Makefile
59 lib/nav/Makefile
60 lib/python/Makefile
61 lib/python/Components/Makefile
62 lib/python/Screens/Makefile
63 lib/python/Plugins/Makefile
64 lib/python/Plugins/SystemPlugins/Makefile
65 lib/python/Plugins/SystemPlugins/SoftwareUpdate/Makefile
66 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/Makefile
67 lib/python/Plugins/SystemPlugins/PositionerSetup/Makefile
68 lib/python/Plugins/SystemPlugins/ConfigurationBackup/Makefile
69 lib/python/Plugins/DemoPlugins/Makefile
70 lib/python/Plugins/DemoPlugins/TestPlugin/Makefile
71 lib/python/Plugins/Extensions/Makefile
72 lib/python/Plugins/Extensions/TuxboxPlugins/Makefile
73 lib/python/Plugins/Extensions/WebInterface/Makefile
74 lib/python/Plugins/Extensions/FileManager/Makefile
75 lib/python/Plugins/Extensions/CutListEditor/Makefile
76 lib/python/Plugins/Extensions/ZappingAlternatives/Makefile
77 lib/python/Tools/Makefile
78 lib/service/Makefile
79 lib/components/Makefile
80 po/Makefile
81 main/Makefile
82 ])
83 #lib/python/Plugins/Extensions/SimpleRSS/Makefile