[LMSAPI] Removed unused LMS API
This commit is contained in:
+2
-33
@@ -8,41 +8,10 @@ AC_LANG_CPLUSPLUS
|
||||
# Checks for programs
|
||||
AC_PROG_CXX
|
||||
|
||||
|
||||
AC_ARG_ENABLE(lmsapi, AS_HELP_STRING([--enable-lmsapi],
|
||||
[Build with the lmsapi protocol support. Defaults to yes.])],
|
||||
[enable_lmsapi="$enableval"],
|
||||
[enable_lmsapi="yes"])
|
||||
|
||||
# ProtoBuf compiler.
|
||||
# First, specify with --with-protoc=/path/of/protoc.
|
||||
# Or, specify with env variable PROTOC.
|
||||
# If neither of the above, find it in the path.
|
||||
AS_IF([test "$enable_lmsapi" = "yes"],
|
||||
[AC_ARG_WITH([protoc],
|
||||
[AS_HELP_STRING([--with-protoc=/path/of/protoc],
|
||||
[Location of the protocol buffers compiler protoc. Defaults to looking on path.])],
|
||||
[PROTOC="$withval"],
|
||||
[ AS_IF([test "x${PROTOC}" == "x"],
|
||||
[AC_PATH_PROG([PROTOC], [protoc], [no])])]
|
||||
)
|
||||
]
|
||||
[ AS_IF([test "${PROTOC}" == "no"], [AC_MSG_ERROR([ProtoBuf compiler "protoc" not found.])]) ]
|
||||
[AC_CHECK_LIB( [protobuf],
|
||||
[main],
|
||||
,
|
||||
[AC_MSG_ERROR([libprotobuf not found!])])]
|
||||
[lmsapi=true]
|
||||
,
|
||||
[lmsapi=false])
|
||||
|
||||
AM_CONDITIONAL([LMSAPI], [test x$lmsapi = xtrue])
|
||||
AS_IF([test x$lmsapi = xtrue], [AC_DEFINE(HAVE_LMSAPI, [1], [Enable LMS API support])])
|
||||
|
||||
AC_ARG_ENABLE([video], AS_HELP_STRING([--enable-video],
|
||||
[Enable Video support. Default to yes.])],
|
||||
[Enable Video support. Default to no.])],
|
||||
[enable_video="$enableval"],
|
||||
[enable_video="yes"])
|
||||
[enable_video="no"])
|
||||
|
||||
AM_CONDITIONAL([VIDEO], [test x$enable_video = xyes])
|
||||
AS_IF([test x$enable_video = xyes], [AC_DEFINE(HAVE_VIDEO, [1], [Enable Video support])])
|
||||
|
||||
Reference in New Issue
Block a user