icinga2/configure.ac

76 lines
1.7 KiB
Plaintext
Raw Normal View History

2012-03-28 13:24:49 +02:00
dnl Process this file with autoconf to produce a configure script.
dnl Created by Anjuta application wizard.
2012-05-18 11:31:55 +02:00
m4_include([m4/ax_cxx_gcc_abi_demangle.m4])
m4_include([m4/ax_check_compile_flag.m4])
m4_include([m4/ax_pthread.m4])
m4_include([m4/ax_prog_doxygen.m4])
AC_INIT([icinga], [2.0])
2012-03-28 13:24:49 +02:00
AC_CONFIG_AUX_DIR([m4])
2012-03-28 13:24:49 +02:00
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11])
AM_SILENT_RULES([yes])
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-03-28 13:24:49 +02:00
AC_PROG_CXX
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-04-24 14:04:51 +02:00
2012-04-03 15:47:32 +02:00
AX_CHECK_COMPILE_FLAG([-std=c++0x], [have_cxx11_support=yes])
if test "$have_cxx11_support" = "yes"; then
CXXFLAGS="$CXXFLAGS -std=c++0x"
AC_DEFINE(HAVE_CXX11, 1,
[define if the compiler supports C++11])
fi
2012-03-28 13:24:49 +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
2012-05-12 16:12:26 +02:00
LT_INIT([dlopen, disable-static])
LT_CONFIG_LTDL_DIR([ltdl])
LTDL_INIT
2012-03-28 13:24:49 +02:00
2012-04-02 10:29:08 +02:00
if test "x$with_included_ltdl" != "xyes"; then
AC_CHECK_LIB([ltdl], [lt_dladvise_init],
[],
[AC_MSG_ERROR([installed libltdl is too old])])
fi
2012-03-28 13:24:49 +02:00
AC_OUTPUT([
Makefile
base/Makefile
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
components/discovery/Makefile
icinga/Makefile
2012-04-13 11:45:09 +02:00
icinga-app/Makefile
2012-03-28 13:24:49 +02:00
jsonrpc/Makefile
mmatch/Makefile
2012-05-18 11:31:55 +02:00
Doxyfile
2012-03-28 13:24:49 +02:00
])