]> git.ipfire.org Git - thirdparty/util-linux.git/blob - m4/pkg.m4
scriptreplay: add --stream to the man page
[thirdparty/util-linux.git] / m4 / pkg.m4
1 dnl
2 dnl https://github.com/pkgconf/pkgconf/blob/master/pkg.m4#L217-L236
3 dnl
4 dnl PKG_INSTALLDIR([DIRECTORY])
5 dnl -------------------------
6 dnl Since: 0.27
7 dnl
8 dnl Substitutes the variable pkgconfigdir as the location where a module
9 dnl should install pkg-config .pc files. By default the directory is
10 dnl $libdir/pkgconfig, but the default can be changed by passing
11 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
12 dnl parameter.
13 AC_DEFUN([PKG_INSTALLDIR],
14 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
15 m4_pushdef([pkg_description],
16 [pkg-config installation directory @<:@]pkg_default[@:>@])
17 AC_ARG_WITH([pkgconfigdir],
18 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
19 [with_pkgconfigdir=]pkg_default)
20 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
21 m4_popdef([pkg_default])
22 m4_popdef([pkg_description])
23 ])dnl PKG_INSTALLDIR
24