summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTushar Gohad <tushar.gohad@intel.com>2015-12-10 04:17:04 -0700
committerTushar Gohad <tushar.gohad@intel.com>2015-12-10 04:17:04 -0700
commit71f8aea4f7e7c11d40441cf7456cc2abdef201bb (patch)
tree2e61b422f9906a8996da85148085ae59050397c2
parent8788462b7e354eb3769607acbe8175d6f0275f7a (diff)
downloadliberasurecode-71f8aea4f7e7c11d40441cf7456cc2abdef201bb.tar.gz
Add missing pkg-config defns where required
-rw-r--r--configure.ac23
1 files changed, 23 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d468b77..3c029b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,6 +37,28 @@ AC_PROG_INSTALL
AC_PROG_MAKE_SET
PKG_PROG_PKG_CONFIG
+
+m4_ifndef([PKG_INSTALLDIR],[
+# PKG_INSTALLDIR(DIRECTORY)
+# -------------------------
+# Substitutes the variable pkgconfigdir as the location where a module
+# should install pkg-config .pc files. By default the directory is
+# $libdir/pkgconfig, but the default can be changed by passing
+# DIRECTORY. The user can override through the --with-pkgconfigdir
+# parameter.
+AC_DEFUN([PKG_INSTALLDIR],
+[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
+m4_pushdef([pkg_description],
+ [pkg-config installation directory @<:@]pkg_default[@:>@])
+AC_ARG_WITH([pkgconfigdir],
+ [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
+ [with_pkgconfigdir=]pkg_default)
+AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
+m4_popdef([pkg_default])
+m4_popdef([pkg_description])
+]) dnl PKG_INSTALLDIR
+])
+
PKG_INSTALLDIR
AC_SUBST([PACKAGE_VERSION_MAJOR],package_version_major)
@@ -221,6 +243,7 @@ AC_CONFIG_FILES([\
test/Makefile \
doc/Makefile \
Makefile \
+ erasurecode.pc \
Xorcode.pc
])