From 37ad00d2c4409b4b3d629e1b0ae32bb814cec740 Mon Sep 17 00:00:00 2001 From: "kenton@google.com" Date: Tue, 21 Apr 2009 21:00:39 +0000 Subject: Update bundled gtest to latest version (1.3.0) and include it as a nested autoconf package rather than as raw source. This way we can trivially update it again in the future. Actually, this change doesn't even include gtest in protobuf's SVN. Instead, we auto-download it when autogen.sh is invoked. Note that it will be included in release distributions, though. TODO: * Add a configure option to use the system's installed gtest rather than the bundled copy. Apparently the gtest maintainers are working on some general-purpose autoconf macros which will do this automagically. * Update MSVC project files. --- autogen.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index efa5a599..f40d3bcf 100755 --- a/autogen.sh +++ b/autogen.sh @@ -13,7 +13,14 @@ __EOF__ exit 1 fi -set -ex +if test ! -e gtest; then + echo "gtest bundle not present. Downloading gtest-1.3.0 automatically." >&2 + set -ex + curl http://googletest.googlecode.com/files/gtest-1.3.0.tar.bz2 | tar jx + mv gtest-1.3.0 gtest +else + set -ex +fi # TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings. autoreconf -f -i -Wall,no-obsolete -- cgit v1.2.3