mirror of https://github.com/Icinga/icinga2.git
commit
e0ae1df268
|
@ -174,7 +174,6 @@ do
|
||||||
if test -z "$NO_LIBTOOLIZE" ; then
|
if test -z "$NO_LIBTOOLIZE" ; then
|
||||||
echo "Running $LIBTOOLIZE..."
|
echo "Running $LIBTOOLIZE..."
|
||||||
$LIBTOOLIZE --force --copy
|
$LIBTOOLIZE --force --copy
|
||||||
find third-party/ltdl \! -perm u=w -exec chmod u+w '{}' ';'
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "Running aclocal $aclocalinclude ..."
|
echo "Running aclocal $aclocalinclude ..."
|
||||||
|
|
|
@ -22,7 +22,6 @@ libchecker_la_SOURCES = \
|
||||||
checker-type.conf
|
checker-type.conf
|
||||||
|
|
||||||
libchecker_la_CPPFLAGS = \
|
libchecker_la_CPPFLAGS = \
|
||||||
$(LTDLINCL) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
$(BOOST_CPPFLAGS) \
|
||||||
-I${top_srcdir}/lib \
|
-I${top_srcdir}/lib \
|
||||||
-I${top_srcdir}/components
|
-I${top_srcdir}/components
|
||||||
|
|
|
@ -28,7 +28,6 @@ libcluster_la_SOURCES = \
|
||||||
jsonrpc.h
|
jsonrpc.h
|
||||||
|
|
||||||
libcluster_la_CPPFLAGS = \
|
libcluster_la_CPPFLAGS = \
|
||||||
$(LTDLINCL) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
$(BOOST_CPPFLAGS) \
|
||||||
-I${top_srcdir}/lib \
|
-I${top_srcdir}/lib \
|
||||||
-I${top_srcdir}/components
|
-I${top_srcdir}/components
|
||||||
|
|
|
@ -34,7 +34,6 @@ libcompat_la_SOURCES = \
|
||||||
compat-type.conf
|
compat-type.conf
|
||||||
|
|
||||||
libcompat_la_CPPFLAGS = \
|
libcompat_la_CPPFLAGS = \
|
||||||
$(LTDLINCL) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
$(BOOST_CPPFLAGS) \
|
||||||
-I${top_srcdir}/lib \
|
-I${top_srcdir}/lib \
|
||||||
-I${top_srcdir}/components
|
-I${top_srcdir}/components
|
||||||
|
|
|
@ -27,7 +27,6 @@ libdb_ido_mysql_la_SOURCES = \
|
||||||
idomysqlconnection.ti
|
idomysqlconnection.ti
|
||||||
|
|
||||||
libdb_ido_mysql_la_CPPFLAGS = \
|
libdb_ido_mysql_la_CPPFLAGS = \
|
||||||
$(LTDLINCL) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
$(BOOST_CPPFLAGS) \
|
||||||
$(MYSQL_CFLAGS) \
|
$(MYSQL_CFLAGS) \
|
||||||
-I${top_srcdir}/lib \
|
-I${top_srcdir}/lib \
|
||||||
|
|
|
@ -22,7 +22,6 @@ libdemo_la_SOURCES = \
|
||||||
demo-type.conf
|
demo-type.conf
|
||||||
|
|
||||||
libdemo_la_CPPFLAGS = \
|
libdemo_la_CPPFLAGS = \
|
||||||
$(LTDLINCL) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
$(BOOST_CPPFLAGS) \
|
||||||
-I${top_srcdir}/lib \
|
-I${top_srcdir}/lib \
|
||||||
-I${top_srcdir}/components
|
-I${top_srcdir}/components
|
||||||
|
|
|
@ -82,7 +82,6 @@ liblivestatus_la_SOURCES = \
|
||||||
table.h
|
table.h
|
||||||
|
|
||||||
liblivestatus_la_CPPFLAGS = \
|
liblivestatus_la_CPPFLAGS = \
|
||||||
$(LTDLINCL) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
$(BOOST_CPPFLAGS) \
|
||||||
-I${top_srcdir}/lib \
|
-I${top_srcdir}/lib \
|
||||||
-I${top_srcdir}/components
|
-I${top_srcdir}/components
|
||||||
|
|
|
@ -22,7 +22,6 @@ libnotification_la_SOURCES = \
|
||||||
notification-type.conf
|
notification-type.conf
|
||||||
|
|
||||||
libnotification_la_CPPFLAGS = \
|
libnotification_la_CPPFLAGS = \
|
||||||
$(LTDLINCL) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
$(BOOST_CPPFLAGS) \
|
||||||
-I${top_srcdir}/lib \
|
-I${top_srcdir}/lib \
|
||||||
-I${top_srcdir}/components
|
-I${top_srcdir}/components
|
||||||
|
|
|
@ -27,7 +27,6 @@ libperfdata_la_SOURCES = \
|
||||||
perfdata-type.conf
|
perfdata-type.conf
|
||||||
|
|
||||||
libperfdata_la_CPPFLAGS = \
|
libperfdata_la_CPPFLAGS = \
|
||||||
$(LTDLINCL) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
$(BOOST_CPPFLAGS) \
|
||||||
-I${top_srcdir}/lib \
|
-I${top_srcdir}/lib \
|
||||||
-I${top_srcdir}/components
|
-I${top_srcdir}/components
|
||||||
|
|
12
configure.ac
12
configure.ac
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
AC_INIT([icinga2], [0.0.3])
|
AC_INIT([icinga2], [0.0.3])
|
||||||
AC_CONFIG_AUX_DIR([m4])
|
AC_CONFIG_AUX_DIR([m4])
|
||||||
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AM_INIT_AUTOMAKE([subdir-objects])
|
AM_INIT_AUTOMAKE([subdir-objects])
|
||||||
AX_SET_VERSION_INFO
|
AX_SET_VERSION_INFO
|
||||||
|
@ -79,8 +80,6 @@ CXXFLAGS="$CXXFLAGS -I/opt/local/include"
|
||||||
LDFLAGS="$LDFLAGS -L/opt/local/lib"
|
LDFLAGS="$LDFLAGS -L/opt/local/lib"
|
||||||
|
|
||||||
LT_INIT([dlopen disable-static win32-dll])
|
LT_INIT([dlopen disable-static win32-dll])
|
||||||
LT_CONFIG_LTDL_DIR([third-party/ltdl])
|
|
||||||
LTDL_INIT
|
|
||||||
|
|
||||||
DX_HTML_FEATURE(ON)
|
DX_HTML_FEATURE(ON)
|
||||||
DX_CHM_FEATURE(OFF)
|
DX_CHM_FEATURE(OFF)
|
||||||
|
@ -226,19 +225,10 @@ case ${host} in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if ! test -z "$LTDLDEPS"; then
|
|
||||||
ltdl_msg="bundled"
|
|
||||||
else
|
|
||||||
ltdl_msg="system-provided"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_COND_IF([MYSQL_USE], [mysql_msg="enabled"], [mysql_msg="disabled"])
|
AM_COND_IF([MYSQL_USE], [mysql_msg="enabled"], [mysql_msg="disabled"])
|
||||||
AM_COND_IF([PYTHON_USE], [python_msg="enabled"], [python_msg="disabled"])
|
AM_COND_IF([PYTHON_USE], [python_msg="enabled"], [python_msg="disabled"])
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
Libraries:
|
|
||||||
ltdl: $ltdl_msg
|
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
MySQL: $mysql_msg
|
MySQL: $mysql_msg
|
||||||
Python: $python_msg
|
Python: $python_msg
|
||||||
|
|
|
@ -7,8 +7,6 @@ icinga2_SOURCES = \
|
||||||
icinga.cpp
|
icinga.cpp
|
||||||
|
|
||||||
icinga2_CPPFLAGS = \
|
icinga2_CPPFLAGS = \
|
||||||
-DI2_ICINGALAUNCHER_BUILD \
|
|
||||||
$(LTDLINCL) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
$(BOOST_CPPFLAGS) \
|
||||||
-I${top_srcdir}/lib \
|
-I${top_srcdir}/lib \
|
||||||
-I${top_srcdir}/components
|
-I${top_srcdir}/components
|
||||||
|
@ -18,28 +16,10 @@ icinga2_LDFLAGS = \
|
||||||
-export-dynamic
|
-export-dynamic
|
||||||
|
|
||||||
icinga2_LDADD = \
|
icinga2_LDADD = \
|
||||||
$(LIBLTDL) \
|
|
||||||
$(BOOST_SIGNALS_LIB) \
|
$(BOOST_SIGNALS_LIB) \
|
||||||
$(BOOST_THREAD_LIB) \
|
$(BOOST_THREAD_LIB) \
|
||||||
$(BOOST_SYSTEM_LIB) \
|
$(BOOST_SYSTEM_LIB) \
|
||||||
$(BOOST_PROGRAM_OPTIONS_LIB) \
|
$(BOOST_PROGRAM_OPTIONS_LIB) \
|
||||||
${top_builddir}/lib/base/libbase.la \
|
${top_builddir}/lib/base/libbase.la \
|
||||||
${top_builddir}/lib/config/libconfig.la \
|
${top_builddir}/lib/config/libconfig.la
|
||||||
-dlopen ${top_builddir}/lib/icinga/libicinga.la \
|
|
||||||
-dlopen ${top_builddir}/components/checker/libchecker.la \
|
|
||||||
-dlopen ${top_builddir}/components/cluster/libcluster.la \
|
|
||||||
-dlopen ${top_builddir}/components/compat/libcompat.la \
|
|
||||||
-dlopen ${top_builddir}/components/demo/libdemo.la \
|
|
||||||
-dlopen ${top_builddir}/components/livestatus/liblivestatus.la \
|
|
||||||
-dlopen ${top_builddir}/components/notification/libnotification.la \
|
|
||||||
-dlopen ${top_builddir}/components/perfdata/libperfdata.la
|
|
||||||
|
|
||||||
if PYTHON_USE
|
|
||||||
icinga2_LDADD += \
|
|
||||||
-dlopen ${top_builddir}/lib/python/libpython.la
|
|
||||||
endif
|
|
||||||
|
|
||||||
if MYSQL_USE
|
|
||||||
icinga2_LDADD += \
|
|
||||||
-dlopen ${top_builddir}/components/db_ido_mysql/libdb_ido_mysql.la
|
|
||||||
endif
|
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
# include <ltdl.h>
|
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
# include <pwd.h>
|
# include <pwd.h>
|
||||||
# include <grp.h>
|
# include <grp.h>
|
||||||
|
@ -162,14 +161,6 @@ int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
Application::SetStartTime(Utility::GetTime());
|
Application::SetStartTime(Utility::GetTime());
|
||||||
|
|
||||||
#ifndef _WIN32
|
|
||||||
LTDL_SET_PRELOADED_SYMBOLS();
|
|
||||||
#endif /* _WIN32 */
|
|
||||||
|
|
||||||
#ifndef _WIN32
|
|
||||||
lt_dlinit();
|
|
||||||
#endif /* _WIN32 */
|
|
||||||
|
|
||||||
/* Set thread title. */
|
/* Set thread title. */
|
||||||
Utility::SetThreadName("Main Thread", false);
|
Utility::SetThreadName("Main Thread", false);
|
||||||
|
|
||||||
|
@ -321,15 +312,6 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
Log(LogInformation, "icinga-app", "Icinga application loader (version: " + Application::GetVersion() + ")");
|
Log(LogInformation, "icinga-app", "Icinga application loader (version: " + Application::GetVersion() + ")");
|
||||||
|
|
||||||
String searchDir = Application::GetPkgLibDir();
|
|
||||||
Log(LogInformation, "base", "Adding library search dir: " + searchDir);
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
SetDllDirectory(searchDir.CStr());
|
|
||||||
#else /* _WIN32 */
|
|
||||||
lt_dladdsearchdir(searchDir.CStr());
|
|
||||||
#endif /* _WIN32 */
|
|
||||||
|
|
||||||
(void) Utility::LoadExtensionLibrary("icinga");
|
(void) Utility::LoadExtensionLibrary("icinga");
|
||||||
|
|
||||||
if (g_AppParams.count("library")) {
|
if (g_AppParams.count("library")) {
|
||||||
|
|
|
@ -67,7 +67,6 @@ BuildRequires: bison
|
||||||
BuildRequires: %{apachename}
|
BuildRequires: %{apachename}
|
||||||
|
|
||||||
%if "%{_vendor}" == "redhat"
|
%if "%{_vendor}" == "redhat"
|
||||||
BuildRequires: libtool-ltdl-devel
|
|
||||||
%if 0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5"
|
%if 0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5"
|
||||||
# el5 requires EPEL
|
# el5 requires EPEL
|
||||||
BuildRequires: boost%{el5_boost_version}-devel
|
BuildRequires: boost%{el5_boost_version}-devel
|
||||||
|
|
|
@ -125,7 +125,6 @@ libbase_la_SOURCES = \
|
||||||
|
|
||||||
libbase_la_CPPFLAGS = \
|
libbase_la_CPPFLAGS = \
|
||||||
-DI2_BASE_BUILD \
|
-DI2_BASE_BUILD \
|
||||||
$(LTDLINCL) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
$(BOOST_CPPFLAGS) \
|
||||||
$(OPENSSL_INCLUDES) \
|
$(OPENSSL_INCLUDES) \
|
||||||
-I${top_srcdir}/lib \
|
-I${top_srcdir}/lib \
|
||||||
|
@ -141,7 +140,7 @@ libbase_la_LDFLAGS = \
|
||||||
@VERSION_INFO@
|
@VERSION_INFO@
|
||||||
|
|
||||||
libbase_la_LIBADD = \
|
libbase_la_LIBADD = \
|
||||||
$(LIBLTDL) \
|
-ldl \
|
||||||
$(OPENSSL_LIBS) \
|
$(OPENSSL_LIBS) \
|
||||||
$(BOOST_SIGNALS_LIB) \
|
$(BOOST_SIGNALS_LIB) \
|
||||||
$(BOOST_THREAD_LIB) \
|
$(BOOST_THREAD_LIB) \
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <glob.h>
|
#include <glob.h>
|
||||||
#include <ltdl.h>
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|
||||||
typedef int SOCKET;
|
typedef int SOCKET;
|
||||||
|
|
|
@ -246,15 +246,15 @@ void Utility::Sleep(double timeout)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
HMODULE
|
HMODULE
|
||||||
#else /* _WIN32 */
|
#else /* _WIN32 */
|
||||||
lt_dlhandle
|
void *
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
Utility::LoadExtensionLibrary(const String& library)
|
Utility::LoadExtensionLibrary(const String& library)
|
||||||
{
|
{
|
||||||
String path;
|
String path;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
path = library + ".dll";
|
path = Application::GetPkgLibDir() + "/" + library + ".dll";
|
||||||
#else /* _WIN32 */
|
#else /* _WIN32 */
|
||||||
path = "lib" + library + ".la";
|
path = Application::GetPkgLibDir() + "/lib" + library + ".so";
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
Log(LogInformation, "base", "Loading library '" + path + "'");
|
Log(LogInformation, "base", "Loading library '" + path + "'");
|
||||||
|
@ -269,10 +269,10 @@ Utility::LoadExtensionLibrary(const String& library)
|
||||||
<< boost::errinfo_file_name(path));
|
<< boost::errinfo_file_name(path));
|
||||||
}
|
}
|
||||||
#else /* _WIN32 */
|
#else /* _WIN32 */
|
||||||
lt_dlhandle hModule = lt_dlopen(path.CStr());
|
void *hModule = dlopen(path.CStr(), RTLD_NOW);
|
||||||
|
|
||||||
if (hModule == NULL) {
|
if (hModule == NULL) {
|
||||||
BOOST_THROW_EXCEPTION(std::runtime_error("Could not load library '" + path + "': " + lt_dlerror()));
|
BOOST_THROW_EXCEPTION(std::runtime_error("Could not load library '" + path + "': " + dlerror()));
|
||||||
}
|
}
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,7 @@ public:
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
HMODULE
|
HMODULE
|
||||||
#else /* _WIN32 */
|
#else /* _WIN32 */
|
||||||
lt_dlhandle
|
void *
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
LoadExtensionLibrary(const String& library);
|
LoadExtensionLibrary(const String& library);
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,6 @@ libconfig_la_SOURCES = \
|
||||||
|
|
||||||
libconfig_la_CPPFLAGS = \
|
libconfig_la_CPPFLAGS = \
|
||||||
-DI2_CONFIG_BUILD \
|
-DI2_CONFIG_BUILD \
|
||||||
$(LTDLINCL) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
$(BOOST_CPPFLAGS) \
|
||||||
-I${top_srcdir}/lib
|
-I${top_srcdir}/lib
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,6 @@ libdb_ido_la_SOURCES = \
|
||||||
usergroupdbobject.h
|
usergroupdbobject.h
|
||||||
|
|
||||||
libdb_ido_la_CPPFLAGS = \
|
libdb_ido_la_CPPFLAGS = \
|
||||||
$(LTDLINCL) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
$(BOOST_CPPFLAGS) \
|
||||||
-I${top_srcdir}/lib
|
-I${top_srcdir}/lib
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,6 @@ libicinga_la_SOURCES = \
|
||||||
|
|
||||||
libicinga_la_CPPFLAGS = \
|
libicinga_la_CPPFLAGS = \
|
||||||
-DI2_ICINGA_BUILD \
|
-DI2_ICINGA_BUILD \
|
||||||
$(LTDLINCL) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
$(BOOST_CPPFLAGS) \
|
||||||
-I${top_srcdir}/lib
|
-I${top_srcdir}/lib
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@ libpython_la_SOURCES = \
|
||||||
|
|
||||||
libpython_la_CPPFLAGS = \
|
libpython_la_CPPFLAGS = \
|
||||||
-DI2_PYTHON_BUILD \
|
-DI2_PYTHON_BUILD \
|
||||||
$(LTDLINCL) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
$(BOOST_CPPFLAGS) \
|
||||||
@PYTHON_CSPEC@ \
|
@PYTHON_CSPEC@ \
|
||||||
-I${top_srcdir}/lib
|
-I${top_srcdir}/lib
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
## Process this file with automake to produce Makefile.in
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
ltdl \
|
|
||||||
cJSON \
|
cJSON \
|
||||||
execvpe \
|
execvpe \
|
||||||
mmatch
|
mmatch
|
||||||
|
|
Loading…
Reference in New Issue