Thanks for Help, now it works with the command: CXX= /path/to/c++_compiler CC=/path/to/c_compiler ./configure