- add simple lcd support
[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(pythonincdir,
12         [  --with-pythonincdir=NAME dir [[...]]],
13         [PYTHON_INCDIR="$withval"],[PYTHON_INCDIR="/usr/include/python2.4"])
14 AC_SUBST(PYTHON_INCDIR)
15
16 AC_ARG_WITH(libsdl,
17         AC_HELP_STRING([--with-libsdl], [use sdl, yes or no]),
18         [[withsdl=$withval]],
19         [[withsdl=yes]]
20 )
21                 
22 TUXBOX_APPS_DVB
23 #TUXBOX_APPS_DRIVER
24
25 TUXBOX_APPS_LIB_CONFIG(FREETYPE,freetype-config)
26 #TUXBOX_APPS_LIB_PKGCONFIG(FRIBIDI,fribidi)
27 TUXBOX_APPS_LIB_PKGCONFIG(ID3TAG,id3tag)
28 TUXBOX_APPS_LIB_PKGCONFIG(MAD,mad)
29 #TUXBOX_APPS_LIB_PKGCONFIG(PLUGINS,tuxbox-plugins)
30 TUXBOX_APPS_LIB_PKGCONFIG(PNG,libpng)
31 TUXBOX_APPS_LIB_PKGCONFIG(SIGC,sigc++-1.2)
32 #TUXBOX_APPS_LIB_PKGCONFIG(XMLTREE,tuxbox-xmltree)
33 if test "$withsdl" = "yes" ; then
34         TUXBOX_APPS_LIB_CONFIG(SDL,sdl-config)
35         AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
36 fi
37
38 # fixme: decent python stuff
39 CPPFLAGS="$CPPFLAGS $MD5SUM_CFLAGS $FREETYPE_CFLAGS $FRIBIDI_CFLAGS $ID3TAG_CFLAGS $MAD_CFLAGS $PLUGINS_CFLAGS $PNG_CFLAGS $SIGC_CFLAGS $XMLTREE_CFLAGS -I$PYTHON_INCDIR -DHAVE_CPP_FILT -DMEMLEAK_CHECK"
40 CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions -Wall"
41 LDFLAGS="$LDFLAGS -rdynamic"
42
43 TUXBOX_APPS_GETTEXT
44
45 AC_OUTPUT([
46 Makefile
47 data/Makefile
48 lib/Makefile
49 lib/actions/Makefile
50 lib/base/Makefile
51 lib/driver/Makefile
52 lib/dvb/Makefile
53 lib/dvb_ci/Makefile
54 lib/dvb_si/Makefile
55 lib/gdi/Makefile
56 lib/gui/Makefile
57 lib/nav/Makefile
58 lib/network/Makefile
59 lib/python/Makefile
60 lib/python/Components/Makefile
61 lib/python/Screens/Makefile
62 lib/python/Tools/Makefile
63 lib/service/Makefile
64 lib/components/Makefile
65 main/Makefile
66 ])