Changeset 2868


Ignore:
Timestamp:
Nov 12, 2012, 10:28:40 PM (9 years ago)
Author:
Peter
Message:

refs #729. Add configure tests for samtools

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r2866 r2868  
    240240
    241241
     242# samtools API from http://samtools.sourceforge.net
     243AC_ARG_WITH([samtools],
     244            [AS_HELP_STRING([--without-samtools],
     245                            [disable samtools support])],
     246            [],
     247            [with_samtools=yes])
     248
     249AS_IF([test x"$with_samtools" != x"no"], [
     250  AC_CHECK_HEADER([zlib.h], [], [YAT_MSG_ERROR([zlib.h was not found])])
     251AC_SEARCH_LIBS([inflateEnd], [z])
     252  AC_CHECK_LIB([z], [inflateEnd], [], [YAT_MSG_ERROR([libz was not found])])
     253  AC_CHECK_HEADER([bam.h], [], [YAT_MSG_ERROR([bam.h was not found])])
     254  # try link against libbam
     255  YAT_CHECK_LIBBAM([LIBS="$BAM_LIBS $LIBS"],
     256                   [YAT_MSG_ERROR([libbam was not found])])
     257])
     258AM_CONDITIONAL([HAVE_SAMTOOLS], [test x"$with_samtools" = x"yes"])
     259
    242260#support for large files
    243261AC_SYS_LARGEFILE
     
    435453])
    436454
    437 AC_MSG_RESULT([----------------------------------------------------------------])
    438 AC_MSG_RESULT([Creating yat configuration])
    439455# Create output.
    440456AC_OUTPUT
     
    448464  Build Static Library: $enable_static
    449465  Build Documentation:  $doxygen_message
     466  Enable Bam Support:   $with_bam
    450467
    451468Options used to compile and link:
  • trunk/m4/Makefile.am

    r2787 r2868  
    2626aclocal_DATA += m4/yat_am_macros.m4
    2727aclocal_DATA += m4/yat_cblas.m4
     28aclocal_DATA += m4/yat_check_libbam.m4
    2829aclocal_DATA += m4/yat_common.m4
    2930aclocal_DATA += m4/yat_gsl.m4
  • trunk/m4/yat_cblas.m4

    r2093 r2868  
    3939
    4040#
    41 # serial 0 
     41# serial 0
    4242#
    4343
Note: See TracChangeset for help on using the changeset viewer.