summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins/theora/configure.in.in
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:04:32 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:04:32 -0600
commit793cf2dff35dffe3ec4c7b24252947dde758a1b2 (patch)
tree7d9972d99ed281a36418ae9f5fc128e3c951532c /tdefile-plugins/theora/configure.in.in
parent04f764aaf273340e1d5811d4216dd8127cacc5db (diff)
downloadtdemultimedia-793cf2dff35dffe3ec4c7b24252947dde758a1b2.tar.gz
tdemultimedia-793cf2dff35dffe3ec4c7b24252947dde758a1b2.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdefile-plugins/theora/configure.in.in')
-rw-r--r--tdefile-plugins/theora/configure.in.in26
1 files changed, 26 insertions, 0 deletions
diff --git a/tdefile-plugins/theora/configure.in.in b/tdefile-plugins/theora/configure.in.in
new file mode 100644
index 00000000..b9d8836d
--- /dev/null
+++ b/tdefile-plugins/theora/configure.in.in
@@ -0,0 +1,26 @@
+AC_DEFUN([KDE_CHECK_THEORA],
+[
+have_theora=yes
+
+KDE_CHECK_HEADER(theora/theora.h,
+ [], [have_theora=no])
+
+KDE_CHECK_LIB(theora, theora_info_init,
+ [], [have_theora=no], [-lvorbis -logg])
+])
+
+AC_ARG_WITH(theora,
+ [AC_HELP_STRING(--with-theora,
+ [enable support for Ogg Theora @<:@default=check@:>@])],
+ [], with_theora=check)
+
+have_theora=no
+if test "x$with_theora" != xno; then
+ KDE_CHECK_THEORA
+
+ if test "x$with_theora" != xcheck && test "x$have_theora" != xyes; then
+ AC_MSG_ERROR([--with-theora was given, but test for Theora failed])
+ fi
+fi
+
+AM_CONDITIONAL(include_theora_SUBDIR, test "x$have_theora" = xyes)