• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:with +full:- +full:zlib

1 ## Process this file with autoconf to produce configure.
13 # * protoc-artifacts/pom.xml
15 # * src/Makefile.am (Update -version-info for LDFLAGS if needed)
18 # version with the "-pre" suffix. (We used to use "-SNAPSHOT" but this pushed
19 # the size of one file name in the dist tarfile over the 99-char limit.)
39 # autoconf's default CXXFLAGS are usually "-g -O2". These aren't necessarily
48 AM_INIT_AUTOMAKE([1.9 tar-ustar subdir-objects])
52 # To see all logs, use the --disable-silent-rules on configure or via make V=1
55 AC_ARG_WITH([zlib], optwith
56 [AS_HELP_STRING([--with-zlib],
60 AC_ARG_WITH([zlib-include],
61 [AS_HELP_STRING([--with-zlib-include=PATH],
62 [zlib include directory])],
63 [CPPFLAGS="-I$withval $CPPFLAGS"])
65 AC_ARG_WITH([zlib-lib],
66 [AS_HELP_STRING([--with-zlib-lib=PATH],
67 [zlib lib directory])],
68 [LDFLAGS="-L$withval $LDFLAGS"])
71 [AS_HELP_STRING([--with-protoc=COMMAND],
72 …n protoc command instead of building a new one when building tests (useful for cross-compiling)])],
85 # test_util.cc takes forever to compile with GCC and optimization turned on.
89 PROTOBUF_OPT_FLAG="-O2"
90 CXXFLAGS="${CXXFLAGS} -g"
95 # end users who don't want these checks, so add -DNDEBUG by default.
96 CXXFLAGS="$CXXFLAGS -std=c++11 -DNDEBUG"
100 AC_MSG_RESULT([use user-supplied: $CXXFLAGS])
114 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
139 # Check for zlib.
142 AC_MSG_CHECKING([zlib version])
144 # First check the zlib header version.
147 #include <zlib.h>
149 # error zlib version too old
154 # Also need to add -lz to the linker flags and make sure this succeeds.
156 AC_DEFINE([HAVE_ZLIB], [1], [Enable classes using zlib compression.])
160 AC_MSG_FAILURE([--with-zlib was given, but no working zlib library was found])
167 …AC_MSG_FAILURE([--with-zlib was given, but zlib headers were not present or were too old (requires…
173 # Add -std=c++11 if necesssary. It is important for us to do this before the
178 AC_MSG_CHECKING(whether -latomic is needed)
189 LIBATOMIC_LIBS="-latomic"
199 AS_IF([echo "$PROTOC" | grep -q '^@<:@^/@:>@.*/'], [
200 # Does not start with a slash, but contains a slash. So, it's a relative
202 # Since it will actually be executed from the src directory, prefix with
204 # is a nested package and --with-protoc was actually given on the outer
226 AC_MSG_CHECKING(whether -llog is needed)
235 LIBLOG_LIBS="-llog"
246 …ILES([Makefile src/Makefile benchmarks/Makefile conformance/Makefile protobuf.pc protobuf-lite.pc])