~ubuntu-branches/ubuntu/hardy/alsa-plugins/hardy-proposed

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-06-12 19:03:08 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070612190308-yhyjw8t4wk7zhte0
Tags: 1.0.14-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/control:
    + Don't build-depend on JACK, as it's in universe.  Clarify and
      update the Description to note the above restriction and
      {in,ex}clusion of newer plugins (LP: #57089),
    + Adhere to DebianMaintainerField.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
AC_PREREQ(2.59)
2
2
AC_INIT(oss/pcm_oss.c)
3
 
AM_INIT_AUTOMAKE(alsa-plugins, 1.0.13)
 
3
AM_INIT_AUTOMAKE(alsa-plugins, 1.0.14)
4
4
AC_PREFIX_DEFAULT(/usr)
5
5
 
 
6
AC_CONFIG_HEADERS(config.h)
 
7
 
6
8
AC_PROG_CC
7
9
AC_PROG_INSTALL
8
10
AC_DISABLE_STATIC
22
24
PKG_CHECK_MODULES(samplerate, [samplerate], [HAVE_SAMPLERATE=yes], [HAVE_SAMPLERATE=no])
23
25
AM_CONDITIONAL(HAVE_SAMPLERATE, test x$HAVE_SAMPLERATE = xyes)
24
26
 
 
27
PKG_CHECK_MODULES(DBUS, [dbus-1], [HAVE_DBUS=yes], [HAVE_DBUS=no])
 
28
AM_CONDITIONAL(HAVE_DBUS, test x$HAVE_DBUS = xyes)
 
29
 
 
30
if test "$HAVE_DBUS" = "yes"; then
 
31
        AC_DEFINE(USE_RESOURCE_MANAGER, 1,"Use dbus server as a resouce manager")
 
32
fi
 
33
 
25
34
AC_ARG_WITH([avcodec-includedir],
26
 
        [--with-avcodec-includedir=dir    AVcodec include directory],
 
35
        AS_HELP_STRING([--with-avcodec-includedir=dir],
 
36
                [AVcodec include directory]),
27
37
        [AVCODEC_CFLAGS="-I$withval"], [AVCODEC_CFLAGS=""])
28
38
AC_ARG_WITH([avcodec-libdir],
29
 
        [--with-avcodec-libdir=dir        AVcodec library directory],
 
39
        AS_HELP_STRING([--with-avcodec-libdir=dir],
 
40
                [AVcodec library directory]),
30
41
        [AVCODEC_LIBS="-L$withval"], [AVCODEC_LIBS=""])
31
42
CFLAGS_saved="$CFLAGS"
32
43
LDFLAGS_saved="$LDFLAGS"
43
54
CFLAGS="$CFLAGS_saved"
44
55
LDFLAGS="$LDFLAGS_saved"
45
56
 
 
57
USE_LIBSPEEX=""
 
58
AC_ARG_WITH([speex],
 
59
        AS_HELP_STRING([--with-speex={builtin|lib|no}],
 
60
                [build speex resampler (built-in code, link with external lib, or no build)]),
 
61
        [PPH=$withval], [PPH="lib"])
 
62
 
 
63
if test "$PPH" = "lib"; then
 
64
        PKG_CHECK_MODULES(speex, [speex >= 1.2], [USE_LIBSPEEX="yes"], [USE_LIBSPEEX=""])
 
65
        if test "$USE_LIBSPEEX" = "yes"; then
 
66
                AC_CHECK_LIB([speex], [speex_resampler_init],
 
67
                        [USE_LIBSPEEX="yes"], [USE_LIBSPEEX=""])
 
68
        fi
 
69
        if test "$USE_LIBSPEEX" = "yes"; then
 
70
                AC_DEFINE(USE_LIBSPEEX, 1, "Link with libspeex for resampler")
 
71
        else
 
72
                echo "No libspeex with resampler unit; use built-in code"
 
73
                PPH="builtin"
 
74
        fi
 
75
fi
 
76
 
 
77
AM_CONDITIONAL(HAVE_PPH, test "$PPH" = "builtin" -o "$PPH" = "lib")
 
78
AM_CONDITIONAL(USE_LIBSPEEX, test "$PPH" = "lib")
 
79
 
 
80
dnl ALSA plugin directory
 
81
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
82
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
83
 
 
84
AC_ARG_WITH(plugindir,
 
85
    AS_HELP_STRING([--with-plugindir=dir],
 
86
        [path where ALSA plugin files are stored]),
 
87
    plugindir="$withval", plugindir="")
 
88
if test -z "$plugindir"; then
 
89
    eval dir="$libdir"
 
90
    case "$dir" in
 
91
    /*) ;;
 
92
    *) dir="$dir"
 
93
    esac
 
94
    plugindir="$dir/alsa-lib"
 
95
fi
 
96
AC_DEFINE_UNQUOTED(ALSA_PLUGIN_DIR, "$plugindir", [directory containing ALSA add-on modules])
 
97
ALSA_PLUGIN_DIR="$plugindir"
 
98
AC_SUBST(ALSA_PLUGIN_DIR)
 
99
 
46
100
SAVE_PLUGINS_VERSION
47
101
 
48
102
AC_OUTPUT([
49
103
        Makefile
50
104
        oss/Makefile
 
105
        pph/Makefile
51
106
        jack/Makefile
52
107
        pulse/Makefile
53
108
        mix/Makefile
54
109
        rate/Makefile
55
110
        a52/Makefile
 
111
        rate-lavc/Makefile
 
112
        maemo/Makefile
56
113
        doc/Makefile
57
114
])
 
115
 
 
116
dnl Show the build conditions
 
117
 
 
118
echo
 
119
echo "Plugin directory: $ALSA_PLUGIN_DIR"
 
120
echo "ALSA_CFLAGS: $ALSA_CFLAGS"
 
121
echo "ALSA_LIBS: $ALSA_LIBS"
 
122
echo "JACK plugin:        $HAVE_JACK"
 
123
if test "$HAVE_JACK" = "yes"; then
 
124
  echo "  JACK_CFLAGS: $JACK_CFLAGS"
 
125
  echo "  JACK_LIBS: $JACK_LIBS"
 
126
fi
 
127
echo "Pulseaudio plugin:  $HAVE_PULSE"
 
128
if test "$HAVE_PULSE" = "yes"; then
 
129
  echo "  pulseaudio_CFLAGS: $pulseaudio_CFLAGS"
 
130
  echo "  pulseaudio_LIBS: $pulseaudio_LIBS"
 
131
fi
 
132
echo "Samplerate plugin:  $HAVE_SAMPLERATE"
 
133
if test "$HAVE_SAMPLERATE" = "yes"; then
 
134
  echo "  samplerate_CFLAGS: $samplerate_CFLAGS"
 
135
  echo "  samplerate_LIBS: $samplerate_LIBS"
 
136
fi
 
137
echo "Maemo plugin:       $HAVE_DBUS"
 
138
if test "$HAVE_DBUS" = "yes"; then
 
139
  echo "  DBUS_CFLAGS: $DBUS_CFLAGS"
 
140
  echo "  DBUS_LIBS: $DBUS_LIBS"
 
141
fi
 
142
echo "A52, lavc plugins:  $HAVE_AVCODEC"
 
143
if test "$HAVE_AVCODEC" = "yes"; then
 
144
  echo "  AVCODEC_CFLAGS: $AVCODEC_CFLAGS"
 
145
  echo "  AVCODEC_LIBS: $AVCODEC_LIBS"
 
146
fi
 
147
echo "Speex rate plugin:  $PPH"
 
148
if test "$PPH" = "lib"; then
 
149
  echo "  speex_CFLAGS: $speex_CFLAGS"
 
150
  echo "  speex_LIBS: $speex_LIBS"
 
151
fi