remove FritzCall from this cvs - it's in enigma2-plugins.schwerkraft.elitedvb.net now
[enigma2.git] / configure.ac
1 AC_INIT(tuxbox-enigma,0.0.1)
2 AM_INIT_AUTOMAKE(tuxbox-enigma,0.0.1)
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_CONFIG(FREETYPE,freetype-config)
24 TUXBOX_APPS_LIB_PKGCONFIG(FRIBIDI,fribidi)
25 TUXBOX_APPS_LIB_PKGCONFIG(ID3TAG,id3tag)
26 TUXBOX_APPS_LIB_PKGCONFIG(MAD,mad)
27 #TUXBOX_APPS_LIB_PKGCONFIG(PLUGINS,tuxbox-plugins)
28 TUXBOX_APPS_LIB_PKGCONFIG(PNG,libpng)
29 TUXBOX_APPS_LIB_PKGCONFIG(SIGC,sigc++-1.2)
30 TUXBOX_APPS_LIB_PKGCONFIG(DVBSI,libdvbsi++)
31 _TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL(GSTREAMER,gstreamer,HAVE_GSTREAMER)
32 AC_CHECK_LIB(jpeg, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no")
33 JPEG_LIBS="-ljpeg"
34 AC_SUBST(JPEG_LIBS)
35
36 AC_CHECK_LIB(ungif, DGifOpenFileName, HAVE_LIBUNGIF="yes", HAVE_LIBUNGIF="no")
37 LIBUNGIF_LIBS="-lungif"
38 AC_SUBST(LIBUNGIF_LIBS)
39
40 if test "$withsdl" = "yes" ; then
41         TUXBOX_APPS_LIB_CONFIG(SDL,sdl-config)
42         AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
43 fi
44
45 CPPFLAGS="$CPPFLAGS "'-I$(top_srcdir)'
46 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"
47 CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions -Wall"
48 LDFLAGS="$LDFLAGS -pthread $PYTHON_LDFLAGS $SDL_LDFLAGS $GSTREAMER_LDFLAGS $LIBUNGIF_LDFLAGS"
49
50 TUXBOX_APPS_GETTEXT
51
52 AC_OUTPUT([
53 Makefile
54 data/Makefile
55 data/fonts/Makefile
56 data/countries/Makefile
57 data/defaults/Makefile
58 data/extensions/Makefile
59 lib/Makefile
60 lib/actions/Makefile
61 lib/base/Makefile
62 lib/driver/Makefile
63 lib/dvb/Makefile
64 lib/dvb_ci/Makefile
65 lib/gdi/Makefile
66 lib/gui/Makefile
67 lib/nav/Makefile
68 lib/python/Makefile
69 lib/python/Components/Makefile
70 lib/python/Components/Converter/Makefile
71 lib/python/Components/Renderer/Makefile
72 lib/python/Components/Sources/Makefile
73 lib/python/Screens/Makefile
74 lib/python/Plugins/Makefile
75 lib/python/Plugins/SystemPlugins/Makefile
76 lib/python/Plugins/SystemPlugins/SoftwareUpdate/Makefile
77 lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/Makefile
78 lib/python/Plugins/SystemPlugins/PositionerSetup/Makefile
79 lib/python/Plugins/SystemPlugins/ConfigurationBackup/Makefile
80 lib/python/Plugins/SystemPlugins/Satfinder/Makefile
81 lib/python/Plugins/SystemPlugins/SkinSelector/Makefile
82 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/Makefile
83 lib/python/Plugins/DemoPlugins/Makefile
84 lib/python/Plugins/DemoPlugins/TestPlugin/Makefile
85 lib/python/Plugins/Extensions/Makefile
86 lib/python/Plugins/Extensions/IpkgInstaller/Makefile
87 lib/python/Plugins/Extensions/TuxboxPlugins/Makefile
88 lib/python/Plugins/Extensions/FileManager/Makefile
89 lib/python/Plugins/Extensions/CutListEditor/Makefile
90 lib/python/Plugins/Extensions/MediaScanner/Makefile
91 lib/python/Plugins/Extensions/PicturePlayer/Makefile
92 lib/python/Plugins/Extensions/PicturePlayer/data/Makefile
93 lib/python/Plugins/Extensions/GraphMultiEPG/Makefile
94 lib/python/Tools/Makefile
95 lib/service/Makefile
96 lib/components/Makefile
97 po/Makefile
98 main/Makefile
99 tools/Makefile
100 ])
101
102 #lib/python/Plugins/Extensions/SimpleRSS/Makefile