Commit 4f9da8df authored by Steven Fackler's avatar Steven Fackler Committed by GitHub
Browse files

Merge pull request #608 from BusyJay/master

show help message when pkg-config is missing
parents 42ad50ae 7c242243
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -197,10 +197,15 @@ fn try_pkg_config() {
        return
    }

    let lib = pkg_config::Config::new()
    let lib = match pkg_config::Config::new()
        .print_system_libs(false)
        .find("openssl")
        .unwrap();
        .find("openssl") {
        Ok(lib) => lib,
        Err(e) => {
            println!("run pkg_config fail: {:?}", e);
            return;
        }
    };

    validate_headers(&lib.include_paths);