-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
56 lines (42 loc) · 1.65 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
# see http://inti.sourceforge.net/tutorial/libinti/autotoolsproject.html
# and http://linux.blogs.com.np/2008/04/18/using-automake-and-autoconf-with-c/comment-page-1/
# and http://www.bioinf.uni-freiburg.de/~mmann/HowTo/automake.html
# set variables
PACKAGE=jprefix
# initial info about project
AC_INIT([jprefix],[0.69],[joshr])
# check for C++ preprocessor and compiler
AC_PROG_CXX
AC_PROG_CXXCPP
# 'foreign' below means "software does not conform to the typical gnu standards,
# and thus omitting README (and NEWS AUTHORS and ChangeLog)
# is not an error"
AM_INIT_AUTOMAKE([foreign])
# use the C++ compiler for following checks
AC_LANG([C++])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([getopt.h])
AC_CHECK_HEADERS([stdio.h])
AC_CHECK_HEADERS([stdlin.h])
AC_CHECK_HEADERS([time.h])
AC_CHECK_HEADERS([sys/time.h])
AC_CHECK_HEADERS([fstream])
AC_CHECK_HEADERS([iostream])
AC_CHECK_HEADERS([iomanip])
AC_CHECK_HEADERS([sstream])
AC_CHECK_HEADERS([string])
AC_CHECK_HEADERS([vector])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# distribute additional compiler and linker flags among Makefiles
# --> set and change these variables instead of CXXFLAGS or LDFLAGS (for user only)
AC_SUBST([AM_CXXFLAGS])
AC_SUBST([AM_LDFLAGS])
#AC_MSG_CHECKING([whether to enable code coverage])
#AC_ARG_ENABLE(coverage,
# [ --enable-coverage Enable coverage reports],
# [-fcoverage-mapping ])
#[CFLAGS="$CFLAGS -fprofile-arcs -fcoverage-mapping" -fcoverage-mapping ])
# finally this generates the Makefiles etc. for the build
AC_OUTPUT(Makefile)