summaryrefslogtreecommitdiffstats
path: root/configure.ac (plain)
blob: 7f10e962c9641f079f3f3825a71b132f2099dddd
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
AC_INIT([exp007], [0.1], [don@drexel.edu])
AM_INIT_AUTOMAKE([-Wall, -Werror, -Wno-portability])
AC_PROG_CC
AM_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([
	Makefile
	src/Makefile
])

# Headers Checks

AC_CHECK_HEADERS([ncbi.h],[],
[AC_MSG_ERROR("The NCBI Toolkit headers are needed to build the system.")])

AC_CHECK_HEADERS([hdf5.h],[],
[AC_MSG_ERROR("The HDF5 headers are needed to build the system.")])

AC_CHECK_HEADERS([petscconf.h],[],
[AC_MSG_ERROR("The PETSc headers are needed to build the system.")])

AC_CHECK_HEADERS([petscmat.h],[],
[AC_MSG_ERROR("The PETSc headers are needed to build the system.")])

AC_CHECK_HEADERS([libxml/parser.h],[],
[AC_MSG_ERROR("The libxml2 headers are needed to build the system.")])

########################
# MODULE: NCBI Toolkit #
########################

# Check for the NCBI ToolBox libraries.
AC_SEARCH_LIBS([log10],[m],[],
[AC_MSG_ERROR("The C Math Library is needed to build the system.")])

AC_SEARCH_LIBS([NlmThreadsAvailable],[ncbi],[],
[AC_MSG_ERROR("The NCBI ToolBox is needed to build the system. Information on this API can be found on-line at http://www.ncbi.nlm.nih.gov/IEB/ToolBox/index.cgi. Debian users can add the package libncbi6-dev to fulfill this dependency.")])

AC_SEARCH_LIBS([SeqAlignNew],[ncbiobj],[],
[AC_MSG_ERROR("The NCBI ToolBox is needed to build the system. Information on this API can be found on-line at http://www.ncbi.nlm.nih.gov/IEB/ToolBox/index.cgi. Debian users can add the package libncbi6-dev to fulfill this dependency.")])

AC_SEARCH_LIBS([Blast_RedoOneMatch],[blastcompadj],[],
[AC_MSG_ERROR("The NCBI ToolBox is needed to build the system. Information on this API can be found on-line at http://www.ncbi.nlm.nih.gov/IEB/ToolBox/index.cgi. Debian users can add the package libncbi6-dev to fulfill this dependency.")])

AC_SEARCH_LIBS([BioseqBlastEngine],[ncbitool],[],
[AC_MSG_ERROR("The NCBI ToolBox is needed to build the system. Information on this API can be found on-line at http://www.ncbi.nlm.nih.gov/IEB/ToolBox/index.cgi. Debian users can add the package libncbi6-dev to fulfill this dependency.")])

################
# MODULE: HDF5 #
################

AC_SEARCH_LIBS([__intel_rtc_uninit_use],[irc])
AC_SEARCH_LIBS([MPI_File_open],[mpi])
AC_SEARCH_LIBS([compress2],[z])
AC_SEARCH_LIBS([SZ_BufftoBuffCompress],[sz])

AC_SEARCH_LIBS([H5Fcreate],[hdf5],[],
[AC_MSG_ERROR("The HDF5 libraries are needed to build the system.")])

AC_SEARCH_LIBS([H5TBmake_table],[hdf5_hl],[],
[AC_MSG_ERROR("The HDF5 libraries are needed to build the system.")])

#################
# MODULE: PETSc #
#################

AC_SEARCH_LIBS([pthread_atfork],[pthread])

AC_SEARCH_LIBS([PetscInitialize],[petsc],[],
[AC_MSG_ERROR("The Portable Extensible Toolkit for Scientific Computation (PETSc) is needed to build the system.")])

# The AC_SEARCH_LIBS other-libraries list is not particularly useful.
# Autoconf determines if the other-libraries are necessary however in
# the cases where they are indeed necessary they are not actually
# added to the library list.

# These are the dependencies.  Random functions are selected from
# these libraries from the list of otherwise undefined references at
# link time.
AC_SEARCH_LIBS([VecNorm],[petscvec])

# MatCreateSeqAIJ is acutally used in the code for this project.
AC_SEARCH_LIBS([MatCreateSeqAIJ],[petscmat],[],
[AC_MSG_ERROR("The Portable Extensible Toolkit for Scientific Computation (PETSc) is needed to build the system.")])

###################
# MODULE: libxml2 #
###################
AC_SEARCH_LIBS([xmlCreatePushParserCtxt],[xml2],[],
[AC_MSG_ERROR("The libxml2 library is needed to build the system.")])

AC_OUTPUT

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.