summaryrefslogtreecommitdiff
blob: 40ab23b98d1c1b2b34b8b0ac5c4983f66f9730eb (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
http://trac.xbmc.org/ticket/11775

make mythtv support optional

diff --git a/Makefile.in b/Makefile.in
index 9ffae7e..17cc525 100755
--- a/Makefile.in
+++ b/Makefile.in
@@ -209,7 +209,7 @@ LIB_DIRS=\
 	lib/cpluff \
 	lib/xbmc-dll-symbols
 
-ifeq (@USE_MYSQL@,1)
+ifeq (@USE_MYTHTV@,1)
 LIB_DIRS += lib/cmyth
 CMYTH=cmyth
 endif
diff --git a/configure.in b/configure.in
index d44825f..629d7b4 100755
--- a/configure.in
+++ b/configure.in
@@ -479,6 +479,12 @@ AC_ARG_ENABLE([mysql],
   [AS_HELP_STRING([--disable-mysql],
   [disable mysql])],
 
+AC_ARG_ENABLE([mythtv],
+  [AS_HELP_STRING([--disable-mythtv],
+  [disable mythtv])],
+  [use_mythtv=$enableval],
+  [use_mythtv=yes])
+
 AC_ARG_ENABLE([webserver],
   [AS_HELP_STRING([--disable-webserver],
   [disable webserver])],
@@ -1080,6 +1086,9 @@ if test "$use_mysql" = "yes"; then
   else
     AC_MSG_ERROR($missing_program)
   fi
+  if test "$use_mythtv" = "yes"; then
+    AC_DEFINE([HAVE_MYTHTV],[1],["Define to 1 if you want mythtv support"])
+  fi
 fi
 AC_CHECK_HEADER([ass/ass.h],, AC_MSG_ERROR($missing_library))
 AC_CHECK_HEADER([mpeg2dec/mpeg2.h],, AC_MSG_ERROR($missing_library))
@@ -2372,6 +2381,15 @@ else
   final_message="$final_message\n  MySQL:\tNo"
   USE_MYSQL=0
 fi
+
+if test "$use_mythtv" = "yes"; then
+  final_message="$final_message\n  MythTV:\tYes"
+  USE_MYTHTV=1
+else
+  final_message="$final_message\n  MythTV:\tNo"
+  USE_MYTHTV=0
+fi
+
 if test "$use_webserver" = "yes"; then
   final_message="$final_message\n  Webserver:\tYes"
   USE_WEB_SERVER=1
@@ -2675,6 +2693,7 @@ AC_SUBST(USE_LIBUDEV)
 AC_SUBST(USE_LIBUSB)
 AC_SUBST(USE_LIBCEC)
 AC_SUBST(USE_MYSQL)
+AC_SUBST(USE_MYTHTV)
 AC_SUBST(USE_WAYLAND)