11dnl This file is part of preseq
22dnl
3- dnl Copyright (C) 2018-2024 : Andrew D. Smith
3+ dnl Copyright (C) 2018-2025 : Andrew D. Smith
44dnl
55dnl Authors: Andrew D. Smith
66dnl
7- dnl This is free software: you can redistribute it and/or modify it
8- dnl under the terms of the GNU General Public License as published by
9- dnl the Free Software Foundation, either version 3 of the License, or
10- dnl (at your option) any later version.
7+ dnl This is free software: you can redistribute it and/or modify it under the
8+ dnl terms of the GNU General Public License as published by the Free Software
9+ dnl Foundation, either version 3 of the License, or (at your option) any later
10+ dnl version.
1111dnl
12- dnl This software is distributed in the hope that it will be useful,
13- dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
14- dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15- dnl General Public License for more details.
16-
17- AC_INIT ( [ preseq] , [ 3.2.0] , [ andrewds@usc.edu] ,
18- [ preseq] , [ https://github.com/smithlabcode/preseq] )
19- dnl the config.h is not currently #included in the source, and only
20- dnl used to keep command lines short.
12+ dnl This software is distributed in the hope that it will be useful, but
13+ dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14+ dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15+ dnl for more details.
16+
17+ AC_INIT ( [ preseq] ,
18+ [ 3.2.0] ,
19+ [ andrewds@usc.edu] ,
20+ [ preseq] ,
21+ [ https://github.com/smithlabcode/preseq] )
22+
23+ dnl the config.h is not currently #included in the source, and only used to
24+ dnl keep command lines short.
2125AC_CONFIG_HEADERS ( [ config.h] )
2226AM_INIT_AUTOMAKE ( [ subdir-objects foreign] )
2327
@@ -33,16 +37,29 @@ hts_fail_msg="
3337Failed to locate HTSLib on your system. Please use the LDFLAGS and
3438CPPFLAGS variables to specify the directories where the HTSLib library
3539and headers can be found.
40+
41+ If you want to disable HTSLib when building preseq, use the --disable-htslib
42+ argument to the configure script.
3643"
3744AC_ARG_ENABLE ( [ hts] ,
38- [ AS_HELP_STRING ( [ --enable -hts] , [ Enable HTSLib @<:@ yes@:>@ ] ) ] ,
39- [ enable_hts=yes ] , [ enable_hts=no ] )
45+ [ AS_HELP_STRING ( [ --disable -hts] , [ Enable HTSLib @<:@ yes@:>@ ] ) ] ,
46+ [ enable_hts=no ] , [ enable_hts=yes ] )
4047AS_IF ( [ test "x$enable_hts" = "xyes"] ,
4148 [ AC_CHECK_LIB ( [ hts] , [ hts_version] , [ ] ,
4249 [ AC_MSG_FAILURE ( [ $hts_fail_msg] ) ] ) ]
4350)
4451AM_CONDITIONAL([ ENABLE_HTS] , [ test "x$enable_hts" = "xyes"] )
4552
53+ dnl arg for using libdeflate, which might happen by default anyway
54+ AC_ARG_WITH ( [ libdeflate] ,
55+ [ AS_HELP_STRING ( [ --with-libdeflate] , [ use libdeflate for reading BAM files] ) ] ,
56+ [ with_libdeflate=yes] , [ with_libdeflate=no] )
57+ AS_IF ( [ test "x$with_libdeflate" = "xyes"] ,
58+ [
59+ AC_SEARCH_LIBS ( [ libdeflate_deflate_compress] , [ deflate] , [ ] ,
60+ [ AC_MSG_ERROR ( [ --with-libdeflate specified but libdeflate not found] ) ] )
61+ ] )
62+
4663AC_CONFIG_FILES ( [ Makefile] )
4764
4865dnl make the test data files available in the build tree
0 commit comments