391c46
diff -up nspr/config/nspr-config.in.flags nspr/config/nspr-config.in
391c46
--- nspr/config/nspr-config.in.flags	2013-05-29 13:46:34.147971410 -0700
391c46
+++ nspr/config/nspr-config.in	2013-05-29 14:17:10.990838914 -0700
391c46
@@ -102,7 +102,7 @@ if test -z "$includedir"; then
391c46
     includedir=@includedir@
391c46
 fi
391c46
 if test -z "$libdir"; then
391c46
-    libdir=@libdir@
391c46
+    libdir=`pkg-config --variable=libdir nspr`
391c46
 fi
391c46
 
391c46
 if test "$echo_prefix" = "yes"; then
391c46
@@ -136,12 +136,12 @@ if test "$echo_libs" = "yes"; then
391c46
       if test -n "$lib_nspr"; then
391c46
 	libdirs="$libdirs -lnspr${major_version}"
391c46
       fi
391c46
-      os_ldflags="@LDFLAGS@"
391c46
+      os_ldflags=`pkg-config --variable=ldflags nspr`
391c46
       for i in $os_ldflags ; do
391c46
 	if echo $i | grep \^-L >/dev/null; then
391c46
 	  libdirs="$libdirs $i"
391c46
         fi
391c46
       done
391c46
-      echo $libdirs @OS_LIBS@
391c46
+      echo $libdirs `pkg-config --variable=os_libs nspr`
391c46
 fi      
391c46
 
391c46
diff -up nspr/config/nspr.pc.in.flags nspr/config/nspr.pc.in
391c46
--- nspr/config/nspr.pc.in.flags	2013-05-29 13:48:15.026643570 -0700
391c46
+++ nspr/config/nspr.pc.in	2013-05-29 13:49:47.795202949 -0700
391c46
@@ -6,5 +6,5 @@ includedir=@includedir@
391c46
 Name: NSPR
391c46
 Description: The Netscape Portable Runtime
391c46
 Version: @MOD_MAJOR_VERSION@.@MOD_MINOR_VERSION@.@MOD_PATCH_VERSION@
391c46
-Libs: -L@libdir@ -lplds@MOD_MAJOR_VERSION@ -lplc@MOD_MAJOR_VERSION@ -lnspr@MOD_MAJOR_VERSION@
391c46
+Libs: -L@libdir@ -lplds@MOD_MAJOR_VERSION@ -lplc@MOD_MAJOR_VERSION@ -lnspr@MOD_MAJOR_VERSION@ @OS_LIBS@
391c46
 Cflags: -I@includedir@