add media scanner
[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 #AM_PATH_XINE(1.1.0,, AC_MSG_ERROR([*** Please install xine-lib (devel) first ***]))
20
21 TUXBOX_APPS_DVB
22
23 TUXBOX_APPS_LIB_CONFIG(FREETYPE,freetype-config)
24 TUXBOX_APPS_LIB_PKGCONFIG(FRIBIDI,fribidi)
25 TUXBOX_APPS_LIB_PKGCONFIG(ID3TAG,id3tag)
26 TUXBOX_APPS_LIB_PKGCONFIG(MAD,mad)
27 #TUXBOX_APPS_LIB_PKGCONFIG(PLUGINS,tuxbox-plugins)
28 TUXBOX_APPS_LIB_PKGCONFIG(PNG,libpng)
29 TUXBOX_APPS_LIB_PKGCONFIG(SIGC,sigc++-1.2)
30 TUXBOX_APPS_LIB_PKGCONFIG(DVBSI,libdvbsi++)
31 _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(GSTREAMER,gstreamer,HAVE_GSTREAMER)
32 AC_CHECK_LIB(jpeg, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no")
33 JPEG_LIBS="-ljpeg"
34 AC_SUBST(JPEG_LIBS)
35
36 if test "$withsdl" = "yes" ; then
37         TUXBOX_APPS_LIB_CONFIG(SDL,sdl-config)
38         AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
39 fi
40
41 CPPFLAGS="$CPPFLAGS "'-I$(top_srcdir)'
42 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"
43 CXXFLAGS="$CXXFLAGS -DPYTHON_REFCOUNT_DEBUG -fno-rtti -fno-exceptions -Wall"
44 LDFLAGS="$LDFLAGS -pthread $PYTHON_LDFLAGS $SDL_LDFLAGS $GSTREAMER_LDFLAGS"
45
46 TUXBOX_APPS_GETTEXT
47
48 AC_OUTPUT([
49 Makefile
50 data/Makefile
51 data/fonts/Makefile
52 data/countries/Makefile
53 data/defaults/Makefile
54 data/extensions/Makefile
55 lib/Makefile
56 lib/actions/Makefile
57 lib/base/Makefile
58 lib/driver/Makefile
59 lib/dvb/Makefile
60 lib/dvb_ci/Makefile
61 lib/gdi/Makefile
62 lib/gui/Makefile
63 lib/nav/Makefile
64 lib/python/Makefile
65 lib/python/Components/Makefile
66 lib/python/Components/Converter/Makefile
67 lib/python/Components/Renderer/Makefile
68 lib/python/Components/Sources/Makefile
69 lib/python/Screens/Makefile
70 lib/python/Plugins/Makefile
71 lib/python/Plugins/SystemPlugins/Makefile
72 lib/python/Plugins/SystemPlugins/SoftwareUpdate/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/SystemPlugins/Satfinder/Makefile
77 lib/python/Plugins/SystemPlugins/SkinSelector/Makefile
78 lib/python/Plugins/DemoPlugins/Makefile
79 lib/python/Plugins/DemoPlugins/TestPlugin/Makefile
80 lib/python/Plugins/Extensions/Makefile
81 lib/python/Plugins/Extensions/TuxboxPlugins/Makefile
82 lib/python/Plugins/Extensions/WebInterface/Makefile
83 lib/python/Plugins/Extensions/WebInterface/web/Makefile
84 lib/python/Plugins/Extensions/WebInterface/web-data/Makefile
85 lib/python/Plugins/Extensions/FileManager/Makefile
86 lib/python/Plugins/Extensions/FritzCall/Makefile
87 lib/python/Plugins/Extensions/CutListEditor/Makefile
88 lib/python/Plugins/Extensions/MediaScanner/Makefile
89 lib/python/Plugins/Extensions/PicturePlayer/Makefile
90 lib/python/Plugins/Extensions/PicturePlayer/data/Makefile
91 lib/python/Tools/Makefile
92 lib/service/Makefile
93 lib/components/Makefile
94 po/Makefile
95 main/Makefile
96 tools/Makefile
97 ])
98
99 #lib/python/Plugins/Extensions/SimpleRSS/Makefile