~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_libgtest.m4

  • Committer: Monty Taylor
  • Date: 2010-09-19 18:03:28 UTC
  • mto: (1775.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1776.
  • Revision ID: mordred@inaugust.com-20100919180328-vv146k11j9lb10yb
Inject AM_CXXFLAGS to the gtest test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
  AS_IF([test "x$ac_enable_libgtest" = "xyes"],[
20
20
    AC_LANG_PUSH(C++)
 
21
    save_CXXFLAGS="${CXXFLAGS}"
 
22
    CXXFLAGS="${AM_CXXFLAGS} ${CXXFLAGS}"
21
23
    AC_LIB_HAVE_LINKFLAGS(gtest,,[
22
24
      #include <gtest/gtest.h>
23
25
TEST(pandora_test_libgtest, PandoraTest)
25
27
  ASSERT_EQ(1, 1);
26
28
}
27
29
    ],[])
 
30
    CXXFLAGS="${save_CXXFLAGS}"
28
31
    AC_LANG_POP()
29
32
  ],[
30
33
    ac_cv_libgtest="no"