0
|
1 # -*- Autoconf -*-
|
|
2 # Process this file with autoconf to produce a configure script.
|
|
3
|
|
4 AC_PREREQ(2.61)
|
|
5 AC_INIT([bwa], [0.5.5])
|
|
6 AC_CONFIG_SRCDIR([bntseq.c])
|
|
7 AC_CONFIG_HEADER([config.h])
|
|
8 AC_CONFIG_MACRO_DIR([m4])
|
|
9 AM_INIT_AUTOMAKE()
|
|
10
|
|
11 # Checks for programs.
|
|
12 AC_PROG_CC([gcc])
|
|
13 AC_PROG_CXX([g++])
|
|
14 AC_PROG_INSTALL
|
|
15 AC_PROG_AWK
|
|
16 AC_PROG_MKDIR_P
|
|
17 AC_PROG_RANLIB
|
|
18
|
|
19 # Checks for libraries.
|
|
20
|
|
21 # Checks for header files.
|
|
22 AC_HEADER_STDC
|
|
23 AC_CHECK_HEADERS([limits.h stdint.h stdlib.h string.h unistd.h])
|
|
24
|
|
25 # Checks for typedefs, structures, and compiler characteristics.
|
|
26 AC_C_CONST
|
|
27 AC_C_INLINE
|
|
28 AC_TYPE_INT32_T
|
|
29 AC_TYPE_INT64_T
|
|
30 AC_TYPE_SIZE_T
|
|
31 AC_TYPE_UINT16_T
|
|
32 AC_TYPE_UINT32_T
|
|
33 AC_TYPE_UINT64_T
|
|
34 AC_TYPE_UINT8_T
|
|
35
|
|
36 # Checks for library functions.
|
|
37 AC_FUNC_MALLOC
|
|
38 AC_FUNC_REALLOC
|
|
39 AC_FUNC_VPRINTF
|
|
40 AC_CHECK_FUNCS([memmove memset sqrt strdup strstr])
|
|
41 AC_CHECK_LIB([m],[log])
|
|
42 AC_CHECK_LIB([z],[gzopen])
|
|
43 AC_CHECK_LIB([pthread],[pthread_create])
|
|
44
|
|
45 ACX_PTHREAD
|
|
46
|
|
47 AC_CONFIG_FILES([Makefile
|
|
48 bwt_gen/Makefile])
|
|
49 AC_OUTPUT
|