2008-07-25 00:54:56 +00:00
|
|
|
# At this point, the Xcode project assumes the version string will be three
|
|
|
|
# integers separated by periods and surrounded by square brackets (e.g.
|
|
|
|
# "[1.0.1]"). It also asumes that there won't be any closing parenthesis
|
|
|
|
# between "AC_INIT(" and the closing ")" including comments and strings.
|
2008-07-03 22:38:12 +00:00
|
|
|
AC_INIT([Google C++ Testing Framework],
|
2008-12-10 22:21:16 +00:00
|
|
|
[1.2.1],
|
2008-07-03 22:38:12 +00:00
|
|
|
[googletestframework@googlegroups.com],
|
|
|
|
[gtest])
|
|
|
|
|
|
|
|
# Provide various options to initialize the Autoconf and configure processes.
|
|
|
|
AC_PREREQ([2.59])
|
|
|
|
AC_CONFIG_SRCDIR([./COPYING])
|
2008-12-10 05:45:40 +00:00
|
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
|
|
AC_CONFIG_HEADERS([build-aux/config.h])
|
2008-07-03 22:38:12 +00:00
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
AC_CONFIG_FILES([scripts/gtest-config], [chmod +x scripts/gtest-config])
|
|
|
|
|
|
|
|
# Initialize Automake with various options. We require at least v1.9, prevent
|
|
|
|
# pedantic complaints about package files, and enable various distribution
|
|
|
|
# targets.
|
|
|
|
AM_INIT_AUTOMAKE([1.9 dist-bzip2 dist-zip foreign subdir-objects])
|
|
|
|
|
|
|
|
# Check for programs used in building Google Test.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_LANG([C++])
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
|
|
|
# TODO(chandlerc@google.com): Currently we aren't running the Python tests
|
|
|
|
# against the interpreter detected by AM_PATH_PYTHON, and so we condition
|
|
|
|
# HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's
|
2008-11-24 20:13:22 +00:00
|
|
|
# version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
|
2008-07-03 22:38:12 +00:00
|
|
|
# hashbang.
|
|
|
|
PYTHON= # We *do not* allow the user to specify a python interpreter
|
|
|
|
AC_PATH_PROG([PYTHON],[python],[:])
|
|
|
|
AS_IF([test "$PYTHON" != ":"],
|
2008-11-24 20:13:22 +00:00
|
|
|
[AM_PYTHON_CHECK_VERSION([$PYTHON],[2.3],[:],[PYTHON=":"])])
|
2008-07-03 22:38:12 +00:00
|
|
|
AM_CONDITIONAL([HAVE_PYTHON],[test "$PYTHON" != ":"])
|
|
|
|
|
|
|
|
# TODO(chandlerc@google.com) Check for the necessary system headers.
|
|
|
|
|
|
|
|
# TODO(chandlerc@google.com) Check the types, structures, and other compiler
|
|
|
|
# and architecture characteristics.
|
|
|
|
|
|
|
|
# Output the generated files. No further autoconf macros may be used.
|
|
|
|
AC_OUTPUT
|