From: Sebastian Harl Date: Wed, 28 Oct 2015 22:19:52 +0000 (+0100) Subject: Clean up after checking compiler flags and fix C++ tests. X-Git-Tag: sysdb-0.8.0~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aa953348573e8eff4a79c766a739501e089d7821;p=sysdb.git Clean up after checking compiler flags and fix C++ tests. They just happened to work fine when done right after C tests. --- diff --git a/configure.ac b/configure.ac index af72e21..95394eb 100644 --- a/configure.ac +++ b/configure.ac @@ -83,16 +83,16 @@ test_cc_flags() { AC_LANG_CONFTEST([int main(void){}]) $CC -c conftest.c $CFLAGS $STRICT_CFLAGS $@ > /dev/null 2> /dev/null ret=$? - rm -f conftest.o + rm -f conftest.o conftest.c return $ret } test_cxx_flags() { AC_LANG_PUSH(C++) AC_LANG_CONFTEST([int main(void){}]) - $CXX -c conftest.c $CXXFLAGS $STRICT_CXXFLAGS $@ > /dev/null 2> /dev/null + $CXX -c conftest.cpp $CXXFLAGS $STRICT_CXXFLAGS $@ > /dev/null 2> /dev/null ret=$? - rm -f conftest.o + rm -f conftest.o conftest.cpp AC_LANG_POP(C++) return $ret }