2928 |
25 Dec 12 |
peter |
1 |
#ifndef theplu_yat_omic_config_bam |
2928 |
25 Dec 12 |
peter |
2 |
#define theplu_yat_omic_config_bam |
2928 |
25 Dec 12 |
peter |
3 |
|
2928 |
25 Dec 12 |
peter |
// $Id$ |
2928 |
25 Dec 12 |
peter |
5 |
|
2928 |
25 Dec 12 |
peter |
6 |
/* |
4346 |
24 Apr 23 |
peter |
Copyright (C) 2012, 2013, 2014, 2015, 2016, 2018, 2020, 2022, 2023 Peter Johansson |
4346 |
24 Apr 23 |
peter |
8 |
|
4346 |
24 Apr 23 |
peter |
This file is part of the yat library, https://dev.thep.lu.se/yat |
4346 |
24 Apr 23 |
peter |
10 |
|
4346 |
24 Apr 23 |
peter |
The yat library is free software; you can redistribute it and/or |
4346 |
24 Apr 23 |
peter |
modify it under the terms of the GNU General Public License as |
4346 |
24 Apr 23 |
peter |
published by the Free Software Foundation; either version 3 of the |
4346 |
24 Apr 23 |
peter |
License, or (at your option) any later version. |
4346 |
24 Apr 23 |
peter |
15 |
|
4346 |
24 Apr 23 |
peter |
The yat library is distributed in the hope that it will be useful, |
4346 |
24 Apr 23 |
peter |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
4346 |
24 Apr 23 |
peter |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
4346 |
24 Apr 23 |
peter |
General Public License for more details. |
4346 |
24 Apr 23 |
peter |
20 |
|
4346 |
24 Apr 23 |
peter |
You should have received a copy of the GNU General Public License |
4346 |
24 Apr 23 |
peter |
along with yat. If not, see <https://www.gnu.org/licenses/>. |
4346 |
24 Apr 23 |
peter |
23 |
*/ |
4346 |
24 Apr 23 |
peter |
24 |
|
4346 |
24 Apr 23 |
peter |
25 |
/* |
2928 |
25 Dec 12 |
peter |
The purpose of this file is to cater for different installation |
2928 |
25 Dec 12 |
peter |
styles. As samtools' Makefile contains no install rule, different |
2928 |
25 Dec 12 |
peter |
distributions have come up with different ideas where to put |
2978 |
30 Jan 13 |
peter |
samtools' header files. Red Hat put them in '/usr/include/bam' |
2928 |
25 Dec 12 |
peter |
whereas Ubuntu put them in '/usr/include/samtools/'. We could solve |
2928 |
25 Dec 12 |
peter |
this by #including <bam.h> and then add appropriate include path |
2928 |
25 Dec 12 |
peter |
(-I) flags to the compiler, but in order to support arbitrary |
2928 |
25 Dec 12 |
peter |
PREFIX we instead choose to #define macros BAM_HEADER and |
2978 |
30 Jan 13 |
peter |
SAM_HEADER depending on where we found the bam headers (at |
2978 |
30 Jan 13 |
peter |
configure time) as <bam.h>, <bam/bam.h>, or <samtools/bam.h>. |
2928 |
25 Dec 12 |
peter |
36 |
*/ |
2928 |
25 Dec 12 |
peter |
37 |
|
2928 |
25 Dec 12 |
peter |
38 |
#include "yat/utility/config_public.h" |
2928 |
25 Dec 12 |
peter |
39 |
|
4169 |
25 Mar 22 |
peter |
// These #defines are not needed anymore (since we don't support |
3883 |
24 Mar 20 |
peter |
// building against libbam), but left for backward compatibility with |
3883 |
24 Mar 20 |
peter |
// yat 0.17. |
3415 |
30 Apr 15 |
peter |
43 |
#if defined YAT_HAVE_HTSLIB_HTS_H |
3350 |
20 Nov 14 |
peter |
44 |
# define YAT_SAM_HEADER "htslib/sam.h" |
3475 |
08 Mar 16 |
peter |
45 |
# define YAT_FAIDX_HEADER "htslib/faidx.h" |
2928 |
25 Dec 12 |
peter |
46 |
#endif |
2928 |
25 Dec 12 |
peter |
47 |
|
3350 |
20 Nov 14 |
peter |
48 |
#ifndef YAT_SAM_HEADER |
2990 |
26 Feb 13 |
peter |
49 |
#error This file requires samtools header files and cannot be used when \ |
3439 |
20 Nov 15 |
peter |
50 |
yat was configured with switch '--without-htslib'. |
2928 |
25 Dec 12 |
peter |
51 |
#endif |
2990 |
26 Feb 13 |
peter |
52 |
|
2990 |
26 Feb 13 |
peter |
53 |
#endif |