Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: testing/gmock/configure.ac

Issue 1151006: Update to current gtest/gmock. (Closed)
Patch Set: rebase Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « testing/gmock/README ('k') | testing/gmock/include/gmock/gmock-generated-matchers.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 m4_include(gtest/m4/acx_pthread.m4)
2
1 AC_INIT([Google C++ Mocking Framework], 3 AC_INIT([Google C++ Mocking Framework],
2 [1.4.0], 4 [1.5.0],
3 [googlemock@googlegroups.com], 5 [googlemock@googlegroups.com],
4 [gmock]) 6 [gmock])
5 7
6 # Provide various options to initialize the Autoconf and configure processes. 8 # Provide various options to initialize the Autoconf and configure processes.
7 AC_PREREQ([2.59]) 9 AC_PREREQ([2.59])
8 AC_CONFIG_SRCDIR([./COPYING]) 10 AC_CONFIG_SRCDIR([./COPYING])
9 AC_CONFIG_AUX_DIR([build-aux]) 11 AC_CONFIG_AUX_DIR([build-aux])
10 AC_CONFIG_HEADERS([build-aux/config.h]) 12 AC_CONFIG_HEADERS([build-aux/config.h])
11 AC_CONFIG_FILES([Makefile]) 13 AC_CONFIG_FILES([Makefile])
12 AC_CONFIG_FILES([scripts/gmock-config], [chmod +x scripts/gmock-config]) 14 AC_CONFIG_FILES([scripts/gmock-config], [chmod +x scripts/gmock-config])
(...skipping 15 matching lines...) Expand all
28 # version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env" 30 # version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
29 # hashbang. 31 # hashbang.
30 PYTHON= # We *do not* allow the user to specify a python interpreter 32 PYTHON= # We *do not* allow the user to specify a python interpreter
31 AC_PATH_PROG([PYTHON],[python],[:]) 33 AC_PATH_PROG([PYTHON],[python],[:])
32 AS_IF([test "$PYTHON" != ":"], 34 AS_IF([test "$PYTHON" != ":"],
33 [AM_PYTHON_CHECK_VERSION([$PYTHON],[2.3],[:],[PYTHON=":"])]) 35 [AM_PYTHON_CHECK_VERSION([$PYTHON],[2.3],[:],[PYTHON=":"])])
34 AM_CONDITIONAL([HAVE_PYTHON],[test "$PYTHON" != ":"]) 36 AM_CONDITIONAL([HAVE_PYTHON],[test "$PYTHON" != ":"])
35 37
36 # TODO(chandlerc@google.com) Check for the necessary system headers. 38 # TODO(chandlerc@google.com) Check for the necessary system headers.
37 39
40 # Configure pthreads.
41 AC_ARG_WITH([pthreads],
42 [AS_HELP_STRING([--with-pthreads],
43 [use pthreads (default is yes)])],
44 [with_pthreads=$withval],
45 [with_pthreads=check])
46
47 have_pthreads=no
48 AS_IF([test "x$with_pthreads" != "xno"],
49 [ACX_PTHREAD(
50 [],
51 [AS_IF([test "x$with_pthreads" != "xcheck"],
52 [AC_MSG_FAILURE(
53 [--with-pthreads was specified, but unable to be used])])])
54 have_pthreads="$acx_pthread_ok"])
55 AM_CONDITIONAL([HAVE_PTHREADS],[test "x$have_pthreads" == "xyes"])
56 AC_SUBST(PTHREAD_CFLAGS)
57 AC_SUBST(PTHREAD_LIBS)
58
38 # GoogleMock currently has hard dependencies upon GoogleTest above and beyond 59 # GoogleMock currently has hard dependencies upon GoogleTest above and beyond
39 # running its own test suite, so we both provide our own version in 60 # running its own test suite, so we both provide our own version in
40 # a subdirectory and provide some logic to use a custom version or a system 61 # a subdirectory and provide some logic to use a custom version or a system
41 # installed version. 62 # installed version.
42 AC_ARG_WITH([gtest], 63 AC_ARG_WITH([gtest],
43 [AS_HELP_STRING([--with-gtest], 64 [AS_HELP_STRING([--with-gtest],
44 [Specifies how to find the gtest package. If no 65 [Specifies how to find the gtest package. If no
45 arguments are given, the default behavior, a 66 arguments are given, the default behavior, a
46 system installed gtest will be used if present, 67 system installed gtest will be used if present,
47 and an internal version built otherwise. If a 68 and an internal version built otherwise. If a
(...skipping 25 matching lines...) Expand all
73 AC_ARG_VAR([GTEST_CXXFLAGS], 94 AC_ARG_VAR([GTEST_CXXFLAGS],
74 [C++ compile flags for Google Test.]) 95 [C++ compile flags for Google Test.])
75 AC_ARG_VAR([GTEST_LDFLAGS], 96 AC_ARG_VAR([GTEST_LDFLAGS],
76 [Linker path and option flags for Google Test.]) 97 [Linker path and option flags for Google Test.])
77 AC_ARG_VAR([GTEST_LIBS], 98 AC_ARG_VAR([GTEST_LIBS],
78 [Library linking flags for Google Test.]) 99 [Library linking flags for Google Test.])
79 AC_ARG_VAR([GTEST_VERSION], 100 AC_ARG_VAR([GTEST_VERSION],
80 [The version of Google Test available.]) 101 [The version of Google Test available.])
81 HAVE_BUILT_GTEST="no" 102 HAVE_BUILT_GTEST="no"
82 103
83 GTEST_MIN_VERSION="1.4.0" 104 GTEST_MIN_VERSION="1.5.0"
84 105
85 AS_IF([test "x${enable_external_gtest}" = "xyes"], 106 AS_IF([test "x${enable_external_gtest}" = "xyes"],
86 [# Begin filling in variables as we are able. 107 [# Begin filling in variables as we are able.
87 AS_IF([test "x${with_gtest}" != "xyes"], 108 AS_IF([test "x${with_gtest}" != "xyes"],
88 [AS_IF([test -x "${with_gtest}/scripts/gtest-config"], 109 [AS_IF([test -x "${with_gtest}/scripts/gtest-config"],
89 [GTEST_CONFIG="${with_gtest}/scripts/gtest-config"], 110 [GTEST_CONFIG="${with_gtest}/scripts/gtest-config"],
90 [GTEST_CONFIG="${with_gtest}/bin/gtest-config"]) 111 [GTEST_CONFIG="${with_gtest}/bin/gtest-config"])
91 AS_IF([test -x "${GTEST_CONFIG}"], [], 112 AS_IF([test -x "${GTEST_CONFIG}"], [],
92 [AC_MSG_ERROR([dnl 113 [AC_MSG_ERROR([dnl
93 Unable to locate either a built or installed Google Test at '${with_gtest}'.]) 114 Unable to locate either a built or installed Google Test at '${with_gtest}'.])
(...skipping 22 matching lines...) Expand all
116 GTEST_CXXFLAGS='-g' 137 GTEST_CXXFLAGS='-g'
117 GTEST_LDFLAGS='' 138 GTEST_LDFLAGS=''
118 GTEST_LIBS='$(top_builddir)/gtest/lib/libgtest.la' 139 GTEST_LIBS='$(top_builddir)/gtest/lib/libgtest.la'
119 GTEST_VERSION="${GTEST_MIN_VERSION}"]) 140 GTEST_VERSION="${GTEST_MIN_VERSION}"])
120 141
121 # TODO(chandlerc@google.com) Check the types, structures, and other compiler 142 # TODO(chandlerc@google.com) Check the types, structures, and other compiler
122 # and architecture characteristics. 143 # and architecture characteristics.
123 144
124 # Output the generated files. No further autoconf macros may be used. 145 # Output the generated files. No further autoconf macros may be used.
125 AC_OUTPUT 146 AC_OUTPUT
OLDNEW
« no previous file with comments | « testing/gmock/README ('k') | testing/gmock/include/gmock/gmock-generated-matchers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698