1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/trunk/testing/gtest/configure.ac Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,68 @@ 1.4 +m4_include(m4/acx_pthread.m4) 1.5 + 1.6 +# At this point, the Xcode project assumes the version string will be three 1.7 +# integers separated by periods and surrounded by square brackets (e.g. 1.8 +# "[1.0.1]"). It also asumes that there won't be any closing parenthesis 1.9 +# between "AC_INIT(" and the closing ")" including comments and strings. 1.10 +AC_INIT([Google C++ Testing Framework], 1.11 + [1.6.0], 1.12 + [googletestframework@googlegroups.com], 1.13 + [gtest]) 1.14 + 1.15 +# Provide various options to initialize the Autoconf and configure processes. 1.16 +AC_PREREQ([2.59]) 1.17 +AC_CONFIG_SRCDIR([./LICENSE]) 1.18 +AC_CONFIG_MACRO_DIR([m4]) 1.19 +AC_CONFIG_AUX_DIR([build-aux]) 1.20 +AC_CONFIG_HEADERS([build-aux/config.h]) 1.21 +AC_CONFIG_FILES([Makefile]) 1.22 +AC_CONFIG_FILES([scripts/gtest-config], [chmod +x scripts/gtest-config]) 1.23 + 1.24 +# Initialize Automake with various options. We require at least v1.9, prevent 1.25 +# pedantic complaints about package files, and enable various distribution 1.26 +# targets. 1.27 +AM_INIT_AUTOMAKE([1.9 dist-bzip2 dist-zip foreign subdir-objects]) 1.28 + 1.29 +# Check for programs used in building Google Test. 1.30 +AC_PROG_CC 1.31 +AC_PROG_CXX 1.32 +AC_LANG([C++]) 1.33 +AC_PROG_LIBTOOL 1.34 + 1.35 +# TODO(chandlerc@google.com): Currently we aren't running the Python tests 1.36 +# against the interpreter detected by AM_PATH_PYTHON, and so we condition 1.37 +# HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's 1.38 +# version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env" 1.39 +# hashbang. 1.40 +PYTHON= # We *do not* allow the user to specify a python interpreter 1.41 +AC_PATH_PROG([PYTHON],[python],[:]) 1.42 +AS_IF([test "$PYTHON" != ":"], 1.43 + [AM_PYTHON_CHECK_VERSION([$PYTHON],[2.3],[:],[PYTHON=":"])]) 1.44 +AM_CONDITIONAL([HAVE_PYTHON],[test "$PYTHON" != ":"]) 1.45 + 1.46 +# Configure pthreads. 1.47 +AC_ARG_WITH([pthreads], 1.48 + [AS_HELP_STRING([--with-pthreads], 1.49 + [use pthreads (default is yes)])], 1.50 + [with_pthreads=$withval], 1.51 + [with_pthreads=check]) 1.52 + 1.53 +have_pthreads=no 1.54 +AS_IF([test "x$with_pthreads" != "xno"], 1.55 + [ACX_PTHREAD( 1.56 + [], 1.57 + [AS_IF([test "x$with_pthreads" != "xcheck"], 1.58 + [AC_MSG_FAILURE( 1.59 + [--with-pthreads was specified, but unable to be used])])]) 1.60 + have_pthreads="$acx_pthread_ok"]) 1.61 +AM_CONDITIONAL([HAVE_PTHREADS],[test "x$have_pthreads" == "xyes"]) 1.62 +AC_SUBST(PTHREAD_CFLAGS) 1.63 +AC_SUBST(PTHREAD_LIBS) 1.64 + 1.65 +# TODO(chandlerc@google.com) Check for the necessary system headers. 1.66 + 1.67 +# TODO(chandlerc@google.com) Check the types, structures, and other compiler 1.68 +# and architecture characteristics. 1.69 + 1.70 +# Output the generated files. No further autoconf macros may be used. 1.71 +AC_OUTPUT