[xiph-commits] r9154 - trunk/ffmpeg2theora

j at motherfish-iii.xiph.org j at motherfish-iii.xiph.org
Tue Apr 19 04:57:06 PDT 2005


Author: j
Date: 2005-04-19 04:57:04 -0700 (Tue, 19 Apr 2005)
New Revision: 9154

Modified:
   trunk/ffmpeg2theora/configure.ac
   trunk/ffmpeg2theora/theorautils.c
Log:
replace pkg-config check for libdts with AC_CKECK_LIB since .pc file was only added too late

Modified: trunk/ffmpeg2theora/configure.ac
===================================================================
--- trunk/ffmpeg2theora/configure.ac	2005-04-19 02:19:49 UTC (rev 9153)
+++ trunk/ffmpeg2theora/configure.ac	2005-04-19 11:57:04 UTC (rev 9154)
@@ -81,13 +81,14 @@
 AC_SUBST(FFMPEG_CFLAGS)
 AC_SUBST(FFMPEG_LIBS)
 
-PKG_CHECK_MODULES(DTS, libdts, HAVE_DTS=yes, HAVE_DTS=no)
-if test "x$HAVE_DTS" = "xyes" 
-then
-    FFMPEG_LIBS="$FFMPEG_LIBS $DTS_LIBS"
+
+AC_CHECK_LIB(dts,dts_init, [
+  AC_CHECK_HEADER(dts.h, [HAVE_DTS=yes])
+    ],,[-lm -lz])
+if test "x$HAVE_DTS" = xyes; then
+	FFMPEG_LIBS="$FFMPEG_LIBS -ldts"
 fi
 
-
 PKG_CHECK_MODULES(XIPH,ogg >= 1.1 vorbis vorbisenc theora )
 
 AC_SUBST(XIPH_CFLAGS)

Modified: trunk/ffmpeg2theora/theorautils.c
===================================================================
--- trunk/ffmpeg2theora/theorautils.c	2005-04-19 02:19:49 UTC (rev 9153)
+++ trunk/ffmpeg2theora/theorautils.c	2005-04-19 11:57:04 UTC (rev 9154)
@@ -1,3 +1,4 @@
+/* -*- tab-width:4;c-file-style:"cc-mode"; -*- */
 /*
  * theorautils.c - Ogg Theora abstraction layer
  * Copyright (C) 2003-2004 <j at v2v.cc>



More information about the commits mailing list