From 867b7ffdc910a4c1a317936bc0e5682d14d348e8 Mon Sep 17 00:00:00 2001 From: darkeye Date: Thu, 28 Mar 2002 16:36:37 +0000 Subject: [PATCH] added possibility to chose vorbis lib version rc2 or rc3 --- darkice/trunk/configure.in | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/darkice/trunk/configure.in b/darkice/trunk/configure.in index e9f18d0..e9b57aa 100644 --- a/darkice/trunk/configure.in +++ b/darkice/trunk/configure.in @@ -9,7 +9,7 @@ AC_PROG_INSTALL dnl AC_STDC_HEADERS AC_HAVE_HEADERS(errno.h fcntl.h stdio.h stdlib.h string.h unistd.h limits.h) -AC_HAVE_HEADERS(signal.h time.h sys/time.h sys/types.h sys/wait.h) +AC_HAVE_HEADERS(signal.h time.h sys/time.h sys/types.h sys/wait.h math.h) AC_HAVE_HEADERS(netdb.h netinet/in.h sys/ioctl.h sys/socket.h sys/stat.h) AC_HAVE_HEADERS(sched.h) AC_HAVE_HEADERS(sys/soundcard.h sys/audio.h) @@ -96,6 +96,23 @@ else fi +dnl----------------------------------------------------------------------------- +dnl find out which vorbis libs to use: rc2 or rc3 +dnl----------------------------------------------------------------------------- +AC_ARG_WITH( vorbis-lib, +[ --with-vorbis-lib=VERSION use vorbis lib version rc2 or rc3 [rc3] ], + USE_VORBIS_LIB=${withval}, USE_VORBIS_LIB="rc3" ) + +if test "x${USE_VORBIS_LIB}" != "xrc2" -a "x${USE_VORBIS_LIB}" != "xrc3" ; then + AC_MSG_ERROR( [bad vorbis lib version specified: ${USE_VORBIS_LIB}]) +fi +if test "x${USE_VORBIS_LIB}" = "xrc2" ; then + AC_DEFINE( VORBIS_LIB_RC2, 1, [use vorbis library verison rc2]) +fi +if test "x${USE_VORBIS_LIB}" = "xrc3" ; then + AC_DEFINE( VORBIS_LIB_RC3, 1, [use vorbis library version rc3]) +fi + dnl make sure at least one of lame and vorbis present if test "x${LAME_INCFLAGS}" = "x" -a "x${VORBIS_INCFLAGS}" = "x" ; then AC_MSG_ERROR( [neither lame nor Ogg Vorbis configured])