CSB5 / lofreq

LoFreq Star: Sensitive variant calling from sequencing data
http://csb5.github.io/lofreq/
Other
100 stars 31 forks source link

Fix: error caused by including the gsl header files. #130

Open tcxxxx opened 2 years ago

tcxxxx commented 2 years ago

This pull request fixes a build error: "fatal error: gsl/gsl_randist.h: No such file or directory" (#110). The error occurs when the libgsl library is not installed on the system.

A check is added to solve this problem. The check ensures that the gsl header files are included only when the libgsl library is installed and detected on the system. The detection is done by the AC_CHECK_LIB in configure.ac.

The patched version has been tested to build and run successfully: regardless of whether the library is missing and whether the --approx-threshold option is used, the program builds and runs successfully.