cd protobuf if [ -f build/src/.libs/libprotobuf.a ]; then echo "protobuf already builded!" exit 0 fi ./autogen.sh cd build ../configure make -DCMAKE_CXX_FLAGS="${CXX_FLAGS}" -DCMAKE_C_FLAGS="${C_FLAGS}" ${MAKE_OPTIONS} #make check sudo make install sudo ldconfig