]> git.sesse.net Git - vlc/commitdiff
Configure: check protoc with AC_PATH_PROG
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 17 Oct 2014 09:45:17 +0000 (11:45 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 17 Oct 2014 09:45:33 +0000 (11:45 +0200)
configure.ac

index cc8d8f9a61825554493e96787893749efe11b10b..b8c8b793aca4d7d8ea51bb5f0f73814044d4cef9 100644 (file)
@@ -3741,9 +3741,10 @@ dnl
 dnl  Chromecast streaming support
 dnl
 m4_pushdef([protobuf_lite_version], 2.5.0)
+AC_ARG_VAR(PROTOC, [protobuf compiler])
+AC_PATH_PROGS(PROTOC, protoc, no )
 PKG_WITH_MODULES([CHROMECAST],[protobuf-lite >= protobuf_lite_version], [
-    AC_CHECK_PROGS(PROTOC, protoc)
-    AS_IF([test "${PROTOC}" = "protoc"], [
+    AS_IF([test "x${PROTOC}" != "xno"], [
         VLC_ADD_PLUGIN([stream_out_chromecast])
         VLC_ADD_CXXFLAGS([stream_out_chromecast],[${CHROMECAST_CFLAGS}] [-I./chromecast])
         VLC_ADD_LIBS([stream_out_chromecast],[${CHROMECAST_LIBS}])