1# SETI_BOINC is free software; you can redistribute it and/or modify it under 2# the terms of the GNU General Public License as published by the Free 3# Software Foundation; either version 2, or (at your option) any later 4# version. 5 6AC_DEFUN([SAH_LARGEFILE_BREAKS_CXX],[ 7 AC_MSG_CHECKING([whether largefile support breaks C++]) 8 AC_LANG_PUSH(C++) 9 AC_LINK_IFELSE( 10 [AC_LANG_PROGRAM([[ 11 #define CONFIG_TEST 12 #include <iostream> 13 ]], 14 [[ 15 std::cout << 1.0 << std::endl; 16 ]])], 17 [tmp_res="no"], 18 [AC_DEFINE([LARGEFILE_BREAKS_CXX],[1], 19 ["Define to 1 if largefile support causes missing symbols in C++"] ) 20 tmp_res="yes" 21 sah_cxx_includes=`echo "#include \"${ac_aux_dir}/lib/std_fixes.h\"" ; echo $sah_cxx_includes` 22 ] 23 ) 24 AC_MSG_RESULT($tmp_res) 25 AC_LANG_POP 26]) 27 28