Changeset 2928
- Timestamp:
- Dec 26, 2012, 12:20:10 AM (11 years ago)
- Location:
- branches/0.10-stable
- Files:
-
- 1 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10-stable/README.developer
r2787 r2928 59 59 way but there is still some work to do before we do exceptions in a neutral way. 60 60 61 === Samtools === 62 63 Code that depends on samtools API should be excluded from the build 64 when configured --without-samtools, i.e., put files within 65 `HAVE_LIBBAM` conditionals (or alternatively put code inside `#ifdef 66 HAVE_SAMTOOL` preprocessor conditionals). In order to support multiple 67 inclusion styles we do not include <bam.h> directly, but `#include 68 <config_bam.h>` and `#include YAT_BAM_HEADER`. Similarly, for `<sam.h>` 69 include `YAT_SAM_HEADER`. For more details on this, refer to 70 `yat/omic/config_bam.h`. 71 61 72 === Doxygen === 62 73 We generate our documentation using [http://www.doxygen.org Doxygen] -
branches/0.10-stable/configure.ac
r2891 r2928 289 289 AC_CHECK_LIB([z], [inflateEnd], [], 290 290 [YAT_MSG_ERROR([Library 'libz' was not found])]) 291 AC_CHECK_HEADER([bam.h], [], 292 [YAT_MSG_ERROR([Header file 'bam.h' was not found])]) 291 YAT_CHECK_HEADER_BAM([],[YAT_MSG_ERROR([Header file 'bam.h' was not found])]) 293 292 # try link against libbam 294 YAT_CHECK_LIBBAM([LIBS="$BAM_LIBS $LIBS"], 293 YAT_CHECK_LIBBAM([LIBS="$BAM_LIBS $LIBS" 294 AC_DEFINE([HAVE_LIBBAM], [1], 295 [Define to 1 if libbam is available])], 295 296 [YAT_MSG_ERROR([Library 'libbam' was not found])]) 296 297 AC_PATH_PROG([SAMTOOLS], [samtools], [false]) -
branches/0.10-stable/m4/yat_check_libbam.m4
r2919 r2928 21 21 # along with yat. If not, see <http://www.gnu.org/licenses/>. 22 22 23 # YAT_CHECK_HEADER_BAM([action-if-found], [action-if-not-found]) 24 # ============================================================== 25 # 26 AC_DEFUN([YAT_CHECK_HEADER_BAM], 27 [ 28 yat_bam_header=no 29 # check how to #include <bam.h> 30 AC_CHECK_HEADERS([bam/bam.h bam.h samtools/bam.h bam.h], 31 [yat_bam_header=yes; break]) 32 AS_IF([test x$yat_bam_header = xyes], [$1], [$2]) 33 ]) # YAT_CHECK_HEADER_BAM 34 23 35 24 36 # YAT_CHECK_LIBBAM([action-if-found], [action-if-not-found]) … … 27 39 AC_DEFUN([YAT_CHECK_LIBBAM], 28 40 [ 41 AC_REQUIRE([YAT_CHECK_HEADER_BAM]) 29 42 BAM_LIBS=no 30 43 AC_MSG_CHECKING([for library containing bam_header_destroy]) … … 39 52 AC_MSG_RESULT([$BAM_LIBS]) 40 53 ]) 41 AS_IF([test x"$BAM_LIBS" = false], [$2], [$1])54 AS_IF([test x"$BAM_LIBS" = xno], [$2], [$1]) 42 55 ]) # YAT_CHECK_LIBBAM 43 56 … … 51 64 save_LIBS=$LIBS 52 65 LIBS="$1 $LIBS" 53 AC_LINK_IFELSE([AC_LANG_PROGRAM([@%:@include <bam.h>], 54 [bam_header_t* hdr = bam_header_init(); 66 AC_LINK_IFELSE([AC_LANG_PROGRAM([@%:@if HAVE_BAM_H 67 @%:@ include <bam.h> 68 @%:@elif HAVE_BAM_BAM_H 69 @%:@ include <bam/bam.h> 70 @%:@elif HAVE_SAMTOOLS_BAM_H 71 @%:@ include <samtools/bam.h> 72 @%:@endif 73 ],[ 74 bam_header_t* hdr = bam_header_init(); 55 75 bam_header_destroy(hdr); 56 76 ])], -
branches/0.10-stable/test/bam_region_iterator.cc
r2895 r2928 22 22 #include "yat/omic/BamReadIterator.h" 23 23 #include "yat/omic/BamWriteIterator.h" 24 #include "yat/omic/config_bam.h" 24 25 25 #include <bam.h>26 #include YAT_BAM_HEADER 26 27 27 28 #include <algorithm> -
branches/0.10-stable/yat/omic/BamFile.cc
r2897 r2928 20 20 #include "BamFile.h" 21 21 #include "BamHeader.h" 22 #include "config_bam.h" 22 23 23 24 #include "yat/utility/Exception.h" 24 25 25 #include <bam.h>26 #include YAT_BAM_HEADER 26 27 27 28 #include <stdexcept> -
branches/0.10-stable/yat/omic/BamFile.h
r2897 r2928 21 21 #include "BamHeader.h" 22 22 #include "BamRead.h" 23 #include "config_bam.h" 23 24 24 25 #include "yat/utility/Exception.h" 25 26 26 #include <sam.h>27 #include YAT_SAM_HEADER 27 28 28 29 #include <boost/utility.hpp> -
branches/0.10-stable/yat/omic/BamHeader.h
r2884 r2928 19 19 // along with this program. If not, see <http://www.gnu.org/licenses/>. 20 20 21 #include <bam.h> 21 #include "config_bam.h" 22 23 #include YAT_BAM_HEADER 22 24 23 25 namespace theplu { -
branches/0.10-stable/yat/omic/BamRead.cc
r2886 r2928 19 19 20 20 #include "BamRead.h" 21 22 #include <bam.h> 21 #include "config_bam.h" 22 23 #include YAT_BAM_HEADER 23 24 24 25 #include <algorithm> -
branches/0.10-stable/yat/omic/BamRead.h
r2911 r2928 19 19 // along with this program. If not, see <http://www.gnu.org/licenses/>. 20 20 21 #include <sam.h> 22 #include <bam.h> 21 #include "config_bam.h" 22 23 #include YAT_BAM_HEADER 24 #include YAT_SAM_HEADER 23 25 24 26 #include <functional> -
branches/0.10-stable/yat/omic/BamReadIterator.h
r2896 r2928 21 21 #include "BamFile.h" 22 22 #include "BamRead.h" 23 #include "config_bam.h" 23 24 24 #include <sam.h>25 #include YAT_SAM_HEADER 25 26 26 27 #include <boost/iterator/iterator_facade.hpp> -
branches/0.10-stable/yat/omic/BamWriteIterator.cc
r2883 r2928 19 19 20 20 #include "BamFile.h" 21 #include "config_bam.h" 21 22 22 #include <sam.h>23 #include YAT_SAM_HEADER 23 24 24 25 #include <cassert> -
branches/0.10-stable/yat/omic/Makefile.am
r2899 r2928 41 41 nobase_include_HEADERS += $(srcdir)/yat/omic/BamReadIterator.h 42 42 nobase_include_HEADERS += $(srcdir)/yat/omic/BamWriteIterator.h 43 nobase_include_HEADERS += $(srcdir)/yat/omic/config_bam.h 43 44 endif 44 45 nobase_include_HEADERS += $(srcdir)/yat/omic/Codon.h -
branches/0.10-stable/yat/utility/config_public.h.in
r2673 r2928 28 28 /// 29 29 30 /// Define to 1 if you have the <bam/bam.h> header file. 31 #undef HAVE_BAM_BAM_H 32 33 /// Define to 1 if you have the <bam.h> header file. 34 #undef HAVE_BAM_H 35 36 /// Define if samtools executable is available 37 #undef HAVE_SAMTOOLS 38 30 39 /// Define if compiler supports deprecated attribute, as in g++ 4.0 31 40 #undef YAT_HAVE_GCC_DEPRECATED
Note: See TracChangeset
for help on using the changeset viewer.