diff --git a/ext/exiv2/extconf.rb b/ext/exiv2/extconf.rb index ad94b9f..4b75058 100644 --- a/ext/exiv2/extconf.rb +++ b/ext/exiv2/extconf.rb @@ -3,6 +3,9 @@ $CXXFLAGS += " -std=c++11" RbConfig::CONFIG['PKG_CONFIG'] = 'pkg-config' +puts "checking for C++ compiler" +raise "Cannot use C++ compiler" unless MakeMakefile["C++"].have_devel? + if dir_config("exiv2") == [nil, nil] pkg_config("exiv2") end