source: trunk/test/yat_m4_with_bam_test.sh @ 3417

Last change on this file since 3417 was 3417, checked in by Peter, 4 years ago

updating copyright statements

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#! /bin/sh
2# $Id: yat_m4_with_bam_test.sh 3417 2015-05-25 01:35:59Z peter $
3#
4# Copyright (C) 2013, 2015 Peter Johansson
5#
6# This file is part of the yat library, http://dev.thep.lu.se/yat
7#
8# The yat library is free software; you can redistribute it
9# and/or modify it under the terms of the GNU General Public License as
10# published by the Free Software Foundation; either version 3 of the
11# License, or (at your option) any later version.
12#
13# The yat library is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16# General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with yat. If not, see <http://www.gnu.org/licenses/>.
20
21required="autoconf automake libtool htslib"
22
23set -e
24
25. test/init.sh || exit 99
26
27cat >> configure.ac <<EOF
28YAT_CHECK_HEADER([], [AC_MSG_ERROR])
29LDFLAGS="\$LDFLAGS \`\$yat_config --ldflags\`"
30LIBS="\$LIBS \`\$yat_config --link-libtool\`"
31AC_MSG_NOTICE(["LDFLAGS: \$LDFLAGS"])
32AC_MSG_NOTICE(["LIBS: \$LIBS"])
33YAT_USE_LIBTOOL_PUSH
34YAT_CHECK_LIB_WITH_BAM([], [AC_MSG_ERROR])
35AC_CONFIG_FILES([Makefile])
36AC_OUTPUT
37EOF
38
39bootstrap
40grep '^YAT_CHECK_LIB_WITH_BAM' configure && exit_fail
41if ./configure $configure_opts --with-yat=$YAT_CONFIG; then :;
42else
43warn_ configure failed unexpectedly
44tail -n 1000 config.log
45exit_fail
46fi
47
48exit_success
Note: See TracBrowser for help on using the repository browser.