-
Notifications
You must be signed in to change notification settings - Fork 20
/
configure.ac
54 lines (40 loc) · 1.61 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.69)
AC_INIT(BamDeal, 0.27, [email protected])
AM_INIT_AUTOMAKE(BamDeal,0.27)
AC_CONFIG_SRCDIR([BamDeal.cpp])
AC_CONFIG_HEADER([config.h])
# Checks for programs
AC_PROG_AWK
AC_PROG_CXX([g++])
AC_PROG_CC([gcc])
AC_PROG_CPP
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lz':
AC_CHECK_LIB([z], [main],,AC_MSG_ERROR([You need zlib >= 1.2.3 to build $PACKAGE]))
# FIXME: Replace `main' with a function in `-lhts':
AC_CHECK_LIB([hts], [main],,AC_MSG_ERROR([You need Pre-install Library libhts samtools/htslib >= 1.12 to build $PACKAGE]))
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([zlib.h],[],[AC_MSG_ERROR([You need include htslib/zlib.h to build $PACKAGE])],[])
AC_CHECK_HEADERS([htslib/sam.h htslib/kseq.h zlib.h htslib/kstring.h stdlib.h string.h unistd.h])
AC_CHECK_HEADERS([htslib/kseq.h],[],[AC_MSG_ERROR([You need include htslib/kseq.h to build $PACKAGE])],[])
AC_CHECK_HEADERS([htslib/sam.h],[],[AC_MSG_ERROR([You need include htslib/sam.h to build $PACKAGE])],[])
AC_CHECK_HEADERS([htslib/kstring.h],[],[AC_MSG_ERROR([You need include htslib/kstring.h to build $PACKAGE])],[])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT32_T
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([memset regcomp sqrt strdup strncasecmp strtol])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT