-
Notifications
You must be signed in to change notification settings - Fork 26
/
configure.ac
99 lines (76 loc) · 2.5 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT([rcssmonitor],[19.0.1],[https://github.com/rcsoccersim/rcssmonitor])
#LT_PREREQ(2.2.4)
#AM_INIT_AUTOMAKE([gnu 1.7.2 check-news dist-bzip2 dist-zip])
AM_INIT_AUTOMAKE([gnu 1.7.2 check-news foreign])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
##################################################
# libtool settings
##################################################
LT_INIT([shared disable-static])
LT_LANG([C++])
AC_SUBST(LIBTOOL_DEPS)
##################################################
# Checks for programs.
##################################################
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
##################################################
# Checks for libraries.
##################################################
AC_CHECK_LIB([m], [cos],
[LIBS="-lm $LIBS"],
[AC_MSG_ERROR([*** -lm not found! ***])])
#AC_CHECK_LIB([z], [deflate])
AX_CHECK_ZLIB([],
[AC_MSG_NOTICE(Zlib not found.)])
##################################################
# Checks for header files.
##################################################
AC_CHECK_HEADERS([arpa/inet.h],
break,
[AC_MSG_ERROR([*** arpa/inet.h not found ***])])
##################################################
# Checks for typedefs, structures, and compiler characteristics.
##################################################
AC_HEADER_STDBOOL
AC_C_INLINE
AC_C_CONST
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
##################################################
# Checks for library functions.
##################################################
AC_FUNC_ERROR_AT_LINE
AC_CHECK_FUNCS([memset rint strtol pow sqrt])
# ----------------------------------------------------------
# check Qt
AX_HAVE_QT
if test "x$have_qt" != "xyes"; then
AC_MSG_ERROR([Qt not found.])
fi
# ----------------------------------------------------------
# check C++
AX_CXX_COMPILE_STDCXX_17(noext)
# ----------------------------------------------------------
# check boost
#AX_BOOST_BASE([1.38.0])
#AX_BOOST_SYSTEM
#AX_BOOST_PROGRAM_OPTIONS
#CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
#LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
# ----------------------------------------------------------
AC_CONFIG_FILES([Makefile
rcss/Makefile
rcss/rcg/Makefile
src/Makefile])
AC_OUTPUT