add eEnv::resolve() to resolve install paths at runtime
[vuplus_dvbapp] / configure.ac
1 AC_INIT([enigma2],[2.8.0],[enigma2-devel@lists.elitedvb.net])
2 AM_INIT_AUTOMAKE([dist-bzip2 no-define tar-pax])
3 AC_CONFIG_HEADERS([enigma2_config.h])
4
5 AC_USE_SYSTEM_EXTENSIONS
6 AC_SYS_LARGEFILE
7
8 AC_PROG_CC
9 AC_PROG_CXX
10 LT_INIT
11 AC_CONFIG_MACRO_DIR([m4])
12
13 AC_CHECK_HEADERS([dbox/fp.h dbox/lcd-ks0713.h])
14
15 AC_PATH_PROG(MSGFMT,[msgfmt])
16 AC_PATH_PROG(MSGINIT,[msginit])
17 AC_PATH_PROG(MSGMERGE,[msgmerge])
18 AC_PATH_PROG(MSGUNIQ,[msguniq])
19 AC_PATH_PROG(XGETTEXT,[xgettext])
20 if test -z "$MSGFMT" -o -z "$MSGINIT" -o -z "$MSGMERGE" -o -z "$MSGUNIQ" -o -z "$XGETTEXT"; then
21         AC_MSG_ERROR([Could not find required gettext tools])
22 fi
23
24 AM_PATH_PYTHON
25 AX_PYTHON_DEVEL
26 AX_PKG_SWIG
27 AX_SWIG_ENABLE_CXX
28 AX_SWIG_PYTHON
29 AX_PTHREAD
30
31 TUXBOX_APPS_DVB
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([xmlccwrap], [exit], [LIBXMLCCWRAP_LIBS="-lxmlccwrap"], [AC_MSG_ERROR([Could not find libxmlccwrap])])
42 AC_SUBST(LIBXMLCCWRAP_LIBS)
43 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])])])
44 AC_SUBST(LIBGIF_LIBS)
45
46 AC_ARG_WITH(libsdl,
47         AS_HELP_STRING([--with-libsdl],[use libsdl, yes or no]),
48         [with_libsdl=$withval],[with_libsdl=no])
49 if test "$with_libsdl" = "yes"; then
50         PKG_CHECK_MODULES(LIBSDL, sdl)
51         AC_DEFINE([WITH_SDL],[1],[Define to 1 if you have libsdl])
52 fi
53 AM_CONDITIONAL(HAVE_LIBSDL, test "$with_libsdl" = "yes")
54
55 AC_ARG_WITH(libxine,
56         AS_HELP_STRING([--with-libxine],[use libxine, yes or no]),
57         [with_libxine=$withval],[with_libxine=no])
58 if test "$with_libxine" = "yes"; then
59         PKG_CHECK_MODULES(LIBXINE, libxine)
60         AC_DEFINE([WITH_XINE],[1],[Define to 1 if you have libxine])
61 fi
62 AM_CONDITIONAL(HAVE_LIBXINE, test "$with_libxine" = "yes")
63
64 AC_ARG_WITH(debug,
65         AS_HELP_STRING([--without-debug],[disable debugging code]),
66         [with_debug="$withval"],[with_debug="yes"])
67 if test "$with_debug" = "yes"; then
68         DEBUG_CFLAGS="-ggdb3"
69         AC_DEFINE([DEBUG],[1],[Define to 1 to enable debugging code])
70 fi
71
72 AC_ARG_WITH(memcheck,
73         AS_HELP_STRING([--with-memcheck],[enable memory leak checks]),
74         [with_memcheck="$withval"],[with_memcheck="no"])
75 if test "$with_memcheck" = "yes"; then
76         AC_DEFINE([MEMLEAK_CHECK],[1],[Define to 1 to enable memory leak checks])
77 fi
78
79 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
80 CXXFLAGS="$CXXFLAGS $BASE_CFLAGS $PTHREAD_CFLAGS $DEBUG_CFLAGS -fno-rtti -fno-exceptions -Wall"
81
82 AC_CONFIG_FILES([
83 Makefile
84 data/Makefile
85 data/fonts/Makefile
86 data/countries/Makefile
87 data/defaults/Makefile
88 data/defaults/Dream/Makefile
89 data/defaults/Dream/hdbouquets/Makefile
90 data/defaults/Dream/sdbouquets/Makefile
91 data/extensions/Makefile
92 data/skin_default/Makefile
93 data/skin_default/menu/Makefile
94 data/skin_default/icons/Makefile
95 data/skin_default/buttons/Makefile
96 data/skin_default/spinner/Makefile
97 include/Makefile
98 lib/Makefile
99 lib/actions/Makefile
100 lib/base/Makefile
101 lib/base/eenv.cpp
102 lib/driver/Makefile
103 lib/dvb/Makefile
104 lib/dvb/lowlevel/Makefile
105 lib/dvb_ci/Makefile
106 lib/gdi/Makefile
107 lib/gui/Makefile
108 lib/mmi/Makefile
109 lib/nav/Makefile
110 lib/python/Makefile
111 lib/python/Components/Makefile
112 lib/python/Components/Converter/Makefile
113 lib/python/Components/Renderer/Makefile
114 lib/python/Components/Sources/Makefile
115 lib/python/Screens/Makefile
116 lib/python/Plugins/Makefile
117 lib/python/Plugins/DemoPlugins/Makefile
118 lib/python/Plugins/DemoPlugins/TPMDemo/Makefile
119 lib/python/Plugins/DemoPlugins/TestPlugin/Makefile
120 lib/python/Plugins/Extensions/CutListEditor/Makefile
121 lib/python/Plugins/Extensions/CutListEditor/meta/Makefile
122 lib/python/Plugins/Extensions/DVDBurn/Makefile
123 lib/python/Plugins/Extensions/DVDBurn/meta/Makefile
124 lib/python/Plugins/Extensions/DVDPlayer/Makefile
125 lib/python/Plugins/Extensions/DVDPlayer/meta/Makefile
126 lib/python/Plugins/Extensions/DVDPlayer/src/Makefile
127 lib/python/Plugins/Extensions/GraphMultiEPG/Makefile
128 lib/python/Plugins/Extensions/GraphMultiEPG/meta/Makefile
129 lib/python/Plugins/Extensions/Makefile
130 lib/python/Plugins/Extensions/MediaPlayer/Makefile
131 lib/python/Plugins/Extensions/MediaPlayer/meta/Makefile
132 lib/python/Plugins/Extensions/MediaScanner/Makefile
133 lib/python/Plugins/Extensions/MediaScanner/meta/Makefile
134 lib/python/Plugins/Extensions/Modem/Makefile
135 lib/python/Plugins/Extensions/PicturePlayer/Makefile
136 lib/python/Plugins/Extensions/PicturePlayer/meta/Makefile
137 lib/python/Plugins/Extensions/PicturePlayer/data/Makefile
138 lib/python/Plugins/Extensions/SocketMMI/Makefile
139 lib/python/Plugins/Extensions/SocketMMI/meta/Makefile
140 lib/python/Plugins/Extensions/SocketMMI/src/Makefile
141 lib/python/Plugins/Extensions/TuxboxPlugins/Makefile
142 lib/python/Plugins/Extensions/TuxboxPlugins/meta/Makefile
143 lib/python/Plugins/SystemPlugins/CleanupWizard/Makefile
144 lib/python/Plugins/SystemPlugins/CleanupWizard/meta/Makefile
145 lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/Makefile
146 lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/meta/Makefile
147 lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/Makefile
148 lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/meta/Makefile
149 lib/python/Plugins/SystemPlugins/DefaultServicesScanner/Makefile
150 lib/python/Plugins/SystemPlugins/DefaultServicesScanner/meta/Makefile
151 lib/python/Plugins/SystemPlugins/DiseqcTester/Makefile
152 lib/python/Plugins/SystemPlugins/DiseqcTester/meta/Makefile
153 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/Makefile
154 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/meta/Makefile
155 lib/python/Plugins/SystemPlugins/Hotplug/Makefile
156 lib/python/Plugins/SystemPlugins/Hotplug/meta/Makefile
157 lib/python/Plugins/SystemPlugins/Makefile
158 lib/python/Plugins/SystemPlugins/TempFanControl/Makefile
159 lib/python/Plugins/SystemPlugins/TempFanControl/meta/Makefile
160 lib/python/Plugins/SystemPlugins/NetworkWizard/Makefile
161 lib/python/Plugins/SystemPlugins/NetworkWizard/meta/Makefile
162 lib/python/Plugins/SystemPlugins/NFIFlash/Makefile
163 lib/python/Plugins/SystemPlugins/NFIFlash/meta/Makefile
164 lib/python/Plugins/SystemPlugins/PositionerSetup/Makefile
165 lib/python/Plugins/SystemPlugins/PositionerSetup/meta/Makefile
166 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/Makefile
167 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/meta/Makefile
168 lib/python/Plugins/SystemPlugins/Satfinder/Makefile
169 lib/python/Plugins/SystemPlugins/Satfinder/meta/Makefile
170 lib/python/Plugins/SystemPlugins/SkinSelector/Makefile
171 lib/python/Plugins/SystemPlugins/SkinSelector/meta/Makefile
172 lib/python/Plugins/SystemPlugins/SoftwareManager/Makefile
173 lib/python/Plugins/SystemPlugins/SoftwareManager/meta/Makefile
174 lib/python/Plugins/SystemPlugins/VideoEnhancement/Makefile
175 lib/python/Plugins/SystemPlugins/VideoEnhancement/meta/Makefile
176 lib/python/Plugins/SystemPlugins/VideoTune/Makefile
177 lib/python/Plugins/SystemPlugins/VideoTune/meta/Makefile
178 lib/python/Plugins/SystemPlugins/Videomode/Makefile
179 lib/python/Plugins/SystemPlugins/Videomode/meta/Makefile
180 lib/python/Plugins/SystemPlugins/WirelessLan/Makefile
181 lib/python/Plugins/SystemPlugins/WirelessLan/meta/Makefile
182 lib/python/Tools/Makefile
183 lib/service/Makefile
184 lib/components/Makefile
185 po/Makefile
186 main/Makefile
187 tools/Makefile
188 tools/enigma2.sh
189 enigma2.pc
190 ])
191 AC_OUTPUT