]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
iproute2: configure: Add search path for 64bit library.
authorLi Wei <lw@cn.fujitsu.com>
Mon, 20 Aug 2012 01:41:47 +0000 (09:41 +0800)
committerStephen Hemminger <shemminger@vyatta.com>
Mon, 20 Aug 2012 16:01:16 +0000 (09:01 -0700)
Use pkg-config to tell us the library path and fallback to search
old paths if xtables.pc not exists.

Signed-off-by: Li Wei <lw@cn.fujitsu.com>
configure

index a1916ded05fe8481a1f33c12e0f7086ee3c9a129..db7cd6a8843a3392bbf466acd42c5e23d26555b1 100755 (executable)
--- a/configure
+++ b/configure
@@ -148,7 +148,13 @@ check_ipt()
 
 check_ipt_lib_dir()
 {
-       IPT_LIB_DIR=""
+       IPT_LIB_DIR=$(pkg-config --variable=xtlibdir xtables)
+       if [ -n "$IPT_LIB_DIR" ]; then
+               echo $IPT_LIB_DIR
+               echo "IPT_LIB_DIR:=$IPT_LIB_DIR" >> Config
+               return
+       fi
+
        for dir in /lib /usr/lib /usr/local/lib
        do
                for file in $dir/{xtables,iptables}/lib*t_*so ; do