Changeset 3091


Ignore:
Timestamp:
Sep 26, 2013, 10:01:22 AM (8 years ago)
Author:
Peter
Message:

add test for libz and libbam. refs #737

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r3088 r3091  
    327327  AC_SEARCH_LIBS([inflateEnd], [z], [],
    328328    [AC_MSG_FAILURE([library 'libz' was not found])])
     329  LIBZ=$ac_cv_search_inflateEnd
     330  AS_IF([test x"$LIBZ" = x"none required"], [LIBZ=])
     331  YAT_CHECK_LA_LIBS([
     332    @%:@include <zlib.h>
     333    int my_func(void)
     334    { z_streamp zs; inflateEnd(zs); return 0; }
     335  ], [$LIBZ $user_LIBS], [$LIBZ], [YAT_STATIC_LIBS])
    329336  YAT_CHECK_HEADER_BAM([],[AC_MSG_FAILURE([header file 'bam.h' was not found])])
    330337  # try link against libbam
     
    333340                              [Define to 1 if libbam is available])],
    334341    [AC_MSG_FAILURE([library 'libbam' was not found])])
     342  YAT_CHECK_LA_LIBS([
     343    _YAT_BAM_INCLUDES
     344    void my_func(bam_header_t* hdr) { bam_header_destroy(hdr); }
     345  ], [$BAM_LIBS $LIBZ $user_LIBS], [$BAM_LIBS], [YAT_STATIC_LIBS])
    335346  # check if global variable bam_nt16_rev_table is available
    336347  YAT_BAM_NT16_REV_TABLE
Note: See TracChangeset for help on using the changeset viewer.