Hi,

I see there was a suggestion to change the extension for C++
sourcecode files a couple of months ago. Someone had tested the .cxx
extension and found it to work with all compilers he could lay his
hands on (quite a few on UNIX systems, plus at least MSVisualC++ on
MSWindows).

So, as the current extension (.cc) _really_ confuses MSVisualC++, it'd
be nice if the patch below is applied before releasing v2.50.

Regards,
Morten

Index: ChangeLog
===================================================================
RCS file: /cvs/autoconf/ChangeLog,v
retrieving revision 1.854
diff -u -r1.854 ChangeLog
--- ChangeLog   2000/09/12 10:23:08     1.854
+++ ChangeLog   2000/09/12 11:05:50
@@ -1,3 +1,9 @@
+2000-09-12  Morten Eriksen <[EMAIL PROTECTED]>
+
+       * aclang.m4 (AC_LANG(C++)): Use .cxx instead of .cc as
+         extension for C++, to please more compilers (MSVisualC++
+          does not like files named with .cc, for instance).
+
 2000-09-12  Pavel Roskin  <[EMAIL PROTECTED]>
 
        * acgeneral.m4 (AC_EGREP_CPP): Use additional quotes instead of
Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.60
diff -u -r1.60 aclang.m4
--- aclang.m4   2000/09/06 13:05:58     1.60
+++ aclang.m4   2000/09/12 11:05:51
@@ -188,7 +188,7 @@
 # ------------
 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 define([AC_LANG(C++)],
-[ac_ext=cc
+[ac_ext=cxx
 ac_cpp='$CXXCPP $CPPFLAGS'
 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
 ac_link='${CXX-g++} -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS 
conftest.$ac_ext $LIBS >&AC_FD_LOG'

Reply via email to