]> granicus.if.org Git - icinga2/blob - configure.ac
Replaced custom event code with Boost.Signals.
[icinga2] / configure.ac
1 /******************************************************************************
2  * Icinga 2                                                                   *
3  * Copyright (C) 2012 Icinga Development Team (http://www.icinga.org/)        *
4  *                                                                            *
5  * This program is free software; you can redistribute it and/or              *
6  * modify it under the terms of the GNU General Public License                *
7  * as published by the Free Software Foundation; either version 2             *
8  * of the License, or (at your option) any later version.                     *
9  *                                                                            *
10  * This program is distributed in the hope that it will be useful,            *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
13  * GNU General Public License for more details.                               *
14  *                                                                            *
15  * You should have received a copy of the GNU General Public License          *
16  * along with this program; if not, write to the Free Software Foundation     *
17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.             *
18  ******************************************************************************/
19
20 AC_INIT
21 AX_SPEC_FILE([icinga2.spec])
22 AX_SPEC_DEFAULTS
23 AX_SET_VERSION_INFO
24 AC_CONFIG_AUX_DIR([config])
25 AC_CONFIG_HEADERS([config.h])
26 AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
27 AM_SILENT_RULES([yes])
28
29 AC_PROG_CXX
30 AC_LANG_CPLUSPLUS
31 AC_PROG_CC
32 AC_LANG_C
33
34 LT_INIT([dlopen disable-static win32-dll])
35 LT_CONFIG_LTDL_DIR([third-party/ltdl])
36 LTDL_INIT
37
38 DX_HTML_FEATURE(ON)
39 DX_CHM_FEATURE(OFF)
40 DX_CHI_FEATURE(OFF)
41 DX_MAN_FEATURE(OFF)
42 DX_RTF_FEATURE(OFF)
43 DX_XML_FEATURE(OFF)
44 DX_PDF_FEATURE(OFF)
45 DX_PS_FEATURE(OFF)
46 DX_INIT_DOXYGEN([icinga], [Doxyfile], [doc])
47
48 AC_PROG_INSTALL
49 AM_PROG_LEX
50 AC_PROG_YACC
51 AC_PROG_LIBTOOL
52 AX_CXX_COMPILE_STDCXX_0X
53 AX_CXX_GCC_ABI_DEMANGLE
54 AX_PTHREAD
55 AX_BOOST_BASE
56 AX_BOOST_SIGNALS
57 AX_BOOST_UNIT_TEST_FRAMEWORK
58 AX_CHECK_OPENSSL([], [AC_MSG_ERROR([You need the OpenSSL headers and libraries in order to build this application])])
59 AC_CHECK_LIB(ssl, SSL_new)
60 AC_CHECK_LIB(crypto, X509_NAME_oneline)
61 AC_CHECK_LIB(eay32, X509_NAME_oneline)
62 AC_CHECK_LIB(m, floor)
63 AC_CHECK_LIB(pthread, pthread_create)
64 AC_CHECK_LIB(socket, getsockname)
65 AC_CHECK_LIB(ws2_32, getsockname)
66 AC_CHECK_LIB(shlwapi, PathRemoveFileSpecA)
67
68 AC_CONFIG_FILES([
69 Makefile
70 base/Makefile
71 components/Makefile
72 components/checker/Makefile
73 components/configfile/Makefile
74 components/configrpc/Makefile
75 components/demo/Makefile
76 components/discovery/Makefile
77 dyn/Makefile
78 dyntest/Makefile
79 icinga/Makefile
80 icinga-app/Makefile
81 jsonrpc/Makefile
82 test/Makefile
83 third-party/Makefile
84 third-party/cJSON/Makefile
85 third-party/mmatch/Makefile
86 Doxyfile
87 ])
88 AC_OUTPUT
89
90 if ! test -z "$LTDLDEPS"; then
91         ltdl_msg="bundled"
92 else
93         ltdl_msg="system-provided"
94 fi
95
96 echo "
97 Libraries:
98      ltdl: $ltdl_msg
99 "