strip whitspaces from song titles
[gst-pulse.git] / configure.ac
blobf6bd3c36783e96bd6d5e8b37f5946524b5d11afb
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 # $Id$
6 # This file is part of gst-pulse.
8 # gst-pulse is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU Lesser General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # gst-pulse is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU Lesser General Public License
19 # along with gst-pulse; if not, write to the Free Software Foundation,
20 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
22 AC_PREREQ(2.57)
23 AC_INIT([gst-pulse],[0.9.5],[mztfgchyfr (at) 0pointer (dot) de])
24 AC_CONFIG_SRCDIR([src/plugin.c])
25 AC_CONFIG_HEADERS([config.h])
26 AM_INIT_AUTOMAKE([foreign 1.9 -Wall])
28 AC_SUBST(PACKAGE_URL, [http://0pointer.de/lennart/projects/gst-pulse/])
30 if type -p stow > /dev/null && test -d /usr/local/stow ; then
31    AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])
32    ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
35 # Checks for programs.
36 AC_PROG_CC
37 AC_PROG_LN_S
38 AC_PROG_LIBTOOL
40 AC_CHECK_FUNCS([gethostname]) 
41 AC_CHECK_HEADERS([limits.h])
42 AC_C_CONST
43 AC_FUNC_MALLOC
44 AC_TYPE_SIZE_T
46 PKG_PROG_PKG_CONFIG
48 if test -d ../pulseaudio ; then
49    PULSE_CFLAGS='-I$(top_srcdir)/../pulseaudio/src'
50    PULSE_LIBS='-L$(top_srcdir)/../pulseaudio/src/.libs -lpulse'
51    echo "*** Found pulseaudio in ../pulseaudio, using that version ***"
52 else
53    PKG_CHECK_MODULES(PULSE, [ libpulse >= 0.9.2 ])
56 AC_SUBST(PULSE_LIBS)
57 AC_SUBST(PULSE_CFLAGS)
59 PKG_CHECK_MODULES(GST, [ gstreamer-0.10 >= 0.10 gstreamer-plugins-base-0.10 >= 0.10 ])
61 GST_MODDIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-0.10`
63 AC_SUBST(GST_LIBS)
64 AC_SUBST(GST_CFLAGS)
65 AC_SUBST(GST_MODDIR)
67 # If using GCC specifiy some additional parameters
68 if test "x$GCC" = "xyes" ; then
69    CFLAGS="$CFLAGS -pipe -Wall -W -Wno-unused-parameter"
72 # LYNX documentation generation
73 AC_ARG_ENABLE(lynx,
74         AS_HELP_STRING(--disable-lynx,Turn off lynx usage for documentation generation),
75 [case "${enableval}" in
76   yes) lynx=yes ;;
77   no)  lynx=no ;;
78   *) AC_MSG_ERROR(bad value ${enableval} for --disable-lynx) ;;
79 esac],[lynx=yes])
81 if test x$lynx = xyes ; then
82    AC_CHECK_PROG(have_lynx, lynx, yes, no)
84    if test x$have_lynx = xno ; then
85      AC_MSG_ERROR([*** Sorry, you have to install lynx or use --disable-lynx ***])
86    fi
89 AM_CONDITIONAL([USE_LYNX], [test "x$lynx" = xyes])
91 AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile doc/README.html])
92 AC_OUTPUT