[beast: 6/39] BUILD: use versioned pkgincludedir pkglibdir pkgdatadir pkgdocdir pkglibexecdir



commit 0a71184f1e363fe2be783fa5d19f7dfe8ea6692e
Author: Tim Janik <timj gnu org>
Date:   Fri Sep 11 21:25:04 2015 +0200

    BUILD: use versioned pkgincludedir pkglibdir pkgdatadir pkgdocdir pkglibexecdir

 configure.ac |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 55e2734..d46bfe8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,6 +58,19 @@ else
 fi
 AC_SUBST(DEFINE__FILE_DIR__)
 
+# Define package directories per major/minor version
+pkgincludedir="\${includedir}/beast-$BST_MAJOR_VERSION.$BST_MINOR_VERSION"
+pkglibdir="\${libdir}/beast-$BST_MAJOR_VERSION.$BST_MINOR_VERSION"
+pkglibexecdir="\${libexecdir}/beast-$BST_MAJOR_VERSION.$BST_MINOR_VERSION"
+pkgdatadir="\${datadir}/beast-$BST_MAJOR_VERSION.$BST_MINOR_VERSION"
+pkgdocdir="\${datarootdir}/doc/beast-$BST_MAJOR_VERSION.$BST_MINOR_VERSION"
+# Substitute directories in Makefiles
+AC_SUBST(pkgincludedir)
+AC_SUBST(pkglibdir)
+AC_SUBST(pkglibexecdir)
+AC_SUBST(pkgdatadir)
+AC_SUBST(pkgdocdir)
+
 # Build tree checks
 AC_MSG_CHECKING([for git repository])
 test -f "${srcdir}/.git/index" && INGIT= || INGIT='#'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]