Index: autoconf-2.69/lib/autoconf/c.m4 =================================================================== --- autoconf-2.69.orig/lib/autoconf/c.m4 2012-01-21 14:46:39.000000000 +0100 +++ autoconf-2.69/lib/autoconf/c.m4 2014-02-05 10:06:25.172408390 +0100 @@ -247,6 +247,14 @@ ]) +# _AC_LANG_NULL_PROGRAM(C++) +# -------------------------- +# To distinguish a C++ compiler from a C compiler, test if we can compile +# and link a program with a C++-specific construct. +m4_define([_AC_LANG_NULL_PROGRAM(C++)], +[AC_LANG_PROGRAM([], [(void) new int;])]) + + # AC_LANG_CPLUSPLUS # ----------------- AU_DEFUN([AC_LANG_CPLUSPLUS], [AC_LANG(C++)])