pcap-config: don't assume the system library directory is /usr/lib.

Instad of checking whether $libdir is /usr/lib in order to decide
whether to bother adding a -L$libdir flag or not, check whether $prefix
is /usr.

We must check $prefix, as $libdir isn't necessarily /usr/lib in this
case - for example, Linux distributions for 64-bit platforms that also
provide support for binaries for a 32-bit version of the platform may
put the 64-bit libraries, the 32-bit libraries, or both in directories
other than /usr/lib.

(cherry picked from commit c4f093fdb185c6c579c2e1b78ef16abc1959d530)
diff --git a/pcap-config.in b/pcap-config.in
index 44fb657..f43d316 100644
--- a/pcap-config.in
+++ b/pcap-config.in
@@ -42,9 +42,16 @@
 	shift
 done
 #
-# If libdir isn't /usr/lib, add it to the link-time linker path.
+# If we aren't installing in /usr, then provide a -L flag to let build
+# processes find our library.
 #
-if [ "$libdir" != "/usr/lib" ]
+# (We must check $prefix, as $libdir isn't necessarily /usr/lib in this
+# case - for example, Linux distributions for 64-bit platforms that
+# also provide support for binaries for a 32-bit version of the
+# platform may put the 64-bit libraries, the 32-bit libraries, or both
+# in directories other than /usr/lib.)
+#
+if [ "$prefix" != "/usr" ]
 then
 	LPATH=-L$libdir
 fi