16
if test ! -d gtest; then
17
echo "gtest bundle not present. Downloading gtest-1.3.0 automatically." >&2
19
curl http://googletest.googlecode.com/files/gtest-1.3.0.tar.bz2 | tar jx
22
# Temporary hack: Must change C runtime library to "multi-threaded DLL",
23
# otherwise it will be set to "multi-threaded static" when MSVC upgrades
24
# the project file to MSVC 2005/2008. vladl of Google Test says gtest will
25
# probably change their default to match, then this will be unnecessary.
26
# One of these mappings converts the debug configuration and the other
27
# converts the release configuration. I don't know which is which.
28
sed -i -e 's/RuntimeLibrary="5"/RuntimeLibrary="3"/g;
29
s/RuntimeLibrary="4"/RuntimeLibrary="2"/g;' gtest/msvc/*.vcproj
18
# Temporary hack: Must change C runtime library to "multi-threaded DLL",
19
# otherwise it will be set to "multi-threaded static" when MSVC upgrades
20
# the project file to MSVC 2005/2008. vladl of Google Test says gtest will
21
# probably change their default to match, then this will be unnecessary.
22
# One of these mappings converts the debug configuration and the other
23
# converts the release configuration. I don't know which is which.
24
sed -i -e 's/RuntimeLibrary="5"/RuntimeLibrary="3"/g;
25
s/RuntimeLibrary="4"/RuntimeLibrary="2"/g;' gtest/msvc/*.vcproj
34
27
# TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings.
35
28
autoreconf -f -i -Wall,no-obsolete