Merge pull request #608 from BusyJay/master

show help message when pkg-config is missing
This commit is contained in:
Steven Fackler 2017-03-29 09:16:13 -07:00 committed by GitHub
commit 4f9da8dfc9
1 changed files with 8 additions and 3 deletions

View File

@ -197,10 +197,15 @@ fn try_pkg_config() {
return return
} }
let lib = pkg_config::Config::new() let lib = match pkg_config::Config::new()
.print_system_libs(false) .print_system_libs(false)
.find("openssl") .find("openssl") {
.unwrap(); Ok(lib) => lib,
Err(e) => {
println!("run pkg_config fail: {:?}", e);
return;
}
};
validate_headers(&lib.include_paths); validate_headers(&lib.include_paths);