1dnl Checks whether std::map has emplace 2 3AC_DEFUN([FZ_CHECK_MAP_EMPLACE], [ 4 5 AC_LANG_PUSH(C++) 6 7 AC_MSG_CHECKING([whether std::map has emplace]) 8 AC_COMPILE_IFELSE([ 9 AC_LANG_PROGRAM([[ 10 #include <map> 11 ]], [[ 12 std::map<int, int> m; 13 m.emplace(std::make_pair(2, 3)); 14 return 0; 15 ]]) 16 ], [ 17 AC_MSG_RESULT([yes]) 18 ], [ 19 AC_MSG_RESULT([no]) 20 AC_MSG_ERROR([std::map lacks emplace]) 21 ]) 22 23 AC_LANG_POP(C++) 24]) 25