50e30aadcc2fd45a0eaca452f963f311ecc477ee
[vuplus_dvbapp] / 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 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_PKGCONFIG_OPTIONAL(FREETYPE, freetype2, HAVE_FREETYPE2)
24 if test "$HAVE_FREETYPE2" = "no" ; then
25         TUXBOX_APPS_LIB_CONFIG(FREETYPE, freetype-config)
26 fi
27 TUXBOX_APPS_LIB_PKGCONFIG(FRIBIDI,fribidi)
28 TUXBOX_APPS_LIB_PKGCONFIG(ID3TAG,id3tag)
29 TUXBOX_APPS_LIB_PKGCONFIG(MAD,mad)
30 #TUXBOX_APPS_LIB_PKGCONFIG(PLUGINS,tuxbox-plugins)
31 TUXBOX_APPS_LIB_PKGCONFIG(PNG,libpng)
32 TUXBOX_APPS_LIB_PKGCONFIG(SIGC,sigc++-1.2)
33 TUXBOX_APPS_LIB_PKGCONFIG(DVBSI,libdvbsi++)
34 _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(GSTREAMER,gstreamer,HAVE_GSTREAMER)
35 AC_CHECK_LIB(jpeg, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no")
36 JPEG_LIBS="-ljpeg"
37 AC_SUBST(JPEG_LIBS)
38
39 AC_CHECK_LIB(ungif, DGifOpenFileName, HAVE_LIBUNGIF="yes", HAVE_LIBUNGIF="no")
40 LIBUNGIF_LIBS="-lungif"
41 AC_SUBST(LIBUNGIF_LIBS)
42
43 TUXBOX_APPS_LIB_PKGCONFIG(XML2,libxml-2.0)
44
45 # ok, we are in trouble: XMLCCWRAP only defines C++ symbols. So let's just check if linking works,
46 # and assume everything will be ok. Then just check for the "exit" symbol, which should be always there.
47 TUXBOX_APPS_LIB_SYMBOL(XMLCCWRAP, xmlccwrap, exit)
48
49 if test "$withsdl" = "yes" ; then
50         _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(SDL,sdl,WITH_SDL)
51         if test "$WITH_SDL" = "no" ; then
52                 TUXBOX_APPS_LIB_CONFIG(SDL,sdl-config)
53                 AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
54         fi
55 fi
56 # allow 'if WITH_SDL' conditionals in Makefile.am
57 AM_CONDITIONAL(WITH_SDL, test "$WITH_SDL" = "yes")
58
59 CPPFLAGS="$CPPFLAGS "'-I$(top_srcdir)'
60 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"
61 #CPPFLAGS="$CPPFLAGS -DMEMLEAK_CHECK"
62 CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions -Wall"
63 LDFLAGS="$LDFLAGS -pthread $PYTHON_LDFLAGS $SDL_LDFLAGS $GSTREAMER_LDFLAGS $LIBUNGIF_LDFLAGS"
64 #LDFLAGS="-rdynamic $LDFLAGS"
65
66 TUXBOX_APPS_GETTEXT
67
68 AC_OUTPUT([
69 Makefile
70 data/Makefile
71 data/fonts/Makefile
72 data/countries/Makefile
73 data/defaults/Makefile
74 data/extensions/Makefile
75 data/skin_default/Makefile
76 data/skin_default/menu/Makefile
77 data/skin_default/icons/Makefile
78 data/skin_default/buttons/Makefile
79 data/skin_default/spinner/Makefile
80 lib/Makefile
81 lib/actions/Makefile
82 lib/base/Makefile
83 lib/driver/Makefile
84 lib/dvb/Makefile
85 lib/dvb_ci/Makefile
86 lib/gdi/Makefile
87 lib/gui/Makefile
88 lib/mmi/Makefile
89 lib/nav/Makefile
90 lib/python/Makefile
91 lib/python/Components/Makefile
92 lib/python/Components/Converter/Makefile
93 lib/python/Components/Renderer/Makefile
94 lib/python/Components/Sources/Makefile
95 lib/python/Screens/Makefile
96 lib/python/Plugins/Makefile
97 lib/python/Plugins/SystemPlugins/Makefile
98 lib/python/Plugins/SystemPlugins/SoftwareUpdate/Makefile
99 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/Makefile
100 lib/python/Plugins/SystemPlugins/PositionerSetup/Makefile
101 lib/python/Plugins/SystemPlugins/Hotplug/Makefile
102 lib/python/Plugins/SystemPlugins/ConfigurationBackup/Makefile
103 lib/python/Plugins/SystemPlugins/Satfinder/Makefile
104 lib/python/Plugins/SystemPlugins/SkinSelector/Makefile
105 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/Makefile
106 lib/python/Plugins/SystemPlugins/Videomode/Makefile
107 lib/python/Plugins/SystemPlugins/VideoTune/Makefile
108 lib/python/Plugins/DemoPlugins/Makefile
109 lib/python/Plugins/DemoPlugins/TestPlugin/Makefile
110 lib/python/Plugins/Extensions/Makefile
111 lib/python/Plugins/Extensions/IpkgInstaller/Makefile
112 lib/python/Plugins/Extensions/TuxboxPlugins/Makefile
113 lib/python/Plugins/Extensions/FileManager/Makefile
114 lib/python/Plugins/Extensions/CutListEditor/Makefile
115 lib/python/Plugins/Extensions/MediaScanner/Makefile
116 lib/python/Plugins/Extensions/MediaPlayer/Makefile
117 lib/python/Plugins/Extensions/DVDPlayer/Makefile
118 lib/python/Plugins/Extensions/DVDPlayer/src/Makefile
119 lib/python/Plugins/Extensions/PicturePlayer/Makefile
120 lib/python/Plugins/Extensions/PicturePlayer/data/Makefile
121 lib/python/Plugins/Extensions/GraphMultiEPG/Makefile
122 lib/python/Plugins/Extensions/SocketMMI/Makefile
123 lib/python/Tools/Makefile
124 lib/service/Makefile
125 lib/components/Makefile
126 po/Makefile
127 main/Makefile
128 tools/Makefile
129 ])
130
131 #lib/python/Plugins/Extensions/SimpleRSS/Makefile