From: bert hubert Date: Sun, 18 Jan 2015 10:45:23 +0000 (+0100) Subject: add more stringent test for c++2011 support, making sure travis doesn't attempt it.. X-Git-Tag: dnsdist-1.0.0-alpha1~321 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbb0cda5d81b7b59660aee683e1ef15e74d3e56e;p=thirdparty%2Fpdns.git add more stringent test for c++2011 support, making sure travis doesn't attempt it.. --- diff --git a/.travis.yml b/.travis.yml index 1de9a7587c..f0d53cbc3d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,10 +7,7 @@ before_script: - sudo /sbin/ip addr add 10.0.3.0/24 dev lo - sudo /sbin/ip addr add 1.2.3.4/32 dev lo - sudo rm -f /etc/apt/sources.list.d/travis_ci_zeromq3-source.list - - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - sudo apt-get update -qq - - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi - - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi - sudo apt-get install --quiet --quiet --no-install-recommends authbind bc diff --git a/m4/ax_cxx_compile_stdcxx_11.m4 b/m4/ax_cxx_compile_stdcxx_11.m4 index 163a4c646f..5c747bfc34 100644 --- a/m4/ax_cxx_compile_stdcxx_11.m4 +++ b/m4/ax_cxx_compile_stdcxx_11.m4 @@ -37,6 +37,13 @@ #serial 4 m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [[ + #include + #include + void test() { + boost::shared_ptr one; + boost::shared_ptr two; + one=two; + } template struct check {