forked from statgen/EPACTS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
157 lines (131 loc) · 4.51 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65])
AC_INIT([EPACTS], [3.3.0], [[email protected]])
AM_INIT_AUTOMAKE(EPACTS, 3.3.0)
#AC_CONFIG_SRCDIR([src/Anno.cpp])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_PROG_LIBTOOL
AC_PROG_LIBTOOL
AC_ENABLE_SHARED
AC_DISABLE_STATIC
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([limits.h stddef.h stdint.h stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_C_RESTRICT
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
AC_CHECK_TYPES([ptrdiff_t])
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC
AC_HEADER_MAJOR
AC_FUNC_REALLOC
AC_FUNC_STRTOD
AC_CHECK_FUNCS([floor gethostname memset pow select sqrt strchr strstr strtol])
AC_CHECK_LIB(z, gzopen, [], [AC_MSG_ERROR([libz.{so,a} was not found. Please install zlib at http://www.zlib.net/ first])])
#AC_CHECK_LIB(bz2, BZ2_bzopen, [], [AC_MSG_ERROR([libbz2.{so,a} was not found in the library path. Please install it at http://www.bzip.org/downloads.html first])])
#AC_CHECK_LIB(R, R_alloc, [], [AC_MSG_ERROR([libR.{so,a} was not found. Please install it at http://www.r-project.org/ first])])
#perl
AC_CHECK_PROG(PERL_CHECK,perl,yes)
if test x"$PERL_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install perl before installing.])
fi
#gs
AC_CHECK_PROG(GS_CHECK,gs,yes)
if test x"$GS_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install gs before installing.])
fi
#Rscript
AC_CHECK_PROG(RSCRIPT_CHECK,Rscript,yes)
if test x"$RSCRIPT_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install latest version of R before installing.])
fi
#R
AC_CHECK_PROG(R_CHECK,R,yes)
if test x"$R_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install latest version of R before installing.])
fi
#grep
AC_CHECK_PROG(GREP_CHECK,grep,yes)
if test x"$GREP_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install grep before installing.])
fi
#mv
AC_CHECK_PROG(MV_CHECK,mv,yes)
if test x"$MV_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install mv before installing.])
fi
#rm
AC_CHECK_PROG(RM_CHECK,rm,yes)
if test x"$RM_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install rm before installing.])
fi
#make
AC_CHECK_PROG(MAKE_CHECK,make,yes)
if test x"$MAKE_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install make before installing.])
fi
#cat
AC_CHECK_PROG(CAT_CHECK,cat,yes)
if test x"$CAT_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install cat from GNU coreutils at http://ftp.gnu.org/gnu/coreutils/ before installing.])
fi
#cut
AC_CHECK_PROG(CUT_CHECK,cut,yes)
if test x"$CUT_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install cut from GNU coreutils at http://ftp.gnu.org/gnu/coreutils/ before installing.])
fi
#dirname
AC_CHECK_PROG(DIRNAME_CHECK,dirname,yes)
if test x"$DIRNAME_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install dirname from GNU coreutils at http://ftp.gnu.org/gnu/coreutils/ before installing.])
fi
#head
AC_CHECK_PROG(HEAD_CHECK,head,yes)
if test x"$HEAD_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install head from GNU coreutils at http://ftp.gnu.org/gnu/coreutils/ before installing.])
fi
#mkdir
AC_CHECK_PROG(MKDIR_CHECK,mkdir,yes)
if test x"$MKDIR_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install mkdir from GNU coreutils at http://ftp.gnu.org/gnu/coreutils/ before installing.])
fi
#sort
AC_CHECK_PROG(SORT_CHECK,sort,yes)
if test x"$SORT_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install sort from GNU coreutils at http://ftp.gnu.org/gnu/coreutils/ before installing.])
fi
#zcat
AC_CHECK_PROG(ZCAT_CHECK,zcat,yes)
if test x"$ZCAT_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install zcat from zlib package at http://www.zlib.net/ before installing.])
fi
#groff
AC_CHECK_PROG(GROFF_CHECK,groff,yes)
if test x"$GROFF_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install groff at ftp://ftp.gnu.org/gnu/groff/ before installing.])
fi
#pfbtops
AC_CHECK_PROG(PFBTOPS_CHECK,pfbtops,yes)
if test x"$PFBTOPS_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install pfbtops from groff package at ftp://ftp.gnu.org/gnu/groff/ before installing.])
fi
#gnuplot
AC_CHECK_PROG(GNUPLOT_CHECK,gnuplot,yes)
if test x"$GNUPLOT_CHECK" != x"yes" ; then
AC_MSG_ERROR([Please install gnuplot at http://sourceforge.net/projects/gnuplot/files/ before installing.])
fi
AC_OUTPUT(Makefile src/Makefile scripts/Makefile data/Makefile)