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

« back to all changes in this revision

Viewing changes to speex/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-11-15 10:34:50 UTC
  • mfrom: (1.2.1 upstream) (2.1.8 feisty)
  • Revision ID: james.westby@ubuntu.com-20061115103450-qgafwcks2lkhctlj
* New upstream release.
* Enable video support.
* Fix mismatched #endif in mscommon.h, closes: #398307.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Process this file with autoconf to produce a configure script. -*-m4-*-
2
 
 
3
 
AC_INIT(libspeex/speex.h)
4
 
 
5
 
SPEEX_MAJOR_VERSION=1
6
 
SPEEX_MINOR_VERSION=1
7
 
SPEEX_MICRO_VERSION=4
8
 
SPEEX_VERSION=1.1.4
9
 
 
10
 
SPEEX_LT_CURRENT=2
11
 
SPEEX_LT_REVISION=0
12
 
SPEEX_LT_AGE=1
13
 
 
14
 
AC_SUBST(SPEEX_LT_CURRENT)
15
 
AC_SUBST(SPEEX_LT_REVISION)
16
 
AC_SUBST(SPEEX_LT_AGE)
17
 
 
18
 
# For automake.
19
 
VERSION=$SPEEX_VERSION
20
 
PACKAGE=speex
21
 
 
22
 
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
23
 
AM_MAINTAINER_MODE
24
 
 
25
 
AC_CANONICAL_HOST
26
 
AM_PROG_LIBTOOL
27
 
 
28
 
AC_C_BIGENDIAN
29
 
AC_C_CONST
30
 
AC_C_INLINE
31
 
 
32
 
AC_CHECK_HEADERS(sys/soundcard.h sys/audioio.h)
33
 
 
34
 
AC_ARG_ENABLE(ogg,
35
 
      [  --enable-ogg=[yes/no]    Turn on or off the use of ogg
36
 
libraries [default=yes]],
37
 
      [case "${enableval}" in
38
 
        yes) useogg=true ;;
39
 
        no)  useogg=false ;;
40
 
        *) AC_MSG_ERROR(bad value ${enableval} for --enable-ogg) ;;
41
 
      esac],[useogg=true])
42
 
 
43
 
if test x$useogg = xtrue; then
44
 
AC_PATH_LIBOGG
45
 
fi
46
 
 
47
 
if test "$have_libogg" = yes; then
48
 
   src=src
49
 
else
50
 
   src=
51
 
fi
52
 
AC_SUBST(src)
53
 
 
54
 
AC_CHECK_LIB(m, sin)
55
 
AC_CHECK_LIB(gnugetopt, getopt_long)
56
 
 
57
 
AC_DEFINE_UNQUOTED(VERSION, "${VERSION}")
58
 
 
59
 
AC_ARG_ENABLE(sse, [  --enable-sse             enable SSE support], [if test "$enableval" = yes; then AC_DEFINE(_USE_SSE) fi])
60
 
AC_ARG_ENABLE(fixed-point, [  --enable-fixed-point             compile as fixed-point], [if test "$enableval" = yes; then AC_DEFINE(FIXED_POINT) fi])
61
 
AC_ARG_ENABLE(arm-asm, [  --enable-arm-asm             make use of ARM assembly instructions], [if test "$enableval" = yes; then AC_DEFINE(ARM_ASM) fi])
62
 
AC_ARG_ENABLE(fixed-point-debug, [  --enable-fixed-point-debug             Debug fixed-point implementation], [if test "$enableval" = yes; then AC_DEFINE(FIXED_DEBUG) fi])
63
 
 
64
 
AC_ARG_ENABLE(epic-48k, [  --enable-epic-48k             enable support for epic 4.8 kbps mode], [if test "$enableval" = yes; then AC_DEFINE(EPIC_48K) fi])
65
 
 
66
 
dnl Output the makefiles and version.h.
67
 
 
68
 
AC_OUTPUT([Makefile libspeex/Makefile src/Makefile doc/Makefile Speex.spec
69
 
           win32/Makefile win32/libspeex/Makefile win32/speexenc/Makefile
70
 
           win32/speexdec/Makefile ])
71
 
 
72
 
if test "x$src" = "x"; then 
73
 
echo "You don't seem to have libogg installed. Only the Speex library (libspeex) will be built (no encoder/decoder executable)"
74
 
echo "You can download libogg from http://www.ogg.org/ogg/index.html"
75
 
fi
76
 
 
77
 
echo "Type \"make; make install\" to compile and install Speex";