1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/maemo-ui/AUTHORS Thu Sep 28 16:05:17 2006 +0100
1.3 @@ -0,0 +1,4 @@
1.4 +Alexsandro Jose Virginio dos Santos <alexsandro.santos@indt.org.br>
1.5 +Hallyson Luiz de Morais Melo <hallyson.melo@indt.org.br>
1.6 +Leonardo Sobral Cunha <leonardo.cunha@indt.org.br>
1.7 +Rosfran Lins Borges <rosfran.borges@indt.org.br>
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/maemo-ui/ChangeLog Thu Sep 28 16:05:17 2006 +0100
2.3 @@ -0,0 +1,24 @@
2.4 +2006-08-17 Rosfran Borges <rosfran.borges@indt.org.br>
2.5 + * Added the correct gstreamer-base package (GSTBASE) at the configure.ac;
2.6 + GSTBASE_CFLAGS and GSTBASE_LIBS variables had the same values from
2.7 + the GST_CFLAGS/GST_LIBS.
2.8 +
2.9 +2006-08-16 Rosfran Borges <rosfran.borges@indt.org.br>
2.10 + * Fixed some installation issues, regarding lib-installing to the
2.11 + correct directory, and copying the header files to the destination
2.12 + dir (make install).
2.13 + * Put 'pkg-config' resource to the Maemo Myth library. The name of the
2.14 + PKG-CONFIG resource is 'maemo-myth', plus the minor and major version.
2.15 + Actually, the version is '0.1', so the library config file is:
2.16 + 'maemo-myth-0.1.pc'. You can type: 'pkg-config --cflags --libs
2.17 + maemo-myth-0.1'.
2.18 + * Many adjustments in the automake/autoconf configuration files
2.19 + (configure.ac, Makefile.am) - some autotools misusage fixed.
2.20 + * Added the MythURI structure, and the URI parsing utility functions
2.21 + (missing in the GLib).
2.22 + * Some functions were exported (myth_socket, mmyth_context), that's
2.23 + why many ther modules need to use them.
2.24 + * Fixed some library dependencies.
2.25 + * Prepared to be used inside the GStreamer (linking with the MythTV
2.26 + plug-in).
2.27 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/maemo-ui/INSTALL Thu Sep 28 16:05:17 2006 +0100
3.3 @@ -0,0 +1,236 @@
3.4 +Installation Instructions
3.5 +*************************
3.6 +
3.7 +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
3.8 +Software Foundation, Inc.
3.9 +
3.10 +This file is free documentation; the Free Software Foundation gives
3.11 +unlimited permission to copy, distribute and modify it.
3.12 +
3.13 +Basic Installation
3.14 +==================
3.15 +
3.16 +These are generic installation instructions.
3.17 +
3.18 + The `configure' shell script attempts to guess correct values for
3.19 +various system-dependent variables used during compilation. It uses
3.20 +those values to create a `Makefile' in each directory of the package.
3.21 +It may also create one or more `.h' files containing system-dependent
3.22 +definitions. Finally, it creates a shell script `config.status' that
3.23 +you can run in the future to recreate the current configuration, and a
3.24 +file `config.log' containing compiler output (useful mainly for
3.25 +debugging `configure').
3.26 +
3.27 + It can also use an optional file (typically called `config.cache'
3.28 +and enabled with `--cache-file=config.cache' or simply `-C') that saves
3.29 +the results of its tests to speed up reconfiguring. (Caching is
3.30 +disabled by default to prevent problems with accidental use of stale
3.31 +cache files.)
3.32 +
3.33 + If you need to do unusual things to compile the package, please try
3.34 +to figure out how `configure' could check whether to do them, and mail
3.35 +diffs or instructions to the address given in the `README' so they can
3.36 +be considered for the next release. If you are using the cache, and at
3.37 +some point `config.cache' contains results you don't want to keep, you
3.38 +may remove or edit it.
3.39 +
3.40 + The file `configure.ac' (or `configure.in') is used to create
3.41 +`configure' by a program called `autoconf'. You only need
3.42 +`configure.ac' if you want to change it or regenerate `configure' using
3.43 +a newer version of `autoconf'.
3.44 +
3.45 +The simplest way to compile this package is:
3.46 +
3.47 + 1. `cd' to the directory containing the package's source code and type
3.48 + `./configure' to configure the package for your system. If you're
3.49 + using `csh' on an old version of System V, you might need to type
3.50 + `sh ./configure' instead to prevent `csh' from trying to execute
3.51 + `configure' itself.
3.52 +
3.53 + Running `configure' takes awhile. While running, it prints some
3.54 + messages telling which features it is checking for.
3.55 +
3.56 + 2. Type `make' to compile the package.
3.57 +
3.58 + 3. Optionally, type `make check' to run any self-tests that come with
3.59 + the package.
3.60 +
3.61 + 4. Type `make install' to install the programs and any data files and
3.62 + documentation.
3.63 +
3.64 + 5. You can remove the program binaries and object files from the
3.65 + source code directory by typing `make clean'. To also remove the
3.66 + files that `configure' created (so you can compile the package for
3.67 + a different kind of computer), type `make distclean'. There is
3.68 + also a `make maintainer-clean' target, but that is intended mainly
3.69 + for the package's developers. If you use it, you may have to get
3.70 + all sorts of other programs in order to regenerate files that came
3.71 + with the distribution.
3.72 +
3.73 +Compilers and Options
3.74 +=====================
3.75 +
3.76 +Some systems require unusual options for compilation or linking that the
3.77 +`configure' script does not know about. Run `./configure --help' for
3.78 +details on some of the pertinent environment variables.
3.79 +
3.80 + You can give `configure' initial values for configuration parameters
3.81 +by setting variables in the command line or in the environment. Here
3.82 +is an example:
3.83 +
3.84 + ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
3.85 +
3.86 + *Note Defining Variables::, for more details.
3.87 +
3.88 +Compiling For Multiple Architectures
3.89 +====================================
3.90 +
3.91 +You can compile the package for more than one kind of computer at the
3.92 +same time, by placing the object files for each architecture in their
3.93 +own directory. To do this, you must use a version of `make' that
3.94 +supports the `VPATH' variable, such as GNU `make'. `cd' to the
3.95 +directory where you want the object files and executables to go and run
3.96 +the `configure' script. `configure' automatically checks for the
3.97 +source code in the directory that `configure' is in and in `..'.
3.98 +
3.99 + If you have to use a `make' that does not support the `VPATH'
3.100 +variable, you have to compile the package for one architecture at a
3.101 +time in the source code directory. After you have installed the
3.102 +package for one architecture, use `make distclean' before reconfiguring
3.103 +for another architecture.
3.104 +
3.105 +Installation Names
3.106 +==================
3.107 +
3.108 +By default, `make install' installs the package's commands under
3.109 +`/usr/local/bin', include files under `/usr/local/include', etc. You
3.110 +can specify an installation prefix other than `/usr/local' by giving
3.111 +`configure' the option `--prefix=PREFIX'.
3.112 +
3.113 + You can specify separate installation prefixes for
3.114 +architecture-specific files and architecture-independent files. If you
3.115 +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
3.116 +PREFIX as the prefix for installing programs and libraries.
3.117 +Documentation and other data files still use the regular prefix.
3.118 +
3.119 + In addition, if you use an unusual directory layout you can give
3.120 +options like `--bindir=DIR' to specify different values for particular
3.121 +kinds of files. Run `configure --help' for a list of the directories
3.122 +you can set and what kinds of files go in them.
3.123 +
3.124 + If the package supports it, you can cause programs to be installed
3.125 +with an extra prefix or suffix on their names by giving `configure' the
3.126 +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
3.127 +
3.128 +Optional Features
3.129 +=================
3.130 +
3.131 +Some packages pay attention to `--enable-FEATURE' options to
3.132 +`configure', where FEATURE indicates an optional part of the package.
3.133 +They may also pay attention to `--with-PACKAGE' options, where PACKAGE
3.134 +is something like `gnu-as' or `x' (for the X Window System). The
3.135 +`README' should mention any `--enable-' and `--with-' options that the
3.136 +package recognizes.
3.137 +
3.138 + For packages that use the X Window System, `configure' can usually
3.139 +find the X include and library files automatically, but if it doesn't,
3.140 +you can use the `configure' options `--x-includes=DIR' and
3.141 +`--x-libraries=DIR' to specify their locations.
3.142 +
3.143 +Specifying the System Type
3.144 +==========================
3.145 +
3.146 +There may be some features `configure' cannot figure out automatically,
3.147 +but needs to determine by the type of machine the package will run on.
3.148 +Usually, assuming the package is built to be run on the _same_
3.149 +architectures, `configure' can figure that out, but if it prints a
3.150 +message saying it cannot guess the machine type, give it the
3.151 +`--build=TYPE' option. TYPE can either be a short name for the system
3.152 +type, such as `sun4', or a canonical name which has the form:
3.153 +
3.154 + CPU-COMPANY-SYSTEM
3.155 +
3.156 +where SYSTEM can have one of these forms:
3.157 +
3.158 + OS KERNEL-OS
3.159 +
3.160 + See the file `config.sub' for the possible values of each field. If
3.161 +`config.sub' isn't included in this package, then this package doesn't
3.162 +need to know the machine type.
3.163 +
3.164 + If you are _building_ compiler tools for cross-compiling, you should
3.165 +use the option `--target=TYPE' to select the type of system they will
3.166 +produce code for.
3.167 +
3.168 + If you want to _use_ a cross compiler, that generates code for a
3.169 +platform different from the build platform, you should specify the
3.170 +"host" platform (i.e., that on which the generated programs will
3.171 +eventually be run) with `--host=TYPE'.
3.172 +
3.173 +Sharing Defaults
3.174 +================
3.175 +
3.176 +If you want to set default values for `configure' scripts to share, you
3.177 +can create a site shell script called `config.site' that gives default
3.178 +values for variables like `CC', `cache_file', and `prefix'.
3.179 +`configure' looks for `PREFIX/share/config.site' if it exists, then
3.180 +`PREFIX/etc/config.site' if it exists. Or, you can set the
3.181 +`CONFIG_SITE' environment variable to the location of the site script.
3.182 +A warning: not all `configure' scripts look for a site script.
3.183 +
3.184 +Defining Variables
3.185 +==================
3.186 +
3.187 +Variables not defined in a site shell script can be set in the
3.188 +environment passed to `configure'. However, some packages may run
3.189 +configure again during the build, and the customized values of these
3.190 +variables may be lost. In order to avoid this problem, you should set
3.191 +them in the `configure' command line, using `VAR=value'. For example:
3.192 +
3.193 + ./configure CC=/usr/local2/bin/gcc
3.194 +
3.195 +causes the specified `gcc' to be used as the C compiler (unless it is
3.196 +overridden in the site shell script). Here is a another example:
3.197 +
3.198 + /bin/bash ./configure CONFIG_SHELL=/bin/bash
3.199 +
3.200 +Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
3.201 +configuration-related scripts to be executed by `/bin/bash'.
3.202 +
3.203 +`configure' Invocation
3.204 +======================
3.205 +
3.206 +`configure' recognizes the following options to control how it operates.
3.207 +
3.208 +`--help'
3.209 +`-h'
3.210 + Print a summary of the options to `configure', and exit.
3.211 +
3.212 +`--version'
3.213 +`-V'
3.214 + Print the version of Autoconf used to generate the `configure'
3.215 + script, and exit.
3.216 +
3.217 +`--cache-file=FILE'
3.218 + Enable the cache: use and save the results of the tests in FILE,
3.219 + traditionally `config.cache'. FILE defaults to `/dev/null' to
3.220 + disable caching.
3.221 +
3.222 +`--config-cache'
3.223 +`-C'
3.224 + Alias for `--cache-file=config.cache'.
3.225 +
3.226 +`--quiet'
3.227 +`--silent'
3.228 +`-q'
3.229 + Do not print messages saying which checks are being made. To
3.230 + suppress all normal output, redirect it to `/dev/null' (any error
3.231 + messages will still be shown).
3.232 +
3.233 +`--srcdir=DIR'
3.234 + Look for the package's source code in directory DIR. Usually
3.235 + `configure' can determine that directory automatically.
3.236 +
3.237 +`configure' also accepts some other, not widely useful, options. Run
3.238 +`configure --help' for more details.
3.239 +
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/maemo-ui/Makefile.am Thu Sep 28 16:05:17 2006 +0100
4.3 @@ -0,0 +1,10 @@
4.4 +SUBDIRS= src pixmaps
4.5 +
4.6 +include aminclude.am
4.7 +
4.8 +EXTRA_DIST = \
4.9 + autogen.sh \
4.10 + AUTHORS \
4.11 + COPYING \
4.12 + README
4.13 +
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/maemo-ui/autogen.sh Thu Sep 28 16:05:17 2006 +0100
5.3 @@ -0,0 +1,99 @@
5.4 +#!/bin/sh
5.5 +# Run this to generate all the initial makefiles, etc.
5.6 +
5.7 +DIE=0
5.8 +package=gmyth
5.9 +srcfile=configure.ac
5.10 +
5.11 +# a quick cvs co if necessary to alleviate the pain - may remove this
5.12 +# when developers get a clue ;)
5.13 +if test ! -d common;
5.14 +then
5.15 + echo "+ getting common/ from svn"
5.16 + svn co common
5.17 +fi
5.18 +
5.19 +# source helper functions
5.20 +if test ! -f common/autogen-helper.sh;
5.21 +then
5.22 + echo There is something wrong with your source tree.
5.23 + echo You are missing common/autogen-helper.sh
5.24 + exit 1
5.25 +fi
5.26 +. common/autogen-helper.sh
5.27 +
5.28 +CONFIGURE_DEF_OPT='--enable-maintainer-mode'
5.29 +
5.30 +autogen_options
5.31 +
5.32 +echo -n "+ check for build tools"
5.33 +if test ! -z "$NOCHECK"; then echo " skipped"; else echo; fi
5.34 +version_check "autoconf" "$AUTOCONF autoconf autoconf-2.54 autoconf-2.53" \
5.35 + "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 53 || DIE=1
5.36 +version_check "automake" "$AUTOMAKE automake automake-1.9 automake-1.8 automake-1.7 automake-1.6" \
5.37 + "ftp://ftp.gnu.org/pub/gnu/automake/" 1 6 || DIE=1
5.38 +version_check "libtoolize" "$LIBTOOLIZE libtoolize" \
5.39 + "ftp://ftp.gnu.org/pub/gnu/libtool/" 1 5 0 || DIE=1
5.40 +version_check "pkg-config" "" \
5.41 + "http://www.freedesktop.org/software/pkgconfig" 0 8 0 || DIE=1
5.42 +
5.43 +die_check $DIE
5.44 +
5.45 +aclocal_check || DIE=1
5.46 +autoheader_check || DIE=1
5.47 +
5.48 +die_check $DIE
5.49 +
5.50 +# if no arguments specified then this will be printed
5.51 +if test -z "$*"; then
5.52 + echo "+ checking for autogen.sh options"
5.53 + echo " This autogen script will automatically run ./configure as:"
5.54 + echo " ./configure $CONFIGURE_DEF_OPT"
5.55 + echo " To pass any additional options, please specify them on the $0"
5.56 + echo " command line."
5.57 +fi
5.58 +
5.59 +toplevel_check $srcfile
5.60 +
5.61 +tool_run "$aclocal" "-I m4 $ACLOCAL_FLAGS"
5.62 +tool_run "$libtoolize" "--copy --force"
5.63 +tool_run "$autoheader"
5.64 +
5.65 +# touch the stamp-h.in build stamp so we don't re-run autoheader in maintainer mode -- wingo
5.66 +echo timestamp > stamp-h.in 2> /dev/null
5.67 +
5.68 +tool_run "$autoconf"
5.69 +tool_run "$automake" "-a -c"
5.70 +
5.71 +# if enable exists, add an -enable option for each of the lines in that file
5.72 +if test -f enable; then
5.73 + for a in `cat enable`; do
5.74 + CONFIGURE_FILE_OPT="--enable-$a"
5.75 + done
5.76 +fi
5.77 +
5.78 +# if disable exists, add an -disable option for each of the lines in that file
5.79 +if test -f disable; then
5.80 + for a in `cat disable`; do
5.81 + CONFIGURE_FILE_OPT="$CONFIGURE_FILE_OPT --disable-$a"
5.82 + done
5.83 +fi
5.84 +
5.85 +test -n "$NOCONFIGURE" && {
5.86 + echo "+ skipping configure stage for package $package, as requested."
5.87 + echo "+ autogen.sh done."
5.88 + exit 0
5.89 +}
5.90 +
5.91 +echo "+ running configure ... "
5.92 +test ! -z "$CONFIGURE_DEF_OPT" && echo " ./configure default flags: $CONFIGURE_DEF_OPT"
5.93 +test ! -z "$CONFIGURE_EXT_OPT" && echo " ./configure external flags: $CONFIGURE_EXT_OPT"
5.94 +test ! -z "$CONFIGURE_FILE_OPT" && echo " ./configure enable/disable flags: $CONFIGURE_FILE_OPT"
5.95 +echo
5.96 +
5.97 +./configure $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT $CONFIGURE_FILE_OPT || {
5.98 + echo " configure failed"
5.99 + exit 1
5.100 +}
5.101 +
5.102 +echo "Now type 'make' to compile $package."
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/maemo-ui/configure.ac Thu Sep 28 16:05:17 2006 +0100
6.3 @@ -0,0 +1,234 @@
6.4 +# -*- Autoconf -*-
6.5 +# Process this file with autoconf to produce a configure script.
6.6 +
6.7 +AC_PREREQ(2.50)
6.8 +
6.9 +AC_INIT([gmyth],[0.1])
6.10 +
6.11 +dnl AC_CONFIG_SRCDIR([src/mmyth_main.c])
6.12 +AC_CONFIG_HEADER(config.h)
6.13 +
6.14 +dnl when going to/from release please set the nano (fourth number) right !
6.15 +dnl releases only do Wall, SVN and prerelease does Werror too
6.16 +AS_VERSION(gmyth, GMYTH, 0, 1, 0, 3, GMYTH_SVN="no", GMYTH_SVN="yes")
6.17 +
6.18 +GMYTH_MAJORMINOR=$GMYTH_MAJOR_VERSION.$GMYTH_MINOR_VERSION
6.19 +
6.20 +AC_SUBST(GMYTH_MAJORMINOR)
6.21 +
6.22 +dnl AM_MAINTAINER_MODE provides the option to enable maintainer mode
6.23 +AM_MAINTAINER_MODE
6.24 +dnl make aclocal work in maintainer mode
6.25 +AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
6.26 +
6.27 +# Checks for programs.
6.28 +# check for tools
6.29 +# Make sure CFLAGS is defined to stop AC_PROC_CC adding -g
6.30 +CFLAGS="$CFLAGS -Wall"
6.31 +AC_PROG_CC
6.32 +AC_PROG_LIBTOOL
6.33 +
6.34 +dnl Generate doxygen documentation
6.35 +DX_HTML_FEATURE(ON)
6.36 +DX_CHM_FEATURE(OFF)
6.37 +DX_CHI_FEATURE(OFF)
6.38 +DX_MAN_FEATURE(OFF)
6.39 +DX_RTF_FEATURE(OFF)
6.40 +DX_XML_FEATURE(OFF)
6.41 +DX_PDF_FEATURE(OFF)
6.42 +DX_PS_FEATURE(OFF)
6.43 +DX_INIT_DOXYGEN(gmyth, doxygen.cfg, docs)
6.44 +
6.45 +
6.46 +# Checks for libraries.
6.47 +
6.48 +# Checks for header files.
6.49 +AC_HEADER_STDC
6.50 +AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h])
6.51 +
6.52 +# Checks for typedefs, structures, and compiler characteristics.
6.53 +AC_C_CONST
6.54 +AC_TYPE_PID_T
6.55 +AC_STRUCT_TM
6.56 +
6.57 +# Checks for library functions.
6.58 +AC_FUNC_FORK
6.59 +AC_PROG_GCC_TRADITIONAL
6.60 +AC_FUNC_MALLOC
6.61 +AC_FUNC_MKTIME
6.62 +AC_FUNC_VPRINTF
6.63 +AC_CHECK_FUNCS([memset socket stime strstr strtoul])
6.64 +
6.65 +AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
6.66 +
6.67 +# Checks required packages
6.68 +
6.69 +dnl Test if --disable-debug given
6.70 +AC_ARG_ENABLE(debug,
6.71 + [AC_HELP_STRING([--disable-debug], [disable debugging mode])],
6.72 + enable_debug="$enableval",
6.73 + enable_debug=yes)
6.74 +
6.75 +if test "x$enable_debug" = "xyes" ; then
6.76 + CFLAGS="$CFLAGS -g"
6.77 +else
6.78 + AC_DEFINE( NDEBUG, 1, [disable debug messages] )
6.79 + CFLAGS="$CFLAGS -O2 -DG_DISABLE_CHECKS -DNDEBUG"
6.80 +fi
6.81 +
6.82 +AM_CONDITIONAL( NDEBUG, test "x$enable_debug" = "xyes" )
6.83 +
6.84 +# Check for pkgconfig
6.85 +AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
6.86 +# Give error and exit if we don't have pkgconfig
6.87 +if test "x$HAVE_PKGCONFIG" = "xno"; then
6.88 + AC_MSG_ERROR(you need to have pkgconfig installed !)
6.89 +fi
6.90 +
6.91 +# Check for Glib2.0
6.92 +PKG_CHECK_MODULES(GLIB, glib-2.0, HAVE_GLIB=yes,HAVE_GLIB=no)
6.93 +
6.94 +# Give error and exit if we don't have glib
6.95 +if test "x$HAVE_GLIB" = "xno"; then
6.96 + AC_MSG_ERROR(you need glib-2.0 installed)
6.97 +fi
6.98 +
6.99 +# make GLIB_CFLAGS and GLIB_LIBS available
6.100 +AC_SUBST(GLIB_CFLAGS)
6.101 +AC_SUBST(GLIB_LIBS)
6.102 +
6.103 +# Check for GObject2.0
6.104 +PKG_CHECK_MODULES(GOBJECT,
6.105 + gobject-2.0,
6.106 + HAVE_GOBJECT=yes, HAVE_GOBJECT=no)
6.107 +
6.108 +# Give error and exit if we don't have gobject
6.109 +if test "x$HAVE_GOBJECT" = "xno"; then
6.110 + AC_MSG_ERROR(you need gobject-2.0 installed)
6.111 +fi
6.112 +
6.113 +# make GOBJECT_CFLAGS and GOBJECT_LIBS available
6.114 +AC_SUBST(GOBJECT_CFLAGS)
6.115 +AC_SUBST(GOBJECT_LIBS)
6.116 +
6.117 +# Check for GTK+-2.0
6.118 +PKG_CHECK_MODULES(GTK, gtk+-2.0, HAVE_GTK=yes,HAVE_GTK=no)
6.119 +
6.120 +# Give error and exit if we don't have gtk
6.121 +if test "x$HAVE_GTK" = "xyes"; then
6.122 + AC_DEFINE(WITH_GTK, 1, [build with GTK+ related stuff])
6.123 + dnl AC_MSG_ERROR(you need gtk+-2.0 installed)
6.124 +else
6.125 + AC_MSG_RESULT(no)
6.126 +fi
6.127 +
6.128 +AM_CONDITIONAL(WITH_GTK, test "x$HAVE_GTK" = "xyes" )
6.129 +
6.130 +# make GTK_CFLAGS and GTK_LIBS available
6.131 +AC_SUBST(GTK_CFLAGS)
6.132 +AC_SUBST(GTK_LIBS)
6.133 +
6.134 +dnl ========== Check for Hildon Libraries
6.135 +PKG_CHECK_MODULES(HILDON,
6.136 + hildon-lgpl libosso hildon-status-bar-lib libhildonmenu hildon-base-lib hildon-control-panel hildon-libs,
6.137 + HAVE_HILDON=yes, HAVE_HILDON=no)
6.138 +
6.139 +if test "x$HAVE_HILDON" = "xyes"; then
6.140 + AC_DEFINE(MAEMO_PLATFORM, 1, [build with hildon libs])
6.141 + HILDON_CFLAGS="$HILDON_CFLAGS -DMAEMO_PLATFORM=1"
6.142 +else
6.143 + AC_MSG_RESULT(no)
6.144 +fi
6.145 +
6.146 +AM_CONDITIONAL(MAEMO_PLATFORM, test "x$HAVE_HILDON" = "xyes")
6.147 +
6.148 +dnl make HILDON_CFLAGS and HILDON_LIBS available
6.149 +AC_SUBST(HILDON_CFLAGS)
6.150 +AC_SUBST(HILDON_LIBS)
6.151 +
6.152 +# Check for libxml-2.0
6.153 +PKG_CHECK_MODULES(LIBXML, libxml-2.0, HAVE_LIBXML=yes,HAVE_LIBXML=no)
6.154 +
6.155 +# Give error and exit if we don't have libxml
6.156 +if test "x$HAVE_LIBXML" = "xno"; then
6.157 + AC_MSG_ERROR(you need libxml-2.0 installed)
6.158 +fi
6.159 +
6.160 +# make LIBXML_CFLAGS and LIBXML_LIBS available
6.161 +AC_SUBST(LIBXML_CFLAGS)
6.162 +AC_SUBST(LIBXML_LIBS)
6.163 +
6.164 +
6.165 +# check for gstreamer development files
6.166 +GST_REQUIRED=0.10
6.167 +GST_MAJORMINOR=0.10
6.168 +PKG_CHECK_MODULES(GST, \
6.169 + gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED,
6.170 + HAVE_GST=yes, HAVE_GST=no)
6.171 +
6.172 +# Give error and exit if we don't have gstreamer
6.173 +if test "x$HAVE_GST" = "xno"; then
6.174 + AC_MSG_ERROR(you need gstreamer development packages installed !)
6.175 +fi
6.176 +
6.177 +# make GST_CFLAGS and GST_LIBS available
6.178 +AC_SUBST(GST_CFLAGS)
6.179 +AC_SUBST(GST_LIBS)
6.180 +
6.181 +# check for gstreamer-base plugins (xoverlay interface)
6.182 +GSTBASE_REQUIRED=0.10
6.183 +GSTBASE_MAJORMINOR=0.10
6.184 +PKG_CHECK_MODULES(GSTBASE, \
6.185 + gstreamer-base-$GSTBASE_MAJORMINOR >= $GSTBASE_REQUIRED,
6.186 + HAVE_GSTBASE=yes, HAVE_GSTBASE=no)
6.187 +
6.188 +# Give error and exit if we don't have gstreamer base libraries
6.189 +if test "x$HAVE_GSTBASE" = "xno"; then
6.190 + AC_MSG_ERROR(you need gstreamer base development packages installed !)
6.191 +fi
6.192 +
6.193 +# make GSTBASE_CFLAGS and GSTBASE_LIBS available
6.194 +AC_SUBST(GSTBASE_CFLAGS)
6.195 +AC_SUBST(GSTBASE_LIBS)
6.196 +
6.197 +
6.198 +# make GST_MAJORMINOR available in Makefile.am
6.199 +AC_SUBST(GST_MAJORMINOR)
6.200 +
6.201 +#
6.202 +# mysql libraries
6.203 +#
6.204 +AC_CHECK_PROG(MYSQL_CFLAGS,mysql_config,`mysql_config --cflags`)
6.205 +if test -z "$MYSQL_CFLAGS"; then
6.206 + AC_MSG_ERROR([Could not find mysql_config script. Make sure the mysql client libraries are installed])
6.207 +fi
6.208 +AC_SUBST(MYSQL_CFLAGS)
6.209 +
6.210 +
6.211 +AC_CHECK_PROG(MYSQL_LIBS,mysql_config,`mysql_config --libs`)
6.212 +if test -z "$MYSQL_LIBS"; then
6.213 + AC_MSG_ERROR([Could not find mysql_config script. Make sure the mysql client libraries are installed])
6.214 +fi
6.215 +AC_SUBST(MYSQL_LIBS)
6.216 +
6.217 +## Check for gmyth-0.1
6.218 +
6.219 +PKG_CHECK_MODULES(LIBGMYTH, gmyth-0.1, HAVE_LIBGMYTH=yes,HAVE_LIBGMYTH=no)
6.220 +
6.221 +# Give error and exit if we don't have gmyth-0.1
6.222 +if test "x$HAVE_LIBGMYTH" = "xno"; then
6.223 + AC_MSG_ERROR(you need gmyth-0.1 installed)
6.224 +fi
6.225 +
6.226 +# make LIBXML_CFLAGS and LIBXML_LIBS available
6.227 +AC_SUBST(LIBGMYTH_CFLAGS)
6.228 +AC_SUBST(LIBGMYTH_LIBS)
6.229 +
6.230 +#dnl Enable gtk-doc
6.231 +#GTK_DOC_CHECK(1.4)
6.232 +
6.233 +
6.234 +AC_CONFIG_FILES([Makefile
6.235 + src/Makefile
6.236 + pixmaps/Makefile])
6.237 +AC_OUTPUT