File: opus.m4

package info (click to toggle)
moc 1%3A2.6.0~svn-r3005-6
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,896 kB
  • sloc: ansic: 31,748; sh: 929; cpp: 487; makefile: 240
file content (25 lines) | stat: -rw-r--r-- 750 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
dnl opus

AC_ARG_WITH(opus, AS_HELP_STRING([--without-opus],
                                   [Compile without Opus support]))

	if test "x$with_opus" != "xno"
	then
		PKG_CHECK_MODULES(OPUSFILE,
			      [opusfile >= 0.1],
			      [AC_SUBST(OPUSFILE_LIBS)
			       AC_SUBST(OPUSFILE_CFLAGS)
			       want_opus="yes"
			       DECODER_PLUGINS="$DECODER_PLUGINS opus"],
			      [true])
		if test "x$want_opus" = "xyes"
		then
			AC_SEARCH_LIBS(op_read_float, opusfile,
                        [AC_DEFINE([HAVE_OPUSFILE_FLOAT], 1,
                                [Define to 1 if you have the `op_read_float' function.])])
                fi

	fi

AM_CONDITIONAL([BUILD_opus], [test "$want_opus"])
AC_CONFIG_FILES([decoder_plugins/opus/Makefile])