On the 1.3.x branch:
Merge a scons install fix:
r2191: Use the value of LIBDIR for libdir in the serf.pc file, instead of the
hardcoded /usr/local/lib path.
git-svn-id: https://svn.apache.org/repos/asf/serf/branches/1.3.x@1699729 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/SConstruct b/SConstruct
index 8da0f0c..d9be156 100644
--- a/SConstruct
+++ b/SConstruct
@@ -378,6 +378,7 @@
SUBST_DICT = {
'@MAJOR@': str(MAJOR),
'@PREFIX@': '$PREFIX',
+ '@LIBDIR@': '$LIBDIR',
'@INCLUDE_SUBDIR@': 'serf-%d' % (MAJOR,),
'@VERSION@': '%d.%d.%d' % (MAJOR, MINOR, PATCH),
'@LIBS@': '%s %s %s -lz' % (apu_libs, apr_libs,
diff --git a/build/serf.pc.in b/build/serf.pc.in
index 8e49c8a..071a6fa 100644
--- a/build/serf.pc.in
+++ b/build/serf.pc.in
@@ -1,7 +1,7 @@
SERF_MAJOR_VERSION=@MAJOR@
prefix=@PREFIX@
exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@LIBDIR@
includedir=${prefix}/include/@INCLUDE_SUBDIR@
Name: serf