configure.ac: Fix protoc check

AC_MSG_ERROR inside the variable assignment doesn't work properly.  We get
output like

    checking for protoc... ./configure: line 4524: is: command not found
    no

and then the build continues (and fails) with PROTOC="".

Closes #132 github pull request.
This commit is contained in:
Keegan McAllister
2012-04-10 22:00:48 -04:00
committed by Keith Winstein
parent b4c47b77cf
commit c6751cfb92
+3 -1
View File
@@ -13,7 +13,9 @@ AC_CONFIG_HEADERS([config.h])
AC_PROG_CC AC_PROG_CC
AC_PROG_CXX AC_PROG_CXX
AC_PROG_RANLIB AC_PROG_RANLIB
AC_PATH_PROG([PROTOC], [protoc], [AC_MSG_ERROR([protoc is not found])]) AC_PATH_PROG([PROTOC], [protoc], [])
AS_IF([test x"$PROTOC" = x],
[AC_MSG_ERROR([cannot find protoc, the Protocol Buffers compiler])])
WARNING_CXXFLAGS="" WARNING_CXXFLAGS=""
PICKY_CXXFLAGS="" PICKY_CXXFLAGS=""