Automake/Libtool: Compiling the same source as C and C++

2010-09-22 Thread Hugh Dickinson
I am trying to convert an existing software package to build using the GNU autotools. The source code contains several files with .c and .cc which are designed to be compiled both as C and C++ regardless of their suffix (i.e. they contain conditionally compiled code #ifdef _cplusplus preprocesso

Libtool: Compiling the same source as C and C++

2010-09-22 Thread Hugh Dickinson
I am trying to convert an existing software package to build using the GNU autotools. The source code contains several files with .c and .cc which are designed to be compiled both as C and C++ regardless of their suffix (i.e. they contain conditionally compiled code #ifdef _cplusplus preprocesso