-
Notifications
You must be signed in to change notification settings - Fork 20
/
configure.ac
58 lines (51 loc) · 1.95 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([dssp], [3.1.4], [Coos.Baakman@radboudumc.nl])
AM_INIT_AUTOMAKE([subdir-objects])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_CHECK_PROGS([PERL], [perl], [yes])
AC_CHECK_PROGS([CPPCHECK], [cppcheck], [yes])
if test -z "$CPPCHECK"; then
AC_MSG_WARN([cppcheck not found - continuing without cppcheck support])
fi
# Checks for libraries.
AX_BOOST_BASE([1.54],,AC_MSG_ERROR([libboost_base not found]))
AX_BOOST_DATE_TIME([1.54],,AC_MSG_ERROR([libboost_date_time not found]))
AX_BOOST_SYSTEM([1.54],,AC_MSG_ERROR([libboost_system not found]))
AX_BOOST_FILESYSTEM([1.54],,AC_MSG_ERROR([libboost_filesystem not found]))
AX_BOOST_IOSTREAMS([1.54],,AC_MSG_ERROR([libboost_iostreams not found]))
AX_BOOST_PROGRAM_OPTIONS([1.54],,AC_MSG_ERROR([libboost_options not found]))
AX_BOOST_THREAD([1.54],,AC_MSG_ERROR([libboost_thread not found]))
AX_BOOST_UNIT_TEST_FRAMEWORK([1.54],,AC_MSG_ERROR([libboost_unit_test_framework not found]))
AM_CONDITIONAL([HAVE_CPPCHECK], [test -n "$CPPCHECK"])
AX_CHECK_LIBRARY([LIBBZ2], [bzlib.h], [bz2], [],
[AC_MSG_WARN([libbz2 not found - compressed files not supported])])
AX_CHECK_LIBRARY([LIBZ], [zlib.h], [z], [],
[AC_MSG_WARN([libz not found - compressed files not supported])])
# Checks for header files.
AC_CHECK_HEADERS([sys/ioctl.h termios.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_INT8_T
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_FORK
AC_CHECK_FUNCS([dup2 floor pow socket sqrt strchr strerror])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT