| 1 |
AC_INIT([Google C++ Testing Framework], |
| 2 |
[1.7.0], |
| 3 |
[[email protected]], |
| 4 |
[gtest]) |
| 5 |
|
| 6 |
# Provide various options to initialize the Autoconf and configure processes. |
| 7 |
AC_PREREQ([2.59]) |
| 8 |
AC_CONFIG_MACRO_DIR([m4]) |
| 9 |
AC_CONFIG_AUX_DIR([build-aux]) |
| 10 |
AC_CONFIG_HEADERS([build-aux/config.h]) |
| 11 |
AC_CONFIG_FILES([Makefile]) |
| 12 |
|
| 13 |
# Initialize Automake with various options. We require at least v1.9, prevent |
| 14 |
# pedantic complaints about package files, and enable various distribution |
| 15 |
# targets. |
| 16 |
AM_INIT_AUTOMAKE([1.9 dist-bzip2 dist-zip foreign subdir-objects]) |
| 17 |
|
| 18 |
# Check for programs used in building Google Test. |
| 19 |
AC_PROG_CC |
| 20 |
AC_PROG_CXX |
| 21 |
AC_LANG([C++]) |
| 22 |
AC_PROG_LIBTOOL |
| 23 |
|
| 24 |
PTHREAD_LIBS="" |
| 25 |
AC_CHECK_LIB(pthread, pthread_create, [ |
| 26 |
PTHREAD_LIBS="-lpthread" |
| 27 |
have_pthreads="yes" |
| 28 |
]) |
| 29 |
|
| 30 |
AM_CONDITIONAL([HAVE_PTHREADS],[test "x$have_pthreads" = "xyes"]) |
| 31 |
AC_SUBST(PTHREAD_CFLAGS) |
| 32 |
AC_SUBST(PTHREAD_LIBS) |
| 33 |
|
| 34 |
# Output the generated files. No further autoconf macros may be used. |
| 35 |
AC_OUTPUT |