2012-05-26 14:40:15 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* Icinga 2 *
|
|
|
|
* Copyright (C) 2012 Icinga Development Team (http://www.icinga.org/) *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of the GNU General Public License *
|
|
|
|
* as published by the Free Software Foundation; either version 2 *
|
|
|
|
* of the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program; if not, write to the Free Software Foundation *
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
|
|
******************************************************************************/
|
2012-03-28 13:24:49 +02:00
|
|
|
|
2012-05-26 23:12:46 +02:00
|
|
|
AC_INIT([icinga2], [2.0])
|
2012-05-25 13:51:05 +02:00
|
|
|
AC_LANG(C++)
|
|
|
|
AC_CONFIG_AUX_DIR([config])
|
2012-03-28 13:24:49 +02:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
AM_INIT_AUTOMAKE([1.11])
|
|
|
|
AM_SILENT_RULES([yes])
|
|
|
|
|
2012-05-25 14:40:10 +02:00
|
|
|
LT_INIT([dlopen, disable-static])
|
|
|
|
LT_CONFIG_LTDL_DIR([ltdl])
|
|
|
|
LTDL_INIT
|
|
|
|
|
|
|
|
AX_BOOST_BASE
|
|
|
|
AX_BOOST_UNIT_TEST_FRAMEWORK
|
|
|
|
|
2012-05-18 11:31:55 +02:00
|
|
|
DX_HTML_FEATURE(ON)
|
|
|
|
DX_CHM_FEATURE(OFF)
|
|
|
|
DX_CHI_FEATURE(OFF)
|
|
|
|
DX_MAN_FEATURE(OFF)
|
|
|
|
DX_RTF_FEATURE(OFF)
|
|
|
|
DX_XML_FEATURE(OFF)
|
|
|
|
DX_PDF_FEATURE(OFF)
|
|
|
|
DX_PS_FEATURE(OFF)
|
|
|
|
DX_INIT_DOXYGEN([icinga], [Doxyfile], [doc])
|
|
|
|
|
2012-05-25 13:51:05 +02:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_CC
|
2012-03-28 13:24:49 +02:00
|
|
|
AC_PROG_CXX
|
2012-05-25 13:51:05 +02:00
|
|
|
AC_PROG_LIBTOOL
|
2012-05-26 14:40:15 +02:00
|
|
|
AX_CXX_COMPILE_STDCXX_0X
|
2012-04-03 13:38:30 +02:00
|
|
|
AX_CXX_GCC_ABI_DEMANGLE
|
2012-05-09 12:10:07 +02:00
|
|
|
AX_PTHREAD
|
2012-03-28 13:24:49 +02:00
|
|
|
|
2012-04-24 14:04:51 +02:00
|
|
|
AC_CHECK_LIB(ssl, SSL_new)
|
|
|
|
AC_CHECK_LIB(crypto, X509_NAME_oneline)
|
|
|
|
AC_CHECK_LIB(eay32, X509_NAME_oneline)
|
2012-05-09 12:10:07 +02:00
|
|
|
AC_CHECK_LIB(m, floor)
|
|
|
|
AC_CHECK_LIB(pthread, pthread_create)
|
2012-05-26 13:53:24 +02:00
|
|
|
AC_CHECK_LIB(socket, getsockname)
|
2012-04-24 14:04:51 +02:00
|
|
|
|
2012-05-26 14:40:15 +02:00
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([[#include <openssl/ssl.h>]], [])],
|
|
|
|
[],
|
|
|
|
[AC_MSG_ERROR([You need the OpenSSL headers and libraries in order to build this application]) ])
|
2012-03-28 13:24:49 +02:00
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
2012-05-25 22:04:03 +02:00
|
|
|
compat/Makefile
|
2012-03-28 13:24:49 +02:00
|
|
|
base/Makefile
|
2012-04-06 08:56:52 +02:00
|
|
|
cJSON/Makefile
|
2012-04-13 13:16:54 +02:00
|
|
|
components/Makefile
|
|
|
|
components/configfile/Makefile
|
|
|
|
components/configrpc/Makefile
|
2012-04-23 13:45:41 +02:00
|
|
|
components/demo/Makefile
|
2012-04-30 15:30:45 +02:00
|
|
|
components/discovery/Makefile
|
2012-04-01 09:48:52 +02:00
|
|
|
icinga/Makefile
|
2012-04-13 11:45:09 +02:00
|
|
|
icinga-app/Makefile
|
2012-03-28 13:24:49 +02:00
|
|
|
jsonrpc/Makefile
|
2012-05-09 10:15:51 +02:00
|
|
|
mmatch/Makefile
|
2012-05-18 11:31:55 +02:00
|
|
|
Doxyfile
|
2012-05-26 23:12:46 +02:00
|
|
|
icinga2.spec
|
2012-03-28 13:24:49 +02:00
|
|
|
])
|