1 /******************************************************************************
3 * Copyright (C) 2012 Icinga Development Team (http://www.icinga.org/) *
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. *
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. *
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 ******************************************************************************/
21 AX_SPEC_FILE([icinga2.spec])
24 AC_CONFIG_AUX_DIR([config])
25 AC_CONFIG_HEADERS([config.h])
26 AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
27 AM_SILENT_RULES([yes])
34 LT_INIT([dlopen disable-static win32-dll])
35 LT_CONFIG_LTDL_DIR([third-party/ltdl])
46 DX_INIT_DOXYGEN([icinga], [Doxyfile], [doc])
52 AX_CXX_COMPILE_STDCXX_0X
53 AX_CXX_GCC_ABI_DEMANGLE
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)
72 components/checker/Makefile
73 components/configfile/Makefile
74 components/configrpc/Makefile
75 components/demo/Makefile
76 components/discovery/Makefile
84 third-party/cJSON/Makefile
85 third-party/mmatch/Makefile
90 if ! test -z "$LTDLDEPS"; then
93 ltdl_msg="system-provided"