add Hotplug plugin
[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()
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 AC_CHECK_LIB(ungif, DGifOpenFileName, HAVE_LIBUNGIF="yes", HAVE_LIBUNGIF="no")
37 LIBUNGIF_LIBS="-lungif"
38 AC_SUBST(LIBUNGIF_LIBS)
39
40 TUXBOX_APPS_LIB_PKGCONFIG(XML2,libxml-2.0)
41
42 # ok, we are in trouble: XMLCCWRAP only defines C++ symbols. So let's just check if linking works,
43 # and assume everything will be ok. Then just check for the "exit" symbol, which should be always there.
44 TUXBOX_APPS_LIB_SYMBOL(XMLCCWRAP, xmlccwrap, exit)
45
46 if test "$withsdl" = "yes" ; then
47         TUXBOX_APPS_LIB_CONFIG(SDL,sdl-config)
48         AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
49 fi
50
51 CPPFLAGS="$CPPFLAGS "'-I$(top_srcdir)'
52 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 $LIBUNGIF_CLFAGS"
53 #CPPFLAGS="$CPPFLAGS -DMEMLEAK_CHECK"
54 CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions -Wall"
55 LDFLAGS="$LDFLAGS -pthread $PYTHON_LDFLAGS $SDL_LDFLAGS $GSTREAMER_LDFLAGS $LIBUNGIF_LDFLAGS"
56 #LDFLAGS="-rdynamic $LDFLAGS"
57
58 TUXBOX_APPS_GETTEXT
59
60 AC_OUTPUT([
61 Makefile
62 data/Makefile
63 data/fonts/Makefile
64 data/countries/Makefile
65 data/defaults/Makefile
66 data/extensions/Makefile
67 data/skin_default/Makefile
68 data/skin_default/menu/Makefile
69 lib/Makefile
70 lib/actions/Makefile
71 lib/base/Makefile
72 lib/driver/Makefile
73 lib/dvb/Makefile
74 lib/dvb_ci/Makefile
75 lib/gdi/Makefile
76 lib/gui/Makefile
77 lib/mmi/Makefile
78 lib/nav/Makefile
79 lib/python/Makefile
80 lib/python/Components/Makefile
81 lib/python/Components/Converter/Makefile
82 lib/python/Components/Renderer/Makefile
83 lib/python/Components/Sources/Makefile
84 lib/python/Screens/Makefile
85 lib/python/Plugins/Makefile
86 lib/python/Plugins/SystemPlugins/Makefile
87 lib/python/Plugins/SystemPlugins/SoftwareUpdate/Makefile
88 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/Makefile
89 lib/python/Plugins/SystemPlugins/PositionerSetup/Makefile
90 lib/python/Plugins/SystemPlugins/Hotplug/Makefile
91 lib/python/Plugins/SystemPlugins/ConfigurationBackup/Makefile
92 lib/python/Plugins/SystemPlugins/Satfinder/Makefile
93 lib/python/Plugins/SystemPlugins/SkinSelector/Makefile
94 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/Makefile
95 lib/python/Plugins/SystemPlugins/Videomode/Makefile
96 lib/python/Plugins/SystemPlugins/VideoTune/Makefile
97 lib/python/Plugins/DemoPlugins/Makefile
98 lib/python/Plugins/DemoPlugins/TestPlugin/Makefile
99 lib/python/Plugins/Extensions/Makefile
100 lib/python/Plugins/Extensions/IpkgInstaller/Makefile
101 lib/python/Plugins/Extensions/TuxboxPlugins/Makefile
102 lib/python/Plugins/Extensions/FileManager/Makefile
103 lib/python/Plugins/Extensions/CutListEditor/Makefile
104 lib/python/Plugins/Extensions/MediaScanner/Makefile
105 lib/python/Plugins/Extensions/MediaPlayer/Makefile
106 lib/python/Plugins/Extensions/PicturePlayer/Makefile
107 lib/python/Plugins/Extensions/PicturePlayer/data/Makefile
108 lib/python/Plugins/Extensions/GraphMultiEPG/Makefile
109 lib/python/Plugins/Extensions/SocketMMI/Makefile
110 lib/python/Tools/Makefile
111 lib/service/Makefile
112 lib/components/Makefile
113 po/Makefile
114 main/Makefile
115 tools/Makefile
116 ])
117
118 #lib/python/Plugins/Extensions/SimpleRSS/Makefile