Update Kazakh translation. (#1284)
[geany-mirror.git] / m4 / geany-prog-cxx.m4
blob4d9aa2a0cdfe7c69a243e0c48329d3ac330fe62f
1 dnl GEANY_PROG_CXX
2 dnl Check for a working C++ compiler.
3 dnl like AC_PROG_CXX, but makes sure the compiler actually works instead of
4 dnl falling back on a reasonable default only.
5 dnl
6 dnl You must call AC_PROG_CXX yourself before this macro.
7 AC_DEFUN([GEANY_PROG_CXX],
9         AC_REQUIRE([AC_PROG_CXX])
11         AC_LANG_PUSH([C++])
12         AC_MSG_CHECKING([whether the C++ compiler works])
13         AC_COMPILE_IFELSE(
14                         [AC_LANG_PROGRAM([[class Test {public: static int main() {return 0;}};]],
15                                          [[Test::main();]])],
16                         [AC_MSG_RESULT([yes])],
17                         [AC_MSG_RESULT([no])
18                          AC_MSG_ERROR([The C++ compiler $CXX does not work. Please install a working C++ compiler or define CXX to the appropriate value.])])
19         AC_LANG_POP([C++])