CSB5 / lofreq

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

Fixed an error when including gsl header files. #129

Closed tcxxxx closed 2 years ago

tcxxxx commented 2 years ago

This PR fixes a build error: "fatal error: gsl/gsl_randist.h: No such file or directory".

The error occurs when the libgsl library is not installed on the system.

The patch adds a check 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.