projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Ubuntu complaint.
[awesomized/libmemcached]
/
m4
/
pandora_have_libgtest.m4
diff --git
a/m4/pandora_have_libgtest.m4
b/m4/pandora_have_libgtest.m4
index f21c7ef41a84db9e80e2b9f1ea6b17a4de847c56..fe269fb139100878ec5074881c80f3f650ba47ff 100644
(file)
--- a/
m4/pandora_have_libgtest.m4
+++ b/
m4/pandora_have_libgtest.m4
@@
-18,6
+18,8
@@
AC_DEFUN([_PANDORA_SEARCH_LIBGTEST],[
AS_IF([test "x$ac_enable_libgtest" = "xyes"],[
AC_LANG_PUSH(C++)
AS_IF([test "x$ac_enable_libgtest" = "xyes"],[
AC_LANG_PUSH(C++)
+ save_CXXFLAGS="${CXXFLAGS}"
+ CXXFLAGS="${AM_CXXFLAGS} ${CXXFLAGS}"
AC_LIB_HAVE_LINKFLAGS(gtest,,[
#include <gtest/gtest.h>
TEST(pandora_test_libgtest, PandoraTest)
AC_LIB_HAVE_LINKFLAGS(gtest,,[
#include <gtest/gtest.h>
TEST(pandora_test_libgtest, PandoraTest)
@@
-25,6
+27,7
@@
TEST(pandora_test_libgtest, PandoraTest)
ASSERT_EQ(1, 1);
}
],[])
ASSERT_EQ(1, 1);
}
],[])
+ CXXFLAGS="${save_CXXFLAGS}"
AC_LANG_POP()
],[
ac_cv_libgtest="no"
AC_LANG_POP()
],[
ac_cv_libgtest="no"