aboutsummaryrefslogtreecommitdiff
blob: a5c052cdd3e1aeed3d485a4e897fd8a9893b72ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- configure.orig	2012-02-29 19:46:41.000000000 +0400
+++ configure	2012-03-22 03:28:43.458968696 +0400
@@ -441,14 +441,13 @@
         fi
     else
         if file $filearg $chklib64 | grep 'ASCII' > /dev/null 2>& 1 ; then
-            check_link $chklib64
-            ret=$link_result
-        else
-            logmsg " file $filearg $chklib64 | grep '64-bit'"
-            if file $filearg $chklib64 | grep '64-bit' > /dev/null 2>& 1 ; then
-                ret=1
-            fi
+            # get real binary .so name from .so ld script
+            chklib64=$(gawk '($1 == "GROUP") { print $3 }' $chklib64)
         fi
+        logmsg " file $filearg $chklib64 | grep '64-bit'"
+        if file $filearg $chklib64 | grep '64-bit' > /dev/null 2>& 1 ; then
+            ret=1
+            fi
     fi
     logmsg " result: $ret"
     if test $ret -eq 1 ; then