WIP. Remote compilation option
This commit is contained in:
+18
-11
@@ -8,22 +8,34 @@ AC_LANG_CPLUSPLUS
|
|||||||
# Checks for programs
|
# Checks for programs
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
|
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(remote, AS_HELP_STRING([--enable-remote],
|
||||||
|
[Build with the remote protocol support. Defaults to yes.])],
|
||||||
|
[enable_remote="$enableval"],
|
||||||
|
[enable_remote="yes"])
|
||||||
|
|
||||||
# ProtoBuf compiler.
|
# ProtoBuf compiler.
|
||||||
# First, specify with --with-protoc=/path/of/protoc.
|
# First, specify with --with-protoc=/path/of/protoc.
|
||||||
# Or, specify with env variable PROTOC.
|
# Or, specify with env variable PROTOC.
|
||||||
# If neither of the above, find it in the path.
|
# If neither of the above, find it in the path.
|
||||||
#AC_MSG_CHECKING([for ProtoBuf compiler protoc])
|
AS_IF([test "$enable_remote" = "yes"],
|
||||||
AC_ARG_WITH([protoc],
|
[AC_ARG_WITH([protoc],
|
||||||
[AS_HELP_STRING([--with-protoc=/path/of/protoc],
|
[AS_HELP_STRING([--with-protoc=/path/of/protoc],
|
||||||
[Location of the protocol buffers compiler protoc. Defaults to looking on path.])],
|
[Location of the protocol buffers compiler protoc. Defaults to looking on path.])],
|
||||||
[PROTOC="$withval"],
|
[PROTOC="$withval"],
|
||||||
[ AS_IF([test "x${PROTOC}" == "x"],
|
[ AS_IF([test "x${PROTOC}" == "x"],
|
||||||
[AC_PATH_PROG([PROTOC], [protoc], [no])])]
|
[AC_PATH_PROG([PROTOC], [protoc], [no])])]
|
||||||
)
|
)
|
||||||
|
]
|
||||||
#AC_MSG_RESULT([${PROTOC}])
|
[ AS_IF([test "${PROTOC}" == "no"], [AC_MSG_ERROR([ProtoBuf compiler "protoc" not found.])]) ]
|
||||||
AS_IF([test "${PROTOC}" == "no"], [AC_MSG_ERROR([ProtoBuf compiler "protoc" not found.])])
|
[AC_CHECK_LIB( [protobuf],
|
||||||
|
[main],
|
||||||
|
,
|
||||||
|
[AC_MSG_ERROR([libprotobuf not found!])])]
|
||||||
|
[AC_DEFINE(REMOTE_ENABLE, 1, [Remote support disabled])]
|
||||||
|
,
|
||||||
|
[AC_DEFINE(REMOTE_ENABLE, 0, [Remote support enabled])]
|
||||||
|
)
|
||||||
|
|
||||||
AC_CHECK_HEADERS([Wt/WApplication jpeglib.h],
|
AC_CHECK_HEADERS([Wt/WApplication jpeglib.h],
|
||||||
[],
|
[],
|
||||||
@@ -114,11 +126,6 @@ AC_CHECK_LIB( [boost_log_setup],
|
|||||||
,
|
,
|
||||||
[AC_MSG_ERROR([libboost_log_setup not found!])])
|
[AC_MSG_ERROR([libboost_log_setup not found!])])
|
||||||
|
|
||||||
AC_CHECK_LIB( [protobuf],
|
|
||||||
[main],
|
|
||||||
,
|
|
||||||
[AC_MSG_ERROR([libprotobuf not found!])])
|
|
||||||
|
|
||||||
# TODO -> PARAMETRIZE THIS
|
# TODO -> PARAMETRIZE THIS
|
||||||
AC_CHECK_LIB([wthttp],
|
AC_CHECK_LIB([wthttp],
|
||||||
[main],
|
[main],
|
||||||
|
|||||||
Reference in New Issue
Block a user