summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@ubuntu.com>2011-12-14 11:18:49 -0800
committerChase Douglas <chase.douglas@ubuntu.com>2011-12-14 11:18:49 -0800
commitc8a4e665b558f2e39b63bfe91a7081fc041887c2 (patch)
tree467623ca9d8cca2b4234f6465c0b253d20bc3eec
parent5bbdf9fe259a3bde28192286de2a685457b49a50 (diff)
Use gtest lib path when checking for gtest library
-rw-r--r--m4/gtest.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/gtest.m4 b/m4/gtest.m4
index 6c3fc28..0839ce2 100644
--- a/m4/gtest.m4
+++ b/m4/gtest.m4
@@ -14,11 +14,11 @@ AC_DEFUN([AC_CHECK_GTEST],
AC_ARG_WITH([gtest-lib-path],
[AS_HELP_STRING([--with-gtest-lib-path], [location of the Google test libraries])],
[GTEST_LDFLAGS="-L$withval -lpthread"],
- [GTEST_LDFLAGS='-lgtest -lpthread'])
+ [GTEST_LDFLAGS='-lpthread'])
AC_LANG_PUSH(C++)
- AC_CHECK_LIB([gtest], [main], [:], [:], [-lpthread])
+ AC_CHECK_LIB([gtest], [main], [:], [:], [$GTEST_LDFLAGS])
AC_LANG_POP
]) # AC_CHECK_GTEST