blob: 8160313e136c0a9389d36de14466c69ede7c6c3b [file] [log] [blame]
temporal40ee5512008-07-10 02:12:20 +00001#!/bin/sh
2
3# Run this script to generate the configure script and other files that will
4# be included in the distribution. These files are not checked in because they
5# are automatically generated.
6
kenton@google.comfccb1462009-12-18 02:11:36 +00007set -e
8
temporal40ee5512008-07-10 02:12:20 +00009# Check that we're being run from the right directory.
kenton@google.com2fd12082009-05-01 21:41:32 +000010if test ! -f src/google/protobuf/stubs/common.h; then
temporal40ee5512008-07-10 02:12:20 +000011 cat >&2 << __EOF__
12Could not find source code. Make sure you are running this script from the
13root of the distribution tree.
14__EOF__
15 exit 1
16fi
17
Feng Xiaoe96ff302015-06-15 18:21:48 -070018# Check that gmock is present. Usually it is already there since the
kenton@google.comfccb1462009-12-18 02:11:36 +000019# directory is set up as an SVN external.
Feng Xiaoe96ff302015-06-15 18:21:48 -070020if test ! -e gmock; then
21 echo "Google Mock not present. Fetching gmock-1.7.0 from the web..."
22 curl -O https://googlemock.googlecode.com/files/gmock-1.7.0.zip
23 unzip -q gmock-1.7.0.zip
24 rm gmock-1.7.0.zip
25 mv gmock-1.7.0 gmock
kenton@google.comfccb1462009-12-18 02:11:36 +000026fi
27
kenton@google.com6cbe32f2009-07-31 21:20:02 +000028set -ex
kenton@google.combbbd4d32009-04-22 01:34:07 +000029
kenton@google.comcf3f6382008-09-30 22:01:45 +000030# TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings.
31autoreconf -f -i -Wall,no-obsolete
temporal40ee5512008-07-10 02:12:20 +000032
temporal40ee5512008-07-10 02:12:20 +000033rm -rf autom4te.cache config.h.in~
34exit 0