framebuffer acceleration: force alpha blending support to be disabled on vuduo
[openblackhole/openblackhole-enigma2.git] / configure.ac
1 AC_INIT([enigma2],[3.0.0],[enigma2-devel@lists.elitedvb.net])
2 AM_INIT_AUTOMAKE([dist-bzip2 no-define tar-pax -Wno-portability])
3 AC_CONFIG_HEADERS([enigma2_config.h])
4
5 # Silent rules are available since 1.11, but older versions
6 # are still in use. So don't use them unconditionally.
7 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
8
9 AC_USE_SYSTEM_EXTENSIONS
10 AC_SYS_LARGEFILE
11
12 AC_PROG_CC
13 AC_PROG_CXX
14 m4_ifdef([LT_INIT], [LT_INIT], [AC_PROG_LIBTOOL])
15 AC_CONFIG_MACRO_DIR([m4])
16
17 AC_CHECK_HEADERS([dbox/fp.h dbox/lcd-ks0713.h])
18
19 AC_PATH_PROG(MSGFMT, msgfmt, AC_MSG_ERROR(Could not find msgfmt))
20
21 AM_PATH_PYTHON
22 AX_PYTHON_DEVEL
23 AX_PKG_SWIG
24 AX_SWIG_ENABLE_CXX
25 AX_SWIG_PYTHON
26 AX_PTHREAD
27
28 TUXBOX_APPS_DVB
29
30 AM_CONDITIONAL(HAVE_GIT_DIR, test -d "$srcdir/.git")
31 AM_CONDITIONAL(HAVE_FAKE_GIT_DIR, test -f "$srcdir/.git/last_commit_info")
32
33 PKG_CHECK_MODULES(BASE, [freetype2 fribidi gstreamer-0.10 gstreamer-pbutils-0.10 libdvbsi++ libpng libxml-2.0 sigc++-1.2])
34 PKG_CHECK_MODULES(LIBDDVD, libdreamdvd, HAVE_LIBDDVD="yes", HAVE_LIBDDVD="no")
35 AM_CONDITIONAL(HAVE_LIBDDVD, test "$HAVE_LIBDDVD" = "yes")
36
37 AC_CHECK_LIB([dl], [dlopen], [LIBDL_LIBS="-ldl"], [AC_MSG_ERROR([Could not find libdl])])
38 AC_SUBST(LIBDL_LIBS)
39 AC_CHECK_LIB([jpeg], [jpeg_set_defaults], [LIBJPEG_LIBS="-ljpeg"], [AC_MSG_ERROR([Could not find libjpeg])])
40 AC_SUBST(LIBJPEG_LIBS)
41 AC_CHECK_LIB([ungif], [DGifOpen], [LIBGIF_LIBS="-lungif"], [AC_CHECK_LIB([gif], [DGifOpen], [LIBGIF_LIBS="-lgif"], [AC_MSG_ERROR([Could not find libgif or libungif])])])
42 AC_SUBST(LIBGIF_LIBS)
43
44 AC_LANG_PUSH([C++])
45 AC_CHECK_LIB([xmlccwrap], [exit], [LIBXMLCCWRAP_LIBS="-lxmlccwrap"], [AC_MSG_ERROR([Could not find libxmlccwrap])])
46 AC_SUBST(LIBXMLCCWRAP_LIBS)
47 AC_LANG_POP
48
49 AC_ARG_WITH(boxtype,
50         [  --with-boxtype=NAME box type [[none,dm7025,dm800...]]],
51         [BOXTYPE="$withval"],[BOXTYPE="dm800"])
52 AC_SUBST(BOXTYPE)
53 AC_DEFINE_UNQUOTED(BOXTYPE,"$BOXTYPE",[box type])
54
55 AC_ARG_WITH(textlcd,
56         AC_HELP_STRING([--with-textlcd], [use ascii based lcd, yes or no]),
57         [[withtextlcd=$withval]],
58         [[withtextlcd=no]]
59 )
60 if test x"$withtextlcd" != xno ; then
61         AC_DEFINE(HAVE_TEXTLCD, 1,[Define when using an ascii based lcd device])
62 fi
63 AM_CONDITIONAL(HAVE_TEXTLCD, test x"$withtextlcd" != xno)
64
65 AC_ARG_WITH(colorlcd,
66         AC_HELP_STRING([--with-colorlcd], [use 96x64 16bpp color display, yes or no]),
67         [[withcolorlcd=$withval]],
68         [[withcolorlcd=no]]
69 )
70 if test x"$withcolorlcd" != xno ; then
71         AC_DEFINE(HAVE_COLORLCD, 1,[Define when using a 96x64 color display device])
72 fi
73 AM_CONDITIONAL(HAVE_COLORLCD, test x"$withcolorlcd" != xno)
74
75 if test x"$BOXTYPE" == "xdm8000" ; then
76         AC_DEFINE(KEY_PLAY_ACTUALLY_IS_KEY_PLAYPAUSE, 1,[define when rc sends a KEY_PLAY event for its KEY_PLAYPAUSE key])
77 fi
78
79 if test x"$BOXTYPE" == "xvuduo" ; then
80         AC_DEFINE(FORCE_NO_BLENDING_ACCELERATION, 1,[define when the framebuffer acceleration does not have alphablending support, though the autodetection might indicate that it does])
81 fi
82
83 AC_ARG_WITH(libsdl,
84         AS_HELP_STRING([--with-libsdl],[use libsdl, yes or no]),
85         [with_libsdl=$withval],[with_libsdl=no])
86 if test "$with_libsdl" = "yes"; then
87         PKG_CHECK_MODULES(LIBSDL, sdl)
88 fi
89 AM_CONDITIONAL(HAVE_LIBSDL, test "$with_libsdl" = "yes")
90
91 AC_ARG_WITH(libxine,
92         AS_HELP_STRING([--with-libxine],[use libxine, yes or no]),
93         [with_libxine=$withval],[with_libxine=no])
94 if test "$with_libxine" = "yes"; then
95         PKG_CHECK_MODULES(LIBXINE, libxine)
96         AC_DEFINE([WITH_XINE],[1],[Define to 1 if you have libxine])
97 fi
98 AM_CONDITIONAL(HAVE_LIBXINE, test "$with_libxine" = "yes")
99
100 AC_ARG_WITH(debug,
101         AS_HELP_STRING([--without-debug],[disable debugging code]),
102         [with_debug="$withval"],[with_debug="yes"])
103 if test "$with_debug" = "yes"; then
104         DEBUG_CFLAGS="-ggdb3"
105         AC_DEFINE([DEBUG],[1],[Define to 1 to enable debugging code])
106 fi
107
108 AC_ARG_WITH(memcheck,
109         AS_HELP_STRING([--with-memcheck],[enable memory leak checks]),
110         [with_memcheck="$withval"],[with_memcheck="no"])
111 if test "$with_memcheck" = "yes"; then
112         AC_DEFINE([MEMLEAK_CHECK],[1],[Define to 1 to enable memory leak checks])
113 fi
114
115 AC_ARG_WITH(po,
116         AS_HELP_STRING([--with-po],[enable updating of po files]),
117         [with_po="$withval"],[with_po="no"])
118 if test "$with_po" = "yes"; then
119         AC_PATH_PROG(MSGINIT, msginit)
120         AC_PATH_PROG(MSGMERGE, msgmerge)
121         AC_PATH_PROG(MSGUNIQ, msguniq)
122         AC_PATH_PROG(XGETTEXT, xgettext)
123         if test -z "$MSGINIT" -o -z "$MSGMERGE" -o -z "$MSGUNIQ" -o -z "$XGETTEXT"; then
124                 AC_MSG_ERROR([Could not find required gettext tools])
125         fi
126 fi
127 AM_CONDITIONAL(UPDATE_PO, test "$with_po" = "yes")
128
129 ENIGMA2_CFLAGS="-fno-rtti -fno-exceptions"
130 AC_SUBST(ENIGMA2_CFLAGS)
131
132 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
133 CFLAGS="$CFLAGS $DEBUG_CFLAGS -Wall"
134 CXXFLAGS="$CXXFLAGS $DEBUG_CFLAGS -Wall $BASE_CFLAGS $ENIGMA2_CFLAGS $PTHREAD_CFLAGS"
135
136 AC_CONFIG_FILES([
137 Makefile
138 data/Makefile
139 data/fonts/Makefile
140 data/countries/Makefile
141 data/defaults/Makefile
142 data/defaults/Dream/Makefile
143 data/defaults/Dream/hdbouquets/Makefile
144 data/defaults/Dream/sdbouquets/Makefile
145 data/extensions/Makefile
146 data/keymaps/Makefile
147 data/skin_default/Makefile
148 data/skin_default/menu/Makefile
149 data/skin_default/icons/Makefile
150 data/skin_default/buttons/Makefile
151 data/skin_default/spinner/Makefile
152 include/Makefile
153 lib/Makefile
154 lib/actions/Makefile
155 lib/base/Makefile
156 lib/base/eenv.cpp
157 lib/driver/Makefile
158 lib/dvb/Makefile
159 lib/dvb/lowlevel/Makefile
160 lib/dvb_ci/Makefile
161 lib/gdi/Makefile
162 lib/gui/Makefile
163 lib/mmi/Makefile
164 lib/nav/Makefile
165 lib/network/Makefile
166 lib/python/Makefile
167 lib/python/Components/Makefile
168 lib/python/Components/Converter/Makefile
169 lib/python/Components/Renderer/Makefile
170 lib/python/Components/Sources/Makefile
171 lib/python/Screens/Makefile
172 lib/python/Plugins/Makefile
173 lib/python/Plugins/SystemPlugins/SoftwareUpdate/Makefile
174 lib/python/Plugins/SystemPlugins/ConfigurationBackup/Makefile
175 lib/python/Plugins/SystemPlugins/CableScan/Makefile
176 lib/python/Plugins/SystemPlugins/FastScan/Makefile
177 lib/python/Plugins/SystemPlugins/OSDPositionSetup/Makefile
178 lib/python/Plugins/SystemPlugins/OSD3DSetup/Makefile
179 lib/python/Plugins/DemoPlugins/Makefile
180 lib/python/Plugins/DemoPlugins/TPMDemo/Makefile
181 lib/python/Plugins/DemoPlugins/TestPlugin/Makefile
182 lib/python/Plugins/Extensions/CutListEditor/Makefile
183 lib/python/Plugins/Extensions/CutListEditor/meta/Makefile
184 lib/python/Plugins/Extensions/DVDBurn/Makefile
185 lib/python/Plugins/Extensions/DVDBurn/meta/Makefile
186 lib/python/Plugins/Extensions/DVDPlayer/Makefile
187 lib/python/Plugins/Extensions/DVDPlayer/meta/Makefile
188 lib/python/Plugins/Extensions/DVDPlayer/src/Makefile
189 lib/python/Plugins/Extensions/GraphMultiEPG/Makefile
190 lib/python/Plugins/Extensions/GraphMultiEPG/meta/Makefile
191 lib/python/Plugins/Extensions/Makefile
192 lib/python/Plugins/Extensions/MediaPlayer/Makefile
193 lib/python/Plugins/Extensions/MediaPlayer/meta/Makefile
194 lib/python/Plugins/Extensions/MediaScanner/Makefile
195 lib/python/Plugins/Extensions/MediaScanner/meta/Makefile
196 lib/python/Plugins/Extensions/Modem/Makefile
197 lib/python/Plugins/Extensions/PicturePlayer/Makefile
198 lib/python/Plugins/Extensions/PicturePlayer/meta/Makefile
199 lib/python/Plugins/Extensions/PicturePlayer/data/Makefile
200 lib/python/Plugins/Extensions/SocketMMI/Makefile
201 lib/python/Plugins/Extensions/SocketMMI/meta/Makefile
202 lib/python/Plugins/Extensions/SocketMMI/src/Makefile
203 lib/python/Plugins/Extensions/TuxboxPlugins/Makefile
204 lib/python/Plugins/Extensions/TuxboxPlugins/meta/Makefile
205 lib/python/Plugins/SystemPlugins/CleanupWizard/Makefile
206 lib/python/Plugins/SystemPlugins/CleanupWizard/meta/Makefile
207 lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/Makefile
208 lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/meta/Makefile
209 lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/Makefile
210 lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/meta/Makefile
211 lib/python/Plugins/SystemPlugins/DefaultServicesScanner/Makefile
212 lib/python/Plugins/SystemPlugins/DefaultServicesScanner/meta/Makefile
213 lib/python/Plugins/SystemPlugins/DiseqcTester/Makefile
214 lib/python/Plugins/SystemPlugins/DiseqcTester/meta/Makefile
215 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/Makefile
216 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/meta/Makefile
217 lib/python/Plugins/SystemPlugins/Hotplug/Makefile
218 lib/python/Plugins/SystemPlugins/Hotplug/meta/Makefile
219 lib/python/Plugins/SystemPlugins/Makefile
220 lib/python/Plugins/SystemPlugins/TempFanControl/Makefile
221 lib/python/Plugins/SystemPlugins/TempFanControl/meta/Makefile
222 lib/python/Plugins/SystemPlugins/NetworkWizard/Makefile
223 lib/python/Plugins/SystemPlugins/NetworkWizard/meta/Makefile
224 lib/python/Plugins/SystemPlugins/NFIFlash/Makefile
225 lib/python/Plugins/SystemPlugins/NFIFlash/meta/Makefile
226 lib/python/Plugins/SystemPlugins/PositionerSetup/Makefile
227 lib/python/Plugins/SystemPlugins/PositionerSetup/meta/Makefile
228 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/Makefile
229 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/meta/Makefile
230 lib/python/Plugins/SystemPlugins/Satfinder/Makefile
231 lib/python/Plugins/SystemPlugins/Satfinder/meta/Makefile
232 lib/python/Plugins/SystemPlugins/SkinSelector/Makefile
233 lib/python/Plugins/SystemPlugins/SkinSelector/meta/Makefile
234 lib/python/Plugins/SystemPlugins/SoftwareManager/Makefile
235 lib/python/Plugins/SystemPlugins/SoftwareManager/meta/Makefile
236 lib/python/Plugins/SystemPlugins/VideoEnhancement/Makefile
237 lib/python/Plugins/SystemPlugins/VideoEnhancement/meta/Makefile
238 lib/python/Plugins/SystemPlugins/VideoTune/Makefile
239 lib/python/Plugins/SystemPlugins/VideoTune/meta/Makefile
240 lib/python/Plugins/SystemPlugins/Videomode/Makefile
241 lib/python/Plugins/SystemPlugins/Videomode/meta/Makefile
242 lib/python/Plugins/SystemPlugins/WirelessLan/Makefile
243 lib/python/Plugins/SystemPlugins/WirelessLan/meta/Makefile
244 lib/python/Tools/Makefile
245 lib/service/Makefile
246 lib/components/Makefile
247 po/Makefile
248 main/Makefile
249 tools/Makefile
250 tools/enigma2.sh
251 enigma2.pc
252 ])
253 AC_OUTPUT