temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1 | #!/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 | |||||
[email protected] | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 7 | set -e |
8 | |||||
Matthew Valimaki | c0a7ea4 | 2015-10-13 09:42:20 -0700 | [diff] [blame] | 9 | if [ ! -z "$@" ]; then |
10 | for argument in "$@"; do | ||||
11 | case $argument in | ||||
12 | # make curl silent | ||||
13 | "-s") | ||||
14 | curlopts="-s" | ||||
15 | ;; | ||||
16 | esac | ||||
17 | done | ||||
18 | fi | ||||
19 | |||||
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 20 | # Check that we're being run from the right directory. |
[email protected] | 2fd1208 | 2009-05-01 21:41:32 +0000 | [diff] [blame] | 21 | if test ! -f src/google/protobuf/stubs/common.h; then |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 22 | cat >&2 << __EOF__ |
23 | Could not find source code. Make sure you are running this script from the | ||||
24 | root of the distribution tree. | ||||
25 | __EOF__ | ||||
26 | exit 1 | ||||
27 | fi | ||||
28 | |||||
[email protected] | 6cbe32f | 2009-07-31 21:20:02 +0000 | [diff] [blame] | 29 | set -ex |
[email protected] | bbbd4d3 | 2009-04-22 01:34:07 +0000 | [diff] [blame] | 30 | |
Feng Xiao | 9de4e64 | 2018-07-13 16:55:32 -0700 | [diff] [blame] | 31 | # The absence of a m4 directory in googletest causes autoreconf to fail when |
32 | # building under the CentOS docker image. It's a warning in regular build on | ||||
33 | # Ubuntu/gLinux as well. | ||||
34 | mkdir -p third_party/googletest/m4 | ||||
35 | |||||
[email protected] | cf3f638 | 2008-09-30 22:01:45 +0000 | [diff] [blame] | 36 | # TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings. |
37 | autoreconf -f -i -Wall,no-obsolete | ||||
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 38 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 39 | rm -rf autom4te.cache config.h.in~ |
40 | exit 0 |