summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@ubuntu.com>2011-12-13 17:30:48 -0800
committerChase Douglas <chase.douglas@ubuntu.com>2011-12-13 17:30:48 -0800
commit5b07f09f0713b670070e4d44ada2aeab3f6e883c (patch)
treeade70db0afe4cb29751fdba1697581733ead2a8b
parent9a493fa6cbaa61582092b2484ab2cf95edcc8dcf (diff)
Use AC_LANG_PUSH(C++)/AC_LANG_POP so as not to contaminate configure.ac
-rw-r--r--m4/gtest.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/gtest.m4 b/m4/gtest.m4
index 6471238..d7e0b85 100644
--- a/m4/gtest.m4
+++ b/m4/gtest.m4
@@ -16,7 +16,7 @@ AC_DEFUN([AC_CHECK_GTEST],
[GTEST_LDFLAGS="-L$withval -lpthread"],
[GTEST_LDFLAGS='-lgtest -lpthread'])
- AC_LANG_CPLUSPLUS
+ AC_LANG_PUSH(C++)
# We need to get to the 5th arg to link with -lpthread too. Mimic the default
# AC_CHECK_LIB action when found.
@@ -24,5 +24,7 @@ AC_DEFUN([AC_CHECK_GTEST],
[AC_DEFINE(HAVE_LIBGTEST) LIBS="-lgtest $LIBS"],
[],
[-lpthread])
+
+ AC_LANG_POP
]) # AC_CHECK_GTEST