-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathconfigure.ac
More file actions
95 lines (76 loc) · 2.2 KB
/
configure.ac
File metadata and controls
95 lines (76 loc) · 2.2 KB
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
92
93
94
95
define(VERSION, esyscmd(sh -c "cat ./src/mapgd_0.4/VERSION | cut -d '-' -f 1 | tr -d '\n'" ) )
AC_INIT([mapgd], VERSION, [matthew.s.ackerman@gmail.com], [mapgd.tgz], [https://github.com/LynchLab/MAPGD/])
AC_PROG_CXX
AC_LANG(C++)
AC_SUBST(HAVE_GSL, [no])
AC_SUBST(HAVE_OMP, [no])
AC_CHECK_LIB(sqlite3,sqlite3_open,AC_SUBST(HAVE_SQL, [yes]), AC_SUBST(HAVE_SQL, [no]) )
AC_SUBST(SQLITE3_VERSION)
AC_CHECK_PROG(HAVE_MAN, [man], [yes], [no])
#AC_PACKAGE_TARNAME(
AC_CHECK_LIB([m],[cos])
AC_CHECK_LIB([gslcblas],[cblas_dgemm])
AC_CHECK_LIB([gsl],[gsl_blas_dgemm])
AM_GNU_GETTEXT([external])
AC_CHECK_LIB([lzo],[lzo1x_1_15_compress],[LZO_LIBS="-llzo"],[HAVE_LZO="no"])
AC_CONFIG_MACRO_DIR([m4])
AC_OPENMP
AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory])
#AX_CXX_COMPILE_STDCXX_11
AX_WITH_HTSLIB
AX_MPI
if test "$ac_cv_lib_gsl_gsl_blas_dgemm" == yes
then
AC_SUBST(HAVE_GSL, yes)
else
AC_MSG_WARN([GSL (gnu scientific libraries) not found. Unable to use relatedness command.])
fi
if test "$ac_cv_prog_cxx_openmp" == "unsupported"
then
AC_MSG_WARN([No openmp support detected, will not be multi-threaded.])
Hsource='# Commented because no HTS detected'
Hinstall='# Commented because no HTS detected'
else
AC_SUBST(HAVE_OMP, yes)
if test "$ax_cv_htslib_which" = source; then
Hsource=
Hinstall='#'
else
Hsource='#'
Hinstall=
fi
fi
if test "$ac_cv_func_MPI_Init" == "yes"
then
AC_SUBST(HAVE_MPI, yes)
AC_SUBST(MPICXX, mpicxx)
else
AC_MSG_WARN([No mpi support detected, cannot run on multiple nodes.])
fi
if test "$ax_cv_htslib" == "yes"
then
AC_SUBST(HAVE_HTS, no)
AC_CHECK_LIB(hts, bcf_hdr_sync,
AC_SUBST(HAVE_HTS, yes),
AC_MSG_WARN([Htslib version 1.9 or greater needed.] ), [-lm -lpthread] )
else
AC_SUBST(HAVE_HTS, no)
AC_MSG_WARN([Htslib not detected, will be unable to create vcf files.])
fi
if test "$USE_NLS" == yes
then
AC_SUBST(USE_NLS, yes)
else
AC_MSG_ERROR([No gettext support detected, please install gettext.
For linux users:
sudo apt-get install gettext
For OSX users:
sudo brew install gettext;
sudo brew link --force gettext;])
fi
#if test "$ax_cv_htslib" == yes
AC_SUBST(LZ4_DIR, )
AC_SUBST([Hsource])
AC_SUBST([Hinstall])
AC_OUTPUT(Makefile)
#cp confdefs.h my_config.h