~ubuntu-branches/ubuntu/quantal/linphone/quantal

« back to all changes in this revision

Viewing changes to mediastreamer2/configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Elie Mamane, Kilian Krause, Lionel Elie Mamane
  • Date: 2009-05-27 11:39:51 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090527113951-jd525e5rlwluh617
[ Kilian Krause ]
* Remove -N from wget args in get-orig-source target as -O is already
  used.

[ Lionel Elie Mamane ]
* linphone: Fix file conflict with linphone-common (<= 3.1.2-1)
  (Closes: #528076)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl Process this file with autoconf to produce a configure script.
2
 
AC_INIT([mediastreamer],[2.2.2])
 
2
AC_INIT([mediastreamer],[2.2.4])
3
3
 
4
4
AC_MSG_NOTICE([$PACKAGE_NAME-$PACKAGE_VERSION           A mediastreaming library for telephony application.])
5
5
AC_MSG_NOTICE([licensed under the terms of the General Public License (GPL)])
44
44
AC_ARG_ENABLE(strict,
45
45
[  --enable-strict       Enable error on compilation warning [default=no]],
46
46
[wall_werror=$enableval],
47
 
[wall_werror=no]
 
47
[
 
48
        if test "$USER" = "smorlat" ; then
 
49
                wall_werror=yes
 
50
        else
 
51
                wall_werror=no
 
52
        fi
 
53
]
48
54
)
49
55
 
50
56
CFLAGS="-DORTP_INET6 $CFLAGS "
132
138
 
133
139
AM_CONDITIONAL(BUILD_MACOSX, test x$macosx_found = xyes)
134
140
 
 
141
dnl initialize pkg-config so that we can use it within if else fi statements.
 
142
PKG_PROG_PKG_CONFIG()
 
143
 
135
144
AC_SUBST(MSPLUGINS_CFLAGS)
136
145
AC_SUBST(MSPLUGINS_LIBS)
137
146
 
143
152
 
144
153
found_sound=no
145
154
 
 
155
AC_ARG_ENABLE(oss,
 
156
      [  --enable-oss    Disable oss support],
 
157
      [case "${enableval}" in
 
158
        yes) oss=true ;;
 
159
        no)  oss=false ;;
 
160
        *) AC_MSG_ERROR(bad value ${enableval} for --disable-oss) ;;
 
161
      esac],[oss=true])
 
162
 
 
163
if "$oss" = "true"; then
146
164
AC_CHECK_HEADERS(soundcard.h sys/soundcard.h machine/soundcard.h sys/audio.h)
147
165
if test "${ac_cv_header_sys_soundcard_h}" = "yes" || \
148
166
        test "${ac_cv_header_soundcard_h}" = "yes" || \
150
168
        test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
151
169
        found_sound=yes
152
170
fi
 
171
fi
153
172
 
154
173
AM_CONDITIONAL(BUILD_OSS, test x$found_sound = xyes)
155
174
 
179
198
 
180
199
 
181
200
AC_ARG_ENABLE(artsc,
182
 
      [  --enable-artsc    Turn on artsc (kde) sound input/output (auto) ],
 
201
      [  --enable-artsc    Turn on artsc (kde<4) sound input/output (no) ],
183
202
      [case "${enableval}" in
184
203
        yes) artsc=true ;;
185
204
        no)  artsc=false ;;
186
205
        *) AC_MSG_ERROR(bad value ${enableval} for --enable-artsc) ;;
187
 
      esac],[artsc=true])
 
206
      esac],[artsc=no])
188
207
 
189
208
arts_enabled=false
190
209
 
271
290
 
272
291
AM_CONDITIONAL(BUILD_MACAQSND, test x$macaqsnd_enabled = xtrue)
273
292
 
 
293
AC_ARG_ENABLE(jack,
 
294
      [  --disable-jack    Disable jack support],
 
295
      [case "${enableval}" in
 
296
        yes) jack=true ;;
 
297
        no)  jack=false ;;
 
298
        *) AC_MSG_ERROR(bad value ${enableval} for --disable-jack) ;;
 
299
      esac],[jack=true])
 
300
 
 
301
if test x$jack = xtrue; then
 
302
 
274
303
dnl Check for samplerate libraries
275
304
dnl Check for jack libraries (sound output plugin)
276
305
PKG_CHECK_MODULES(JACK,jack >= 0.15.0, 
297
326
AC_SUBST(JACK_CFLAGS)
298
327
AC_SUBST(JACK_LIBS) 
299
328
 
 
329
fi
 
330
 
300
331
if test "$found_sound" = "no"; then
301
332
        AC_MSG_ERROR([Could not find a support sound driver API])
302
333
fi
306
337
dnl     check for various codecs libraries
307
338
dnl     *************************************
308
339
 
 
340
AC_ARG_ENABLE(speex,
 
341
      [  --disable-speex    Disable speex support],
 
342
      [case "${enableval}" in
 
343
        yes) speex=true ;;
 
344
        no)  speex=false ;;
 
345
        *) AC_MSG_ERROR(bad value ${enableval} for --disable-speex) ;;
 
346
      esac],[speex=true])
 
347
 
 
348
if test x$speex = xtrue; then
 
349
 
309
350
dnl check for installed version of speex
310
 
PKG_CHECK_MODULES(SPEEX, speex >= 1.1.12,
 
351
PKG_CHECK_MODULES(SPEEX, speex >= 1.2beta3,
311
352
        [ AC_DEFINE(HAVE_SPEEX_NOISE,1,[tells whether the noise arg of speex_echo_cancel can be used]) ],
312
353
        [try_other_speex=yes]
313
354
)
314
 
PKG_CHECK_MODULES(SPEEX, speex >= 1.1.6, build_speex=yes)
 
355
PKG_CHECK_MODULES(SPEEX, speex >= 1.2beta3, build_speex=yes)
 
356
build_resample=false
315
357
PKG_CHECK_MODULES(SPEEXDSP, speexdsp >= 1.2beta3,
316
 
    [SPEEX_LIBS="$SPEEX_LIBS $SPEEXDSP_LIBS"], [
317
 
        AC_MSG_NOTICE([No speexdsp library found.])
 
358
    [SPEEX_LIBS="$SPEEX_LIBS $SPEEXDSP_LIBS"
 
359
    AC_DEFINE(HAVE_SPEEXDSP,1,[have speexdsp library])
 
360
    build_resample=yes] ,
 
361
    [AC_MSG_NOTICE([No speexdsp library found.])
318
362
]
319
363
)
320
364
AC_SUBST(SPEEX_CFLAGS)
321
365
AC_SUBST(SPEEX_LIBS)
 
366
 
 
367
fi
 
368
 
322
369
AM_CONDITIONAL(BUILD_SPEEX, test x$build_speex = xyes )
 
370
AM_CONDITIONAL(BUILD_RESAMPLE, test x$build_resample = xyes )
 
371
 
 
372
AC_ARG_ENABLE(gsm,
 
373
      [  --disable-gsm    Disable gsm support],
 
374
      [case "${enableval}" in
 
375
        yes) gsm=true ;;
 
376
        no)  gsm=false ;;
 
377
        *) AC_MSG_ERROR(bad value ${enableval} for --disable-gsm) ;;
 
378
      esac],[gsm=true])
 
379
 
 
380
if test x$gsm = xtrue; then
323
381
 
324
382
dnl check for gsm
325
383
build_gsm=no
337
395
else
338
396
        build_gsm=no
339
397
fi
 
398
 
 
399
fi
 
400
 
340
401
AM_CONDITIONAL(BUILD_GSM, test x$build_gsm = xyes )
341
402
 
342
 
build_resample=false
343
 
AC_CHECK_LIB(resample,resample_open,[LIBS="$LIBS -lresample"; build_resample=yes])
344
 
AM_CONDITIONAL(BUILD_RESAMPLE, test x$build_resample = xyes )
345
 
 
346
403
MS_CHECK_VIDEO
347
404
AM_CONDITIONAL(BUILD_VIDEO, test "$video" = "true")
348
405
AM_CONDITIONAL(BUILD_THEORA, test "$have_theora" = "yes")
390
447
dnl check various things
391
448
AC_FUNC_ALLOCA
392
449
 
 
450
if test "x${prefix}" = "xNONE"; then
 
451
        prefix=${ac_default_prefix}
 
452
fi
 
453
 
393
454
dnl define path of plugins:
394
 
PACKAGE_PLUGINS_DIR=`eval echo $prefix/lib/mediastreamer/plugins`
395
 
AC_DEFINE_UNQUOTED(PACKAGE_PLUGINS_DIR,  "$PACKAGE_PLUGINS_DIR" ,[path of plugins])
 
455
AC_DEFINE_UNQUOTED(PACKAGE_PLUGINS_DIR, "${prefix}/lib/mediastreamer/plugins" ,[path of plugins])
 
456
PACKAGE_PLUGINS_DIR="${prefix}/lib/mediastreamer/plugins"
396
457
AC_SUBST(PACKAGE_PLUGINS_DIR)
397
458
 
398
 
PACKAGE_DATA_DIR=`eval echo $prefix/share`
399
 
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR,  "$PACKAGE_DATA_DIR" ,[path of data])
 
459
PACKAGE_DATA_DIR="$prefix/share"
 
460
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR,  "$prefix/share" ,[path of data])
400
461
AC_SUBST(PACKAGE_DATA_DIR)
401
462
 
402
463
dnl check for video4linux headers
403
464
AC_CHECK_HEADERS(linux/videodev.h linux/videodev2.h)
404
465
 
 
466
dnl ##################################################
 
467
dnl # Check for doxygen
 
468
dnl ##################################################
 
469
 
 
470
AC_PATH_PROG(DOXYGEN,doxygen,false)
 
471
AM_CONDITIONAL(HAVE_DOXYGEN, test $DOXYGEN != false)
 
472
 
405
473
 
406
474
dnl ##################################################
407
475
dnl # Check for ESP Packager
477
545
mediastreamer.pc
478
546
mediastreamer2.spec
479
547
help/Makefile
480
 
help/DoxyFile
 
548
help/Doxyfile
481
549
help/doxygen.dox
482
550
)