Merge branch 'master' into bug_245_record_playback_fixes
[enigma2.git] / configure.ac
1 AC_INIT(enigma2,2.4)
2 AM_INIT_AUTOMAKE(enigma2,2.4)
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 AC_CHECK_HEADER(dreamdvd/ddvdlib.h,have_ddvdlib="yes",have_ddvdlib="no")
18 if test x"${have_ddvdlib}" = xyes ; then
19         AC_DEFINE(HAVE_DDVDLIB, 1,[Define if ddvdlib is available])
20 else
21         AC_MSG_NOTICE([ddvdlib not found... dont build dvd plugin])
22 fi
23 AM_CONDITIONAL(HAVE_DDVDLIB, test "$have_ddvdlib" = "yes")
24
25 AM_PATH_PYTHON()
26 AC_PYTHON_DEVEL
27 #AM_PATH_XINE(1.1.0,, AC_MSG_ERROR([*** Please install xine-lib (devel) first ***]))
28
29 TUXBOX_APPS_DVB
30
31 _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(FREETYPE, freetype2, HAVE_FREETYPE2)
32 if test "$HAVE_FREETYPE2" = "no" ; then
33         TUXBOX_APPS_LIB_CONFIG(FREETYPE, freetype-config)
34 fi
35 TUXBOX_APPS_LIB_PKGCONFIG(FRIBIDI,fribidi)
36 TUXBOX_APPS_LIB_PKGCONFIG(ID3TAG,id3tag)
37 TUXBOX_APPS_LIB_PKGCONFIG(MAD,mad)
38 #TUXBOX_APPS_LIB_PKGCONFIG(PLUGINS,tuxbox-plugins)
39 TUXBOX_APPS_LIB_PKGCONFIG(PNG,libpng)
40 TUXBOX_APPS_LIB_PKGCONFIG(SIGC,sigc++-1.2)
41 TUXBOX_APPS_LIB_PKGCONFIG(DVBSI,libdvbsi++)
42 _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(GSTREAMER,gstreamer,HAVE_GSTREAMER)
43 _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(GSTREAMERPBUTILS,gstreamer-pbutils,HAVE_GSTSTREAMERPBUTILS)
44 _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(LIBXINE,libxine,HAVE_LIBXINE)
45 AC_CHECK_LIB(jpeg, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no")
46 JPEG_LIBS="-ljpeg"
47 AC_SUBST(JPEG_LIBS)
48
49 AC_SUBST(LIBUNGIF_LIBS,"")
50 AC_CHECK_HEADERS(gif_lib.h,
51         AC_CHECK_LIB(ungif,DGifOpen,
52         [AC_DEFINE(HAVE_LIBUNGIF,1,[Define if you have libgif/libungif including devel headers])
53                 LIBUNGIF_LIBS="-lungif"],
54                 [AC_CHECK_LIB(gif,DGifOpen,
55                         [AC_DEFINE(HAVE_LIUNBGIF,1)
56                         LIBUNGIF_LIBS="-lgif"])]))
57
58 TUXBOX_APPS_LIB_PKGCONFIG(XML2,libxml-2.0)
59
60 # ok, we are in trouble: XMLCCWRAP only defines C++ symbols. So let's just check if linking works,
61 # and assume everything will be ok. Then just check for the "exit" symbol, which should be always there.
62 AC_LANG_SAVE
63 AC_LANG_CPLUSPLUS
64 TUXBOX_APPS_LIB_SYMBOL(XMLCCWRAP, xmlccwrap, exit)
65 AC_LANG_RESTORE
66
67 if test "$withsdl" = "yes" ; then
68         _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(SDL,sdl,WITH_SDL)
69         if test "$WITH_SDL" = "no" ; then
70                 TUXBOX_APPS_LIB_CONFIG(SDL,sdl-config)
71                 AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
72         fi
73 fi
74 # allow 'if WITH_SDL' conditionals in Makefile.am
75 AM_CONDITIONAL(WITH_SDL, test "$WITH_SDL" = "yes")
76
77 CPPFLAGS="$CPPFLAGS "'-I$(top_srcdir)'
78 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 $GSTREAMERPBUTILS_CFLAGS $LIBXINE_CFLAGS $LIBUNGIF_CFLAGS"
79 #CPPFLAGS="$CPPFLAGS -DMEMLEAK_CHECK"
80 CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions -Wall"
81 LDFLAGS="$LDFLAGS -pthread $PYTHON_LDFLAGS $SDL_LDFLAGS $GSTREAMER_LDFLAGS $GSTREAMERPBUTILS_LDFLAGS $LIBXINE_LDFLAGS $LIBUNGIF_LDFLAGS"
82 #LDFLAGS="-rdynamic $LDFLAGS"
83
84 TUXBOX_APPS_GETTEXT
85
86 AC_OUTPUT([
87 Makefile
88 data/Makefile
89 data/fonts/Makefile
90 data/countries/Makefile
91 data/defaults/Makefile
92 data/defaults/Dream/Makefile
93 data/extensions/Makefile
94 data/skin_default/Makefile
95 data/skin_default/menu/Makefile
96 data/skin_default/icons/Makefile
97 data/skin_default/buttons/Makefile
98 data/skin_default/spinner/Makefile
99 include/Makefile
100 lib/Makefile
101 lib/actions/Makefile
102 lib/base/Makefile
103 lib/driver/Makefile
104 lib/dvb/Makefile
105 lib/dvb/lowlevel/Makefile
106 lib/dvb_ci/Makefile
107 lib/gdi/Makefile
108 lib/gui/Makefile
109 lib/mmi/Makefile
110 lib/nav/Makefile
111 lib/python/Makefile
112 lib/python/Components/Makefile
113 lib/python/Components/Converter/Makefile
114 lib/python/Components/Renderer/Makefile
115 lib/python/Components/Sources/Makefile
116 lib/python/Screens/Makefile
117 lib/python/Plugins/Makefile
118 lib/python/Plugins/DemoPlugins/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/NetworkWizard/Makefile
159 lib/python/Plugins/SystemPlugins/NetworkWizard/meta/Makefile
160 lib/python/Plugins/SystemPlugins/NFIFlash/Makefile
161 lib/python/Plugins/SystemPlugins/NFIFlash/meta/Makefile
162 lib/python/Plugins/SystemPlugins/PositionerSetup/Makefile
163 lib/python/Plugins/SystemPlugins/PositionerSetup/meta/Makefile
164 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/Makefile
165 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/meta/Makefile
166 lib/python/Plugins/SystemPlugins/Satfinder/Makefile
167 lib/python/Plugins/SystemPlugins/Satfinder/meta/Makefile
168 lib/python/Plugins/SystemPlugins/SkinSelector/Makefile
169 lib/python/Plugins/SystemPlugins/SkinSelector/meta/Makefile
170 lib/python/Plugins/SystemPlugins/SoftwareManager/Makefile
171 lib/python/Plugins/SystemPlugins/SoftwareManager/meta/Makefile
172 lib/python/Plugins/SystemPlugins/VideoEnhancement/Makefile
173 lib/python/Plugins/SystemPlugins/VideoEnhancement/meta/Makefile
174 lib/python/Plugins/SystemPlugins/VideoTune/Makefile
175 lib/python/Plugins/SystemPlugins/VideoTune/meta/Makefile
176 lib/python/Plugins/SystemPlugins/Videomode/Makefile
177 lib/python/Plugins/SystemPlugins/Videomode/meta/Makefile
178 lib/python/Plugins/SystemPlugins/WirelessLan/Makefile
179 lib/python/Tools/Makefile
180 lib/service/Makefile
181 lib/components/Makefile
182 po/Makefile
183 main/Makefile
184 tools/Makefile
185 enigma2.pc
186 ])
187
188 #lib/python/Plugins/Extensions/SimpleRSS/Makefile
189 #lib/python/Plugins/Extensions/FileManager/Makefile