]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Add --with-pkglibdir option to set the installation directory of freeswitch.pc.
authorStefan Knoblich <s.knoblich@axsentis.de>
Sat, 19 Feb 2011 22:07:22 +0000 (23:07 +0100)
committerStefan Knoblich <s.knoblich@axsentis.de>
Sat, 19 Feb 2011 22:07:22 +0000 (23:07 +0100)
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>
Makefile.am
configure.in

index 37a01d27fb4f2f56b2811f47c01e6fa336cbd33b..5b6b9896acf9ad98fb4d936b60f89dbbfc4dfd8d 100644 (file)
@@ -356,7 +356,7 @@ scripts/fsxs: scripts/fsxs.in
 ## misc
 ##
 
-pkgconfigdir = $(libdir)/pkgconfig
+pkgconfigdir   = @pkgconfigdir@
 pkgconfig_DATA = build/freeswitch.pc
 
 $(switch_builddir)/modules.conf:
index a0c941875194a45ad36dfddac13f76da7654bd0a..0e45e064f1f47f6e95d1e91559c3d3a2cdf10eb5 100644 (file)
@@ -93,6 +93,17 @@ AC_SUBST(libdir)
 AC_SUBST(bindir)
 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
 AC_LANG_C
 # Checks for programs.