freetdi / tdlib

Other
12 stars 5 forks source link

configure vs compiler #24

Open spth opened 6 years ago

spth commented 6 years ago

The configure script should list the compiler (CXX) in the final output. It should also check that the compiler supports C++11.

On current OpenBSD 6.3, configure choses g++ as the compiler by default, but GCC 4.2.1 that comes with OpenBSB does not support C++11¹.

Philipp

¹ There probably will never be a C++11-supporting GCC on OpenBSD - OpenBSD does not accept GPL 3 software and all C++11-supporting GCC are under GPL 3.

felix-salfelder commented 6 years ago

The configure script should list the compiler (CXX) in the final output.

done (in develop)

It should also check that the compiler supports C++11.

more tricky, we only use some features of c++11. the recommended and sane way of doing this (check for features) is more work. perhaps we can get away with checking if some of the boost headers are "usable"... i'll leave this open.

On current OpenBSD 6.3, configure choses g++

that's okay. override with CXX (cf. INSTALL, ./configure --help).

There probably will never be a C++11-supporting GCC on OpenBSD

that's sad, but not a problem we can solve here. (interesting nevertheless.)