move some functions to better place (aspect / size / framerate / progressive handling)
[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 AC_CHECK_LIB(jpeg, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no")
45 JPEG_LIBS="-ljpeg"
46 AC_SUBST(JPEG_LIBS)
47
48 AC_CHECK_LIB(ungif, DGifOpenFileName, HAVE_LIBUNGIF="yes", HAVE_LIBUNGIF="no")
49 LIBUNGIF_LIBS="-lungif"
50 AC_SUBST(LIBUNGIF_LIBS)
51
52 TUXBOX_APPS_LIB_PKGCONFIG(XML2,libxml-2.0)
53
54 # ok, we are in trouble: XMLCCWRAP only defines C++ symbols. So let's just check if linking works,
55 # and assume everything will be ok. Then just check for the "exit" symbol, which should be always there.
56 AC_LANG_SAVE
57 AC_LANG_CPLUSPLUS
58 TUXBOX_APPS_LIB_SYMBOL(XMLCCWRAP, xmlccwrap, exit)
59 AC_LANG_RESTORE
60
61 if test "$withsdl" = "yes" ; then
62         _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(SDL,sdl,WITH_SDL)
63         if test "$WITH_SDL" = "no" ; then
64                 TUXBOX_APPS_LIB_CONFIG(SDL,sdl-config)
65                 AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
66         fi
67 fi
68 # allow 'if WITH_SDL' conditionals in Makefile.am
69 AM_CONDITIONAL(WITH_SDL, test "$WITH_SDL" = "yes")
70
71 CPPFLAGS="$CPPFLAGS "'-I$(top_srcdir)'
72 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 $LIBUNGIF_CLFAGS"
73 #CPPFLAGS="$CPPFLAGS -DMEMLEAK_CHECK"
74 CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions -Wall"
75 LDFLAGS="$LDFLAGS -pthread $PYTHON_LDFLAGS $SDL_LDFLAGS $GSTREAMER_LDFLAGS $GSTREAMERPBUTILS_LDFLAGS $LIBUNGIF_LDFLAGS"
76 #LDFLAGS="-rdynamic $LDFLAGS"
77
78 TUXBOX_APPS_GETTEXT
79
80 AC_OUTPUT([
81 Makefile
82 data/Makefile
83 data/fonts/Makefile
84 data/countries/Makefile
85 data/defaults/Makefile
86 data/defaults/Dream/Makefile
87 data/extensions/Makefile
88 data/skin_default/Makefile
89 data/skin_default/menu/Makefile
90 data/skin_default/icons/Makefile
91 data/skin_default/buttons/Makefile
92 data/skin_default/spinner/Makefile
93 lib/Makefile
94 lib/actions/Makefile
95 lib/base/Makefile
96 lib/driver/Makefile
97 lib/dvb/Makefile
98 lib/dvb_ci/Makefile
99 lib/gdi/Makefile
100 lib/gui/Makefile
101 lib/mmi/Makefile
102 lib/nav/Makefile
103 lib/python/Makefile
104 lib/python/Components/Makefile
105 lib/python/Components/Converter/Makefile
106 lib/python/Components/Renderer/Makefile
107 lib/python/Components/Sources/Makefile
108 lib/python/Screens/Makefile
109 lib/python/Plugins/Makefile
110 lib/python/Plugins/SystemPlugins/Makefile
111 lib/python/Plugins/SystemPlugins/SoftwareUpdate/Makefile
112 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/Makefile
113 lib/python/Plugins/SystemPlugins/PositionerSetup/Makefile
114 lib/python/Plugins/SystemPlugins/Hotplug/Makefile
115 lib/python/Plugins/SystemPlugins/ConfigurationBackup/Makefile
116 lib/python/Plugins/SystemPlugins/DefaultServicesScanner/Makefile
117 lib/python/Plugins/SystemPlugins/NFIFlash/Makefile
118 lib/python/Plugins/SystemPlugins/Satfinder/Makefile
119 lib/python/Plugins/SystemPlugins/SkinSelector/Makefile
120 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/Makefile
121 lib/python/Plugins/SystemPlugins/Videomode/Makefile
122 lib/python/Plugins/SystemPlugins/VideoTune/Makefile
123 lib/python/Plugins/DemoPlugins/Makefile
124 lib/python/Plugins/DemoPlugins/TestPlugin/Makefile
125 lib/python/Plugins/Extensions/Makefile
126 lib/python/Plugins/Extensions/IpkgInstaller/Makefile
127 lib/python/Plugins/Extensions/TuxboxPlugins/Makefile
128 lib/python/Plugins/Extensions/FileManager/Makefile
129 lib/python/Plugins/Extensions/CutListEditor/Makefile
130 lib/python/Plugins/Extensions/MediaScanner/Makefile
131 lib/python/Plugins/Extensions/MediaPlayer/Makefile
132 lib/python/Plugins/Extensions/DVDBurn/Makefile
133 lib/python/Plugins/Extensions/DVDPlayer/Makefile
134 lib/python/Plugins/Extensions/DVDPlayer/src/Makefile
135 lib/python/Plugins/Extensions/PicturePlayer/Makefile
136 lib/python/Plugins/Extensions/PicturePlayer/data/Makefile
137 lib/python/Plugins/Extensions/GraphMultiEPG/Makefile
138 lib/python/Plugins/Extensions/SocketMMI/Makefile
139 lib/python/Plugins/Extensions/SocketMMI/src/Makefile
140 lib/python/Tools/Makefile
141 lib/service/Makefile
142 lib/components/Makefile
143 po/Makefile
144 main/Makefile
145 tools/Makefile
146 enigma2.pc
147 ])
148
149 #lib/python/Plugins/Extensions/SimpleRSS/Makefile