forked from Mirrors/freeswitch
Add --with-pkglibdir option to set the installation directory of freeswitch.pc.
Default behaviour is unchanged. Packagers should use this option to install freeswitch.pc into the system's main pkg-config directory (e.g. /usr/lib/pkgconfig). Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de> Tested-by: Stefan Knoblich <s.knoblich@axsentis.de>
This commit is contained in:
parent
a3b18e5b7c
commit
f20ba4d1f6
|
@ -356,7 +356,7 @@ scripts/fsxs: scripts/fsxs.in
|
||||||
## misc
|
## misc
|
||||||
##
|
##
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = @pkgconfigdir@
|
||||||
pkgconfig_DATA = build/freeswitch.pc
|
pkgconfig_DATA = build/freeswitch.pc
|
||||||
|
|
||||||
$(switch_builddir)/modules.conf:
|
$(switch_builddir)/modules.conf:
|
||||||
|
|
11
configure.in
11
configure.in
|
@ -93,6 +93,17 @@ AC_SUBST(libdir)
|
||||||
AC_SUBST(bindir)
|
AC_SUBST(bindir)
|
||||||
AC_SUBST(includedir)
|
AC_SUBST(includedir)
|
||||||
|
|
||||||
|
AC_ARG_WITH([pkgconfigdir],
|
||||||
|
[AS_HELP_STRING([--with-pkgconfigdir=DIR], [Installation directory for pkgconfig file (default: \${libdir}/pkgconfig)])],
|
||||||
|
[case "${withval}" in
|
||||||
|
yes|no) AC_MSG_ERROR([Invalid value ${withval} for option --with-pkgconfigdir]) ;;
|
||||||
|
*) pkgconfigdir="${withval}" ;;
|
||||||
|
esac
|
||||||
|
],
|
||||||
|
[pkgconfigdir="${libdir}/pkgconfig"]
|
||||||
|
)
|
||||||
|
AC_SUBST([pkgconfigdir])
|
||||||
|
|
||||||
#Set default language
|
#Set default language
|
||||||
AC_LANG_C
|
AC_LANG_C
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
|
|
Loading…
Reference in New Issue