@@ -97,6 +97,8 @@ set(BUILD_STATIC_LIB ${CMAKE_BINARY_DIR}/lib/statics)
set(BUILD_ETC ${CMAKE_BINARY_DIR}/etc)
set(BUILD_PYTHON ${CMAKE_BINARY_DIR}/python)
+set(IBDIAG_CONFIG_PATH "${CMAKE_INSTALL_FULL_SYSCONFDIR}/infiniband-diags")
+
set(CMAKE_INSTALL_INITDDIR "${CMAKE_INSTALL_SYSCONFDIR}/init.d"
CACHE PATH "Location for init.d files")
set(CMAKE_INSTALL_SYSTEMD_SERVICEDIR "${CMAKE_INSTALL_PREFIX}/lib/systemd/system"
@@ -7,6 +7,8 @@
#define HAVE_ISBLANK 1
#define HAVE_BUILTIN_CLZL 1
+#define PACKAGE_VERSION "@PACKAGE_VERSION@"
+
// FIXME: Remove this, The cmake version hard-requires new style CLOEXEC support
#define STREAM_CLOEXEC "e"
@@ -29,6 +31,8 @@
#define IBACM_IBACME_SERVER_PATH "@CMAKE_INSTALL_FULL_RUNDIR@/" IBACM_SERVER_BASE
#define IBACM_SERVER_PATH "@CMAKE_INSTALL_FULL_RUNDIR@/ibacm.sock"
+#define IBDIAG_CONFIG_PATH "@IBDIAG_CONFIG_PATH@"
+
#define VERBS_PROVIDER_DIR "@VERBS_PROVIDER_DIR@"
#define VERBS_PROVIDER_SUFFIX "@IBVERBS_PROVIDER_SUFFIX@"
#define IBVERBS_PABI_VERSION @IBVERBS_PABI_VERSION@
@@ -58,7 +58,6 @@
#include <infiniband/umad.h>
#include <infiniband/mad.h>
#include <ibdiag_common.h>
-#include <ibdiag_version.h>
int ibverbose;
enum MAD_DEST ibd_dest_type = IB_DEST_LID;
@@ -84,8 +83,8 @@ static const struct ibdiag_opt *opts_map[256];
static const char *get_build_version(void)
{
- return "BUILD VERSION: " IBDIAG_VERSION " Build date: " __DATE__ " "
- __TIME__;
+ return "BUILD VERSION: " PACKAGE_VERSION " Build date: " __DATE__
+ " " __TIME__;
}
static void pretty_print(int start, int width, const char *str)