blob: 69b1b9c7d021810d45359b506f2f83dcc13c8351 (
plain)
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
26
27
28
29
30
31
32
|
dnl === Ogg Vorbis Test - Begin ===
AC_ARG_WITH(
oggvorbis,
AS_HELP_STRING([--without-oggvorbis], [build K3b without OggVorbis support (default=no)]),
[ac_cv_use_oggvorbis=$withval],
[ac_cv_use_oggvorbis=yes]
)
if test "$ac_cv_use_oggvorbis" = "yes"; then
AC_MSG_CHECKING(for ogg/vorbis headers)
ogg_vorbis=no
AC_TRY_COMPILE([
#include <vorbis/codec.h>
#include <vorbis/vorbisfile.h>
],[
],[
ogg_vorbis=yes
])
AC_MSG_RESULT($ogg_vorbis)
if test x$ogg_vorbis = xyes; then
dnl we need the ogg_vorbis_lib because otherwise we override LIBS !
AC_CHECK_LIB(vorbisfile,ov_open,ogg_vorbis_lib=yes,
ogg_vorbis=no,[$all_libraries -lvorbisfile -lvorbis -logg])
fi
if test x$ogg_vorbis = xyes; then
AC_DEFINE(OGG_VORBIS,1,[Define if you have ogg/vorbis installed])
fi
fi
AM_CONDITIONAL(include_OGG, [test x$ogg_vorbis = xyes])
dnl === Ogg Vorbis Test - End ===
|