build FEATURE set up build system
diff --git a/src/config.h.in b/src/config.h.in
new file mode 100644
index 0000000..2a2af23
--- /dev/null
+++ b/src/config.h.in
@@ -0,0 +1,32 @@
+/**
+ * @file config.h
+ * @author Radek Krejci <rkrejci@cesnet.cz>
+ * @brief various variables detected by cmake
+ *
+ * Copyright (c) 2015 - 2018 CESNET, z.s.p.o.
+ *
+ * This source code is licensed under BSD 3-Clause License (the "License").
+ * You may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://opensource.org/licenses/BSD-3-Clause
+ */
+
+#ifndef LY_CONFIG_H_
+#define LY_CONFIG_H_
+
+/**
+ * @brief Compiler flag for unused function attributes
+ */
+#define UNUSED(x) @COMPILER_UNUSED_ATTR@
+
+/**
+ * @brief Compiler flag for packed data types.
+ */
+#define _PACKED @COMPILER_PACKED_ATTR@
+
+#define LY_VERSION_MAJOR @LIBYANG_MAJOR_VERSION@ /**< libyang major version number */
+#define LY_VERSION_MINOR @LIBYANG_MINOR_VERSION@ /**< libyang minor version number */
+#define LY_VERSION_MICRO @LIBYANG_MICRO_VERSION@ /**< libyang micro version number */
+
+#endif /* LY_CONFIG_H_ */