GSL 0.4.31

A rust binding for the GSL (the GNU scientific library)
Documentation
extern crate pkg_config;

fn main() {
    if std::process::Command::new("pkg-config").output().is_err() {
        println!("cargo:rustc-link-lib=gsl");
        println!("cargo:rustc-link-lib=gslcblas");
        return;
    }

    match pkg_config::probe_library("gsl") {
        Ok(lib) => {
            if lib.version.starts_with("2.") {
                println!(r#"cargo:rustc-cfg=feature="v2""#);
            }
        }
        Err(e) => {
            println!("GSL library not found: {:?}", e);
        }
    }
}