Recently I started a project with both C and C++ sources. In my configure.ac file, I check for both languages, like so:
AC_PROG_CC
AC_PROG_CXX
This is my Makefile.am
lib_LTLIBRARIES = libfris.la
libfris_la_LDFLAGS = -module -avoid-version -shared
libfris_la_SOURCES = foo.cpp bar.c
When I say make, it complains that I don't have a file named bar.cpp (which I never mentioned). Why is this? I assume this is my own stupidity. Sorry for this question!
I have already seen this: http://gnu-automake.7480.n7.nabble.com/Mixing-C-and-C-td4676.html. It hasn't helped.