60 Commits

Author SHA1 Message Date
Robert Edmonds
d46d52dfaa configure.ac: use the 5-argument form of AC_INIT() and also define our own PACKAGE_DESCRIPTION 2014-06-03 16:34:38 -04:00
Robert Edmonds
e72e7e7e81 add code coverage option to the build system
configure now has a "--enable-code-coverage" option, and if the
lcov/gcov tools are available a code coverage report can be built with
"make check-code-coverage".

this is mostly based on the AX_CODE_COVERAGE / GNOME_CODE_COVERAGE
macro:

    http://savannah.gnu.org/patch/?8451

but i also looked at knot-dns's code coverage implementation:

    https://github.com/CZNIC-Labs/knot/blob/master/m4/code-coverage.m4

and kevin lyda's pull request:

    https://github.com/protobuf-c/protobuf-c/pull/131/files
2014-06-02 17:56:41 -04:00
Robert Edmonds
84be226396 configure.ac: bump version to 1.0.0-rc1 2014-04-04 19:21:31 -04:00
Robert Edmonds
e1e044da01 configure.ac: search the pkg-config exec_prefix for the protobuf compiler
protoc may not be on the default PATH, so augment $PATH with the
executable path registered by pkg-config for the protobuf package.

additionally declare PROTOC as a precious variable, thus allowing it to
be explicitly set by the user at ./configure time.

based on a patch from Andrei Nigmatulin.
2014-03-28 14:03:59 -04:00
Robert Edmonds
e633dda6e4 configure.ac: use $protobuf_CFLAGS to find protobuf header files
the protobuf header files may be installed in a non-standard location
and thus we need to use the CFLAGS registered for protobuf in pkg-config
in order to find them.

based on a patch from Andrei Nigmatulin.
2014-03-28 14:03:59 -04:00
Robert Edmonds
c6f43d347f configure.ac: make pkg-config optional when building with --disable-protoc
if pkg-config is installed, the libprotobuf-c .pc file will be
installed; if pkg-config is not installed, the .pc file won't be
installed.

this behavior only applies when we're building with ./configure
--disable-protoc, since pkg-config is required in order to detect the
protobuf dependency.
2014-03-27 16:57:21 -04:00
Robert Edmonds
daad5868cf version the libprotobuf-c symbols on compatible linkers (Issue #116)
this is conditional on whether the linker supports version scripts, for
which we use the gl_LD_VERSION_SCRIPT macro from the gnulib project.

on platforms without version scripts, we fall back to libtool's
-export-symbols-regex.
2014-03-27 15:22:55 -04:00
Robert Edmonds
16e3465d21 configure.ac: check for a libprotoc header file
it's possible for the <google/protobuf/compiler/> header files to be
shipped in a separate package (e.g., debian's libprotoc-dev). check for
this at configure time rather than allowing the build process to fail.
2014-03-24 19:04:15 -04:00
Robert Edmonds
2976be8666 configure.ac: tweak the ${has_doxygen} status display 2014-03-06 22:05:27 -05:00
Kevin Lyda
369f7e58a1 Default doxygen-doc to not enabled.
Also, don't default dot support to on and emit something to say if
the dogygen-doc target is enabled.
2014-02-17 09:24:51 +00:00
Kevin Lyda
b9f94db3cc Autoconf configuration for doxygen.
Still need to add the comments in the source code. Currently I've
seeded it with the libprotobuf-c files.  I've configured it
to make man pages and html pages.  Might not be ideal, but makes it easy
for me to check things (html is nicer, but man pages are handier for
remote servers).
2014-02-16 21:45:02 +00:00
Robert Edmonds
7ea757dd13 configure.ac: bump version to 1.0.0-pre 2014-02-10 10:57:27 -05:00
Kevin Lyda
f52f500995 Autoconf portability tweaks.
Use MKDIR_P and LN_S rather than their usual expansions.
2014-01-25 15:56:40 +00:00
Ilya Lipnitskiy
baa3ab296d .travis.yml: add a travis build entry to run tests under valgrind
Makefile.am: add valgrind to the AM_TESTS_ENVIRONMENT
configure.ac: enable valgrind testing option for ./configure
m4/valgrind-tests.m4: enable tracing children for libtool wrapper
script compatibility, but ignore standard binaries in /usr or /bin
2014-01-14 00:20:05 -08:00
Robert Edmonds
a2fb294a22 build system: add back the --disable-protoc option to configure 2014-01-13 19:53:41 -05:00
Robert Edmonds
4c7904fc13 configure.ac: remove the AC_CHECK_HEADERS checks
some of these headers aren't used in the protobuf-c code base any more,
and in any case the results of these checks (the HAVE_*_H defines in
config.h) are not actually used anywhere and the absence of any of these
headers doesn't cause configure to fail, so just delete these useless
checks.
2014-01-13 19:53:41 -05:00
Robert Edmonds
ac71dd5859 configure.ac: error out if protoc is not found 2014-01-11 15:04:30 -05:00
Robert Edmonds
410a5b8e4e configure.ac: remove protobuf-c-rpc 2014-01-10 13:25:11 -05:00
Robert Edmonds
49faa55bc2 IS_LITTLE_ENDIAN -> !defined(WORDS_BIGENDIAN)
this simplifies the AC_C_BIGENDIAN invocation.
2013-11-21 17:12:00 -05:00
Robert Edmonds
c64da22059 configure.ac: add the protobuf version to the configure summary 2013-11-18 14:32:31 -05:00
Robert Edmonds
4142d7e92e build system: remove --disable-protoc option
for some reason, "make distcheck" fails when the build is configured
with --disable-protoc. i haven't been able to track down the root cause
(it appears the build is trying to generate the generated pb-c files for
the test cases, but the test cases should be disabled when
--disable-protoc is specified). so, remove the --disable-protoc option.
libprotobuf-c should always be tested as part of a build, and this can't
be done unless protoc-c is built. this also reduces the number of build
combinations that need to be tested.
2013-11-18 14:24:05 -05:00
Robert Edmonds
8551bf637d configure.ac: print out C++ related build flags 2013-11-18 13:59:17 -05:00
Robert Edmonds
3128296851 t/test-full.proto: revert 'option allow_alias = true;'
this option is only supported by the upstream protobuf compiler starting
with version 2.5.0. this version is not yet widely available in the
debian/ubuntu repositories, and we would like to avoid breaking the
build on those platforms with the distribution version of protobuf
installed, so revert the following commits:

 - 5ee9c03478ea13bba03e7d7edacf723f324200c2
 - 84e41e7329f1f0fc09b41ee96e17b28a792cefcf
2013-11-18 13:00:44 -05:00
Ilya Lipnitskiy
84e41e7329 Add version check for the protobuf package (needed for allow_alias option to work) 2013-11-17 23:31:39 -08:00
Robert Edmonds
40f31f2aff new build system 2013-11-16 18:08:40 -05:00
Robert Edmonds
12215b4774 remove the current build system 2013-11-15 21:49:56 -05:00
lahiker42@gmail.com
925c567525 ok, try to be even more explicit
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@331 00440858-1255-0410-a3e6-75ea37f81c3a
2011-12-21 02:28:59 +00:00
lahiker42
ddabb041b3 upgrade
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@278 00440858-1255-0410-a3e6-75ea37f81c3a
2011-03-10 19:15:44 +00:00
lahiker42
831accbd62 Add cmake support.
Minor cleanups to dispatch, set "has_idle" correctly.


git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@276 00440858-1255-0410-a3e6-75ea37f81c3a
2011-03-10 19:12:35 +00:00
lahiker42@gmail.com
4e281490cd Various cleanups, mostly due to Pop Stelian.
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@269 00440858-1255-0410-a3e6-75ea37f81c3a
2010-12-18 23:51:37 +00:00
lahiker42
d9b6f6566f release 0.14
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@245 00440858-1255-0410-a3e6-75ea37f81c3a
2010-08-26 04:22:11 +00:00
lahiker42
8814c03e33 typo
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@222 00440858-1255-0410-a3e6-75ea37f81c3a
2010-04-30 17:49:28 +00:00
lahiker42
9ead2436e5 Add generation / installation of pkg-config files. (Bobby Powers)
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@220 00440858-1255-0410-a3e6-75ea37f81c3a
2010-04-30 15:33:38 +00:00
lahiker42
58c9d0a1a2 .
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@219 00440858-1255-0410-a3e6-75ea37f81c3a
2010-04-25 00:27:44 +00:00
lahiker42
c1a1a36e61 Use GOOGLE_PROTOBUF_VERSION instead of computing PROTOC_VERSION ourselves
from its --version option.


git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@209 00440858-1255-0410-a3e6-75ea37f81c3a
2010-03-17 18:29:36 +00:00
lahiker42
0ad716a8a3 Attempt to indulge those who do not want protoc_c
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@201 00440858-1255-0410-a3e6-75ea37f81c3a
2010-02-05 00:31:29 +00:00
lahiker42
7dad08957f - Fix to compile with latest prtobuf.
- Fix for big-endian platforms.


git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@197 00440858-1255-0410-a3e6-75ea37f81c3a
2010-01-24 16:42:14 +00:00
lahiker42
eeed9c2b7a git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@192 00440858-1255-0410-a3e6-75ea37f81c3a 2009-06-11 13:05:23 +00:00
lahiker42
9b2f4d9ef1 Add -lpthread when linking against protobuf
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@191 00440858-1255-0410-a3e6-75ea37f81c3a
2009-06-11 13:00:50 +00:00
lahiker42
f3ae05f9e1 misc.
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@189 00440858-1255-0410-a3e6-75ea37f81c3a
2009-06-11 12:50:42 +00:00
lahiker42
6769a5ecd2 add 'static' where needed. minor packaging stuff.
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@186 00440858-1255-0410-a3e6-75ea37f81c3a
2009-05-13 15:21:05 +00:00
lahiker42
5621b79adc Too lazy to split into separate patches
- allow CFLAGS=-DPRINT_UNPACK_ERRORS=0 to suppress
  unpack warnings from being printed at compile time (Andrei Nigmatulin)
- give error if an unknown wire-type is encountered (Andrei Nigmatulin)
- fix technically possible overflows during unpack of very
  large messages (Andrei Nigmatulin)
- [UNFINISHED] windows RPC work
and other junk, sorry


git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@185 00440858-1255-0410-a3e6-75ea37f81c3a
2009-04-21 14:08:14 +00:00
lahiker42
8b62c213f4 release 0.10
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@182 00440858-1255-0410-a3e6-75ea37f81c3a
2009-04-04 23:08:33 +00:00
lahiker42
c5ae90eb85 ...
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@177 00440858-1255-0410-a3e6-75ea37f81c3a
2009-03-08 14:35:12 +00:00
lahiker42
fc428c1200 Prepare for release.
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@176 00440858-1255-0410-a3e6-75ea37f81c3a
2009-03-06 02:10:10 +00:00
lahiker42
fd50e6ae89 ..
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@175 00440858-1255-0410-a3e6-75ea37f81c3a
2009-03-05 04:03:33 +00:00
lahiker42
b4cc67234a some comments, since who knows if this'll work.
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@172 00440858-1255-0410-a3e6-75ea37f81c3a
2009-03-05 03:23:41 +00:00
lahiker42
74d76532c7 check for protobuf..
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@168 00440858-1255-0410-a3e6-75ea37f81c3a
2009-03-04 22:12:52 +00:00
lahiker42
5df45e9165 try to fix cygwin build issue
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@163 00440858-1255-0410-a3e6-75ea37f81c3a
2009-02-09 03:31:13 +00:00
lahiker42
461901905b git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@152 00440858-1255-0410-a3e6-75ea37f81c3a 2009-01-29 15:41:41 +00:00