1- dnl This file is part of preseq
2- dnl
31dnl Copyright (C) 2018-2025: Andrew D. Smith
42dnl
53dnl Authors: Andrew D. Smith
@@ -33,40 +31,36 @@ AC_PROG_RANLIB
3331
3432hts_fail_msg="
3533
36- Failed to locate HTSLib on your system. Please use the LDFLAGS and
37- CPPFLAGS variables to specify the directories where the HTSLib library
38- and headers can be found.
34+ Failed to locate the HTSLib library on your system. Please use the LDFLAGS and
35+ CPPFLAGS variables to specify the directories where the HTSLib library and
36+ headers can be found.
3937
4038If you want to disable HTSLib when building preseq, use the --disable-htslib
4139argument to the configure script.
42-
4340"
4441
4542libdeflate_fail_msg="
4643
4744Failed to locate libdeflate on your system. This is a common dependency of
48- HTSLib. If your HTSLib might have been built without requiring libdeflate,
49- please use the --without-libdeflate argument to configure. If you do not need
50- to directly process SAM/BAM files with preseq, then you might consider using
51- the argument --without-htslib to build preseq without support for reading
52- SAM/BAM.
45+ HTSLib. If your HTSLib was built without libdeflate, you can give the
46+ --disable-libdeflate argument to configure. If you do not need to directly
47+ process SAM/BAM files with preseq, consider using the argument
48+ --without-htslib to build preseq without support for reading SAM/BAM.
5349
5450If you need libdeflate, please use the LDFLAGS and CPPFLAGS variables to
5551specify the directories where the library and headers can be found on your
5652system.
57-
5853"
5954
60- AC_ARG_ENABLE ( [ hts] ,
61- [ AS_HELP_STRING ( [ --disable-htslib] ,
62- [ Disable HTSLib (needed for BAM/SAM input) @<:@ no@:>@ ] ) ] ,
63- [ enable_htslib=no] , [ enable_htslib=yes]
55+ AC_ARG_ENABLE ( [ htslib] ,
56+ [ AS_HELP_STRING ( [ --enable-htslib] , [ use HTSLib to allow BAM/SAM input] ) ] ,
57+ [ enable_htslib=$enableval] , [ enable_htslib=no]
6458)
6559
66- AC_ARG_ENABLE ( [ deflate ] ,
67- [ AS_HELP_STRING ( [ --disable -libdeflate] ,
68- [ Disable libdeflate ( might be needed by HTSLib) @<:@ no @:>@ ] ) ] ,
69- [ enable_libdeflate=no ] , [ enable_libdeflate=yes ]
60+ AC_ARG_ENABLE ( [ libdeflate ] ,
61+ [ AS_HELP_STRING ( [ --enable -libdeflate] ,
62+ [ use libdeflate which might be needed by HTSLib] ) ] ,
63+ [ enable_libdeflate=$enableval ] , [ enable_libdeflate=no ]
7064)
7165
7266AS_IF ( [ test "x$enable_htslib" = xyes] , [
@@ -78,13 +72,14 @@ AS_IF([test "x$enable_htslib" = xyes], [
7872 [ AC_MSG_FAILURE ( [ "ZLib required for HTSLib but not found"] ) ]
7973 )
8074 AS_IF ( [ test "x$enable_libdeflate" = xyes] , [
81- AC_SEARCH_LIBS ( [ libdeflate_deflate_compress] , [ deflate] , [ ] ,
82- [ AC_MSG_ERROR ( [ $libdeflate_fail_msg] ) ] , [ ] ) ]
83- )
84- AC_CHECK_LIB ( [ hts] , [ hts_version] , [ ] ,
85- [ AC_MSG_FAILURE ( [ $hts_fail_msg] ) ] , [ -pthread -lz -ldeflate] )
86- ]
87- )
75+ AC_SEARCH_LIBS ( [ libdeflate_deflate_compress] , [ deflate] ,
76+ [ AC_CHECK_LIB ( [ hts] , [ hts_version] , [ ] , [
77+ AC_MSG_FAILURE ( [ $hts_fail_msg] ) ] , [ -pthread -lz -ldeflate] ) ] ,
78+ [ AC_MSG_ERROR ( [ $libdeflate_fail_msg] ) ] )
79+ ] ,
80+ [ AC_CHECK_LIB ( [ hts] , [ hts_version] , [ ] ,
81+ [ AC_MSG_FAILURE ( [ $hts_fail_msg] ) ] , [ -pthread -lz] ) ] )
82+ ] )
8883AM_CONDITIONAL([ ENABLE_HTSLIB] , [ test "x$enable_htslib" = "xyes"] )
8984
9085AC_CONFIG_FILES ( [ Makefile] )
0 commit comments